

function typeaheadfocus(a,b,c){a.value='';clearHelpText(a);var d=document.bookingWiz.singleMenu;var e=d.length;var f='';for(var i=0;i<e;i++){if(d[i].checked){f=d[i].value}}if(f==''){d=document.bookingWiz.comboMenu;var g=d.options[d.selectedIndex].value;if(g.indexOf('air')>-1)f='air';else f='hotel'}initSmartBox(a,b,f,30,425)}function bw_GetObject(a){if(document.getElementById&&document.getElementById(a))return document.getElementById(a);else if(document.all&&document.all(a))return document.all(a);else return false}function bw_InitForm(a){var b=document.bookingWiz;var c=false;for(var i=0;i<b.singleMenu.length;i++){if(a==b.singleMenu[i].value){b.singleMenu[i].checked=true;c=true;break}}if(c==false){for(var i=0;i<b.comboMenu.length;i++){if(a==b.comboMenu[i].value){b.comboMenu[i].selected=true;c=true;break}}}bw_ShowForm(a)}function bw_ShowSingleForm(){var a=document.bookingWiz;var b='air';for(var i=0;i<a.singleMenu.length;i++){if(a.singleMenu[i].checked){b=a.singleMenu[i].value;break}}var c=bw_GetObject('comboMenu');c.selectedIndex=0;bw_ShowForm(b)}function bw_ShowComboForm(){var a=bw_GetObject('comboMenu');var b=a.value;if(b==''){var c=document.bookingWiz;c.singleMenu[0].checked=true;bw_ShowForm('air');return}var c=document.bookingWiz;for(var i=0;i<c.singleMenu.length;i++){c.singleMenu[i].checked=false}bw_ShowForm(b)}function bw_ShowForm(a){var b=(a.indexOf('air')>-1)?true:false;var c=(a.indexOf('hotel')>-1)?true:false;var d=(a.indexOf('car')>-1)?true:false;if(b){bw_ChangeField('city1Div','city1Span','Departing From');bw_ChangeField('city2Div','city2Span','Traveling To');bw_ChangeField('date1Div','date1Span','Departure Date');bw_ChangeField('date2Div','date2Span','Return Date');bw_ChangeField('adultsDiv','adultsSpan','Adults (12+)');bw_ChangeField('childrenDiv','childrenSpan','Children (2-11)')}else if(c){bw_ChangeField('city1Div','city1Span','Traveling To');bw_ChangeField('city2Div','city2Span','');bw_ChangeField('date1Div','date1Span','Check-In Date');bw_ChangeField('date2Div','date2Span','Check-Out Date');bw_ChangeField('adultsDiv','adultsSpan','Adults (19+)');bw_ChangeField('childrenDiv','childrenSpan','Children (0-18)')}else if(d){bw_ChangeField('city1Div','city1Span','Pick-Up City');bw_ChangeField('city2Div','city2Span','');bw_ChangeField('date1Div','date1Span','Pick-Up Date');bw_ChangeField('date2Div','date2Span','Drop-Off Date');bw_ChangeField('adultsDiv','adultsSpan','');bw_ChangeField('childrenDiv','childrenSpan','')}if(d&&!b&&!c)bw_HideSection('travelerInfoDiv');else bw_ShowSection('travelerInfoDiv');if(c)bw_ChangeField('roomsDiv','roomsSpan','Rooms');else bw_ChangeField('roomsDiv','roomsSpan','');if(b&&!c&&!d){bw_ShowSection('flightTypeDiv');var e=document.bookingWiz;if(e.flightType[0].checked==true)bw_ShowSection('date2Div');else bw_HideSection('date2Div')}else bw_HideSection('flightTypeDiv');if(c&&!b){var f=bw_GetObject('city1');f.value='city name';f.style.width='105px'}else{var f=bw_GetObject('city1');f.value='city or airport code';if(d&&!b)f.style.width='105px';else f.style.width='108px'}var g=bw_GetObject('city2');g.value='city or airport code';var h=bw_GetObject('date1');h.value='mm/dd/yyyy';var i=bw_GetObject('date2');i.value='mm/dd/yyyy';bw_ChangeSpanColor('city1Span','#ED1A1A');bw_ChangeSpanColor('city2Span','#ED1A1A');bw_ChangeSpanColor('date1Span','#ED1A1A');bw_ChangeSpanColor('date2Span','#ED1A1A')}function bw_HideSection(a){var b=bw_GetObject(a);b.style.display='none'}function bw_ShowSection(a){var b=bw_GetObject(a);b.style.display=''}function bw_ChangeField(a,b,c){if(c==''){var d=bw_GetObject(a);d.style.display='none'}else{var d=bw_GetObject(a);var e=bw_GetObject(b);d.style.display='';e.innerHTML=c}}function bw_ChangeSpanColor(a,b){var c=bw_GetObject(a);c.style.color=b}function bw_Validate(){var a=document.bookingWiz;var b='';for(var i=0;i<a.singleMenu.length;i++){if(a.singleMenu[i].checked){b=a.singleMenu[i].value;break}}if(b==''){var c=bw_GetObject('comboMenu');b=c.value}var d=(b.indexOf('air')>-1)?true:false;var e=(b.indexOf('hotel')>-1)?true:false;var f=(b.indexOf('car')>-1)?true:false;var g=true;if(e&&!d&&!f){if(bw_ValidateRequiredField('city1','city1Span','city name')==false)g=false}else{if(bw_ValidateRequiredField('city1','city1Span','city or airport code')==false)g=false}if(bw_ValidateRequiredField('date1','date1Span','mm/dd/yyyy')==false)g=false;if(d){if(bw_ValidateRequiredField('city2','city2Span','city or airport code')==false)g=false}if(d&&!e&&!f){var a=document.bookingWiz;if(a.flightType[0].checked==true){if(bw_ValidateRequiredField('date2','date2Span','mm/dd/yyyy')==false)g=false}}else if(bw_ValidateRequiredField('date2','date2Span','mm/dd/yyyy')==false)g=false;if(!g)alert('Please enter required information (in red)');return g}function bw_ValidateRequiredField(a,b,c){var d=bw_GetObject(a);if(d.value==''||d.value==c){bw_ChangeSpanColor(b,'#ff0000');return false}else{bw_ChangeSpanColor(b,'#000000');return true}}

