//
//
//                                          IF YOU SEE THIS PAGE, PRESS YOUR "BACK" BUTTON
//
//

var lastupdate = "Nov 11 2009";
var windowstatus = 0;

var version;
var browserName;
var browserVer;
var browComp;
var crossroadslink, crossroadpages;

var docloc = location.hostname;

function onLoad() {

	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);

	userAgent = navigator.userAgent;
	start = userAgent.indexOf("(");
	end = userAgent.indexOf(";");
	platform= userAgent.substring(start +1,end);  

	if (browserName == "Netscape" && browserVer >= 3) version = "n3";
		else version = "n2";
	if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3";
	if (browserName == "Netscape") browComp = "N";
		else browComp = "IE";
	if(docloc == "www.alldrivecanada.com") {
		crossroadslink = "www.crossroadsholidays.com";
	} else {
		crossroadslink = "www.crossroadsvacations.com";
	}
		
}

onLoad();

// generic object maker prepares an empty array of n items

function MakeArray(n) {
	this.length = n
	for(var i=1; i<=n; i++) {
		this[i] = 0
	}
	return this
}

function linksarray(link,menu, descript, indexvar) {
	this.link = link;
	this.menu = menu;
	this.descript=descript;
	this.indexvar=indexvar;
}

function ratetypearray(superweek,superday,econweek,econday,holiweek,holiday) {
this.superweek=superweek;
this.superday=superday;
this.econweek=econweek;
this.econday=econday;
this.holiweek=holiweek;
this.holiday=holiday;
}

function ratearray(itag,link,
	descript1, descript2, descript3, generator,roof,fresh,hot,flush,waste,fridge,stove,oven,furnace,convertor,battery,
	ratetype,sunweek,sunday,superweek,superday,econweek,econday,holiweek,holiday) {
this.itag=itag;
this.link=link;
this.descript1=descript1;
this.descript2=descript2;
this.descript3=descript3;
this.generator=generator;
this.roof=roof;
this.fresh=fresh;
this.hot=hot;
this.flush=flush;
this.waste=waste;
this.fridge=fridge;
this.stove=stove;
this.oven=oven;
this.furnace=furnace;
this.convertor=convertor;
this.battery=battery;
this.ratetype=ratetype;
this.sunweek=sunweek;
this.sunday=sunday;
this.superweek=superweek;
this.superday=superday;
this.econweek=econweek;
this.econday=econday;
this.holiweek=holiweek;
this.holiday=holiday;
}

function quickarray(link, descript) {
	this.link = link;
	this.descript=descript;
}


// ***************************************************************************************
//									ShowDescription
// ***************************************************************************************

function ShowDescription(index) {

if(index==0) {
  document.forms[0].ta.value="SPECIALS FOR 2010 - BOOK NOW!";
  return;
}
document.forms[0].ta.value=linksmenu[index].descript;
}

// ***************************************************************************************
//									activate functions
// ***************************************************************************************

function activategen(imgName) {
	if(version == "n3") {
		if ( eval(imgName + "_on.complete")) {
			document.images[imgName].src = eval(imgName+"_on.src");
		}
	}
} 

function deactivategen(imgName) {
	if(version == "n3") {
		if ( eval(imgName + "_off.complete")) {
			document.images[imgName].src = eval(imgName+"_off.src");
		}
	}
} 

// ***************************************************************************************
//									Load Image Objects
// ***************************************************************************************

if(version == "n3") {
	var homebut0_off = new Image();
	homebut0_off.src = "/alldrivegraphics/navbuttons/homebut.gif";
	var homebut0_on = new Image();
	homebut0_on.src = "/alldrivegraphics/navbuttons/homeon.gif";

	var quotebut0_off = new Image();
	quotebut0_off.src = "/alldrivegraphics/navbuttons/quotebut.gif";
	var quotebut0_on = new Image();
	quotebut0_on.src = "/alldrivegraphics/navbuttons/quoteon.gif";

	var enterbut0_off = new Image();
	enterbut0_off.src = "/alldrivegraphics/navbuttons/enterbut.gif";
	var enterbut0_on = new Image();
	enterbut0_on.src = "/alldrivegraphics/navbuttons/enteron.gif";

	var emailbut0_off = new Image();
	emailbut0_off.src = "/alldrivegraphics/navbuttons/emailbut.gif";
	var emailbut0_on = new Image();
	emailbut0_on.src = "/alldrivegraphics/navbuttons/emailon.gif";
	
	var reservebut0_off = new Image();
	reservebut0_off.src = "/alldrivegraphics/navbuttons/reservebut.gif";
	var reservebut0_on = new Image();
	reservebut0_on.src = "/alldrivegraphics/navbuttons/reserveon.gif";

	var homebut1_off = new Image();
	homebut1_off.src = "/alldrivegraphics/navbuttons/homebut.gif";
	var homebut1_on = new Image();
	homebut1_on.src = "/alldrivegraphics/navbuttons/homeon.gif";

	var quotebut1_off = new Image();
	quotebut1_off.src = "/alldrivegraphics/navbuttons/quotebut.gif";
	var quotebut1_on = new Image();
	quotebut1_on.src = "/alldrivegraphics/navbuttons/quoteon.gif";

	var quote2001_off = new Image();
	quote2001_off.src = "/alldrivegraphics/navbuttons/2001but.gif";
	var quote2001_on = new Image();
	quote2001_on.src = "/alldrivegraphics/navbuttons/2001on.gif";

	var emailbut1_off = new Image();
	emailbut1_off.src = "/alldrivegraphics/navbuttons/emailbut.gif";
	var emailbut1_on = new Image();
	emailbut1_on.src = "/alldrivegraphics/navbuttons/emailon.gif";
	
	var reservebut1_off = new Image();
	reservebut1_off.src = "/alldrivegraphics/navbuttons/reservebut.gif";
	var reservebut1_on = new Image();
	reservebut1_on.src = "/alldrivegraphics/navbuttons/reserveon.gif";

	var v5thl_off = new Image();
	v5thl_off.src = "/alldrivegraphics/logos_etc/ratebackoff.gif";
	var v5thl_on = new Image();
	v5thl_on.src = "/alldrivegraphics/logos_etc/ratebackon.gif";
}

monthNames = new MakeArray(12);
monthNames[1]= "January";
monthNames[2]= "February";
monthNames[3]= "March";
monthNames[4]= "April";
monthNames[5]= "May";
monthNames[6]= "June";
monthNames[7]= "July";
monthNames[8]= "August";
monthNames[9]= "September";
monthNames[10]= "October";
monthNames[11]= "November";
monthNames[12]= "December";

// ***************************************************************************************
//									Output Base
// ***************************************************************************************

function OutputBase() {
	var content="";
	var docloc = location.hostname;
//	alert("docloc = " + docloc + "Length = "+docloc.length);
	if( docloc == "www.alldrivecanada.com" ) {
		content += "<BASE HREF=\"http://www.alldrivecanada.com/\">";
	} else {
		if( docloc == "10.3.9.49") {
			content += "<BASE HREF=\"http://10.3.9.49/\">";
		} else {
			if(docloc.length== 0 ) {
				content += "<BASE HREF=\"c:\\webpages\\2002\\\">";
			} else {
				if( docloc == "www.travel.bc.ca") {
					content += "<BASE HREF=\"http://www.travel.bc.ca/a/alldrive/\">";
				} else {
					content += "<BASE HREF=\"http://www.alldrive.com/2010\">";
				}
			}
		}
	}
        return(content);
}




// ***************************************************************************************
//									CreateRedButtons
// ***************************************************************************************

function CreateRedButtons(index) {
	var content="";

		content += "<table WIDTH=\"100%\" COLS=\"3\">\n<tr>\n";
		content += "<td ALIGN=\"RIGHT\"><A HREF=\"/2010/welcome.php\" ";
		content += "onMouseOver=\"activategen('homebut"+index+"')\"";
		content += "onMouseOut =\"deactivategen('homebut"+index+"')\" TARGET=\"_parent\">";
		content += "<IMG SRC=\"/alldrivegraphics/navbuttons/homebut.gif\" ";
		content += "WIDTH=\"122\" HEIGHT=\"35\" BORDER=\"0\" ALT=\"Home Page\" ";
		content += "NAME=\"homebut"+index+"\">";
		content += "</A></td>";
		content += "\n<td ALIGN=\"RIGHT\"><A HREF=\"/2010/quote.php\" ";
		content += "onMouseOver=\"activategen('quotebut"+index+"')\"";
		content += "onMouseOut =\"deactivategen('quotebut"+index+"')\" TARGET=\"_parent\">\n";
		content += "<IMG SRC=\"/alldrivegraphics/navbuttons/quotebut.gif\" ";
		content += "WIDTH=\"122\" HEIGHT=\"35\" BORDER=\"0\" ALT=\"Quote in your currency\" ";
		content += "NAME=\"quotebut"+index+"\">";
		content += "</A></td>\n";
		if( docloc == "www.alldrivecanada.com" ) {
			content += "<td ALIGN=\"RIGHT\"><A HREF=\"mailto:sales@alldrivecanada.com\" ";
		} else {
content +="<td ALIGN=\"RIGHT\"><A HREF=\"mailto:sales@alldrive.com\" ";
		}
		content += "onMouseOver=\"activategen('emailbut"+index+"')\"";
		content += "onMouseOut =\"deactivategen('emailbut"+index+"')\" TARGET=\"_parent\">\n";
		content += "<IMG SRC=\"/alldrivegraphics/navbuttons/emailbut.gif\" ";
		content += "WIDTH=\"122\" HEIGHT=\"35\" BORDER=\"0\" ALT=\"Email Us\" ";
		content += "NAME=\"emailbut"+index+"\">\n";
		content += "</A></td>\n";
		content += "</tr></table>\n";
	return(content);
}


