var FTO={open:function(){$(this.container).className="fto-open"},close:function(){$(this.container).className="fto-closed";var a=$("iframe-mask");if(a){if(a.style.display!="none"){a.style.display="none"}}},showSelects:function(){var a=$("iframe-mask");if(a){a.style.display="none"}},hideSelects:function(){var a=$("iframe-mask");if(a){a.style.display="block"}},newWindow:function(b,a){if(!b){b="/hyatt/thenewmore/"}if(!a){a="GP"}var c=window.open(b,a);this.close()},createContainer:function(){if(this.firstPlay==true){this.altContentString="<div id='alt-content-container'>";this.altContentString+="<a href='#' id='alt-content-close'>&nbsp;</a>";this.altContentString+="<a href='/gp/en/index.jsp?icamp=FOBStaticTakeover_"+this.brand+"' id='alt-content-link' target='_blank'><img src='/hyatt/flash/family_of_brands/take_over/"+this.brand+"/alt-content-image.jpg' alt='Family of Brands' /></a>";this.altContentString+="</div>";this.altContentString+="<div id='alt-content-nolink' />";this.altContentString+="";if(this.brand!="place"){this.altContentString+="<!--[if lte IE 6.5]><iframe id='iframe-mask'></iframe><![endif]-->"}}else{this.altContentString="<div id='alt-content-container-peel'>";this.altContentString+="<a href='/gp/en/index.jsp?icamp=FOBStaticPeelAway_"+this.brand+"' id='alt-content-peel-link' target='_blank'>&nbsp;</a>";this.altContentString+="<a href='"+this.bannerUrl+"' id='alt-content-banner' target='_blank'><img src='/hyatt/flash/family_of_brands/take_over/"+this.brand+"/alt-content-image-peel.jpg' alt='Family of Brands' /></a>";this.altContentString+="</div>"}if(this.firstPlay==true){$(this.container).className="fto-open"}else{$(this.container).className="fto-closed"}},embedTakeover:function(){this.createContainer();var b=new SWFObject(this.indexPath,"FamilyOfBrandsTakeover",this.width,this.height,this.flashVer,"transparent");b.addParam("wmode","transparent");b.addVariable("brand",this.brand);b.addVariable("swfPath",this.swfPath);b.addVariable("xmlPath",this.xmlPath);b.addVariable("flvPath",this.flvPath);b.addVariable("startPage",this.startPage);b.addVariable("firstPlay",this.firstPlay);b.addVariable("icamp","FOBFlashTakeover_"+this.brand);if(b.write(this.flashDiv)){return true}else{if(this.brand=="goldpassport"){$("fto-container").style.display="none";$("fto-container").className="fto-closed"}var a=$(this.container);a.className="fto-open fto-noflash";if(this.firstPlay!=true){a.addClassName("no-flash-peel")}a.innerHTML=this.altContentString;if(this.firstPlay==true){$("alt-content-close").onclick=function(){if($(FTO.container)){$(FTO.container).style.display="none"}else{$("alt-content-container").style.display="none"}FTO.showSelects();return false}}this.hideSelects()}},initialize:function(a){this.container=a.container||"fto-container";this.flashDiv=a.flashDiv||"flash-container";this.brand=a.brand||"hyatt";this.swfPath=a.swfPath||"/hyatt/flash/family_of_brands/take_over/"+this.brand+"/";this.xmlPath=a.xmlPath||"/hyatt/flash/family_of_brands/xml/";this.flvPath=a.flvPath||"/hyatt/flash/family_of_brands/flv/";this.startPage=a.startPage||"default";this.firstPlay=a.firstPlay||"false";this.flashVer=a.flashVer||"8";this.indexPath=this.swfPath+"index.swf";switch(this.brand){case"goldpassport":this.bannerUrl="/hyatt/experience";this.width=951;this.height=732;break;case"summerfield":this.bannerUrl="/gp/en/index.jsp";this.width=951;this.height=732;break;case"place":this.bannerUrl="/hyatt/experience";this.width=873;this.height=732;break;default:this.bannerUrl="/hyatt/experience";this.width=954;this.height=670}}};var console=(console)?console:{log:function(a){alert(a)}};
