var olLoaded=0;var pmStart=10000000;var pmUpper=10001000;var pmCount=pmStart+1;var pmt="";var pms=new Array();var olInfo=new Info("4.21",1);var FREPLACE=0;var FBEFORE=1;var FAFTER=2;var FALTERNATE=3;var FCHAIN=4;var olHideForm=0;var olHautoFlag=0;var olVautoFlag=0;var hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array();registerCommands("donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass");if(typeof ol_fgcolor=="undefined"){var ol_fgcolor="#CCCCFF"}if(typeof ol_bgcolor=="undefined"){var ol_bgcolor="#333399"}if(typeof ol_textcolor=="undefined"){var ol_textcolor="#000000"}if(typeof ol_capcolor=="undefined"){var ol_capcolor="#FFFFFF"}if(typeof ol_closecolor=="undefined"){var ol_closecolor="#9999FF"}if(typeof ol_textfont=="undefined"){var ol_textfont="Verdana,Arial,Helvetica"}if(typeof ol_captionfont=="undefined"){var ol_captionfont="Verdana,Arial,Helvetica"}if(typeof ol_closefont=="undefined"){var ol_closefont="Verdana,Arial,Helvetica"}if(typeof ol_textsize=="undefined"){var ol_textsize="1"}if(typeof ol_captionsize=="undefined"){var ol_captionsize="1"}if(typeof ol_closesize=="undefined"){var ol_closesize="1"}if(typeof ol_width=="undefined"){var ol_width="200"}if(typeof ol_border=="undefined"){var ol_border="1"}if(typeof ol_cellpad=="undefined"){var ol_cellpad=2}if(typeof ol_offsetx=="undefined"){var ol_offsetx=10}if(typeof ol_offsety=="undefined"){var ol_offsety=10}if(typeof ol_text=="undefined"){var ol_text="Default Text"}if(typeof ol_cap=="undefined"){var ol_cap=""}if(typeof ol_sticky=="undefined"){var ol_sticky=0}if(typeof ol_background=="undefined"){var ol_background=""}if(typeof ol_close=="undefined"){var ol_close="Close"}if(typeof ol_hpos=="undefined"){var ol_hpos=RIGHT}if(typeof ol_status=="undefined"){var ol_status=""}if(typeof ol_autostatus=="undefined"){var ol_autostatus=0}if(typeof ol_height=="undefined"){var ol_height=-1}if(typeof ol_snapx=="undefined"){var ol_snapx=0}if(typeof ol_snapy=="undefined"){var ol_snapy=0}if(typeof ol_fixx=="undefined"){var ol_fixx=-1}if(typeof ol_fixy=="undefined"){var ol_fixy=-1}if(typeof ol_relx=="undefined"){var ol_relx=null}if(typeof ol_rely=="undefined"){var ol_rely=null}if(typeof ol_fgbackground=="undefined"){var ol_fgbackground=""}if(typeof ol_bgbackground=="undefined"){var ol_bgbackground=""}if(typeof ol_padxl=="undefined"){var ol_padxl=1}if(typeof ol_padxr=="undefined"){var ol_padxr=1}if(typeof ol_padyt=="undefined"){var ol_padyt=1}if(typeof ol_padyb=="undefined"){var ol_padyb=1}if(typeof ol_fullhtml=="undefined"){var ol_fullhtml=0}if(typeof ol_vpos=="undefined"){var ol_vpos=BELOW}if(typeof ol_aboveheight=="undefined"){var ol_aboveheight=0}if(typeof ol_capicon=="undefined"){var ol_capicon=""}if(typeof ol_frame=="undefined"){var ol_frame=self}if(typeof ol_timeout=="undefined"){var ol_timeout=0}if(typeof ol_function=="undefined"){var ol_function=null}if(typeof ol_delay=="undefined"){var ol_delay=0}if(typeof ol_hauto=="undefined"){var ol_hauto=0}if(typeof ol_vauto=="undefined"){var ol_vauto=0}if(typeof ol_closeclick=="undefined"){var ol_closeclick=0}if(typeof ol_wrap=="undefined"){var ol_wrap=0}if(typeof ol_followmouse=="undefined"){var ol_followmouse=1}if(typeof ol_mouseoff=="undefined"){var ol_mouseoff=0}if(typeof ol_closetitle=="undefined"){var ol_closetitle="Close"}if(typeof ol_compatmode=="undefined"){var ol_compatmode=0}if(typeof ol_css=="undefined"){var ol_css=CSSOFF}if(typeof ol_fgclass=="undefined"){var ol_fgclass=""}if(typeof ol_bgclass=="undefined"){var ol_bgclass=""}if(typeof ol_textfontclass=="undefined"){var ol_textfontclass=""}if(typeof ol_captionfontclass=="undefined"){var ol_captionfontclass=""}if(typeof ol_closefontclass=="undefined"){var ol_closefontclass=""}if(typeof ol_texts=="undefined"){var ol_texts=new Array("Text 0","Text 1")}if(typeof ol_caps=="undefined"){var ol_caps=new Array("Caption 0","Caption 1")}var o3_text="";var o3_cap="";var o3_sticky=0;var o3_background="";var o3_close="Close";var o3_hpos=RIGHT;var o3_offsetx=2;var o3_offsety=2;var o3_fgcolor="";var o3_bgcolor="";var o3_textcolor="";var o3_capcolor="";var o3_closecolor="";var o3_width=100;var o3_border=1;var o3_cellpad=2;var o3_status="";var o3_autostatus=0;var o3_height=-1;var o3_snapx=0;var o3_snapy=0;var o3_fixx=-1;var o3_fixy=-1;var o3_relx=null;var o3_rely=null;var o3_fgbackground="";var o3_bgbackground="";var o3_padxl=0;var o3_padxr=0;var o3_padyt=0;var o3_padyb=0;var o3_fullhtml=0;var o3_vpos=BELOW;var o3_aboveheight=0;var o3_capicon="";var o3_textfont="Verdana,Arial,Helvetica";var o3_captionfont="Verdana,Arial,Helvetica";var o3_closefont="Verdana,Arial,Helvetica";var o3_textsize="1";var o3_captionsize="1";var o3_closesize="1";var o3_frame=self;var o3_timeout=0;var o3_timerid=0;var o3_allowmove=0;var o3_function=null;var o3_delay=0;var o3_delayid=0;var o3_hauto=0;var o3_vauto=0;var o3_closeclick=0;var o3_wrap=0;var o3_followmouse=1;var o3_mouseoff=0;var o3_closetitle="";var o3_compatmode=0;var o3_css=CSSOFF;var o3_fgclass="";var o3_bgclass="";var o3_textfontclass="";var o3_captionfontclass="";var o3_closefontclass="";var o3_x=0;var o3_y=0;var o3_showingsticky=0;var o3_removecounter=0;var over=null;var fnRef,hoveringSwitch=false;var olHideDelay;var isMac=(navigator.userAgent.indexOf("Mac")!=-1);var olOp=(navigator.userAgent.toLowerCase().indexOf("opera")>-1&&document.createTextNode);var olNs4=(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4);var olNs6=(document.getElementById)?true:false;var olKq=(olNs6&&/konqueror/i.test(navigator.userAgent));var olIe4=(document.all)?true:false;var olIe5=false;var olIe55=false;var docRoot="document.body";if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight){location.reload()}}}if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6){olNs6=false}}}if(olNs6){olIe4=false}}if(document.compatMode&&document.compatMode=="CSS1Compat"){docRoot=((olIe4&&!olOp)?"document.documentElement":docRoot)}if(window.addEventListener){window.addEventListener("load",OLonLoad_handler,false)}else{if(window.attachEvent){window.attachEvent("onload",OLonLoad_handler)}}var capExtent;function overlib(){if(!olLoaded||isExclusive(overlib.arguments)){return true}if(olCheckMouseCapture){olMouseCapture()}if(over){over=(typeof over.id!="string")?o3_frame.document.all.overDiv:over;cClick()}olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass;setRunTimeVariables();fnRef="";o3_frame=ol_frame;if(!(over=createDivContainer())){return false}parseTokens("o3_",overlib.arguments);if(!postParseChecks()){return false}if(o3_delay==0){return runHook("olMain",FREPLACE)}else{o3_delayid=setTimeout("runHook('olMain', FREPLACE)",o3_delay);return false}}function nd(a){if(olLoaded&&!isExclusive()){hideDelay(a);if(o3_removecounter>=1){o3_showingsticky=0}if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0){runHook("hideObject",FREPLACE,over)}}else{o3_removecounter++}}return true}function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0}return false}function overlib_pagedefaults(){parseTokens("ol_",overlib_pagedefaults.arguments)}function olMain(){var b,a;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml){b=runHook("ol_content_background",FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml)}else{a=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass");if(o3_fgbackground!=""){o3_fgbackground='background="'+o3_fgbackground+'"'}if(o3_bgbackground!=""){o3_bgbackground=(a?'background="'+o3_bgbackground+'"':o3_bgbackground)}if(o3_fgcolor!=""){o3_fgcolor=(a?'bgcolor="'+o3_fgcolor+'"':o3_fgcolor)}if(o3_bgcolor!=""){o3_bgcolor=(a?'bgcolor="'+o3_bgcolor+'"':o3_bgcolor)}if(o3_height>0){o3_height=(a?'height="'+o3_height+'"':o3_height)}else{o3_height=""}if(o3_cap==""){b=runHook("ol_content_simple",FALTERNATE,o3_css,o3_text)}else{if(o3_sticky){b=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,o3_close)}else{b=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,"")}}}if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}o3_showingsticky=1;o3_removecounter=0}if(!runHook("createPopup",FREPLACE,b)){return false}if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1){o3_status=o3_cap}}o3_allowmove=0;if(o3_timeout>0){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",o3_timeout)}runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);return(olOp&&event&&event.type=="mouseover"&&!o3_status)?"":(o3_status!="")}function ol_content_simple(c){var b=/,/.test(o3_cellpad);var a='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_height)+'><tr><td><table width="100%" border="0" '+((olNs4||!b)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&b)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+c+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return a}function ol_content_caption(h,g,f){var e,b,d=/,/.test(o3_cellpad);var c,a;c="";a="onmouseover";if(o3_closeclick==1){a=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick"}if(o3_capicon!=""){e=' hspace = "5" align = "middle" alt = ""';if(typeof o3_dragimg!="undefined"&&o3_dragimg){e=' hspace="5" name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"'}o3_capicon='<img src="'+o3_capicon+'"'+e+" />"}if(f!=""){c="<td "+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+((o3_compatmode&&o3_closefontclass)?' class="'+o3_closefontclass+'" ':" ")+a+'="return '+fnRef+'cClick();">'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+f+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"</a></td>"}b='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_bgbackground+" "+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':">")+(o3_captionfontclass?"":"<b>"+wrapStr(0,o3_captionsize,"caption"))+o3_capicon+g+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"</b>")+"</td>"+c+'</tr></table><table width="100%" border="0" '+((olNs4||!d)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&d)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+h+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return b}function ol_content_background(c,b,a){if(a){txt=c}else{txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:"")+'">'+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+c+(o3_textfontclass?"":wrapStr(1,o3_textsize))+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>'}set_background(b);return txt}function set_background(a){if(a==""){if(olNs4){over.background.src=null}else{if(over.style){over.style.backgroundImage="none"}}}else{if(olNs4){over.background.src=a}else{if(over.style){over.style.width=o3_width+"px";over.style.backgroundImage="url("+a+")"}}}}var olShowId=-1;function disp(a){runHook("disp",FBEFORE);if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject', FREPLACE, over)",1):runHook("showObject",FREPLACE,over);o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1}runHook("disp",FAFTER);if(a!=""){self.status=a}}function createPopup(a){runHook("createPopup",FBEFORE);if(o3_wrap){var c,d,b=(olNs4?over:over.style);b.top=b.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);layerWrite(a);c=(olNs4?over.clip.width:over.offsetWidth);if(c>(d=windowWidth())){a=a.replace(/\&nbsp;/g," ");o3_width=d;o3_wrap=0}}layerWrite(a);if(o3_wrap){o3_width=(olNs4?over.clip.width:over.offsetWidth)}runHook("createPopup",FAFTER,a);return true}function placeLayer(){var placeX,placeY,widthFix=0;if(o3_frame.innerWidth){widthFix=18}iwidth=windowWidth();winoffset=(olIe4)?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;placeX=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,widthFix);if(o3_frame.innerHeight){iheight=o3_frame.innerHeight}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval("o3_frame."+docRoot+".clientHeight")){iheight=eval("o3_frame."+docRoot+".clientHeight")}}scrolloffset=(olIe4)?eval("o3_frame."+docRoot+".scrollTop"):o3_frame.pageYOffset;placeY=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,placeX,placeY)}function olMouseMove(e){var e=(e)?e:event;if(e.pageX){o3_x=e.pageX;o3_y=e.pageY}else{if(e.clientX){o3_x=eval("e.clientX+o3_frame."+docRoot+".scrollLeft");o3_y=eval("e.clientY+o3_frame."+docRoot+".scrollTop")}}if(o3_allowmove==1){runHook("placeLayer",FREPLACE)}if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());hoveringSwitch=!hoveringSwitch}}function no_overlib(){return ver3fix}function olMouseCapture(){capExtent=document;var fN,str="",l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv){capExtent=window}f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+"(e); "}else{if(fN[1]=="anonymous"||fN[1]=="olMouseMove"||(wMv&&fN[1]=="onmousemove")){if(!olOp&&wMv){l=f.indexOf("{")+1;k=f.lastIndexOf("}");sS=f.substring(l,k);if((l=sS.indexOf("("))!=-1){sS=sS.substring(0,l).replace(/^\s+/,"").replace(/\s+$/,"");if(eval("typeof "+sS+" == 'undefined'")){window.onmousemove=null}else{str=sS+"(e);"}}}if(!str){olCheckMouseCapture=false;return}}else{if(fN[1]){str=fN[1]+"(e); "}else{l=f.indexOf("{")+1;k=f.lastIndexOf("}");str=f.substring(l,k)+"\n"}}}str+="olMouseMove(e); ";mseHandler=new Function("e",str)}capExtent.onmousemove=mseHandler;if(olNs4){capExtent.captureEvents(Event.MOUSEMOVE)}}function parseTokens(pf,ar){var v,i,mode=-1,par=(pf!="ol_");var fnMark=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(mode<0){if(typeof ar[i]=="number"&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=(par?1:0);i--}else{switch(pf){case"ol_":ol_text=ar[i].toString();break;default:o3_text=ar[i].toString()}}mode=0}else{if(ar[i]>=pmCount||ar[i]==DONOTHING){continue}if(ar[i]==INARRAY){fnMark=0;eval(pf+"text=ol_texts["+ar[++i]+"].toString()");continue}if(ar[i]==CAPARRAY){eval(pf+"cap=ol_caps["+ar[++i]+"].toString()");continue}if(ar[i]==STICKY){if(pf!="ol_"){eval(pf+"sticky=1")}continue}if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue}if(ar[i]==NOCLOSE){if(pf!="ol_"){opt_NOCLOSE()}continue}if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+"hpos="+ar[i]);if(pf!="ol_"){olHautoFlag=1}continue}if(ar[i]==OFFSETX){eval(pf+"offsetx="+ar[++i]);continue}if(ar[i]==OFFSETY){eval(pf+"offsety="+ar[++i]);continue}if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[++i]+'"');continue}if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue}if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue}if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue}if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue}if(ar[i]==WIDTH){eval(pf+"width="+ar[++i]);continue}if(ar[i]==BORDER){eval(pf+"border="+ar[++i]);continue}if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,(pf+"cellpad"));continue}if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==AUTOSTATUS){eval(pf+"autostatus=("+pf+"autostatus == 1) ? 0 : 1");continue}if(ar[i]==AUTOSTATUSCAP){eval(pf+"autostatus=("+pf+"autostatus == 2) ? 0 : 2");continue}if(ar[i]==HEIGHT){eval(pf+"height="+pf+"aboveheight="+ar[++i]);continue}if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==SNAPX){eval(pf+"snapx="+ar[++i]);continue}if(ar[i]==SNAPY){eval(pf+"snapy="+ar[++i]);continue}if(ar[i]==FIXX){eval(pf+"fixx="+ar[++i]);continue}if(ar[i]==FIXY){eval(pf+"fixy="+ar[++i]);continue}if(ar[i]==RELX){eval(pf+"relx="+ar[++i]);continue}if(ar[i]==RELY){eval(pf+"rely="+ar[++i]);continue}if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue}if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue}if(ar[i]==PADX){eval(pf+"padxl="+ar[++i]);eval(pf+"padxr="+ar[++i]);continue}if(ar[i]==PADY){eval(pf+"padyt="+ar[++i]);eval(pf+"padyb="+ar[++i]);continue}if(ar[i]==FULLHTML){if(pf!="ol_"){eval(pf+"fullhtml=1")}continue}if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+"vpos="+ar[i]);if(pf!="ol_"){olVautoFlag=1}continue}if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue}if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue}if(ar[i]==TIMEOUT){eval(pf+"timeout="+ar[++i]);continue}if(ar[i]==FUNCTION){if(pf=="ol_"){if(typeof ar[i+1]!="number"){v=ar[++i];ol_function=(typeof v=="function"?v:null)}}else{fnMark=0;v=null;if(typeof ar[i+1]!="number"){v=ar[++i]}opt_FUNCTION(v)}continue}if(ar[i]==DELAY){eval(pf+"delay="+ar[++i]);continue}if(ar[i]==HAUTO){eval(pf+"hauto=("+pf+"hauto == 0) ? 1 : 0");continue}if(ar[i]==VAUTO){eval(pf+"vauto=("+pf+"vauto == 0) ? 1 : 0");continue}if(ar[i]==CLOSECLICK){eval(pf+"closeclick=("+pf+"closeclick == 0) ? 1 : 0");continue}if(ar[i]==WRAP){eval(pf+"wrap=("+pf+"wrap == 0) ? 1 : 0");continue}if(ar[i]==FOLLOWMOUSE){eval(pf+"followmouse=("+pf+"followmouse == 1) ? 0 : 1");continue}if(ar[i]==MOUSEOFF){eval(pf+"mouseoff=("+pf+"mouseoff==0) ? 1 : 0");v=ar[i+1];if(pf!="ol_"&&eval(pf+"mouseoff")&&typeof v=="number"&&(v<pmStart||v>pmUpper)){olHideDelay=ar[++i]}continue}if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+"css="+ar[i]);continue}if(ar[i]==COMPATMODE){eval(pf+"compatmode=("+pf+"compatmode==0) ? 1 : 0");continue}if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue}if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue}if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue}i=parseCmdLine(pf,i,ar)}}if(fnMark&&o3_function){o3_text=o3_function()}if((pf=="o3_")&&o3_wrap){o3_width=0;var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text)){o3_text=o3_text.replace(/[ ]+/g,"&nbsp;")}if(!tReg.test(o3_cap)){o3_cap=o3_cap.replace(/[ ]+/g,"&nbsp;")}}if((pf=="o3_")&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame)){o3_close=ol_close}if(o3_mouseoff&&(o3_frame==ol_frame)){opt_NOCLOSE(" ")}}}function layerWrite(a){a+="\n";if(olNs4){var b=o3_frame.document.layers.overDiv.document;b.write(a);b.close()}else{if(typeof over.innerHTML!="undefined"){if(olIe5&&isMac){over.innerHTML=""}over.innerHTML=a}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(a);while(over.hasChildNodes()){over.removeChild(over.lastChild)}over.appendChild(domfrag)}}}function showObject(b){runHook("showObject",FBEFORE);var a=(olNs4?b:b.style);a.visibility="visible";runHook("showObject",FAFTER)}function hideObject(b){runHook("hideObject",FBEFORE);var a=(olNs4?b:b.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0}a.visibility="hidden";a.top=a.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);if(o3_timerid>0){clearTimeout(o3_timerid)}if(o3_delayid>0){clearTimeout(o3_delayid)}o3_timerid=0;o3_delayid=0;self.status="";if(b.onmouseout||b.onmouseover){if(olNs4){b.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER)}b.onmouseout=b.onmouseover=null}runHook("hideObject",FAFTER)}function repositionTo(c,d,a){var b=(olNs4?c:c.style);b.left=d+(!olNs4?"px":0);b.top=a+(!olNs4?"px":0)}function cursorOff(){var d=parseInt(over.style.left);var c=parseInt(over.style.top);var b=d+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var a=c+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<d||o3_x>b||o3_y<c||o3_y>a){return true}return false}function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=="string"?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():"No Function"));return 0}function opt_NOCLOSE(a){if(!a){o3_close=""}if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}};over.onmouseout=function(b){if(olHideDelay){hideDelay(olHideDelay)}else{cClick(b)}}}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}}}return 0}function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str="";for(k=i;k<args.length;k++){if(typeof args[k]=="number"&&args[k]>pmStart){break}str+=args[k]+","}if(str){str=str.substring(0,--str.length)}k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(",")[0]:str;eval(parameter+'="'+pV+'"');return k}function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g," ");o3_cap=o3_cap.replace(/\&nbsp;/g," ")}}function escSglQuote(a){return a.toString().replace(/'/g,"\\'")}function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;if(!olLoaded){olLoaded=1}if(window.removeEventListener&&e.eventPhase==3){window.removeEventListener("load",OLonLoad_handler,false)}else{if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute("onload");if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i])){continue}while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn)){eval(fn)}}}}}}}}function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=((whichString=="close")?1:0),hasDims=/[%\-a-z]+$/.test(fontSizeStr);fontSizeStr=(olNs4)?(!hasDims?fontSizeStr:"1"):fontSizeStr;if(endWrap){return(hasDims&&!olNs4)?(isClose?"</span>":"</div>"):"</font>"}else{fontStr="o3_"+whichString+"font";fontColor="o3_"+((whichString=="caption")?"cap":whichString)+"color";return(hasDims&&!olNs4)?(isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">'):'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?"7":fontSizeStr)+'">'}}function quoteMultiNameFonts(d){var a,b=d.split(",");for(var c=0;c<b.length;c++){a=b[c];a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(/\s/.test(a)&&!/['"]/.test(a)){a="'"+a+"'";b[c]=a}}return b.join()}function isExclusive(a){return false}function setCellPadStr(h){var e="",b=0,d=new Array(),g,a,f,c;e+="padding: ";d=h.replace(/\s+/g,"").split(",");switch(d.length){case 2:g=a=d[b];f=c=d[++b];break;case 3:g=d[b];f=c=d[++b];a=d[++b];break;case 4:g=d[b];c=d[++b];a=d[++b];f=d[++b];break}e+=((d.length==1)?d[0]+"px;":g+"px "+c+"px "+a+"px "+f+"px;");return e}function hideDelay(a){if(a&&!o3_delay){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",(o3_timeout=a))}}function horizontalPlacement(g,h,d){var f,b=g,c=h;var a=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null){f=(o3_relx!=null?(o3_relx<0?c+o3_relx+b-a-d:c+o3_relx):o3_fixx)}else{if(o3_hauto==1){if((o3_x-c)>(b/2)){o3_hpos=LEFT}else{o3_hpos=RIGHT}}if(o3_hpos==CENTER){f=o3_x+o3_offsetx-(a/2);if(f<c){f=c}}if(o3_hpos==RIGHT){f=o3_x+o3_offsetx;if((f+a)>(c+b-d)){f=b+c-a-d;if(f<0){f=0}}}if(o3_hpos==LEFT){f=o3_x-o3_offsetx-a;if(f<c){f=c}}if(o3_snapx>1){var e=f%o3_snapx;if(o3_hpos==LEFT){f=f-(o3_snapx+e)}else{f=f+(o3_snapx-e)}if(f<c){f=c}}}return f}function verticalPlacement(b,a){var f,g=b,c=a;var e=(o3_aboveheight?parseInt(o3_aboveheight):(olNs4?over.clip.height:over.offsetHeight));if(o3_fixy>-1||o3_rely!=null){f=(o3_rely!=null?(o3_rely<0?c+o3_rely+g-e:c+o3_rely):o3_fixy)}else{if(o3_vauto==1){if((o3_y-c)>(g/2)&&o3_vpos==BELOW&&(o3_y+e+o3_offsety-(c+g)>0)){o3_vpos=ABOVE}else{if(o3_vpos==ABOVE&&(o3_y-(e+o3_offsety)-c<0)){o3_vpos=BELOW}}}if(o3_vpos==ABOVE){if(o3_aboveheight==0){o3_aboveheight=e}f=o3_y-(o3_aboveheight+o3_offsety);if(f<c){f=c}}else{f=o3_y+o3_offsety}if(o3_snapy>1){var d=f%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE){f=f-(o3_snapy+d)}else{f=f+(o3_snapy-d)}if(f<c){f=c}}}return f}function checkPositionFlags(){if(olHautoFlag){olHautoFlag=o3_hauto=0}if(olVautoFlag){olVautoFlag=o3_vauto=0}return true}function windowWidth(){var w;if(o3_frame.innerWidth){w=o3_frame.innerWidth}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval("o3_frame."+docRoot+".clientWidth")){w=eval("o3_frame."+docRoot+".clientWidth")}}return w}function createDivContainer(f,d,c){f=(f||"overDiv"),d=(d||o3_frame),c=(c||1000);var e,b=layerReference(f);if(b==null){if(olNs4){b=d.document.layers[f]=new Layer(window.innerWidth,d);e=b}else{var a=(olIe4?d.document.all.tags("BODY")[0]:d.document.getElementsByTagName("BODY")[0]);if(olIe4&&!document.getElementById){a.insertAdjacentHTML("beforeEnd",'<div id="'+f+'"></div>');b=layerReference(f)}else{b=d.document.createElement("DIV");b.id=f;a.appendChild(b)}e=b.style}e.position="absolute";e.visibility="hidden";e.zIndex=c;if(olIe4&&!olOp){e.left=e.top="0px"}else{e.left=e.top=-10000+(!olNs4?"px":0)}}return b}function layerReference(a){return(olNs4?o3_frame.document.layers[a]:(document.all?o3_frame.document.all[a]:o3_frame.document.getElementById(a)))}function isFunction(c){var b=true;if(typeof c=="object"){for(var a=0;a<c.length;a++){if(typeof c[a]=="function"){continue}b=false;break}}else{if(typeof c!="function"){b=false}}return b}function argToString(g,b,f){var e=b,a="",d=g;f=(f?f:"ar");if(d.length>e){for(var c=e;c<d.length;c++){a+=f+"["+c+"], "}a=a.substring(0,a.length-2)}return a}function reOrder(b,g,a){var c=new Array(),e,f,d;if(!a||typeof a=="undefined"||typeof a=="number"){return b}if(typeof a=="function"){if(typeof g=="object"){c=c.concat(g)}else{c[c.length++]=g}for(f=0;f<b.length;f++){e=false;if(typeof g=="function"&&b[f]==g){continue}else{for(d=0;d<g.length;d++){if(b[f]==g[d]){e=true;break}}}if(!e){c[c.length++]=b[f]}}c[c.length++]=a}else{if(typeof a=="object"){if(typeof g=="object"){c=c.concat(g)}else{c[c.length++]=g}for(d=0;d<b.length;d++){e=false;if(typeof g=="function"&&b[d]==g){continue}else{for(f=0;f<g.length;f++){if(b[d]==g[f]){e=true;break}}}if(!e){c[c.length++]=b[d]}}for(f=0;f<c.length;f++){b[f]=c[f]}c.length=0;for(d=0;d<b.length;d++){e=false;for(f=0;f<a.length;f++){if(b[d]==a[f]){e=true;break}}if(!e){c[c.length++]=b[d]}}c=c.concat(a)}}b=c;return b}function setRunTimeVariables(){if(typeof runTime!="undefined"&&runTime.length){for(var a=0;a<runTime.length;a++){runTime[a]()}}}function parseCmdLine(a,e,d){if(typeof cmdLine!="undefined"&&cmdLine.length){for(var b=0;b<cmdLine.length;b++){var c=cmdLine[b](a,e,d);if(c>-1){e=c;break}}}return e}function postParseChecks(a,c){if(typeof postParse!="undefined"&&postParse.length){for(var b=0;b<postParse.length;b++){if(postParse[b](a,c)){continue}return false}}return true}function registerCommands(cmdStr){if(typeof cmdStr!="string"){return}var pM=cmdStr.split(",");pms=pms.concat(pM);for(var i=0;i<pM.length;i++){eval(pM[i].toUpperCase()+"="+pmCount++)}}function registerNoParameterCommands(a){if(!a&&typeof a!="string"){return}pmt=(!pmt)?a:pmt+","+a}function registerHook(f,e,d,b){var a,c=typeof b;if(f=="plgIn"||f=="postParse"){return}if(typeof hookPts[f]=="undefined"){hookPts[f]=new FunctionReference()}a=hookPts[f];if(d!=null){if(d==FREPLACE){a.ovload=e;if(f.indexOf("ol_content_")>-1){a.alt[pms[CSSOFF-1-pmStart]]=e}}else{if(d==FBEFORE||d==FAFTER){var a=(d==1?a.before:a.after);if(typeof e=="object"){a=a.concat(e)}else{a[a.length++]=e}if(b){a=reOrder(a,e,b)}}else{if(d==FALTERNATE){if(c=="number"){a.alt[pms[b-1-pmStart]]=e}}else{if(d==FCHAIN){a=a.chain;if(typeof e=="object"){a=a.concat(e)}else{a[a.length++]=e}}}}}return}}function registerRunTimeFunction(a){if(isFunction(a)){if(typeof a=="object"){runTime=runTime.concat(a)}else{runTime[runTime.length++]=a}}}function registerCmdLineFunction(a){if(isFunction(a)){if(typeof a=="object"){cmdLine=cmdLine.concat(a)}else{cmdLine[cmdLine.length++]=a}}}function registerPostParseFunction(a){if(isFunction(a)){if(typeof a=="object"){postParse=postParse.concat(a)}else{postParse[postParse.length++]=a}}}function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;if(hookType==FREPLACE){arS=argToString(ar,2);if(typeof l=="undefined"||!(l=l.ovload)){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!="undefined"){l=(hookType==1?l.before:l.after);if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++){eval("l[k]("+arS+")")}}}}else{if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,3);if(typeof l=="undefined"||(l=l.alt[pms[optPm-1-pmStart]])=="undefined"){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;for(k=l.length;k>0;k--){if((rtnVal=eval("l[k-1]("+arS+")"))!=void (0)){break}}}}}}return rtnVal}function FunctionReference(){this.ovload=null;this.before=new Array();this.after=new Array();this.alt=new Array();this.chain=new Array()}function Info(a,b){this.version=a;this.prerelease=b;this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major*10;this.revision=parseInt(this.simpleversion)-this.major*100-this.minor*10;this.meets=meets}function meets(a){return(!a)?false:this.simpleversion>=Math.round(100*parseFloat(a))}registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq){olLoaded=1}registerNoParameterCommands("sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode");var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture()}else{overlib=no_overlib;nd=no_overlib;ver3fix=true}var current_resort=-1;var symbols="";var CROSSHAIR_GAP=5;var default_map_width=603;var default_map_height=410;var PLACES_X=2;var PLACES_Y=3;var icons_dir="/pa/fcmaps/images/";function imgLoadError(a){alert("For some reason, image "+this.src+" could not be loaded. This might be a temporary\n connection problem - try clicking Refresh button. If this message reoccurs, please contact us.")}function scriptLoadError(a){alert("For some reason, script "+this.src+" could not be loaded. This might be a temporary\n connection problem - try clicking Refresh button. If this message reoccurs, please contact us.")}var ScriptLoader={loaded:0,scripts:[],add:function(a){this.scripts[this.scripts.length]=a},load:function(){var a;var c=document.getElementsByTagName("head")[0];for(var b=0;b<this.scripts.length;b++){a=document.createElement("script");if(a.attachEvent){a.attachEvent("onreadystatechange",ScriptLoader.onScriptLoaded)}else{if(a.addEventListener){a.addEventListener("load",ScriptLoader.onScriptLoaded,false)}else{return false}}a.type="text/javascript";a.src=this.scripts[b];a.defer=false;c.appendChild(a)}},onScriptLoaded:function(b){b=b||window.event;var a=b.target||b.srcElement;var c=true;if(typeof a.readyState!="undefined"){c=(a.readyState=="complete"||a.readyState=="loaded")}if(c){ScriptLoader.loaded++;if(ScriptLoader.loaded==ScriptLoader.scripts.length){ScriptLoader.onLoadComplete()}}},onLoadComplete:function(){}};var ImageLoader={loaded:0,images:[],image_objects:new Object(),add:function(a){this.images[this.images.length]=a},load:function(){var b;for(var a=0;a<this.images.length;a++){b=document.createElement("img");b.onload=ImageLoader.onImageLoaded;b.onerror=ImageLoader.onImageLoaded;b.onabort=ImageLoader.onImageLoaded;this.image_objects[this.images[a]]=b;this.image_objects[this.images[a]].src=this.images[a]}},onImageLoaded:function(a){ImageLoader.loaded++;if(ImageLoader.loaded==ImageLoader.images.length){ImageLoader.onLoadComplete()}},onLoadComplete:function(){}};function setMouseOver(b){if(symbols=="livecams"){var c=places_multi[b.id][1]+'<br/><img class="maptipimg" src="http://img.snow-forecast.com/webcams/t_'+places_multi[b.id][0]+'.jpg" />';var a="img-map-tip"}else{if(symbols=="mountain"){var c=places_multi[b.id][1]+" ("+places_multi[b.id][5]+")";var a="map-tip"}else{var c=places_multi[b.id][1];var a="map-tip"}}$(b).wTooltip({content:c,className:a,style:false})}function mouseClick(){if(symbols=="livecams"){top.location="http://www.snow-forecast.com/resorts/"+places_multi[this.id][0]+"/webcams/latest"}else{if(symbols=="liveswell"){top.location="http://www.surf-forecast.com/buoys/"+places_multi[this.id][0]+"/by_filename"}else{if((symbols!="liveweather")&&(symbols!="livewind")&&(symbols!="livetemp")){switch(places_multi[this.id][4]){case 1:top.location="http://www.snow-forecast.com/resorts/"+places_multi[this.id][0];break;case 2:top.location="http://www.surf-forecast.com/breaks/"+places_multi[this.id][0];break;case 3:top.location="http://www.weather-forecast.com/locations/"+places_multi[this.id][0];break;case 4:top.location="http://www.tide-forecast.com/locations/"+places_multi[this.id][0]+"/tides/latest";break;case 5:top.location="http://www.mountain-forecast.com/peaks/"+places_multi[this.id][0];break}}}}}function getSymbolOffset(){if(symbols=="liveweather"){return 14}else{if(symbols=="liveswell"){return 13}else{if(symbols=="livewind"){return 18}else{if(symbols=="livetemp"){return 18}else{if(symbols=="livecams"){return 10}else{return 3}}}}}}function getSymbolSize(){if(symbols=="liveweather"){return 28}else{if(symbols=="liveswell"){return 27}else{if(symbols=="livewind"){return 36}else{if(symbols=="livetemp"){return 36}else{if(symbols=="livecams"){return 20}else{return 7}}}}}}function highlightResort(d){var b=getSymbolOffset();var h=document.getElementById("mapimg");var g=h.width?parseInt(h.width):default_map_width;var k=h.height?parseInt(h.height):default_map_height;var i=document.getElementById("crossL");var a=Math.round(places_multi[d][PLACES_X])-b-CROSSHAIR_GAP;if(a>0){i.style.width=a+"px";i.style.top=(Math.round(places_multi[d][PLACES_Y]))+"px";i.style.display="block"}else{i.style.display="none"}var e=document.getElementById("crossR");a=g-Math.round(places_multi[d][PLACES_X])-b-CROSSHAIR_GAP;if(a>0){e.style.width=a+"px";e.style.top=(Math.round(places_multi[d][PLACES_Y]))+"px";e.style.display="block"}else{setTimeout("highlightResort("+d+")",250);e.style.display="none"}var f=document.getElementById("crossU");var j=Math.round(places_multi[d][PLACES_Y])-b-CROSSHAIR_GAP;if(j>0){f.style.height=j+"px";f.style.left=(Math.round(places_multi[d][PLACES_X]))+"px";f.style.display="block"}else{f.style.display="none"}var c=document.getElementById("crossD");var j=k-Math.round(places_multi[d][PLACES_Y])-b-CROSSHAIR_GAP;if(j>0){c.style.height=j+"px";c.style.left=(Math.round(places_multi[d][PLACES_X]))+"px";c.style.display="block"}else{c.style.display="none"}current_resort=d}function cleanResortsSelect(d){var a=document.getElementById("filtered_resorts");for(var c=a.options.length-1;c>=0;c--){a.options[c]=null}if(d){var b=new Option("------------",c);a.options[0]=b}}function findActiveResort(){for(var a=0;a<places_multi.length;a++){place_arr=places_multi[a];if(params.highlight==place_arr[0]){return a}}return -1}function setResortSelect(c){var b=document.getElementById("filtered_resorts");for(var a=0;a<b.options.length;a++){if(b.options[a].value==c){b.options[a].selected=true;break}}}function showPlaces(a){symbols=a;if(a=="none"){cleanResortsSelect(true);return}else{ScriptLoader.loaded=0;ScriptLoader.scripts=[];ScriptLoader.add(getSymbolsFileName(a));ScriptLoader.onLoadComplete=function(){checkShowPlaces(false)};ScriptLoader.load()}}function checkShowPlaces(o){var q;var g=document.getElementById("mapcontainer");var h=document.createElement("div");var l;var d=document.getElementById("filtered_resorts");if(typeof places_multi!="undefined"){if(params.highlight){var n=findActiveResort();if((n==-1)&&(params.x)){if((symbols=="liveweather")||(symbols=="livetemp")||(symbols=="livewind")){places_multi[places_multi.length]=new Array(params.highlight,params.name,params.x,params.y)}else{places_multi[places_multi.length]=new Array(params.highlight,params.name,params.x,params.y,1)}n=places_multi.length-1}}if((n==-1)||(typeof n=="undefined")){n=0}if(places_multi.length){cleanResortsSelect(false)}else{cleanResortsSelect(true)}var c=getSymbolOffset();var m=c;var j=getSymbolSize();var p=j;if(!o){var k=new Object();var a;ImageLoader.loaded=0;ImageLoader.images=[];ImageLoader.image_objects=new Object();ImageLoader.onLoadComplete=function(){checkShowPlaces(true)};var f=0;for(var e=0;e<places_multi.length;e++){q=places_multi[e];if(symbols=="liveweather"){if(q[4]){a=icons_dir+"smallweathericons/"+q[4]}else{a=icons_dir+"smallweathericons/daynoweather.gif"}}else{if(symbols=="liveswell"){a="/smallswellicons/small"+convert_swell_icon(q[4],units)}else{if(symbols=="livewind"){if(q[5]){a=icons_dir+"smallwindicons/"+convert_wind_icon(q[5],units)}else{a=icons_dir+"smallweathericons/daynoweather.gif"}}else{if(symbols=="livetemp"){if(q[14]){a=icons_dir+"smalltempicons/"+units+"."+Math.round(parseFloat(q[14]))+".gif"}else{a=icons_dir+"smallweathericons/daynoweather.gif"}}else{if(symbols=="livecams"){a="/pa/fcmaps/images/Camera.gif"}else{switch(q[4]){case 1:a="/pa/fcmaps/images/red.gif";break;case 2:a="/pa/fcmaps/images/blue.gif";break;case 3:a="/pa/fcmaps/images/city.gif";break;case 4:a="/pa/fcmaps/images/darkblue.gif";break;case 5:a="/pa/fcmaps/images/mountain.gif";break}}}}}}if(!k[a]){k[a]=true;ImageLoader.add(a);f++}}ImageLoader.load()}else{for(var e=0;e<places_multi.length;e++){q=places_multi[e];var b=new Option(q[1],e);d.options[e]=b;if(symbols=="liveweather"){if(q[4]){a=icons_dir+"smallweathericons/"+q[4]}else{a=icons_dir+"smallweathericons/daynoweather.gif"}}else{if(symbols=="liveswell"){a="/smallswellicons/small"+convert_swell_icon(q[4],units)}else{if(symbols=="livewind"){if(q[5]){a=icons_dir+"smallwindicons/"+convert_wind_icon(q[5],units)}else{a=icons_dir+"smallweathericons/daynoweather.gif"}}else{if(symbols=="livetemp"){if(q[14]){a=icons_dir+"smalltempicons/"+units+"."+Math.round(parseFloat(q[14]))+".gif"}else{a=icons_dir+"smallweathericons/daynoweather.gif"}}else{if(symbols=="livecams"){a="/pa/fcmaps/images/Camera.gif"}else{switch(q[4]){case 1:a="/pa/fcmaps/images/red.gif";break;case 2:a="/pa/fcmaps/images/blue.gif";break;case 3:a="/pa/fcmaps/images/city.gif";break;case 4:a="/pa/fcmaps/images/darkblue.gif";break;case 5:a="/pa/fcmaps/images/mountain.gif";break}}}}}}l=ImageLoader.image_objects[a].cloneNode(false);l.width=j;l.height=p;l.id=e;setMouseOver(l);if(!noClick){l.onclick=mouseClick;l.style.cursor="pointer"}l.style.position="absolute";l.style.left=q[2]-c+"px";l.style.top=q[3]-m+"px";l.style.zIndex=2;g.appendChild(l)}if(places_multi.length){highlightResort(n)}if(params.highlight){setResortSelect(n)}}}return}function switchSymbols(a){var c=document.getElementById("mapcontainer");var b=0;while(img_obj=document.getElementById(b++)){c.removeChild(img_obj)}showPlaces(a)}function convert_wind_icon(b,a){if(a=="metric"){return b}else{var c=/(wind[A-Z]+)(\d+)metric\.gif/;result=c.exec(b);if(result!=null){val=parseFloat(result[2]);tmp=Math.round(val*0.6214/5)*5;return result[1]+tmp+"imperial.gif"}else{return b}}}function convert_swell_icon(b,a){if(a=="metric"){return b}else{var c=/(swell\.[A-Z-]+)\.(\d+)\.metric\.([\d-]+)\.gif/;result=c.exec(b);if(result!=null){val=parseFloat(result[2]);tmp=Math.round(val*3.281/5)*5;return result[1]+"."+tmp+".imperial."+result[3]+".gif"}else{return b}}}var old_scale="";var overlay="";var anim_delay=1000;var anim_frames_preloaded=0;var max_guest_hours=168;var max_guest_frame=13;var not_affect_slider=false;var anim_running=false;var over_filename_full="";var base_img_array=new Array(anim_frames);var base_img_loaded=new Array(anim_frames);var over_img_array=new Array(anim_frames);var over_img_loaded=new Array(anim_frames);var img_div_red=document.createElement("img");var img_div_blue=document.createElement("img");var img_div_blink=document.createElement("img");var img_div_city=document.createElement("img");var img_div_darkblue=document.createElement("img");var img_div_progress=document.createElement("img");var img_div_progressblank=document.createElement("img");var AC_DENIED=0;var AC_ALLOWED_STATIC=1;var AC_ALLOWED_GUESTS=2;var AC_ALLOWED_MEMBERS=3;var scale_dir="/pa/fcmaps/images/scales/";function frame_by_interval(b){var a=parseInt(b);if(!a){return null}else{return a/12-1}}function url_prefix_by_interval(a){var b=frame_by_interval(a);if(!b&&(b!=0)){return""}return map_hosts[b%map_hosts.length]}function disable_animation(){$("#anim_control").hide();document.getElementById("interval_select").disabled=true;document.getElementById("anim_btn").disabled=true}function enable_animation(){$("#anim_control").show();document.getElementById("interval_select").disabled=false;document.getElementById("anim_btn").disabled=false}function getSymbolsFileName(a){var b=a;if((symbols=="livewind")||(symbols=="livetemp")){b="liveweather"}return map_hosts[0]+symbol_path+main_filename+"."+b+".js"}function usualOverlay(b,a){if(!a){document.getElementById("over_"+b).checked=true;if(b!="none"){switchOverlay(b)}else{switchOverlay("")}}}function changeMapType(d,c){var f;var a;var b;var e=document.getElementById("interval_select").value;var d=document.getElementById("type_select").value;var g;if(parseInt(e)){e=parseInt(e)}else{e=12}switch(d){case"prec":g=scale_dir+"rainandsnowscale."+units+".gif";usualOverlay("pressure",c);break;case"snow":g=scale_dir+"rainandsnowscale."+units+".gif";usualOverlay("fl",c);break;case"wind":g=scale_dir+"windscale."+units+".gif";usualOverlay("arrows",c);break;case"lapse":g=scale_dir+"tempscale."+units+".gif";usualOverlay("fl",c);break;case"cloud":g="";usualOverlay("pressure",c);break;case"swell1":g=scale_dir+"htsgwscale."+units+".gif";usualOverlay("none",c);break;case"swell2":g=scale_dir+"htsgwscale."+units+".gif";usualOverlay("none",c);break;case"swell1energy":g=scale_dir+"waveenergyscale.gif";usualOverlay("none",c);break;case"swell2energy":g=scale_dir+"waveenergyscale.gif";usualOverlay("none",c);break;case"wwv":g=scale_dir+"htsgwscale."+units+".gif";usualOverlay("none",c);break;case"wwvenergy":g=scale_dir+"waveenergyscale.gif";usualOverlay("none",c);break;case"htsgw":g=scale_dir+"htsgwscale."+units+".gif";usualOverlay("none",c);break;case"maxenergy":g=scale_dir+"waveenergyscale.gif";usualOverlay("none",c);break;case"snow.last7days":g=scale_dir+"snowscalesum."+units+".gif";usualOverlay("none",c);break;case"snow.last3days":g=scale_dir+"snowscalesum."+units+".gif";usualOverlay("none",c);break;case"snow.next3days":g=scale_dir+"rainandsnowscalesum."+units+".gif";usualOverlay("none",c);break;case"snow.next3to6days":g=scale_dir+"rainandsnowscalesum."+units+".gif";usualOverlay("none",c);break;case"snow.next6to9days":g=scale_dir+"rainandsnowscalesum."+units+".gif";usualOverlay("none",c);break;case"nav":g="";break;case"navbw":g="";break;case"bw":g="";break;case"coastline":g="";break;case"fresh":g=scale_dir+"rainandsnowscale."+units+".gif";usualOverlay("none",c);break;case"upper":case"lower":case"highresorts":case"lowresorts":g=scale_dir+"rainandsnowscalesum."+units+".gif";usualOverlay("none",c);break;case"temperature":g=scale_dir+"tempscale."+units+".gif";usualOverlay("fl",c);break;case"snow_age":g=scale_dir+"snow_age.gif";usualOverlay("none",c);break;case"test":g="";usualOverlay("none",c);break;default:g="";break}updateScale(g);switch(d){case"snow":case"wind":case"lapse":case"cloud":case"prec":case"htsgw":case"maxenergy":case"swell1":case"swell2":case"swell1energy":case"swell2energy":case"wwv":case"wwvenergy":case"test":f=map_path+main_filename+"."+d+"."+e;a="jpg";enable_animation();break;case"snow.last7days":case"snow.last3days":case"snow.next3days":case"snow.next3to6days":case"snow.next6to9days":case"upper":case"lower":case"fresh":case"highresorts":case"lowresorts":case"temperature":case"snow_age":f=map_path+filename+"."+d;a="jpg";if(!overlay.length){disable_animation()}break;case"nav":f=map_path+filename;a="jpg";if(!overlay.length){disable_animation()}break;case"navbw":f=map_path+filename+".topo";a="jpg";if(!overlay.length){disable_animation()}break;case"bw":f=map_path+filename+".bw";a="jpg";if(!overlay.length){disable_animation()}break;case"coastline":f=map_path+filename+".coastline";a="gif";if(!overlay.length){disable_animation()}break;default:break}if(f){changeMap(f,a,d,e)}}function changeMapInterval(f,c){var e;var a;var b;var f=document.getElementById("interval_select").value;var d=document.getElementById("type_select").value;switch(f){default:if((b=parseInt(f))&&(d=="snow"||d=="prec"||d=="wind"||d=="lapse"||d=="cloud"||d=="htsgw"||d=="maxenergy"||d=="swell1"||d=="swell2"||d=="wwv"||d=="swell1energy"||d=="swell2energy"||d=="wwvenergy")){e=map_path+main_filename+"."+d+"."+b;a="jpg"}break}if(e||b){if(!not_affect_slider){slider.setValue(b/12-1)}interval_text="";if(!c){switchOverlay(overlay)}}if(e){changeMap(e,a,d,f)}}function checkBaseAccess(b,c){var a;if(!(a=parseInt(c))){a=12}switch(b){case"snow.last7days":case"snow.last3days":case"snow.next3days":case"snow.next3to6days":case"upper":case"lower":case"fresh":case"lowresorts":case"highresorts":case"temperature":case"snow_age":case"prec":case"htsgw":case"maxenergy":case"swell1":case"swell2":case"wwv":case"swell1energy":case"swell2energy":case"wwvenergy":case"test":return AC_ALLOWED_GUESTS;break;case"nav":case"navbw":case"bw":case"coastline":return AC_ALLOWED_STATIC;break;case"snow.next6to9days":if(members_code){return AC_ALLOWED_MEMBERS}else{return AC_DENIED}break;case"snow":case"wind":case"lapse":case"cloud":if(a<=max_guest_hours){return AC_ALLOWED_GUESTS}if(members_code){return AC_ALLOWED_MEMBERS}return AC_DENIED;break;default:alert("Unknown map type: "+b+". Please report this error.");return AC_ALLOWED_STATIC;break}}function checkOverlayAccess(b,c){if(!b){return AC_ALLOWED_STATIC}var a;if(!(a=parseInt(c))){a=12}if(a<=max_guest_hours){return AC_ALLOWED_GUESTS}if(members_code){return AC_ALLOWED_MEMBERS}else{return AC_DENIED}}function changeMap(h,b,e,g){var f=document.getElementById("mapimg");document.getElementById("loaderContainer").style.width=document.getElementById("mapcontainer").clientWidth+"px";var a=document.getElementById("mapcontainer").clientHeight;if(a<(default_map_height/2)){a=default_map_height}document.getElementById("loaderContainer").style.height=a+"px";var d=checkBaseAccess(e,g);switch(d){case AC_ALLOWED_STATIC:new_src=map_hosts[0]+h+"."+b;if(memb_only=document.getElementById("membersOnly")){memb_only.style.visibility="hidden"}break;case AC_ALLOWED_GUESTS:new_src=url_prefix_by_interval(g)+h+guests_code+"."+b;if(memb_only=document.getElementById("membersOnly")){memb_only.style.visibility="hidden"}break;case AC_ALLOWED_MEMBERS:new_src=url_prefix_by_interval(g)+h+members_code+"."+b;if(memb_only=document.getElementById("membersOnly")){memb_only.style.visibility="hidden"}break;case AC_DENIED:new_src=map_hosts[0]+map_path+filename+".topo.jpg";if(memb_only=document.getElementById("membersOnly")){memb_only.style.width=document.getElementById("mapcontainer").clientWidth+"px";memb_only.style.visibility="visible";memb_only.style.height=a+"px"}break}if(f.src.indexOf(new_src)!=-1){mapOnLoad()}else{f.src=new_src}if(!anim_running&&!f.complete){document.getElementById("loaderContainer").style.visibility="visible";document.getElementById("loaderTable").style.visibility="visible";document.getElementById("progressTable").style.visibility="hidden";f.onload=mapOnLoad;f.onerror=imgLoadError}for(var c=0;c<filenames.length;c++){if(map_path+filenames[c]==h+"."+b){break}}if(c<filenames.length){oldName=document.getElementById("name_span").innerHTML;document.getElementById("name_span").innerHTML=titles[c];if(!oldName){document.getElementById("name_div").style.display=""}}else{oldName=document.getElementById("name_span").innerHTML;document.getElementById("name_span").innerHTML="";if(oldName){document.getElementById("name_div").style.display="none"}}}function updateScale(b){var a;if(b!=old_scale){if(b.length){if(a=$("#scale")[0]){a.src=b;$(a).show()}}else{if(a=$("#scale")[0]){$(a).hide()}}old_scale=b}}function mapOnLoad(a){var b=document.getElementById("mapimg");b.onload=null;document.getElementById("loaderContainer").style.visibility="hidden";document.getElementById("loaderTable").style.visibility="hidden";document.getElementById("progressTable").style.visibility="hidden"}function switchOverlay(e){overlay=e;var a=e;var j=document.getElementById("type_select").value;switch(e){case"fl":a+="."+units;break}var b=document.getElementById("interval_select").value;var g=document.getElementById("img_over");var f=document.getElementById("mapimg");if(!b){b=12}a+="."+b;if(e.length&&(e!="none")){var c=checkOverlayAccess(e,b);switch(c){case AC_ALLOWED_STATIC:g.onload=onImgOverLoaded;g.onerror=imgLoadError;g.src=over_filename_full=map_hosts[0]+map_path+main_filename+"."+a+".gif";if(memb_only=document.getElementById("membersOnly")){memb_only.style.visibility="hidden"}break;case AC_ALLOWED_GUESTS:g.onload=onImgOverLoaded;g.onerror=imgLoadError;g.src=over_filename_full=url_prefix_by_interval(b)+map_path+main_filename+"."+a+guests_code+".gif";if(memb_only=document.getElementById("membersOnly")){memb_only.style.visibility="hidden"}break;case AC_ALLOWED_MEMBERS:g.onload=onImgOverLoaded;g.onerror=imgLoadError;g.src=over_filename_full=url_prefix_by_interval(b)+map_path+main_filename+"."+a+members_code+".gif";if(memb_only=document.getElementById("membersOnly")){memb_only.style.visibility="hidden"}break;case AC_DENIED:g.style.visibility="hidden";var h=document.getElementById("mapcontainer").clientHeight;if(h<(default_map_height/2)){h=default_map_height}if(memb_only=document.getElementById("membersOnly")){memb_only.style.width=document.getElementById("mapcontainer").clientWidth+"px";memb_only.style.height=h+"px";memb_only.style.visibility="visible"}f.src="/map/img/"+filename+".topo.jpg";break}}else{over_filename_full="";g.style.visibility="hidden";if(memb_only=document.getElementById("membersOnly")){memb_only.style.visibility="hidden"}}for(var d=0;d<filenames.length;d++){if(filenames[d]==main_filename+"."+a+".gif"){break}}if(d<filenames.length){oldName=document.getElementById("name_span").innerHTML;document.getElementById("name_span").innerHTML=titles[d];if(!oldName){document.getElementById("name_div").style.display=""}}else{if(isMapStatic1(j)){oldName=document.getElementById("name_span").innerHTML;document.getElementById("name_span").innerHTML="";if(oldName){document.getElementById("name_div").style.display=""}}}if(!overlay.length&&isMapStatic(j)){disable_animation()}else{if(!overlay.length&&((j=="snow.last7days")||(j=="snow.last3days")||(j=="snow.next3days")||(j=="snow.next3to6days")||(j=="snow.next6to9days"))){disable_animation()}else{if(!anim_running){enable_animation()}}}}function onImgOverLoaded(){this.style.visibility="visible"}function sliderOnChange(){var a=slider.getValue();if(!anim_running){not_affect_slider=true;setIntervalSelect(parseInt(a));changeMapInterval((a+1)*12);not_affect_slider=false}}function initOverlay(){var b=$("#map_form")[0].over;for(var a=0;a<b.length;a++){if(b[a].checked){switchOverlay(b[a].value)}}}function initSymbols(){var b=$("#map_form")[0].symbols;for(var a=0;a<b.length;a++){if(b[a].checked){switchSymbols(b[a].value)}}}function animate(){var a=document.getElementById("type_select").value;if(!overlay.length&&isMapStatic(a)){setMapTypeSelect(default_type_for_anim)}preloadAnim()}function preloadAnim(){var d=document.getElementById("type_select").value;var e=new Image();e.src="/pa/fcmaps/images/progress.gif";document.getElementById("loaderContainer").style.width=document.getElementById("mapcontainer").clientWidth+"px";document.getElementById("loaderContainer").style.height=document.getElementById("mapcontainer").clientHeight+"px";document.getElementById("loaderContainer").style.visibility="visible";document.getElementById("loaderTable").style.visibility="hidden";document.getElementById("progressTable").style.visibility="visible";document.getElementById("anim_btn").disabled=true;base_img_array=new Array(anim_frames);base_img_loaded=new Array(anim_frames);over_img_array=new Array(anim_frames);over_img_loaded=new Array(anim_frames);anim_frames_preloaded=0;var d=document.getElementById("type_select").value;for(var c=0;c<anim_frames;c++){if(!isMapStatic(d)){var e=new Image();if(c<=max_guest_frame){e.src=url_prefix_by_interval((c+1)*12)+map_path+main_filename+"."+d+"."+((c+1)*12)+guests_code+".jpg"}else{if(members_code){e.src=url_prefix_by_interval((c+1)*12)+map_path+main_filename+"."+d+"."+((c+1)*12)+members_code+".jpg"}else{e.src=map_hosts[0]+map_path+filename+".topo.jpg"}}base_img_array[c]=e;base_img_loaded[c]=false}var b=overlay;if(overlay.length&&overlay!="none"){var a=new Image();if(overlay=="fl"){b+="."+units}if(c<=max_guest_frame){a.src=url_prefix_by_interval((c+1)*12)+map_path+main_filename+"."+b+"."+((c+1)*12)+guests_code+".gif"}else{if(members_code){a.src=url_prefix_by_interval((c+1)*12)+map_path+main_filename+"."+b+"."+((c+1)*12)+members_code+".gif"}else{a.src="/map/img/"+filename+".topo.jpg"}}over_img_array[c]=a;over_img_loaded[c]=false}}document.getElementById("interval_select").disabled=true;document.getElementById("anim_btn").disabled=true;checkLoad()}function isMapStatic(a){if((a=="nav")||(a=="navbw")||(a=="bw")||(a=="coastline")||(a=="snow.last7days")||(a=="snow.last3days")||(a=="snow.next3days")||(a=="snow.next3to6days")||(a=="snow.next6to9days")){return true}else{return false}}function isMapStatic1(a){if((a=="nav")||(a=="navbw")||(a=="bw")||(a=="coastline")){return true}else{return false}}function checkLoad(){var c=document.getElementById("type_select").value;var a=document.getElementById("progressTable");if(anim_frames_preloaded==anim_frames*2){document.getElementById("loaderContainer").style.visibility="hidden";document.getElementById("loaderTable").style.visibility="hidden";document.getElementById("progressTable").style.visibility="hidden";for(var b=0;b<anim_frames*2;b++){a.rows[1].cells[b].className="progressBlank"}anim_running=true;animNext(0);return}for(b=0;b<anim_frames;b++){if((base_img_loaded[b]==false)&&base_img_array[b].complete){base_img_loaded[b]=true;if((!overlay.length||overlay=="none")||isMapStatic(c)){anim_frames_preloaded++;a.rows[1].cells[anim_frames_preloaded-1].className="progress"}anim_frames_preloaded++;a.rows[1].cells[anim_frames_preloaded-1].className="progress"}if((over_img_loaded[b]==false)&&over_img_array[b].complete){over_img_loaded[b]=true;if(isMapStatic(c)){anim_frames_preloaded++;a.rows[1].cells[anim_frames_preloaded-1].className="progress"}anim_frames_preloaded++;a.rows[1].cells[anim_frames_preloaded-1].className="progress"}}timerID=setTimeout("checkLoad()",200)}function setIntervalSelect(b){var c=document.getElementById("interval_select");for(var a=0;a<c.options.length;a++){if(c.options[a].value==(b+1)*12){c.options[a].selected=true;break}}}function setMapTypeSelect(c){var a=document.getElementById("type_select");for(var b=0;b<a.options.length;b++){if(a.options[b].value==c){a.options[b].selected=true;break}}}function animNext(a){if(a>base_img_array.length-1){setIntervalSelect(0);changeMapInterval(12);anim_running=false;enable_animation()}else{setIntervalSelect(a);changeMapInterval((a+1)*12);setTimeout("animNext("+(a+1)+")",anim_delay)}}function initMap(){var a,b;a=document.getElementById("type_select").value;b=document.getElementById("interval_select").value;map_img=document.getElementById("mapimg");loader_table=document.getElementById("loaderContainer");memb_only=document.getElementById("membersOnly");if(map_img.complete){loader_table.style.width=map_img.width+"px";loader_table.style.height=map_img.height+"px";if(memb_only){memb_only.style.width=map_img.width+"px";memb_only.style.height=map_img.height+"px"}}else{map_img.onload=function(){loader_table=document.getElementById("loaderContainer");memb_only=document.getElementById("membersOnly");loader_table.style.width=this.width+"px";loader_table.style.height=this.height+"px";if(memb_only){memb_only.style.width=this.width+"px";memb_only.style.height=this.height+"px"}};map_img.onerror=imgLoadError}changeMapType(a,true);changeMapInterval(b,true);initOverlay();slider.setValue(1);slider.setValue(0);slider.onchange=sliderOnChange;switchSymbols(document.getElementById("symbols_select").value)}function checkLoadPlaces(){if(img_div_progress.complete&&img_div_progressblank.complete){initMap();return}setTimeout("checkLoadPlaces()",100)}function initMap1(){type=typeof filenames;if(type=="undefined"){alert("Could not load the list of filenames. Try refreshing the page. If the error persists, please contact us.")}else{img_div_progressblank.src="/pa/fcmaps/images/progress-blank.gif";img_div_progress.src="/pa/fcmaps/images/progress.gif";checkLoadPlaces()}}function getWindowSize(){var b=0,a=0;if(typeof(window.innerWidth)=="number"){b=window.innerWidth;a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth;a=document.body.clientHeight}}}return[b,a]}function switchUnits(a){units=a;map_type=document.getElementById("type_select").value;changeMapType(map_type,true);switchSymbols(symbols);initOverlay()}function initialSwitch(){var a=document.getElementById("metricradio");if(a.checked&&(units=="imperial")){switchUnits("metric")}else{if(!a.checked&&(units!="imperial")){switchUnits("imperial")}}}(function(b){b.fn.wTooltip=function(A,a){A=b.extend({content:null,ajax:null,follow:true,auto:true,fadeIn:0,fadeOut:0,appendTip:document.body,degrade:false,offsetY:10,offsetX:1,style:{},className:null,id:null,callBefore:function(c,d,e){},callAfter:function(c,d,e){},clickAction:function(c,d){b(c).hide()},delay:0,timeout:0},A||{});if(!A.style&&typeof A.style!="object"){A.style={};A.style.zIndex="1000"}else{A.style=b.extend({border:"1px solid gray",background:"#edeef0",color:"#000",padding:"10px",zIndex:"1000",textAlign:"left"},A.style||{})}if(typeof a=="function"){A.callAfter=a||A.callAfter}A.style.display="none",A.style.position="absolute";var t,u,o,D,v={},E=true,B=false,p=false,F=document.createElement("div"),z=(typeof document.body.style.maxWidth=="undefined")?true:false,w=(typeof b.talk=="function"&&typeof b.listen=="function")?true:false;if(A.id){F.id=A.id}if(A.className){F.className=A.className}A.degrade=(A.degrade&&z)?true:false;for(var C in A.style){F.style[C]=A.style[C]}function x(c){if(c){if(A.degrade){b(F).html(A.content.replace(/<\/?[^>]+>/gi,""))}else{b(F).html(A.content)}}}if(A.ajax){b.get(A.ajax,function(c){if(c){A.content=c}x(A.content)})}function y(d){function c(f){if(t&&!A.content){t=null}}function e(){if(!B&&A.auto){clearInterval(D);if(A.fadeOut){b(F).fadeOut(A.fadeOut,function(){c(d)})}else{c(d);F.style.display="none"}}if(typeof A.callAfter=="function"){A.callAfter(F,d,A)}if(w){A=b.listen(A)}}if(A.timeout>0){o=setTimeout(function(){e()},A.timeout)}else{e()}}b(F).hover(function(){B=true},function(){B=false;y(v)});if(w){A.key=F;A.plugin="wTooltip";A.channel="wayfarer";b.talk(A)}x(A.content&&!A.ajax);b(F).appendTo(A.appendTip);return this.each(function(){b(this).hover(function(){var c=this;clearTimeout(o);if((this.title||this.titleMemKeep)&&!A.degrade&&!A.content){t=this.title||this.titleMemKeep;if(this.title){this.titleMemKeep=this.title;this.title=null}}if(A.content&&A.degrade){this.title=F.innerHTML}function d(){if(typeof A.callBefore=="function"){A.callBefore(F,c,A)}if(w){A=b.listen(A)}if(A.auto){var e;if(A.content){if(!A.degrade){e="block"}}else{if(t&&!A.degrade){b(F).html(unescape(t));e="block";t=null}else{e="none"}}if(e=="block"&&A.fadeIn){b(F).fadeIn(A.fadeIn)}else{F.style.display=e}}}if(A.delay>0){u=setTimeout(function(){d()},A.delay)}else{d()}},function(){clearTimeout(u);var c=this;E=true;if(!A.follow||p||(A.offsetX<0&&A.offsetY<0)){setTimeout(function(){D=setInterval(function(){y(c)},1)},1)}else{y(this)}});b(this).mousemove(function(i){v=this;if(A.follow||E){var f=b(window).scrollTop(),e=b(window).scrollLeft(),h=i.clientY+f+A.offsetY,k=i.clientX+e+A.offsetX,g=b(A.appendTip).outerHeight(),c=b(A.appendTip).innerHeight(),d=b(window).width()+e-b(F).outerWidth(),j=b(window).height()+f-b(F).outerHeight();h=(g>c)?h-(g-c):h;p=(h>j||k>d)?true:false;if(k-e<=0&&A.offsetX<0){k=e}else{if(k>d){k=d}}if(h-f<=0&&A.offsetY<0){h=f}else{if(h>j){h=j}}F.style.top=h+"px";F.style.left=k+"px";E=false}});if(typeof A.clickAction=="function"){b(this).click(function(){A.clickAction(F,this)})}})}})(jQuery);