function noSpm(A,B){locationstring="mailto:"+A+"@"+B;window.location=locationstring}function MM_openBrWindow(C,A,B){B+=",left=0,top=0,resizable=yes";window.open(C,A,B)}function toggleDivDisplay(A){if(document.getElementById(A).style.display==""){document.getElementById(A).style.display="none"}else{document.getElementById(A).style.display=""}}function externalLinks(){if(document.getElementsByTagName){var C=document.getElementsByTagName("a");for(var B=0;B<C.length;B++){var A=C[B];if(A.getAttribute("href")&&A.getAttribute("rel")=="external"){A.target="_blank"}}}}function checkGUnload(){if(window.GUnload){GUnload()}}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(L,B,M,D,H,J,F,E,C,K,I){if(!document.createElement||!document.getElementById){return }this.DETECT_KEY=I?I:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(L){this.setAttribute("swf",L)}if(B){this.setAttribute("id",B)}if(M){this.setAttribute("width",M)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),F);if(J){this.addParam("bgcolor",J)}var A=E?E:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",F);this.setAttribute("doExpressInstall",false);var G=(C)?C:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(K){this.setAttribute("redirectUrl",K)}};deconcept.SWFObject.prototype={setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C.push(B+"="+A[B])}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(G,F){var D=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){D=new deconcept.PlayerVersion(A.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var B=3;C!=null;B++){C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);D=new deconcept.PlayerVersion([B,0,0])}}catch(E){}if(G&&D.major>G.major){return D}if(!G||((G.minor!=0||G.rev!=0)&&D.major==G.major)||D.major!=6||F){try{D=new deconcept.PlayerVersion(C.GetVariable("$version").split(" ")[1].split(","))}catch(E){}}}return D};deconcept.PlayerVersion=function(A){this.major=parseInt(A[0])!=null?parseInt(A[0]):0;this.minor=parseInt(A[1])||0;this.rev=parseInt(A[2])||0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(D){var B=D.indexOf(C+"=");var A=(D.indexOf("&",B)>-1)?D.indexOf("&",B):D.length;if(D.length>1&&B>-1){return D.substring(D.indexOf("=",B)+1,A)}}return""}};if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var cur_visual=0;var cur_sec_visual=0;var visual0="";var visualSec0="";function doOnLoad(){externalLinks();AdPage_InitVisuals()}function AdPage_InitVisuals(){$(function(){$(document).trigger("ad/visuals/init")});if(document.getElementById("visual")!=null){if(window.Display_Main(0)){Display_Main(0)}arrowSelect("arrow0")}if(document.getElementById("visualSec")!=null){if(window.Display_Sec(0)){Display_Sec(0)}arrowSelect("arrow0")}}function Display_Main(num){if(document.getElementById("visualSec")){document.getElementById("visualSec").style.display="block"}if(document.getElementById("visual")){document.getElementById("visual").style.display="block";document.getElementById("visual").innerHTML=eval("visual"+num)}if(document.getElementById("visualBlank")){document.getElementById("visualBlank").style.display="none"}if(document.getElementById("visualBlankSec")){document.getElementById("visualBlankSec").style.display="none"}}function Display_Sec(num){if(document.getElementById("visual")){document.getElementById("visual").style.display="block"}if(document.getElementById("visualSec")){document.getElementById("visualSec").style.display="block";document.getElementById("visualSec").innerHTML=eval("visualSec"+num)}if(document.getElementById("visualBlank")){document.getElementById("visualBlank").style.display="none"}if(document.getElementById("visualBlankSec")){document.getElementById("visualBlankSec").style.display="none"}}function Display_Blank(){(function(A){A("#visual, #visualSec").hide();A("#visualBlank, #visualBlankSec").show()})(jQuery)}function Hide_Blank(){(function(A){A("#visualBlank, #visualBlankSec").hide();A("#visual, #visualSec").show();A("#fancy_div").html("")})(jQuery)}var aroundTownOriginalHeight=-1;function RightContests_Show(A){if(document.getElementById("contestBlock")&&document.getElementById("aroundTown")){var E=document.getElementById("aroundTown");var D=document.getElementById("contestBlock");if(A){D.style.display="block";var C=jQuery("#aroundTown").height();var B=jQuery("#contestBlock").height();if(C<B){E.style.height=B+"px";if(aroundTownOriginalHeight==-1){aroundTownOriginalHeight=C}}}else{D.style.display="none";if(aroundTownOriginalHeight!=-1){E.style.height=aroundTownOriginalHeight+"px"}}}}function Weather_SwitchForecastWeather(B,A){(function(D){var C="http://"+document.domain+"/remote/weather_getForecastWeather.php";var E={locationCode:A};D("#weatherForecastBlock > h2").text("Loading...");D.getJSON(C,E,function(F){if(F.error){alert(F.error)}else{D("#weatherForecastBlock > h2").text(B+" Weather Forecast");D("#wf-B").children().remove();D(F.forecastDays).each(function(H){var I=D(document.createElement("div")).addClass("weatherForecast").append(D(document.createElement("img")).attr({src:F.iconPath+this.icon+".png",alt:this.weather_summary,title:this.weather_summary})).append("<br/>").append(D(document.createElement("strong")).text(this.dayName+"'s Forecast")).append("<br/>"+(this.maximum?this.maximum+"&deg;"+(this.format=="celsius"?" C":" F"):"N/A")+" / "+(this.minimum?this.minimum+"&deg;"+(this.format=="celsius"?" C":" F"):"")).append("<br/>"+this.weather_summary);I.appendTo("#wf-B")});var G=D(document.createElement("div")).append(D(document.createElement("img")).attr({src:F.iconPath+F.current.icon+".png",alt:F.current.weather_summary,title:F.current.weather_summary})).append("<br/>").append(D(document.createElement("strong")).text("Currently")).append("<br/> "+F.current.temperature+"&deg; "+F.temperatureUnit).append("<br/>"+F.current.weather_summary);D("#weatherForecastBlock #wf-A").html(G.html())}})})(jQuery)}var tile_reload_max=6;var tile_reload_counter=0;var tile_reload_interval=10000;function Tile_Reload(A,B){if(tile_reload_counter<tile_reload_max){Tile_Get(A,B,false);tile_reload_counter++}}function Tile_Get(A,C,B){jQuery("#tiles").load("/remote/Tile_Get.php?siteId="+A+"&nTiles="+C,function(E,D,F){if(B||D!="success"){tile_reload_counter=tile_reload_max}})}var feature_reload_max=6;var feature_reload_counter=0;var feature_reload_interval=10000;function Feature_Reload(){if(feature_reload_counter<feature_reload_max){jQuery("#feature_link").load("/remote/Feature_Get.php",function(B,A,C){if(A!="success"){feature_reload_counter=feature_reload_max}else{setTimeout("Feature_Reload();",feature_reload_interval)}});feature_reload_counter++}}function Coupon_PageOnLoad(){checkPrint();if(window.parent&&!window.opener){var A=document.getElementById("closeButton");if(A){A.style.display="none"}}}function checkPrint(){if(window.print){var A=document.getElementById("print");A.innerHTML='<input type="button" class="print" value="Print" onclick="javascript:window.print()" />'}}function PromoPage_Init(){(function(A){A(function(){A(".map.iframe").fancybox({width:905,height:700,onStart:Display_Blank,onClosed:Hide_Blank})})}(jQuery))}function RssList_Init(){(function(A){function B(I){var C=A("#parentCategoryId option:selected"),F=A("#adId option:selected");var J="http://"+document.domain+"/rss/"+A("#rssType").val();if(C.html().match(/ - /)){var E=C.prevAll("option:not(:contains( - )):first"),H=E.val().split("|");J+="/"+H.splice(1,10).join("")}var G=C.val().split("|");if(parseInt(G[0])>0){J+="/"+G.splice(1,10).join("")}var D=F.val().split("|");if(parseInt(D[0])>0){J+="/"+D.splice(1,10).join("")+".html"}A("#rssUrl").val(J);A("#rssUrlBlock a").attr("href",J);if(!I){A("#rssUrl").select()}}A(function(){A("#parentCategoryId").change(function(){var D=A(this).val().split("|");var C=D[0];if(C==0){A("#rssAdBlock").hide();A("#adId option:gt(2)").remove();B()}else{A.getJSON("/rssList.php?isAjax=1&action=getAdOptions",{parentCategoryId:C},function(E){if(E.error&&E.error.length>0){A("#rssAdBlock:visible").slideUp("fast");alert(E.error)}else{A("#adId option:gt(2)").remove();if(E.ads.length){A.each(E.ads,function(){if(this.name&&this.name.length){A("<option/>").attr("value",this.id+"|"+this.url).text(this.name).appendTo("#adId")}});A("#adId").val(A("#adId option:first").attr("value")).trigger("change");if(A("#rssType").val()!="tours"){A("#rssAdBlock:hidden").slideDown("fast")}}else{A("#rssAdBlock:visible").slideUp("fast")}}B()})}});A("#adId").change(function(){B()});A("#rssResetParentCategoryFilter").click(function(){A("#parentCategoryId").val(A("#parentCategoryId option:first").attr("value")).trigger("change");return false});A("#rssResetPromotionPageFilter").click(function(){A("#adId").val(A("#adId option:first").attr("value")).trigger("change");return false});B(true)})})(jQuery)}window.calendar_months=Array();window.calendar_months.Jan="01";window.calendar_months.Feb="02";window.calendar_months.Mar="03";window.calendar_months.Apr="04";window.calendar_months.May="05";window.calendar_months.Jun="06";window.calendar_months.Jul="07";window.calendar_months.Aug="08";window.calendar_months.Sep="09";window.calendar_months.Oct="10";window.calendar_months.Nov="11";window.calendar_months.Dec="12";function AdTabCertificates_Init(){var B=!(navigator.userAgent.match(/iPad/i)!=null),C=600,A=500;if(B){(function(D){D("#promoPageCertificates a.iframe").fancybox({width:C,height:A,frameWidth:C,frameHeight:A})})(jQuery)}}if(!document.location.toString().match(/ad_newsletter/i)){jQuery(document).ready(function(){jQuery(".linktracker").bind("click",function(E){var D=jQuery(this);var A=D.attr("track");var B=D.attr("href");var C=D.attr("target");jQuery.get(A,function(){if(C=="_blank"||C=="_new"){return true}else{document.location=B;return false}});if(C=="_blank"||C=="_new"){return true}else{return false}})})};