// ***************************************************************************************
//									CreateFooter
// ***************************************************************************************

function CreateFooter(update) {

	var content="";
	var docloc = location.hostname;

	content +="<P CLASS=\"Type1\">Wir sprechen Deutsch! Selbstverstaendlich koennen Sie Fragen ";
	content +="Reservierung in Deutsch abwickeln!</P>";

	content +="<A name=\"address-box\"></A><HR>";
	content += unescape("%0D");
	content +="<CENTER><A NAME=\"UK\"></A><TABLE cols=\"2\" width=\"640\" height=\"480\" align=\"CENTER\"  border=\"2\" background=\"/alldrivegraphics/logos_etc/FooterBackground.jpg\" bordercolor=\"#006666\" ";
	content += "<TR>";
	content += "<TD CLASS=\"Location\" width=\"50%\">";

	content += "<STRONG>Administration and Reservations<BR>";
	content += "for Vancouver and Calgary</STRONG><BR>";

	content += "(Note New Address)<br>";
	content += "Stn. Main, PO Box 10280<br>";
	content += "285120 Yankee Valley Road<br>";
	content += "(Twp 270, 4 km east of Hwy 2)<br>";
	content += "Airdrie, Alberta, Canada<BR>";
	content += "T4A 0H6<BR>";
	content += "<BR>";
	content += "Tel: 1-403-945-2935 <BR>";
	content += "Fax: 1-403-945-1310 <BR>";
	content += "<A HREF=\"/2010/locations.php\" CLASS=\"Regular\">Rental Centre Information and Location Maps";
	content += "</A>";
	content += "</td>";
	content += unescape("%0D");
	content += "<TD CLASS=\"Location\">";
	content += "<B>UK Representative</B><BR>";
	content += "David Chadburn<BR>";
	content += "28 Haynes Avenue<BR>";
	content += "Trowell, Nottingham UK<BR>";
	content += "NG9 3NY<BR>";
	content += "<BR>";
	content += "Tel: 0115 930 3136<BR>";
	content += "Fax: 0115 944 0889<BR>";
	content += "Email: <A HREF=\"mailto:David.Chadburn@alldrive.com\" CLASS=\"Regular\">David.Chadburn@alldrive.com</A><BR>";
//	content += "<BR>Note: Office will be closed from Sept 7 to 21, 2008<BR>";
//	content += "<BR>Please contact our Calgary office for assistance.<BR>";
	content += "</td>";
	content += "</tr><tr>";
	content += unescape("%0D");
	content += "<td CLASS=\"Location\" COLSPAN=\"2\">";

	content += "Toll Free (US and Canada Only)<BR>";
	content += "1-888-RENTRVS<BR>";
	content += "(1-888-736-8787)<BR><BR>";
	if( docloc == "www.alldrivecanada.com" ) {
		content += "Email: <A HREF=\"mailto:sales@alldrivecanada.com\" CLASS=\"Regular\">sales@alldrivecanada.com</A><BR>";
		content += "Web: <A HREF=\"http://www.alldrivecanada.com\" CLASS=\"Regular\"> www.alldrivecanada.com</A><BR></td>";
	} else {
		content += "Email: <A HREF=\"mailto:sales@alldrive.com\" CLASS=\"Regular\">sales@alldrive.com</A><BR>";
		content += "Web: <A HREF=\"http://www.alldrive.com\" CLASS=\"Regular\"> www.alldrive.com</A><BR></td>";
	}
	content += "</TD></tr></TABLE></CENTER><BR>";
	return(content);
}

// ***************************************************************************************
//									CreateFooter2
// ***************************************************************************************

function CreateFooter2(update) {

	var content="";
	
	content += unescape("%0D");
	content+="<A HREF=\"/2010/tellafriend.php\"><IMG SRC=\"/alldrivegraphics/logos_etc/TellAFriend.gif\" WIDTH=\"152\" HEIGHT=\"100\" BORDER=\"0\" ALIGN=\"MIDDLE\" ALT=\"Email a Friend about Alldrive\"></A><BR>";
//	content += "<font SIZE=\"-2\">(Local Time in Calgary = <img src=\"/cgi-bin/Count.cgi?display=clock&timezone=GMT-0700&ft=0&dd=E\" align=absmiddle>, less one hour for Vancouver)<BR>";

//	content += "(Local Date in Calgary = <img src=\"/cgi-bin/Count.cgi?display=date&timezone=GMT-0700&ft=0&dd=E\" align=absmiddle>)<BR></FONT>";
    content += "<a class=\"Regular\" href=\"/2010/faq.php\" >Frequent Questions about renting with Alldrive</a><BR>";
	content += CreateRedButtons(1);
	content += CreateQuickLink("Footer");
	content += "<BR>";
//	content += unescape("%0D");
//	content += "<P><FONT SIZE=-2>Page created by ";
//	content += "<A HREF=\"http://www.alldrive.com/streamline\" ";
//	content += "TARGET=\"_top\" CLASS=\"Regular\"> Streamline Web Designs</A><BR>";
	var theMonth = update.getMonth() + 1;
	var theDate = update.getDate();
	var theYear = update.getYear();
	if(browserName == "Netscape") {
		content +="<I>Page last updated: " + lastupdate;
	} else {
		content +="<I>Page last updated: " + theMonth + "/" + theDate + "/" + theYear + "</I>";
	}

	content += "</FONT>";
	return(content);
}
linksmenu = new MakeArray(40)

