function CAD(USD) {
	document.write("CA$"+Math.round(USD*1.2));
}

function CD(USD) {
	document.write("CA$"+Math.round(USD*1.25));
}

function NoYear(dwy) {
	document.write(dwy.slice(0,dwy.lastIndexOf(",")));
}

function HOCTour(TourS) {
	document.write("<INPUT TYPE='checkbox' name='tour' value='&quot;Highlands of Chiapas&quot; "+TourS+"'> "+TourS+"<br>");
}

function HCGTour(TourS) {
	document.write("<INPUT TYPE='checkbox' name='tour' value='&quot;Bike & Trek: Highlands of Chiapas and Guatemala&quot; "+TourS+"'> "+TourS+"<br>");
}


indemnification = "I acknowledge that Los Pingüinos is not an insurer, that the potential claims, losses, damages, and expenses arising out of my participation in the activities of the Tour may be great in proportion to the fees I have paid to Los Pingüinos and that it is not reasonable for Los Pingüinos to assume the risk of liability that maybe incurred in connection which such activities. Accordingly, in consideration of the acceptance of my application for the Tour, and not withstanding any statute or rule of law to the contrary, I shall indemnify Los Pingüinos, its officers, directors, agents and sponsors from and against all claims, losses, damages, and expenses (including legal expenses on a solicitor and his/her own client basis) arising out of or relating to my taking part or being connected to any activity of Los Pingüinos, even if caused by the negligence, gross negligence, or other fault of Los Pingüinos, its officers, directors, agents and sponsors. This indemnity shall be binding on my heirs, executors, and assigns. Additionally, I agree to pay for any damage to any equipment rented or loaned to me from Los Pingüinos. In registering for this Tour, I acknowledge that I am physically fit and capable of cycling the tour distances.";

function Popup(TitleBar,Text) {
	PopWin = open("", "PopWin", "alwaysRaised,dependent,height=240,width=320,screenY="+(screen.availHeight-240)/2+",screenX="+(screen.availWidth-320)/2+",scrollbars,titlebar");
	PopWin.document.open("text/html","replace");
	PopWin.document.writeln("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2//EN'>");
	PopWin.document.writeln("<HTML>");
	PopWin.document.writeln("<HEAD>");
	PopWin.document.writeln("<TITLE>"+TitleBar+"</TITLE>");
	PopWin.document.writeln("<LINK REL='stylesheet' TYPE='text/css' HREF='popup.css'>");
	PopWin.document.writeln("</HEAD>");
	PopWin.document.writeln("<BODY BGCOLOR='#006060' TEXT='#eeee00' LINK='#ffffff' VLINK='#dddddd' ALINK='#ff0000' onBlur='focus();' onClose='window.opener.focus();' onLoad='self.moveTo("+(screen.availWidth-320)/2+","+(screen.availHeight-240)/2+");'>");
	PopWin.document.writeln(Text);
	PopWin.document.writeln("<br><br><center><form><input type='button' name='closer' value='Close Window' onClick='window.close()'></form></center>");
	PopWin.document.writeln("</BODY>");
	PopWin.document.writeln("</HTML>");
	PopWin.document.close();
}

function PopPic(TitleBar,gif,W,H) {
	PopWin = open("", "PopWin", "alwaysRaised,dependent,height="+H+",width="+W+",screenY="+(screen.height-"+H+")/2+",screenX="+(screen.width-"+W+")/2+",scrollbars=0,titlebar");
	PopWin.document.open("text/html","replace");
	PopWin.document.writeln("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2//EN'>");
	PopWin.document.writeln("<HTML>");
	PopWin.document.writeln("<HEAD>");
	PopWin.document.writeln("<TITLE>"+TitleBar+"</TITLE>");
	PopWin.document.writeln("</HEAD>");
	PopWin.document.writeln("<BODY background='"+gif+"' BGCOLOR='#006060' TEXT='#eeee00' LINK='#ffffff' VLINK='#dddddd' ALINK='#ff0000' onBlur='focus();' onClose='window.opener.focus();' onLoad='self.moveTo("+(screen.availWidth-W)/2+","+(screen.availHeight-H)/2+");'>");
	PopWin.document.writeln("</BODY>");
	PopWin.document.writeln("</HTML>");
	PopWin.document.close();
}


function Popuplite() {
	Popup("LITE Difficulty","You must have a basic level of fitness and at least aspire to be able to complete the distances in this tour (we <b>know</b> you can!). Distances average around 60 km, and are always less the 100 km per day. Roads are flat and generally undemanding.")
}

function Popupregular() {
	Popup("REGULAR Difficulty","A good level of fitness is required. Distances average around 60 - 80 km per day (depending on hills), and are always less than 120 km. Roads range from flat to very hilly. We may climb up to 1500 metres in a day.")
}

function Popupchallenge() {
	Popup("CHALLENGE Difficulty","You need to have excellent fitness and good cycling experience. Distances generally average about 70 - 110 km per day (depending on hills), and are always less than 150 km. Roads range from flat to Sierra Madre (mountainous!). We may climb up to 3000 metres in a day.")
}

function PopupItinChange() {
	Popup("Recent Itinerary Changes","<b>View of the Pacific 2004</b><br>We have made this tour one day earlier. It now goes from Friday January 9th until Friday January 23rd, 2004.")
}

function PopupTerms() {
	Popup("Terms and Conditions",indemnification)
}

function PopupConverter() {
	PopWin=open('http://www.oanda.com/convert/classic?user=basily&margin_fixed=4&expr=EUR&lang=en&pref_list=USD_AUD_CAD_EUR_MXP&menu_rows=1&date_fmt=normal&exch=USD', 'PopWin', 'alwaysRaised,dependent,height=270,width=480,screenY='+(screen.height-250)/2+',screenX='+(screen.width-175)/2+',titlebar')
}

function PopupDateChange() {
	Popup("Change of Tour Dates","Please note the following Tour date change(s):<br><br><b>Mountains &amp; Natural Wonders 2002</b><br>Was: Wed. Nov. 27 - Thurs. Dec. 19<br>Now: Wed. Nov. 27 or Thurs. Nov. 28 - Wed. Dec. 18<br><br>You must arrive by Thurs. Nov. 28, but we recommend arriving the day before; Wednesday Nov. 27.")
}

function PopupEmail() {
	Popup("Preventing SPAM, junk email","You needn&#39;t include you email address here.<br><br>Just let me know if I may display it or not. If so then I will display it as a <b>graphic</b> to prevent it from being used for junk mail.<br><br>Thanks again for signing the guestbook!")
}


function PopPinguinosMap() {
	PopPic("Map to Los Pingüinos","tolospinguinos.gif",640,480)
}
