<!-- // Common Javascript for "Adventure" policies 
// AW 3 Apr 01 - Copied from main part of site & setup for New Server

var MINUTE = 60 * 1000;
var HOUR = MINUTE * 60;
var DAY = HOUR * 24;
var WEEK = DAY * 7;
	
var aInsurancePackage = new Array();
var aTravelDetails = new Array();

// variable constructors
function insurancepackage(cost,name,uid,desc,type) {
	aInsurancePackage.cost = cost;
	aInsurancePackage.name = name;
	aInsurancePackage.uid = uid;
	aInsurancePackage.desc = desc;
	aInsurancePackage.InsType = type;
}

function traveldetails(destination,startdate,enddate,days) {
	aTravelDetails.destination = destination;
	aTravelDetails.startdate = startdate;
	aTravelDetails.enddate = enddate;
	aTravelDetails.days = days;
}

function Adjustments(name,value,unit,tip,option,group) {
	this.name = name;
	this.value = value;
	this.unit = unit;
	this.tip = tip;
	this.optional = option;
	this.group = group;
}

function XLookup(uid, display, visible) {
	this.uid = uid;
	this.display = display;
	this.visible = visible;
}

function DayDropDown(text,value) {
	this.text = text;
	this.value = value;
}

//indentifies the packagename and an array of the Y-Axis name index (i.e. day or flatrate)
function PackageY(packagename,commaarray) {
	this.name = packagename;
	this.commaarray = commaarray;
}

function PackageAdj(AdjustmentIndex,IncludeAsDefault,IncludeInStandard,DisableUserInput,IncludeInBudget,Group,MutualExclusiveToIndexNo) {
	this.Index = AdjustmentIndex;
	this.IncludeAsDefault = IncludeAsDefault;
	this.DisableUserInput = DisableUserInput;
	this.IncludeInStandard = IncludeInStandard;
	this.IncludeInBudget = IncludeInBudget;
	this.Group = Group;
	this.METINO = MutualExclusiveToIndexNo;
// IncludeAsDefault - the adjustment in in the package and can not be removed (Ski for Annual MultiTrip)
// IncludeInStandard - the adjustment is added to the standard version of the package
// IncludeInBudget - the adjustment is added to the budget version of the package
// DisableUserInput - the option is not available in this package and will be grayed out
// Group - the grouping of the options for display purposes
}

function MatriceRecord(x,rate) {
	//this.z = z;
	this.x = x;
	this.rate = rate;
}

var xlookup = new Array();
// AW - 27 Jan 01 - changed indexes as a result of new database driven rates matrix, now the xlookup[] is the Region_id
xlookup[4] = new XLookup("4","Australia and New Zealand",true);
xlookup[1] = new XLookup("1","United Kingdom/Channel Islands/N.Ireland",false);
xlookup[3] = new XLookup("3","Worldwide (exc. USA & Canada)",true);
xlookup[5] = new XLookup("5","Worldwide (inc. USA & Canada)",true);
xlookup[2] = new XLookup("2","Europe (exc. Algeria, Israel, Libya & Lebanon)",true);

var daydropdown = new Array();
daydropdown[0] = new DayDropDown("31 Days",31);
daydropdown[1] = new DayDropDown("45 Days",45);
daydropdown[2] = new DayDropDown("2 Months",61);
daydropdown[3] = new DayDropDown("3 Months",92);
daydropdown[4] = new DayDropDown("4 Months",122);
daydropdown[5] = new DayDropDown("5 Months",153);
daydropdown[6] = new DayDropDown("6 Months",183);
daydropdown[7] = new DayDropDown("7 Months",214);
daydropdown[8] = new DayDropDown("8 Months",244);
daydropdown[9] = new DayDropDown("9 Months",275);
daydropdown[10] = new DayDropDown("10 Months",305);
daydropdown[11] = new DayDropDown("11 Months",336);
daydropdown[12] = new DayDropDown("12 Months",366);
daydropdown[13] = new DayDropDown("13 Months",397);
daydropdown[14] = new DayDropDown("14 Months",427);
daydropdown[15] = new DayDropDown("15 Months",458);
daydropdown[16] = new DayDropDown("16 Months",488);
daydropdown[17] = new DayDropDown("17 Months",519);
daydropdown[18] = new DayDropDown("18 Months",549);

var packageY = new Array();
packageY[0] = new PackageY("Adventure Traveller","31,45,61,92,122,153,183,214,244,275,305,336,376,427,458,488,519,549");

// -->