linksmenu[1] = new linksarray("/2010/welcome.php", "HOME PAGE", "Return to ALLDRIVE Home Page","1")
linksmenu[2] = new linksarray("/2010/quote.php", "ONLINE QUOTE", "Enter your holiday details and receive an instant quote","2")
linksmenu[3] = new linksarray("/2010/rates.php", "RENTAL RATES", "View our Rental Rates of all our Vehicles","3")
linksmenu[4] = new linksarray("/2010/r-motorhome.php", "MOTORHOME", "Our Motorhome Rates & Specifications","4")
linksmenu[5] = new linksarray("/2010/r-trailerhome.php", "TRAILERHOME", "Our Trailerhome Rates & Specifications","5")
linksmenu[6] = new linksarray("/2010/r-vancamper.php", "VAN CAMPERS", "Our Van Campers Rates & Specifications","6")
linksmenu[7] = new linksarray("/2010/r-camperhome.php", "CAMPERHOME", "Our Camperhome Rates & Specifications","7")
linksmenu[8] = new linksarray("/2010/r-vans.php", "TOURING", "Our Touring/Winter Rates & Specifications","8")
linksmenu[9] = new linksarray("/2010/boatbike.php", "BIKES,ACCESS.", "Compliment your holiday Bike, Chair, or our Convenience Kits","9")
linksmenu[10] = new linksarray("/2010/extras.php", "EXTRAS", "Extra Charges","8")
linksmenu[11] = new linksarray("/2010/discount.php", "SPECIALS", "This page highlights Special Discounts we are offering","11")
linksmenu[12] = new linksarray("/2010/about.php", "ABOUT US", "Find out more information on who we are","12")
linksmenu[13] = new linksarray("/2010/locations.php", "LOCATIONS", "Maps of our rental locations along with links and weather","13")
linksmenu[14] = new linksarray("/2010/termcond.php", "TERMS AND CONDITIONS", "Please read our Terms and Conditions prior to reserving","14")
linksmenu[15] = new linksarray("/2010/kitpage.php", "EQUIPMENT<BR> LIST", "View a list of  what we include","15")
linksmenu[16] = new linksarray("/2010/itinerary.php", "ITINERARY", "View a map of roads in Western Canada, along with distances","16")
//linksmenu[17] = new linksarray("http://www.alldrivervsales.com", "RV<BR> SALES", "Interested in buying an RV, view a sample of our vehicles","17")
linksmenu[18] = new linksarray("/2010/travelagent.php", "TRAVEL<BR> AGENTS", "Travel Agents can register with us on this page","18")
linksmenu[19] = new linksarray("/2010/streamline", "WEBMASTER", "Like our website ?? Check out our webmasters website","19")
//linksmenu[20] = new linksarray("/2010/virtual.php", "VIRTUAL TOUR", "View a 360 degree image of our 28ft Class A","20")
linksmenu[21] = new linksarray("mailto:sales@alldrive.com", "EMAIL US", "Send us an email requesting brochures and other information","21")
linksmenu[22] = new linksarray("/2010/motorhome-camper-rv-rental-map.php", "SITE MAP", "Our site map will give you quick access to all our pages","22")
linksmenu[23] = new linksarray("/2010/faq.php", "QUESTIONS", "We answer your more commonly asked questions","23")
linksmenu[24] = new linksarray("http://www.canadawinter.com/welcome.htm", "WINTER<BR> WHEELS", "Winter Wheels","24")
linksmenu[25] = new linksarray("/2010/PlanningTours/welcome.htm", "TRAVEL &<BR> TOURS", "This website will identify popular places to visit","25")
linksmenu[26] = new linksarray("/2010/PlanningTours/ranch.php", "RANCH<BR> HOLIDAYS", "We can organize a night on a working ranch","xx")
linksmenu[27] = new linksarray("/2010/quote.php", "Quote", "Book Holiday and receive 15% off","27")
//linksmenu[28] = new linksarray("/2010/photogallery.php", "PHOTO GALLERY", "Customer Photo Galleries","28")
linksmenu[29] = new linksarray("http://www.winterolympiccamping.com", "OLYMPIC TOUR", "Winter Olympic Touring","29")
linksmenu[30] = new linksarray("http://www.rodeocamping.com", "RODEO TOURS", "Rodeo Tours","30")
linksmenu[31] = new linksarray("/2010/tellafriend.php", "TELL A FRIEND", "Email a Friend Alldrive's Website","31")
linksmenu[32] = new linksarray("/2010/boatbike.php", "ACCESSORIES", "Complement your rental with Accessories","32")
linksmenu[33] = new linksarray("/2010/quote1.php", "RETRIEVE QUOTE", "Retrieve your calculated Quote","33")
// linksmenu[xx] = new linksarray("specs.php", "VEHICLE SPECS", "Compare Vehicle Specifications","xx")

// ***************************************************************************************
//									CreateMenu
// ***************************************************************************************

function Menu2002() {

var content="";
var i=0;

	content += "<table CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"0\" STYLE=\"\" WIDTH=\"130\"> \n";
	content += "<tr><td CLASS=\"MenuHeading\" ><A HREF=\"/2010/welcome.php\" ONMOUSEOVER=\"ShowDescription(1)\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuHeading\" TARGET=\"_parent\">HOME PAGE</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\"></td></tr> \n";
	content += "<tr><td CLASS=\"MenuHeading\"><A HREF=\"/2010/quote.php\" ONMOUSEOVER=\"ShowDescription(2)\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuHeading\" TARGET=\"_parent\" >ONLINE QUOTE</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\"></td></tr> \n";
	content += "<tr><td CLASS=\"MenuHeading\"><A HREF=\"mailto:sales@alldrive.com\" ONMOUSEOVER=\"ShowDescription(21)\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuHeading\">EMAIL US</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\"></td></tr> \n";
	content += "<tr><td CLASS=\"MenuHeading\"><A HREF=\"/2010/rates.php\" ONMOUSEOVER=\"ShowDescription(3)\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuHeading\">RENTAL RATES</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\" TARGET=\"_parent\"></td></tr> \n";
	content += "<tr><td CLASS=\"MenuHeading\"><A HREF=\"/2010/tellafriend.php\" ONMOUSEOVER=\"ShowDescription(31)\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuHeading\">TELL A FRIEND</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\" TARGET=\"_parent\"></td></tr> \n";
	content += "<tr><td CLASS=\"MenuHeading\"><A HREF=\"http://www.canadawinter.com\" ONMOUSEOVER=\"ShowDescription(24)\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuHeading\">WINTER WHEELS</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\" TARGET=\"_parent\"></td></tr> \n";
	for(i=4; i<=11;i++) {
		content +=CreateMenuItem(i);
	}
	content +=CreateMenuItem(32);
	content +=CreateMenuItem(33);
	content +=CreateMenuItem(34);
	
//	content += "<tr><td CLASS=\"MenuHeading\"><A HREF=\"rates.php\" ONMOUSEOVER=\"ShowDescription(3)\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuHeading\">VEHICLE INFO.</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\"></td></tr> \n";
//	for(i=4; i<=8;i++) {
//		content +=CreateMenuItem(i);
//	}
	content += "<tr><td CLASS=\"MenuHeading\">OTHER<BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"1\" BORDER=\"0\"></td></tr> \n";
	for(i=12; i<=14;i++) {
		content +=CreateMenuItem(i);
	}
	for(i=22; i<=24;i++) {
		content +=CreateMenuItem(i);
	}
	for(i=15; i<=20;i++) {
		content +=CreateMenuItem(i);
	}
	for(i=25; i<=26;i++) {
		content +=CreateMenuItem(i);
	}
	for(i=29; i<=31;i++) {
		content +=CreateMenuItem(i);
	}
	content += "</table>";
return(content);
}

// ***************************************************************************************
//									CreateMenuItem
// ***************************************************************************************

function CreateMenuItem(index) {

var content="";
content += "<tr><td CLASS=\"MenuItem\"><A HREF=\" "+linksmenu[index].link+" \" ONMOUSEOVER=\"ShowDescription("+index+")\" ONMOUSEOUT=\"ShowDescription(0)\" CLASS=\"AMenuItem\" TARGET=\"_parent\">"+linksmenu[index].menu+"</A><BR><IMG SRC=\"/alldrivegraphics/logos_etc/bar.gif\" WIDTH=\"90\" HEIGHT=\"2\" BORDER=\"0\"></td></tr> \n";

return(content);
}

quicklink = new MakeArray(45)