document.onload = document.getElementById('bw2').innerHTML = '<div class="ff"><h2>FIND THE BEST TRAVEL DEALS ONLINE <a href="http://www.canuckabroad.com/cheapflights/cheapflights.shtml">Click Here for Flights &amp; Airfare</a></h2><div class=\'frm-container\' id=\'bw1\'><form id="bookingWiz" class="frm" name="bookingWiz" method="get" action="http://www.bookingwiz.com/iframe_sb_redirect.asp" onsubmit="return bw_Validate();" target="_blank" ><input type="hidden" name="fm_mic" value="raemyot"><input type="hidden" name="fm_creativeID" value="i006"><input type="hidden" name="fm_datecalc" value="0"><input type="hidden" name="pbw" value="1"><div><ul class="service"><li><input type="radio" id="singleMenu" name="singleMenu" value="air" onclick="bw_ShowSingleForm();document.getElementById(\'dates\').style.left=\'230px\';document.getElementById(\'travelerInfoDiv\').style.left=\'432px\';" checked="checked"><label for="singleMenu" onmouseover="this.style.cursor=\'pointer\';" onClick="document.getElementById(\'dates\').style.left=\'230px\';document.getElementById(\'travelerInfoDiv\').style.left=\'432px\';" style="font-size:9pt;">Flights</label>		</li><li><input type="radio" id="Radio1" name="singleMenu" value="hotel" onclick="bw_ShowSingleForm();document.getElementById(\'dates\').style.left=\'125px\';document.getElementById(\'travelerInfoDiv\').style.left=\'320px\';"><label for="Radio1" style="font-size:9pt;" onmouseover="this.style.cursor=\'pointer\';" onClick="document.getElementById(\'dates\').style.left=\'125px\';document.getElementById(\'travelerInfoDiv\').style.left=\'320px\';">Hotels</label></li><li><input type="radio" id="Radio2" name="singleMenu" value="car" onclick="bw_ShowSingleForm();document.getElementById(\'dates\').style.left=\'125px\';"><label for="Radio2" style="font-size:9pt;" onmouseover="this.style.cursor=\'pointer\';" onClick="document.getElementById(\'dates\').style.left=\'125px\';">Car Rentals</label></li></ul><div style="position: absolute; left: 195px; top: 5px; width: 35px; height: 18px; margin:0px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; color:red; font-size:9pt" ></div><div class="flightType" id="flightTypeDiv" style="top:0px; left:220px; height:15px; width:478; position:absolute; margin:0px"><input type="radio" name="flightType" value="2" checked="checked" onclick="bw_ShowForm(\'air\');" ID="Radio3" style="width:15px; height:15px; left:5px; top:5px; position:absolute; margin:0px"><div style="position: absolute; text-align:left; left: 25px; top: 5px; width: 80px; height: 15px; margin:0px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:8pt" ><a href="javascript:void(0)" onClick="document.getElementById(\'Radio3\').checked=true; bw_ShowForm(\'air\');">Round-Trip</a></div><input type="radio" name="flightType" value="1" onclick="bw_ShowForm(\'air\');" ID="Radio4" style="width:15px; height:15px; left:105px; top:5px; position:absolute; margin:0px"><div style="position: absolute; text-align:left; left: 125px; top: 5px; width: 80px; height: 15px; margin:0px; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:8pt;" ><a href="javascript:void(0)" onClick="document.getElementById(\'Radio4\').checked=true; bw_ShowForm(\'air\');">One-Way</a></div></div><div class="cities" style="top:20px; left:0px; height:30px; width:478px; position:absolute; margin:0px;"><div id="city1Div" style="top:0px; left:7px; height:16px; margin:0px; position:absolute"><div id="city1Span"style="font-family:Arial, Helvetica, sans-serif;  font-size:8pt"></div><ul class="sch" id="bw"><li class="leaving"> <input name="city1" id="city1" onclick="this.value=\'\';" autocomplete=\'off\' value="" class="text" style="font-size:9pt;padding:2px;margin:1px;height:13px;width:90px;"><input id="origincode" name="origincode" value=\'\' type="hidden"></li></ul></div><div id="city2Div" style="top:0px; left:125px; height:16px; margin:0px; position:absolute"><div id="city2Span" style="font-family:Arial, Helvetica, sans-serif;  font-size:8pt" ></div><ul class="sch" id="bw"><li class="leaving"><input name="city2" id="city2" autocomplete=\'off\' onclick="this.value=\'\';" value="" class="text" style="width:90px;font-size:9pt;padding:2px;margin:1px;height:13px;"></li></ul></div></div><div class="date" id="dates" style="top:22px; left:230px; height:30px; width:472px; position:absolute; margin:0px;"><div id="date1Div" style="top:0px; left:0px; height:30px; margin:0px; position:absolute"><div id="date1Span" style="position: absolute; text-align:left; left: 0px; top: 0px; width: 120px; height: 15px; margin:0px; font-family:Arial, Helvetica, sans-serif;  font-size:8pt"></div><ul class="sch" id="bw"><li class="leaving"><input id="dateH1" name="date1" value="mm/dd/yyyy" maxlength="12" size="8" class="text" style="position:absolute;width:61px; left:0px; top:15px;  height:13px;font-size:8pt;padding:2px;margin:1px;"></li></ul><a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fStartPop(document.bookingWiz.date1,document.bookingWiz.date2);return false;" HIDEFOCUS ><img class="PopcalTrigger" align="absmiddle" src="http://www.canuckabroad.com/bw/cal.png" width="25" height="19" border="0" alt="" style="left:70px; position:absolute;top:15px; margin:0px;padding:0" id="cal1" /></a></div><div id="date2Div" style="top:0px; left:95px; height:30px; margin:0px; position:absolute;width:92px;"><div id="date2Span" style="position: absolute; text-align:left; left: 0px; top: 0px; width: 120px; height: 15px; margin:0px; font-family:Arial, Helvetica, sans-serif;font-size:8pt"></div><ul class="sch" id="bw"><li class="leaving"><input id="dateH2" name="date2" value="mm/dd/yyyy" maxlength="12" size="9" class="text" style="width:61px; left:0px; top:15px; position:absolute; height:13px;font-size:8pt;padding:2px;margin:1px;"></li></ul><a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fEndPop(document.bookingWiz.date1,document.bookingWiz.date2);return false;" HIDEFOCUS><img class="PopcalTrigger" id="cal2" align="absmiddle" src="http://www.canuckabroad.com/bw/cal.png" width="25" height="19px" border="0" alt="" style="left:70px; position:absolute;top:15px; margin:0px;padding:0" /></a></div></div><div id="travelerInfoDiv" class="travelerInfo" style="top:15px; left:432px; height:15px; width:472px; position:absolute; margin:0px"><div id="adultsDiv" style="top:0px; left:0px; height:16px; margin:0px; position:absolute"><div id="adultsSpan" style="position: absolute; text-align:left; left: 0px; top: 8px; width: 120px; height: 15px; margin:0px; font-family:Arial, Helvetica, sans-serif; font-size:8pt">Adults (12+)</div><select class="type" name="adults" id="adults" style="font-family:Arial, Helvetica, sans-serif; font-weight:normal; font-size:7pt; top:24px; left:0px; margin:0px; position:absolute"><option value="0">0</option><option value="1" selected>1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select></div><div id="childrenDiv" style="top:0px; left:65px; height:16px; margin:0px; position:absolute"><div id="childrenSpan" style="position: absolute; text-align:left; left: 0px; top: 8px; width: 120px; height: 15px; margin:0px; font-family:Arial, Helvetica, sans-serif;  font-size:8pt">Children (2-11)</div><select name="children" id="children" style="font-family:Arial, Helvetica, sans-serif; font-weight:normal; font-size:7pt; top:24px; left:0px; margin:0px; position:absolute"><option value="0" selected>0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select></div><div id="roomsDiv" style="top:0; left:145px; height:16px; margin:0px; position:absolute"><div id="roomsSpan" style="position: absolute; text-align:left; left: 0px; top: 8px; width: 120px; height: 15px; margin:0px; font-family:Arial, Helvetica, sans-serif; font-size:8pt" >Rooms</div><select name="rooms" id="rooms" style="font-family:Arial, Helvetica, sans-serif; font-weight:normal; font-size:7pt; top:24px; left:0px; margin:0px; position:absolute"><option value="0" selected>0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select></div></div><input type="image" src="http://www.canuckabroad.com/bw/click1.png" width="81" height="59" id="bt" name="Submit1" style="top:0px; left:582px; position:absolute;"></form></div><ul class="sch" id="bw"><li></li></ul></div><div class="ab"></div>';document.onload = bw_ShowSingleForm();

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('w.D=9(h){9 3(a,b){4(s h[a]=="1o"){h[a]=b}};3("6",5);3("o",5);3("x",5);3("U","1p");3("y","%Y/%m/%d");3("H","%Y/%m/%d");3("V",E);3("W",5);3("I",h["W"]);3("J",5);3("K",5);3("L",5);3("X","1q");3("z",[1r,1s]);3("A",E);3("8",5);3("M",5);3("v",5);3("Z",5);3("N",5);3("q",5);3("B",r);3("O","P");3("10",E);3("11",2);3("F",5);3("12",r);3("Q",r);3("u",5);7 j=["6","o","x"];13(7 i 1t j){4(s h[j[i]]=="R"){h[j[i]]=14.15(h[j[i]])}}4(!(h.8||h.u||h.6||h.o||h.x)){16("w.D:\\n  1u 1v D (1w 1x 1y).  1z 1A 1B 1C");C r}9 v(a){7 p=a.S;7 b=(a.17||p.10);4(b&&p.6){p.6.G=a.q.T(p.y);4(s p.6.18=="9")p.6.18()}4(b&&p.o)p.o.19=a.q.T(p.H);4(b&&s p.N=="9")p.N(a);4(b&&p.8){4(s p.M=="9")p.M(a)}4(b&&p.V&&a.17)a.1D()};4(h.8!=5){4(s h.8=="R")h.8=14.15(h.8);4(!h.8){16("w.D:\\n  1E 1F 1G 1H\'t 1I 1J.");C r}7 k=1a w(h.L,h.q,h.v||v);k.1b(h.J);k.1c=h.Q;k.B=h.B;k.1d=(h.O=="P");k.S=h;k.A=h.A;k.1e(h.z[0],h.z[1]);k.1f(h.I);k.1g=h.K;4(h.y){k.1h(h.y)}4(h.6&&s h.6.G=="R"){k.1i(h.6.G)}k.1j(h.8);k.1K();C r}7 l=h.x||h.o||h.6;l["1L"+h.U]=9(){7 b=h.6||h.o;7 c=h.6?h.y:h.H;7 e=r;7 f=1k.1l;4(b)h.q=1M.1i(b.G||b.19,c);4(!(f&&h.12)){1k.1l=f=1a w(h.L,h.q,h.v||v,h.Z||9(a){a.1m()});f.1b(h.J);f.B=h.B;f.1d=(h.O=="P");f.A=h.A;e=E}1n{4(h.q)f.1N(h.q);f.1m()}4(h.u){f.u={};13(7 i=h.u.1O;--i>=0;){7 d=h.u[i];7 g=d.T("%Y%m%d");f.u[g]=d}}f.1c=h.Q;f.1P=h.11;f.1e(h.z[0],h.z[1]);f.S=h;f.1f(h.I);f.1g=h.K;f.1h(c);4(e)f.1j();f.1Q();4(!h.F)f.1R(h.x||h.o||h.6,h.X);1n f.1S(h.F[0],h.F[1]);C r};C k};',62,117,'|||param_default|if|null|inputField|var|flat|function|||||||||||||||displayArea||date|false|typeof||multiple|onSelect|Calendar|button|ifFormat|range|weekNumbers|showsTime|return|setup|true|position|value|daFormat|dateStatusFunc|dateTooltipFunc|dateText|firstDay|flatCallback|onUpdate|timeFormat|24|showOthers|string|params|print|eventName|singleClick|disableFunc|align||onClose|electric|step|cache|for|document|getElementById|alert|dateClicked|onchange|innerHTML|new|setDateToolTipHandler|showsOtherMonths|time24|setRange|setDateStatusHandler|getDateText|setDateFormat|parseDate|create|window|calendar|hide|else|undefined|click|Br|1900|2999|in|Nothing|to|no|fields|found|Please|check|your|code|callCloseHandler|Flat|specified|but|can|find|parent|show|on|Date|setDate|length|yearStep|refresh|showAtElement|showAt'.split('|'),0,{}))

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0.1({2:"a",3:"%4/%d/%5",b:"g",6:"7",c:e,8:9});0.1({2:"a",3:"%4/%d/%5",6:"7",8:9});0.1({2:"f",3:"%4/%d/%5",b:"h",6:"7",c:e,8:9});0.1({2:"f",3:"%4/%d/%5",6:"7",8:9});',18,18,'Calendar|setup|inputField|ifFormat|m|Y|align|Bl|weekNumbers|false|dateH1|button|singleClick||true|dateH2|cal1|cal2'.split('|'),0,{}))