/*
 * Copyright (c) 2009, The Walt Disney Company All Rights Reserved.
 */

function showHide(_1){_1=document.getElementById(_1);_1.style.display=(_1.style.display=="block")?"none":"block";};function showPlusMinus(_2,_3){var _2=document.getElementById(_2);var _3=document.getElementById(_3);if(_2.style.display!="none"){_2.style.display="none";swapImage(_3,"plus");}else{_2.style.display="block";swapImage(_3,"minus");}};function swapImage(_4,_5){if(_5=="minus"){_4.src="http://family.go.com/images/travel/bg_minus.png";}else{_4.src="http://family.go.com/images/travel/bg_plus.png";}};function showRemoveButton(_6,_7){document.getElementById(_6).style.display="block";document.getElementById(_7).className="rollover";};function hideRemoveButton(_8,_9){document.getElementById(_8).style.display="none";document.getElementById(_9).className="rollout";};var __omAutoHideTime=500;var __omTimers=new Array();function __om(id){var _b=document.getElementById(id);if(!_b){throw "Invalid overlay menu id";}if(!_b.onmouseout){_b.onmouseout=function(){queueHideOverlayMenu(id);};_b.onmousein=function(){unQueueHideOverlayMenu(id);};_b.onmousemove=function(){unQueueHideOverlayMenu(id);};}return _b;};function toggleOverlayMenu(id){if(__om(id).style.display=="block"){unQueueHideOverlayMenu(id);hideOverlayMenu(id);}else{queueHideOverlayMenu(id);showOverlayMenu(id);var _d=document.createElement("iframe");_d.src="javascript:void(0);";_d.style.position="absolute";_d.style.top="30px";_d.style.left="10px";_d.style.zIndex="-1";_d.style.width="100%";_d.style.height="90%";_d.style.border="none";_d.style.background="none";}};function toggleOverlayMenuItin(id){if(__om(id).style.display=="block"){unQueueHideOverlayMenu(id);hideOverlayMenu(id);}else{queueHideOverlayMenu(id);showOverlayMenu(id);var _f=document.createElement("iframe");_f.src="javascript:void(0);";_f.style.position="absolute";_f.style.top="30px";_f.style.left="10px";_f.style.zIndex="-1";_f.style.width="100%";_f.style.height="90%";_f.style.border="none";_f.style.background="none";}};function hideOverlayMenu(id){unQueueHideOverlayMenu(id);__om(id).style.display="none";};function showOverlayMenu(id){unQueueHideOverlayMenu(id);__om(id).style.display="block";};function queueHideOverlayMenu(id){unQueueHideOverlayMenu(id);__omTimers[id]=setInterval(function(){hideOverlayMenu(id);},__omAutoHideTime);};function unQueueHideOverlayMenu(id){if(__omTimers[id]){clearInterval(__omTimers[id]);__omTimers[id]=null;}};var isInternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;function POI_DoFSCommand(_14,_15){var _16=isInternetExplorer?document.all.POI:document.POI;};if(navigator.appName&&navigator.appName.indexOf("Microsoft")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("Windows 3.1")==-1){document.write("<script language=\"VBScript\">\n");document.write("On Error Resume Next\n");document.write("Sub POI_FSCommand(ByVal command, ByVal args)\n");document.write("    Call POI_DoFSCommand(command, args)\n");document.write("End Sub\n");document.write("</script>\n");}function vid_getSpeed(){return 20;};function decideCarouselHeight(){var _17=vid_getData();if(_17.length<2){var _18=0;var _19=document.getElementById("poi_video");var _1a=257-0+_18;_19.style.height=_1a+"px";}};function showItinMap(_1b,_1c,_1d){if(_1b==null){_1b="mapPoiList1";}if(_1c==null){_1c="large";}if(_1d==null){_1d=false;}YAHOO.util.Event.onContentReady(_1b,function(){setTimeout(function(){var _1e=document.getElementById(_1b).getElementsByTagName("li").length;if(_1e<1){document.getElementById(_1b+"Trigger").style.display="none";_1b="mapPoiList2";}function _1f(){darkness.style.width=YAHOO.util.Dom.getDocumentWidth()+"px";darkness.style.height=YAHOO.util.Dom.getDocumentHeight()+"px";};if(!_1d){var _20=YAHOO.util.Dom.getDocumentScrollTop();var _21=YAHOO.util.Dom.getY("col_a");var _22=_21-_20;mapCloseUnScroll=0-_22;window.scrollBy(0,_21-_20);darkness=document.createElement("img");darkness.src="http://family.go.com/images/lightbox_bg.png";darkness.className="transparency";darkness.id="lightboxDarkBg";darkness.style.position="absolute";darkness.style.zIndex=3;darkness.style.top="0px";darkness.style.left="0px";darkness.style.width=YAHOO.util.Dom.getDocumentWidth()+"px";darkness.style.height=YAHOO.util.Dom.getDocumentHeight()+"px";YAHOO.util.Event.addListener(window,"resize",function(){_1f();_23();},this,true);document.body.appendChild(darkness);}background=document.getElementById("mapFrame");switch(_1c){case "small":YAHOO.util.Dom.addClass(background,"mapSmall");var _24=490;var _25=860;break;case "large":YAHOO.util.Dom.addClass(background,"mapLarge");var _24=700;var _25=1021;break;}function _23(){var _26=YAHOO.util.Dom.getViewportHeight();var _27=YAHOO.util.Dom.getViewportWidth();var _28=YAHOO.util.Dom.getDocumentScrollTop();var _29=_28;var _2a=((_27-_25)/2);topCorrecetion=(_29<0)?0:_29;leftCorrecetion=(_2a<0)?0:_2a;background.style.position="absolute";background.style.zIndex=4;background.style.top=_29+"px";background.style.left=_2a+"px";};if(!_1d){_23();}background.style.display="block";document.body.appendChild(background);var map=document.getElementById("gmapOverlayContainer");map.style.position="absolute";map.style.zIndex=3;if(_1d){map.style.top="278px";map.style.left="371px";}else{map.style.top="98px";map.style.left="341px";}map.style.display="block";background.appendChild(map);makePoiListTabActive(_1b+"Trigger");showPoiList(_1b.replace(/.*(\d)/,"$1"));if(_1d){loadMap(_1b,"map",1,_1c,true,true);}else{loadMap(_1b,"map",1,_1c,true,false);}},1000);});};function scrollListDown(_2c,_2d,_2e,_2f,_30){getList=document.getElementById(_2e);var _31=parseFloat(getList.style.top);var _32=getList.offsetHeight;var _33=-(_32-_30);if(_31<=_33){document.getElementById(_2d).className="select_scroll_down_off";clearInterval(getList.movement);}else{if(_31>=_33){document.getElementById(_2c).className="select_scroll_up_on";_31=_31-4;}}getList.style.top=_31+"px";var _34="scrollListDown('"+_2c+"','"+_2d+"','"+_2e+"',"+_2f+","+_30+")";getList.movement=setTimeout(_34,_2f);};function scrollListUp(_35,_36,_37,_38){getList=document.getElementById(_37);var _39=parseFloat(getList.style.top);var _3a=getList.offsetHeight;var _3b=0;if(_39>=_3b){document.getElementById(_35).className="select_scroll_up_off";clearTimeout(getList.movement);}else{if(_39<=_3b){_39=_39+4;document.getElementById(_36).className="select_scroll_down_on";}}getList.style.top=_39+"px";var _3c="scrollListUp('"+_35+"','"+_36+"','"+_37+"',"+_38+")";getList.movement=setTimeout(_3c,_38);};function stopScroll(){clearTimeout(getList.movement);};function keepListItemSelected(){var _3d=document.getElementsByTagName("li");for(var i=0;i<_3d.length;i++){var _3f=_3d[i].getAttribute("class");if((_3d[i].parentNode.id=="select_dd_menu_content_scroll_1")||(_3d[i].parentNode.id=="select_dd_menu_content_scroll_2")||(_3d[i].parentNode.parentNode.id=="locationDropdown")){_3d[i].firstChild.onclick=function(){var _40=this.parentNode.parentNode.getElementsByTagName("a");for(var i=0;i<_40.length;i++){YAHOO.util.Dom.removeClass(_40[i],"selected_location");}YAHOO.util.Dom.addClass(this,"selected_location");};}}};function showHideOtherField(){var _42=document.getElementById("locationDropdown").getElementsByTagName("a");for(var i=0;i<_42.length;i++){var _44=_42[i].getAttribute("id");if(_44=="other"){_42[i].onclick=function(){document.getElementById("otherLocation").style.display="block";};}else{_42[i].onclick=function(){document.getElementById("otherLocation").style.display="none";};}}};function alertFamily(_45,_46,top,_48){var _49=document.getElementById("sorryMsgVote");var _4a=document.getElementById("sorryMsgVoteHeader");var _4b=document.getElementById("sorryMsgVoteText");_49.style.top=top+"px";_49.style.left=_48+"px";_49.style.display="block";_4a.innerHTML=_45;_4b.innerHTML=_46;};function evaluateJSON(_4c){return eval("("+_4c.responseText.replace(/^\s*/,"").replace(/\s*$/,"")+")");};function vote(_4d){var xy=YAHOO.util.Dom.getXY(_4d);xLoc=xy[0]-10;yLoc=xy[1]-40;};function refreshVote(_4f){var r=evaluateJSON(_4f);if(r.voteCount!=null){alertFamily("Thank You","Your vote has been submitted.",yLoc,xLoc);}else{if(r.error!=null){alertFamily("We're Sorry",r.error,yLoc,xLoc);}}};function checkForEmptyTravelSponsorLogo(){if(digAdData["SponsorLogo"]!=undefined&&digAdData["SponsorLogo"]["creative"]["text"]!="<!-- Blank -->"){document.getElementById("page_main_title").style.width="617px";document.getElementById("sponsor_logo_container").style.display="block";}};