quicklink[1] = new quickarray("/2010/welcome.php", "Home Page");
quicklink[2] = new quickarray("/2010/quote.php", "Instant Quote/ Reservation");
quicklink[3] = new quickarray("/2010/quote1.php", "Retrieve a Quote");
quicklink[4] = new quickarray("/2010/tellafriend.php", "Tell A Friend");
quicklink[5] = new quickarray("/2010/r-motorhome.php", "Motorhome Rates");
quicklink[6] = new quickarray("/2010/r-trailerhome.php", "Trailerhome Rates");
quicklink[7] = new quickarray("/2010/r-camperhome.php", "Camperhome Rates");
quicklink[8] = new quickarray("/2010/r-vans.php", "Van/SUV Rates");
quicklink[9] = new quickarray("javascript:doNew('/2010/v-mhal.php')", "Luxury Class A Motorhome - 33/34'");
quicklink[10] = new quickarray("javascript:doNew('/2010/v-mhad.php')", "Class A Motorhome - 30/32'");
quicklink[11] = new quickarray("javascript:doNew('/2010/v-mhcl.php')", "Luxury Class C Motorhome - 30/32'");
quicklink[12] = new quickarray("javascript:doNew('/2010/v-mhcd.php')", "Deluxe Motorhome - 27/28'");
quicklink[13] = new quickarray("javascript:doNew('/2010/v-mhcc.php')", "Value Motorhome - 21/24'");
quicklink[14] = new quickarray("javascript:doNew('/2010/v-mhsprinter.php')", "Motorhome Sprinter");
quicklink[15] = new quickarray("javascript:doNew('/2010/v-trailer-l.php')", "Trailerhome - Luxury");
quicklink[16] = new quickarray("javascript:doNew('/2010/v-trailer-d.php')", "Trailerhome - Deluxe");
quicklink[17] = new quickarray("javascript:doNew('/2010/v-trailer-t.php')", "Trailerhome - Value");
quicklink[18] = new quickarray("javascript:doNew('/2010/v-5th-l.php')", "Trailerhome - Luxury 5th Wheel");
quicklink[19] = new quickarray("javascript:doNew('/2010/v-5th-d.php')", "Trailerhome - Deluxe 5th Wheel");
quicklink[20] = new quickarray("javascript:doNew('/2010/v-5th-t.php')", "Trailerhome - Value 5th Wheel");
quicklink[21] = new quickarray("javascript:doNew('/2010/v-camper-l.php')", "Camperhome Luxury");
quicklink[22] = new quickarray("javascript:doNew('/2010/v-camper-d.php')", "Camperhome Deluxe");
quicklink[23] = new quickarray("javascript:doNew('/2010/v-dvc.php')", "Value Van Camper");
quicklink[24] = new quickarray("javascript:doNew('/2010/v-sprinter.php')", "Diesel Sprinter Campervan");
quicklink[25] = new quickarray("javascript:doNew('/2010/v-lv.php')", "Luxury Van Camper");
quicklink[26] = new quickarray("/2010/r-vans.php", "Touring Vehicles (SUV)");
quicklink[27] = new quickarray("javascript:doNew('/2010/v-suv.php')", "All Wheel Drive SUV");
quicklink[28] = new quickarray("javascript:doNew('/2010/v-t.php')", "All Wheel Drive 4x4 Pickup");
quicklink[29] = new quickarray("javascript:doNew('/2010/v-minivan.php')", "Minivan");
quicklink[30] = new quickarray("http://www.canadawinter.com/welcome.htm", "Winter Program");
quicklink[31] = new quickarray("http://www.canadawinter.com/wintercampwheels.htm", "Winter Camp Wheels");
quicklink[32] = new quickarray("http://www.canadawinter.com/winterskiwheels.htm", "Winter Ski Wheels");
quicklink[33] = new quickarray("http://www.canadawinter.com/winteractivities.htm", "Winter Activities");
quicklink[34] = new quickarray("/2010/discount.php", "Special Offers");
quicklink[35] = new quickarray("/2010/termcond.php", "Terms & Conditions");
quicklink[36] = new quickarray("/2010/faq.php", "Common Questions");
quicklink[37] = new quickarray("/2010/boatbike.php", "Accesories");
quicklink[38] = new quickarray("/2010/kitpage.php", "Vehicle & Convenience Kits");
quicklink[39] = new quickarray("/2010/extras.php", "Extra Charges");
quicklink[40] = new quickarray("/2010/loc-calgary.php", "Calgary Location");
quicklink[41] = new quickarray("/2010/loc-vancouver.php", "Vancouver Location");
quicklink[42] = new quickarray("/2010/travelagent.php", "Travel Agent Enquiries");
quicklink[43] = new quickarray("/2010/itinerary.php", "Itinerary Planning");
quicklink[44] = new quickarray("/2010/tellafriend.php", "Tell A Friend");
//quicklink[47] = new quickarray("http://www.winterolympiccamping.com", "Olympic Touring");
//quicklink[48] = new quickarray("http://www.rodeocamping.com", "Rodeo Touring");

// ***************************************************************************************
//									CreateQuickLink
// ***************************************************************************************


function CreateQuickLink(formname) {

    var content = "";
    content += "<FORM NAME=\""+formname+"\"><SELECT NAME=\"QuickLinks\" onChange=\"javascript:JumpQuickLink(this.form)\">\n";
    content += "<OPTION VALUE=\" \">QUICK LINK LIST\n";
    for(var i=1; i<44; i++) {
        content+="<OPTION VALUE=\""+quicklink[i].link+"\">"+quicklink[i].descript+"\n";    }
    content += "</SELECT></FORM>";
    return(content);
}

function JumpQuickLink(form) {

    window.document.location = form.QuickLinks.options[form.QuickLinks.selectedIndex].value;
    
}
// ***************************************************************************************
//									CreateLogo
// ***************************************************************************************

function CreateLogo() {

var content="";

	content += "<tr><td  ALIGN=\"CENTER\" WIDTH=\"274\" VALIGN=\"TOP\"><IMG SRC=\"/alldrivegraphics/logos_etc/Logo2003.gif\" WIDTH=\"300\" HEIGHT=\"106\" BORDER=\"0\"><BR>";
	content += "</td> \n";
	content += "<td ALIGN=\"CENTER\">\n";
	content += "<A HREF=\"/2010/quote.php\" ";
	content += "onMouseOver=\"activategen('quotebut0')\"";
	content += "onMouseOut =\"deactivategen('quotebut0')\" TARGET=\"_parent\">";
	content += "<IMG SRC=\"/alldrivegraphics/navbuttons/quotebut.gif\" ";
	content += "WIDTH=\"122\" HEIGHT=\"35\" BORDER=\"0\" ALT=\"Quote in your currency\" ";
	content += "NAME=\"quotebut0\">";
	content += "</A><BR>\n";
	content += "<FONT FACE=\"Arial\" SIZE=\"+1\" COLOR=\"#CC0000\">2010 PROGRAM<BR></FONT></td> \n";
	content += "<td ALIGN=\"CENTER\"><IMG SRC=\"/alldrivegraphics/faraci/newaddress.gif\" WIDTH=\"210\"  \n";
	content += "HEIGHT=\"95\" BORDER=\"0\"  \n";
	content += "ALT=\"Camper, Motorhome & RV Rentals in Calgary, Vancouver Canada 1-888-736-8787\"></td> \n";
	content += "</tr><tr> \n";
	content += "<td colspan=\"3\" ALIGN=\"RIGHT\"><A HREF=\"/2010/quote.php\" class=\"Regular\"";
	content += "ONMOUSEOVER=\"ShowDescription(2)\" ONMOUSEOUT=\"ShowDescription(0)\" ><FONT FACE=\"Arial\" SIZE=\"+1\">GET AN INSTANT PRICE IN YOUR CURRENCY</FONT></A></td> \n";

//	content += "<td CLASS=\"MenuItem\" WIDTH=\"33%\"><A HREF=\"rates.php#camping\"  \n";
//	content += "ONMOUSEOVER=\"ShowDescription(19)\" ONMOUSEOUT=\"ShowDescription(0)\">CAMPING WHEELS</A></td> \n";
//	content += "<td CLASS=\"MenuItem\" WIDTH=\"33%\"><A HREF=\"rates.php#touring\"  \n";
//	content += "ONMOUSEOVER=\"ShowDescription(20)\" ONMOUSEOUT=\"ShowDescription(0)\">TOURING WHEELS</A></td> \n";
//	content += "<td CLASS=\"MenuItem\"><A HREF=\"rates.php#winter\"  \n";
//	content += "ONMOUSEOVER=\"ShowDescription(21)\" ONMOUSEOUT=\"ShowDescription(0)\">WINTER WHEELS</A></td> \n";
	content += "</tr> \n";
	return(content);
}

// ***************************************************************************************
//									CreateVehLogo
// ***************************************************************************************

function CreateVehLogo() {

	var content="";

	content += "<table WIDTH=\"700\" CELLPADDING=\"0\" CELLSPACING=\"0\"><tr><td><img src=\"/alldrivegraphics/logos_etc/Logo2003.gif\" width=\"300\" height=\"106\" border=\"0\" alt=\"Alldrive Canada\"></td>";
	content += "<td><FONT FACE=\"Arial\" SIZE=\"+1\" COLOR=\"#CC0000\">2010 PROGRAM<BR></td>";
	content += "<td><img src=\"/alldrivegraphics/faraci/newaddress.gif\" width=\"210\" height=\"95\" border=\"0\" alt=\"Camperhome, Motorhome, Trailerhome and Touring Vehicles in Calgary and Vancouver, Canada - 1-888-736-8787\"></td>";
	content += "</tr></table>";
	return(content);
}

function submitit(form,quote_type) {

	if(quote_type == 'c') {
		form.quote.value = "QUOTE";
	} else {
		form.quote.value = "RESERVE";
	}
	form.submit();
}

function submitafriend(form) {

//	alert(form.youremail.value.indexOf("Alldrive.com"));
	if(form.youremail.value.indexOf("alldrive.com")==-1) {
		form.submit();
	} else {
	  form.reset();
	  form.friendname.focus();
	}
}

function displaycounter() {

	var content="";
	var countfile="alldrive1.dat";
	if( docloc == "www.alldrivecanada.com" ) countfile="alldrivecanada.dat";
	if( docloc == "www.alldrive.ca" ) countfile="alldriveca.dat";
	if( docloc == "www.banffcampers.com" ) countfile="banffcampers.dat";
	if( docloc == "www.banffrvrentals.com" ) countfile="banffrvrentals.dat";
	if( docloc == "www.bccamper.com" ) countfile="bccamper.dat";
	if( docloc == "www.bcrvrentals.com" ) countfile="bcrvrentals.dat";
	if( docloc == "www.calgarycamper.com" ) countfile="calgarycamper.dat";
	if( docloc == "www.camperrentcanada.com" ) countfile="camperrentcanada.dat";
	if( docloc == "www.camperscanada.com" ) countfile="camperscanada.dat";
	if( docloc == "www.campervancanada.com" ) countfile="campervancanada.dat";
	if( docloc == "www.canadacampers.com" ) countfile="canadacampers.dat";
	if( docloc == "www.canadamotorhome.com" ) countfile="canadamotorhome.dat";
	if( docloc == "www.canadarentsrvs.com" ) countfile="canadarentsrvs.dat";
	if( docloc == "www.canadaskiholiday.com" ) countfile="canadaskiholiday.dat";
	if( docloc == "www.canadasummer.com" ) countfile="canadasummer.dat";
	if( docloc == "www.kanadawohnmobil.com" ) countfile="kanadawohnmobil.dat";
	if( docloc == "www.pacificrvrentals.com" ) countfile="pacificrvrentals.dat";
	if( docloc == "www.rentacampercanada.com" ) countfile="rentacampercanada.dat";
	if( docloc == "www.rockymountaincampers.com" ) countfile="rockymountaincampers.dat";
	if( docloc == "www.vancouverrvrentals.com" ) countfile="vancouverrvrentals.dat";
	if( docloc == "www.westcoastcampers.com" ) countfile="westcoastcampers.dat";
	content = "<img src =\"/cgi-bin/Count.cgi?df="+countfile+"&ft=0&dd=B&sh=F\" alt=\"\" width=1 height=1 align=\"middle\">";
	document.write(content);

}
//***************************************************************************************
//		Do New	
// ***************************************************************************************

function doNew(url) {
var fullurl = ""+ url;
var 	myWind = window.open(fullurl,"","height=600,width=750,scrollbars");
	myWind.picktype = self.picktype;
	myWind.creator = self.creator;
	myWind.focus();
//	self.close();
}

//***************************************************************************************
//		NewBrowser	
// ***************************************************************************************

function NewBrowser(url) {
var fullurl = ""+ url;
var 	myWind = window.open(fullurl);
	myWind.picktype = self.picktype;
	myWind.creator = self.creator;
	myWind.focus();
//	self.close();
}

ratetypetable = new MakeArray(10)

ratetypetable[1] = new ratetypearray("490","65","625","85","950","115")
ratetypetable[2] = new ratetypearray("595","85","725","100","1225","150")
ratetypetable[3] = new ratetypearray("695","95","875","115","1325","175")
ratetypetable[4] = new ratetypearray("795","105","995","125","1575","210")
ratetypetable[5] = new ratetypearray("895","130","1125","155","1795","245")
ratetypetable[6] = new ratetypearray("995","150","1275","185","2100","295")
ratetypetable[7] = new ratetypearray("1350","210","1675","230","2350","325")
ratetypetable[8] = new ratetypearray("1550","250","2000","285","2795","400")

mv=1,suv=2,t=3,vc=4,dc=5,lc=6,vvc=7,dvc=8,lv=9,
vtt=10,v5tt=11,stt=12,s5tt=13,dtt=14,d5tt=15,ltt=16,l5tt=17;
mhcv=18,mhcc=19,mhct=20,mhcd=21,mhad=22,mhal=23,mvs=24,mhcl=25;
hhr=26,mhs=27;

var no_rates=28;
ratetable = new MakeArray(no_rates)

ratetable[mv] = new ratearray("mv","v-minivan.php",
	"Minivan", "(Seats 7)","",
	"0","0","0","0","0","0","0","0","0","0","0","0",
	"1","0","0","0","0","0","0","0","0")
	
ratetable[suv] = new ratearray("suv","v-suv.php",
	"Sport Utility Vehicle", "(Seats up to 7)","",
	"0","0","0","0","0","0","0","0","0","0","0","0",
	"2","0","0","0","0","0","0","0","0")
	
ratetable[t] = new ratearray("t","v-t.php",
	"4x4 Crew Cab Truck", "(Seats 5 to 6)","",
	"0","0","0","0","0","0","0","0","0","0","0","0",
	"1","0","0","0","0","0","0","0","0")
	
ratetable[vc] = new ratearray("vc","v-camper-v.php",
	"OLD (*) VALUE Camperhome (*)", "(Sleeps 2 Adults)","",
	"0","0","1","0","1","1","1","1","0","1","1","1",
	"1","0","0","0","0","0","0","0","0")
	
ratetable[dc] = new ratearray("dc","v-camper-d.php",
	"Value Camperhome", "(Sleeps 2 Adults,1 Child)","",
	"0","0","1","1","1","1","1","1","0","1","1","1",
	"2","0","0","0","0","0","0","0","0")
	
ratetable[lc] = new ratearray("lc","v-camper-l.php",
	"Luxury Camperhome", "(Sleeps 2 Adults,2 Children)","",
	"0","0","1","1","1","1","1","1","0","1","1","1",
	"3","0","0","0","0","0","0","0","0")
	
ratetable[vvc] = new ratearray("vvc","v-vvc.php",
	"OLD(*) VALUE Van Camper (*)", "(Sleeps 2 Adults)","",
	"0","0","1","1","1","1","1","1","0","1","1","1",
	"2","0","0","0","0","0","0","0","0")
	
ratetable[dvc] = new ratearray("dvc","v-dvc.php",
	"Value Van Camper", "(Sleeps 2 Adults, 1 Child)","",
	"0","0","1","1","1","1","1","1","1","1","1","1",
	"2","0","0","0","0","0","0","0","0")
	
ratetable[lv] = new ratearray("lv","v-lv.php",
	"Luxury Van Camper", "(Sleeps 2 Adults,2 children) Slide Out.","",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"3","0","0","0","0","0","0","0","0")

ratetable[mvs] = new ratearray("mvs","v-sprinter.php",
	"Diesel Sprinter Campervan", "(Sleeps 2 Adults) ","",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"4","0","0","0","0","0","0","0","0")
	
ratetable[mhs] = new ratearray("mhs","v-mhsprinter.php",
	"Motorhome Sprinter", "(Sleeps 2 Adults, 2 children) ","",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"4","0","0","0","0","0","0","0","0")
	
ratetable[vtt] = new ratearray("ctt","v-trailer-v.php",
	"OLD *) VALUE Trailerhome:Trailer (*)", "(Sleeps 4)","4x4 Truck",
	"0","0","1","1","1","1","1","1","1","1","1","1",
	"4","0","0","0","0","0","0","0","0")
	
ratetable[v5tt] = new ratearray("c5tt","v-5th-v.php",
	"OLD*) VALUE Trailerhome:5th Wheel (*)", "(Sleeps 4)","4x4 Truck",
	"0","0","1","1","1","1","1","1","1","1","1","1",
	"4","0","0","0","0","0","0","0","0")
	
ratetable[stt] = new ratearray("stt","v-trailer-t.php",
	"Value Trailerhome:Trailer", "(Sleeps 4 to 5)","4x4 Truck",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"4","0","0","0","0","0","0","0","0")
	
ratetable[s5tt] = new ratearray("s5tt","v-5th-t.php",
	"Value Trailerhome:5th Wheel", "(Sleeps 4 to 5)","4x4 Truck",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"4","0","0","0","0","0","0","0","0")
	
ratetable[dtt] = new ratearray("dtt","v-trailer-d.php",
	"Deluxe Trailerhome:Trailer", "(Sleeps 6) Slide Out.","Crew Cab Truck",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"5","0","0","0","0","0","0","0","0")
	
ratetable[d5tt] = new ratearray("d5tt","v-5th-d.php",
	"Deluxe Trailerhome:5th Wheel", "(Sleeps 6) Slide Out.","Crew Cab Truck",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"5","0","0","0","0","0","0","0","0")
	
ratetable[ltt] = new ratearray("ltt","v-trailer-l.php",
	"Luxury Trailerhome:Trailer", "(Sleeps 6-8)' Slide Out.","Crew Cab Truck for 6 or SUV for 8",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"6","0","0","0","0","0","0","0","0")

ratetable[l5tt] = new ratearray("l5tt","v-5th-l.php",
	"Luxury Trailerhome: 5th Wheel", "(Sleeps 6) 30-32' Slide Out.","Crew Cab Truck",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"6","0","0","0","0","0","0","0","0")

ratetable[mhcv] = new ratearray("mhcv","v-mhcv.php",
	"OLD (*) VALUE Motorhome Class C (*)", "(Sleeps 4 to 5)","23-26 foot (2005-2006 yr)",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"3","0","0","0","0","0","0","0","0")
	
ratetable[mhcc] = new ratearray("mhcc","v-mhcc.php",
	"Value Motorhome Class C", "(Sleeps 4 to 5)","21-24 foot",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"4","0","0","0","0","0","0","0","0")
	
ratetable[mhct] = new ratearray("mhct","v-mhct.php",
	"OLD Touring Motorhome Class C", "(Sleeps 4 to 5)","25-26 foot.",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"5","0","0","0","0","0","0","0","0")
	
ratetable[mhcd] = new ratearray("mhcd","v-mhcd.php",
	"Deluxe Motorhome Class C", "(Sleeps 6 to 8)","27-28 foot",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"5","0","0","0","0","0","0","0","0")

ratetable[mhcl] = new ratearray("mhcl","v-mhcl.php",
	"Luxury Motorhome Class C", "(Sleeps 6 to 8)","30-32 foot, Slide Out",
	"0","1","1","1","1","1","1","1","1","1","1","1",
	"6","0","0","0","0","0","0","0","0")

ratetable[mhad] = new ratearray("mhad","v-mhad.php",
	"Deluxe Motorhome Class A", "(Sleeps 6) Slide Out.","30-32 foot",
	"1","1","1","1","1","1","1","1","1","1","1","1",
	"7","0","0","0","0","0","0","0","0")
	
ratetable[mhal] = new ratearray("mhal","v-mhal.php",
	"Luxury Motorhome Class A", "(Sleeps 6) Slide Out.","33-34 foot",
	"1","1","1","1","1","1","1","1","1","1","1","1",
	"8","0","0","0","0","0","0","0","0")
	
ratetable[hhr] = new ratearray("hhr","v-campwagon.php",
	"OLD Sport Campwagon", "(Seats and Sleeps 2)","",
	"0","0","0","0","0","0","0","0","0","0","0","0",
	"10","0","0","0","0","0","0","0","0")

for(var i=1; i<no_rates; i++) {

	ratetable[i].superweek = ratetypetable[ratetable[i].ratetype].superweek;
	ratetable[i].superday = ratetypetable[ratetable[i].ratetype].superday;
	ratetable[i].econweek = ratetypetable[ratetable[i].ratetype].econweek;
	ratetable[i].econday = ratetypetable[ratetable[i].ratetype].econday;
	ratetable[i].holiweek = ratetypetable[ratetable[i].ratetype].holiweek;
	ratetable[i].holiday = ratetypetable[ratetable[i].ratetype].holiday;
}
	

if(version == "n3") {

	var image_off = new Image();
	image_off.src = "/alldrivegraphics/rates2009/ratebackoff.gif";
	var image_on = new Image();
	image_on.src = "/alldrivegraphics/rates2009/ratebackon.gif";
	
	var mv_off = new Image();
	mv_off.src = image_off.src;
	var mv_on = new Image();
	mv_on.src = image_on.src;
	
	var suv_off = new Image();
	suv_off.src = image_off.src;
	var suv_on = new Image();
	suv_on.src = image_on.src;
	
	var t_off = new Image();
	t_off.src = image_off.src;
	var t_on = new Image();
	t_on.src = image_on.src;
	
	var vc_off = new Image();
	vc_off.src = image_off.src;
	var vc_on = new Image();
	vc_on.src = image_on.src;
	
	var dc_off = new Image();
	dc_off.src = image_off.src;
	var dc_on = new Image();
	dc_on.src = image_on.src;
	
	var lc_off = new Image();
	lc_off.src = image_off.src;
	var lc_on = new Image();
	lc_on.src = image_on.src;
	
	var vvc_off = new Image();
	vvc_off.src = image_off.src;
	var vvc_on = new Image();
	vvc_on.src = image_on.src;
	
	var dvc_off = new Image();
	dvc_off.src = image_off.src;
	var dvc_on = new Image();
	dvc_on.src = image_on.src;
	
	var lv_off = new Image();
	lv_off.src = image_off.src;
	var lv_on = new Image();
	lv_on.src = image_on.src;
	
	var mvs_off = new Image();
	mvs_off.src = image_off.src;
	var mvs_on = new Image();
	mvs_on.src = image_on.src;
	
	var mhs_off = new Image();
	mhs_off.src = image_off.src;
	var mhs_on = new Image();
	mhs_on.src = image_on.src;
	
	var vtt_off = new Image();
	vtt_off.src = image_off.src;
	var vtt_on = new Image();
	vtt_on.src = image_on.src;
	
	var v5tt_off = new Image();
	v5tt_off.src = image_off.src;
	var v5tt_on = new Image();
	v5tt_on.src = image_on.src;
	
	var stt_off = new Image();
	stt_off.src = image_off.src;
	var stt_on = new Image();
	stt_on.src = image_on.src;
	
	var s5tt_off = new Image();
	s5tt_off.src = image_off.src;
	var s5tt_on = new Image();
	s5tt_on.src = image_on.src;
	
	var dtt_off = new Image();
	dtt_off.src = image_off.src;
	var dtt_on = new Image();
	dtt_on.src = image_on.src;
	
	var d5tt_off = new Image();
	d5tt_off.src = image_off.src;
	var d5tt_on = new Image();
	d5tt_on.src = image_on.src;
	
	var ltt_off = new Image();
	ltt_off.src = image_off.src;
	var ltt_on = new Image();
	ltt_on.src = image_on.src;
	
	var l5tt_off = new Image();
	l5tt_off.src = image_off.src;
	var l5tt_on = new Image();
	l5tt_on.src = image_on.src;
	
	var mhcv_off = new Image();
	mhcv_off.src = image_off.src;
	var mhcv_on = new Image();
	mhcv_on.src = image_on.src;
	
	var mhcc_off = new Image();
	mhcc_off.src = image_off.src;
	var mhcc_on = new Image();
	mhcc_on.src = image_on.src;
	
	var mhct_off = new Image();
	mhct_off.src = image_off.src;
	var mhct_on = new Image();
	mhct_on.src = image_on.src;
	
	var mhcd_off = new Image();
	mhcd_off.src = image_off.src;
	var mhcd_on = new Image();
	mhcd_on.src = image_on.src;
	
	var mhcl_off = new Image();
	mhcl_off.src = image_off.src;
	var mhcl_on = new Image();
	mhcl_on.src = image_on.src;

	var mhad_off = new Image();	
	mhad_off.src = image_off.src;
	var mhad_on = new Image();
	mhad_on.src = image_on.src;
	
	var mhal_off = new Image();
	mhal_off.src = image_off.src;
	var mhal_on = new Image();
	mhal_on.src = image_on.src;
}

function CreateRate(vehicle) {

	var content="";

	content += "<table CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"1\">"
	content += "<tr><td CLASS=\"Rate\" ONMOUSEOVER=\"activategen('"+ratetable[vehicle].itag+"')\" ONMOUSEOUT=\"deactivategen('"+ratetable[vehicle].itag+"')\" width=\"150\">"
	content += "<b><img ALIGN=\"left\" NAME=\""+ratetable[vehicle].itag+"\" "
	content += "src=\"http://www.alldrive.com/alldrivegraphics/rates2009/ratebackoff.gif\" width=\"20\" height=\"20\" border=\"0\">"
	content += "<a href=\"javascript:doNew('"+ratetable[vehicle].link+"')\">"+ratetable[vehicle].descript1;
	content += "</b><br>"+ratetable[vehicle].descript2+"<BR>"+ratetable[vehicle].descript3+"</a><br></td>";

	content += CreateSpec(ratetable[vehicle].roof,"Roof Air");
	content += CreateSpec(ratetable[vehicle].fresh,"Fresh Water Sink");
	content += CreateSpec(ratetable[vehicle].hot,"Hot Water Shower");
	content += CreateSpec(ratetable[vehicle].flush,"Flush Toilet");
	content += CreateSpec(ratetable[vehicle].waste,"Waste Water Tank");
	content += CreateSpec(ratetable[vehicle].fridge,"Refrigerator");
	content += CreateSpec(ratetable[vehicle].stove,"Stove");
	content += CreateSpec(ratetable[vehicle].oven,"Oven or Microwave");
	content += CreateSpec(ratetable[vehicle].furnace,"Furnace");
	content += CreateSpec(ratetable[vehicle].convertor,"Convertor");
	content += CreateSpec(ratetable[vehicle].battery,"Auxillary Battery");

	content += CreateRateCell(ratetable[vehicle].superweek,ratetable[vehicle].superday,ratetable[vehicle].link,ratetable[vehicle].itag);
	content += CreateRateCell(ratetable[vehicle].econweek,ratetable[vehicle].econday,ratetable[vehicle].link,ratetable[vehicle].itag);
	content += CreateRateCell(ratetable[vehicle].holiweek,ratetable[vehicle].holiday,ratetable[vehicle].link,ratetable[vehicle].itag);

	content += "</tr></table>";

return(content);
}
function CreateSpec(OnOff,descript) {

	var content="";
	content += "<td>";
	content += "<img src=\"http://www.alldrive.com/alldrivegraphics/rates2009/";
	if(OnOff==1) {
		content +="dot.jpg"
	} else {
		content += "nodot.jpg"
	}
	content += "\" width=\"20\" height=\"20\" border=\"0\" alt=\""+descript+"\"></td>";
	return(content);
}

function CreateRateCell(Week,Day,Link,Tag) {

	var content="";
	content += "<td CLASS=\"Rate\" onClick=\"javascript:doNew('"+Link+"')\"";
	content += "ONMOUSEOVER=\"activategen('"+Tag+"')\" ONMOUSEOUT=\"deactivategen('"+Tag+"')\">"
	content += "<table WIDTH=\"80\"><tr>"
	content += "<td CLASS=\"Rate\">$"+Week+"</td>";
	content += "<td CLASS=\"Rate\">$"+Day+"</td></tr></table></td>";
	return(content);
}

function CreateRateHeading() {

	var content="";
	content += "<font size=\"-1\">All weekly rates include 500 kilometers. Rates in Canadian $</font>";
	content += "<table CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"1\"><tr>";
	content += "<td WIDTH=\"150\" CLASS=\"Rate\">All trailerhomes and camperhomes include 4x4 crew cab pickup trucks or SUVs, equiped with air conditioning, CD stereos, and power windows/locks.</td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/roofair.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/freshwater.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/hotwater.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/flushtoilet.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/wastewater.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/refrigerator.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/stove.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/oven.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/furnace.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/converter.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";
	content += "<td><img src=\"/alldrivegraphics/spectable/auxiliary.gif\" width=\"20\" height=\"200\" border=\"0\" alt=\"\"></td>";

	content += "<td VALIGN=\"bottom\" CLASS=\"Rate\" WIDTH=\"80\">";
	content += "<table CELLPADDING=\"0\" CELLSPACING=\"0\" HEIGHT=\"200\" WIDTH=\"80\">";
	content += "<tr><td HEIGHT=\"75\" VALIGN=\"middle\" CLASS=\"Rate\"><b>SuperSaver</b><BR><b>Season</b></td></tr>";
	content += "<tr><td HEIGHT=\"75\" VALIGN=\"middle\" CLASS=\"Rate\">Nov 1/09-Jun 10/10<BR>Sep 20-Dec 31/10</td></tr>";
	content += "<tr><td VALIGN=\"bottom\" CLASS=\"Rate\"><table CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"80\"><tr><td CLASS=\"Rate\">Weekly</td><td CLASS=\"Rate\">Daily</td></tr></table></td>";
	content += "</tr></table></td>";

	content += "<td VALIGN=\"bottom\" CLASS=\"Rate\" WIDTH=\"80\">";
	content += "<table CELLPADDING=\"0\" CELLSPACING=\"0\" HEIGHT=\"200\" WIDTH=\"80\">";
	content += "<tr><td HEIGHT=\"75\" VALIGN=\"middle\" CLASS=\"Rate\"><b>Economy</b><BR><b>Season</b></td></tr>";
	content += "<tr><td HEIGHT=\"75\" VALIGN=\"middle\" CLASS=\"Rate\">Jun 11-Jul 5/10<BR>Aug 23-Sep 19/10</td></tr>";
	content += "<tr><td VALIGN=\"bottom\" CLASS=\"Rate\"><table CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"80\"><tr><td CLASS=\"Rate\">Weekly</td><td CLASS=\"Rate\">Daily</td></tr></table></td>";
	content += "</tr></table></td>";

	content += "<td VALIGN=\"bottom\" CLASS=\"Rate\" WIDTH=\"80\">";
	content += "<table CELLPADDING=\"0\" CELLSPACING=\"0\" HEIGHT=\"200\" WIDTH=\"80\">";
	content += "<tr><td HEIGHT=\"75\" VALIGN=\"middle\" CLASS=\"Rate\"><b>Holiday</b><BR><b>Season</b></td></tr>";
	content += "<tr><td HEIGHT=\"75\" VALIGN=\"middle\" CLASS=\"Rate\">Jul 06/10 to<BR>Aug 22/10</td></tr>";
	content += "<tr><td VALIGN=\"bottom\" CLASS=\"Rate\"><table CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"80\"><tr><td CLASS=\"Rate\">Weekly</td><td CLASS=\"Rate\">Daily</td></tr></table></td>";
	content += "</tr></table></td>";

	content += "</tr></table>";
	return (content);
}

function CreateRateFooter() {

	var content="";
	content += "<table CELLPADDING=\"0\" CELLSPACING=\"0\" BORDER=\"1\" width=\"693\"><tr>";
	content += "<td width=\"360\" CLASS=\"Rate\">";
	content += "<b>EXTRA KILOMETERS: 35 CENTS PER KM.<br>";
	content += "SPECIAL PACKAGES FOR PREPAID KILOMETERS:</b><br>";
	content += "Calculate the distance you plan to drive, then buy the kilometers in advance and save $$$";
	content += "  We recommend a minimum 1000 km per week of travel <BR>see <A CLASS=\"Regular\" HREF=\"/2010/extras.php\">ADDITIONAL CHARGES </a> page.</td>";
	content += "<td width=\"250\" CLASS=\"Rate\"><b>BIKES EQUIPMENT, KITS. ACCESSORIES, etc.</B><br>";
	content += "- see <A CLASS=\"Regular\" HREF=\"/2010/boatbike.php\"> ACCESSORIES </A> page</td>\n</tr></table>";
	return (content);
}

if(version == "n3") {

	var image_off = new Image();
	image_off.src = "/alldrivegraphics/menu/menuoff.gif";
	var image_on = new Image();
	image_on.src = "/alldrivegraphics/menu/menuon.gif";
	
	var QuoteMenu_off = new Image();
	QuoteMenu_off.src = image_off.src;
	var QuoteMenu_on = new Image();
	QuoteMenu_on.src = image_on.src;
	
	var RetrieveMenu_off = new Image();
	RetrieveMenu_off.src = image_off.src;
	var RetrieveMenu_on = new Image();
	RetrieveMenu_on.src = image_on.src;
	
	var ModifyMenu_off = new Image();
	ModifyMenu_off.src = image_off.src;
	var ModifyMenu_on = new Image();
	ModifyMenu_on.src = image_on.src;
	
	var FindMenu_off = new Image();
	FindMenu_off.src = image_off.src;
	var FindMenu_on = new Image();
	FindMenu_on.src = image_on.src;
	
	var ReserveMenu_off = new Image();
	ReserveMenu_off.src = image_off.src;
	var ReserveMenu_on = new Image();
	ReserveMenu_on.src = image_on.src;
	
	var MotorhomeMenu_off = new Image();
	MotorhomeMenu_off.src = image_off.src;
	var MotorhomeMenu_on = new Image();
	MotorhomeMenu_on.src = image_on.src;
	
	var TrailerhomeMenu_off = new Image();
	TrailerhomeMenu_off.src = image_off.src;
	var TrailerhomeMenu_on = new Image();
	TrailerhomeMenu_on.src = image_on.src;
	
	var CamperhomeMenu_off = new Image();
	CamperhomeMenu_off.src = image_off.src;
	var CamperhomeMenu_on = new Image();
	CamperhomeMenu_on.src = image_on.src;
	
	var VanCamperMenu_off = new Image();
	VanCamperMenu_off.src = image_off.src;
	var VanCamperMenu_on = new Image();
	VanCamperMenu_on.src = image_on.src;
	
	var WinterWheelsMenu_off = new Image();
	WinterWheelsMenu_off.src = image_off.src;
	var WinterWheelsMenu_on = new Image();
	WinterWheelsMenu_on.src = image_on.src;
	
	var TouringWheelsMenu_off = new Image();
	TouringWheelsMenu_off.src = image_off.src;
	var TouringWheelsMenu_on = new Image();
	TouringWheelsMenu_on.src = image_on.src;
	
	var EquipmentMenu_off = new Image();
	EquipmentMenu_off.src = image_off.src;
	var EquipmentMenu_on = new Image();
	EquipmentMenu_on.src = image_on.src;
	
	var BoatsBikesMenu_off = new Image();
	BoatsBikesMenu_off.src = image_off.src;
	var BoatsBikesMenu_on = new Image();
	BoatsBikesMenu_on.src = image_on.src;
	
	var AccessoriesMenu_off = new Image();
	AccessoriesMenu_off.src = image_off.src;
	var AccessoriesMenu_on = new Image();
	AccessoriesMenu_on.src = image_on.src;
	
	var ExtrasMenu_off = new Image();
	ExtrasMenu_off.src = image_off.src;
	var ExtrasMenu_on = new Image();
	ExtrasMenu_on.src = image_on.src;
	
	var ItineraryMenu_off = new Image();
	ItineraryMenu_off.src = image_off.src;
	var ItineraryMenu_on = new Image();
	ItineraryMenu_on.src = image_on.src;
	
	var DistanceChartMenu_off = new Image();
	DistanceChartMenu_off.src = image_off.src;
	var DistanceChartMenu_on = new Image();
	DistanceChartMenu_on.src = image_on.src;
	
	var TourTravelMenu_off = new Image();
	TourTravelMenu_off.src = image_off.src;
	var TourTravelMenu_on = new Image();
	TourTravelMenu_on.src = image_on.src;
	
	var RanchMenu_off = new Image();
	RanchMenu_off.src = image_off.src;
	var RanchMenu_on = new Image();
	RanchMenu_on.src = image_on.src;
	
	var PhotoMenu_off = new Image();
	PhotoMenu_off.src = image_off.src;
	var PhotoMenu_on = new Image();
	PhotoMenu_on.src = image_on.src;
	
	var CorporateMenu_off = new Image();
	CorporateMenu_off.src = image_off.src;
	var CorporateMenu_on = new Image();
	CorporateMenu_on.src = image_on.src;
	
	var EmailMenu_off = new Image();
	EmailMenu_off.src = image_off.src;
	var EmailMenu_on = new Image();
	EmailMenu_on.src = image_on.src;
	
	var TermsMenu_off = new Image();
	TermsMenu_off.src = image_off.src;
	var TermsMenu_on = new Image();
	TermsMenu_on.src = image_on.src;
	
	var QuestionsMenu_off = new Image();
	QuestionsMenu_off.src = image_off.src;
	var QuestionsMenu_on = new Image();
	QuestionsMenu_on.src = image_on.src;
	
	var SiteMapMenu_off = new Image();
	SiteMapMenu_off.src = image_off.src;
	var SiteMapMenu_on = new Image();
	SiteMapMenu_on.src = image_on.src;
	
	var WebmasterMenu_off = new Image();
	WebmasterMenu_off.src = image_off.src;
	var WebmasterMenu_on = new Image();
	WebmasterMenu_on.src = image_on.src;
	
	var LocationsMenu_off = new Image();
	LocationsMenu_off.src = image_off.src;
	var LocationsMenu_on = new Image();
	LocationsMenu_on.src = image_on.src;
	
}

function slug(width, height) {
	var content = "";
	content += "<td bgColor=\"#0000FF\"><img src=\"/alldrivegraphics/menu/slug.gif\" width=\""+width+"\" height=\""+height+"\" border=\"0\"></td>";
	return(content);
}

function MenuEntry(menuitem, link, descript) {
	var content = "";
	content += "<tr bgColor=\"#FFFFFF\">\n";
	content += slug(1,20);
	content += "\n <td WIDTH=\"20\" bgColor=\"#0000FF\"><img NAME=\""+menuitem+"Menu\" src=\"/alldrivegraphics/menu/menuoff.gif\" width=\"20\" height=\"20\" border=\"0\"></td>\n";
	content += " <td WIDTH=\"128\" bgColor=\"#FFFFFF\"><A href=\""+link+"\" CLASS=\"03MenuItem\" onmouseout=\"javascript:deactivategen('"+menuitem+"Menu')\" onmouseover=\"javascript:activategen('"+menuitem+"Menu')\">\n";
	content +="<font color=\"#0000ff\" size=\"1\" face=\"Verdana\">"+descript+"</font></a><br>\n </td>\n";
	content += slug(1,20);
	content += "\n <td width=\"5\" bgColor=\"#FFFFFF\">\n </td>\n";
	content += "</tr>\n";
	return(content);
}

function MenuHeading(heading, link) {
	var content = "";
	content += "<table width=\"155\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
	content += "\n<tr bgColor=\"#FFFFFF\">\n <td bgColor=\"#0000FF\" colSpan=\"4\" align=\"absmiddle\" width=\"150\">\n&nbsp;&nbsp;\n";
	content += "<b><A HREF=\""+link+"\">";
	content += "<font color=\"#ffffff\" size=\"1\" face=\"Verdana\">"+heading+"</font></A></b></font>\n </td>\n";
	content += " <td width=\"5\" bgColor=\"#FFFFFF\"></td></tr>\n";
	return(content);
}

function MenuSpacer() {
	var content = "";
	content += "<tr bgColor=\"#FFFFFF\">\n <td bgColor=\"#0000FF\" colSpan=\"4\"><img src=\"/alldrivegraphics/menu/slug.gif\" width=\"15\" height=\"1\" border=\"0\"></td>\n";
	content += " <td width=\"5\" bgColor=\"#FFFFFF\"></td></tr>\n";
	content += "<tr bgColor=\"#FFFFFF\">\n <td COLSPAN=\"4\" bgColor=\"#FFFFFF\"><img src=\"/alldrivegraphics/menu/slug.gif\" width=\"1\" height=\"10\" border=\"0\"></td>\n";
	content += " <td width=\"5\" bgColor=\"#FFFFFF\"></td></tr>\n</table>\n";
	return(content);
}

function CreateMenu() {
	var content = "";
	content += MenuHeading("Home Page","/2010/welcome.php");
	content += MenuSpacer();
	
	content += MenuHeading("Bookings/Quotes","/2010/quote.php");
	content += MenuEntry("Quote","/2010/quote.php","online quote");
	content += MenuEntry("Retrieve","/2010/quote1.php","retrieve quote");
	content += MenuEntry("Modify","/2010/quote.php","modify quote");
	content += MenuEntry("Find","/2010/quote1.php","find your quote");
	content += MenuEntry("Reserve","/2010/quote.php","reservations");
	content += MenuSpacer();
	
	content += MenuHeading("Rental Vehicles","/2010/rates.php");
	content += MenuEntry("Motorhome","/2010/r-motorhome.php","motorhomes");
	content += MenuEntry("Trailerhome","/2010/r-trailerhome.php","trailerhomes");
	content += MenuEntry("Camperhome","/2010/r-camperhome.php","camperhomes");
	content += MenuEntry("VanCamper","/2010/r-vancamper.php","van campers");
	content += MenuEntry("WinterWheels","http://www.canadawinter.com","winter wheels");
	content += MenuEntry("TouringWheels","/2010/r-vans.php","touring wheels");
	content += MenuSpacer();
	
	content += MenuHeading("Rental Rates","/2010/rates.php");
	content += MenuSpacer();
	
	content += MenuHeading("Specials","/2010/discount.php");
	content += MenuSpacer();

	content += MenuHeading("Terms & Cond.","/2010/termcond.php");
	content += MenuSpacer();

	content += MenuHeading("Extras and<BR>Accessories","/2010/extras.php");
	content += MenuEntry("Equipment","/2010/kitpage.php","equipment list");
	content += MenuEntry("BoatsBikes","/2010/boatbike.php","bikes/access.");
	content += MenuEntry("Accessories","/2010/boatbike.php","accessories");
	content += MenuEntry("Extras","/2010/extras.php","extras");
	content += MenuSpacer();
	
	content += MenuHeading("Travel Info","/2010/itinerary.php");
	content += MenuEntry("Itinerary","/2010/itinerary.php","itineraries");
	content += MenuEntry("DistanceChart","/alldrivegraphics/itinerary/fullsizemap.jpg","distance chart");
	content += MenuEntry("TourTravel","/PlanningTours/welcome.php","tours and travel");
	content += MenuEntry("Ranch","/PlanningTours/ranch.php","ranch holidays");
	content += MenuSpacer();

	content += MenuHeading("Alldrive Info","about.php");
	content += MenuEntry("Corporate","/2010/about.php","corporate info");
	content += MenuEntry("Email","mailto:sales@alldrive.com","email us");
	content += MenuEntry("Terms","/2010/termcond.php","terms & cond.");
	content += MenuEntry("Questions","/2010/faq.php","questions");
	content += MenuEntry("SiteMap","/2010/motorhome-camper-rv-rental-map.php","site map");
	content += MenuEntry("Webmaster","/streamline","webmaster");
	content += MenuEntry("Locations","/2010/locations.php","locations");
	content += MenuSpacer();
	
	content += MenuHeading("Tell A Friend","/2010/tellafriend.php");
	content += MenuSpacer();
	
	
	return(content);
}

function print_page() {

  alert('Please set your printer to LANDSCAPE format');
  window.print();
}

function open_quote(vehicle) {

  if(opener.document.location.href!="http://www.alldrive.com/2010/quote.php") {
	  opener.document.location.href="http://www.alldrive.com/2010/quote.php?vehicleselect="+vehicle;
  }
  self.window.close();
  return;
}

function doNewpyt(picktype,map) {
//	var myWind = window.open("","","Height=0, Width=0");
//	myWind.close();
var newurl = "http://www.plan-your-trip.com/"+map;
var 	myWind = window.open(newurl,picktype,"height=500,width=700,scrollbars");
	myWind.picktype = picktype;
	myWind.creator = window;
}
