var lib_js_BUILT='2011-12-13 15:00:34'; 
document.write('<script type="text/javascript" src="/lib/DateInput.js"><\/script>');var TRange=null;var BROWSER_UNDEFINED=0;var BROWSER_MICROSOFT=1;var BROWSER_NETSCAPE=2;var BROWSER_SAFARI=3;var BROWSER_OPERA=4;var MAX_GRAPH_SERIES=4;var MAX_SAMPLES_PER_SERIES=288;var PAGE_WIDTH_NUM=900;var PAGE_WIDTH_STR=PAGE_WIDTH_NUM+"";var PAGE_WIDTH_SMALLER=899;var PAGE_WIDTH_SMALLER_STR=PAGE_WIDTH_SMALLER+"";var CGI_BIN="cgi-bin";var CGI_PRI="cgi-pri";var CGI_FILE="CGIhandler.cgi";var CGI_PUBLIC_INPUT=CGI_BIN+"/"+CGI_FILE+"?";var CGI_PRIVATE_INPUT=CGI_PRI+"/"+CGI_FILE+"?";var HTML_TITLE_START="SolrenView&trade;";var CUSTOM_IMG_FOLDER="/pics";var MISC_IMG_FOLDER=CUSTOM_IMG_FOLDER+"/misc";var MonthNamesShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var MAROON="#A52A2A";var DARK_GOLD="#CC9900";var LIGHT_GREY="#F0F0F0";var MED_GREY2="#666666";var MED_GREY="#BBBBBB";var TradeMarkAsStr=String.fromCharCode(8482);var link2_livesites="/gmaps/SolrenSitesInst.php";var iframe_livesites='<iframe id="ifrm" name="ifrm" src="'+link2_livesites+'" scrolling="auto" width=940 height=540 frameborder=0>';var ex_InvD_href='<a href="/examples/Show.html?option=0" target="_blank">Click here for an example</a>';var ex_RevG_href='<a href="/examples/Show.html?option=1" target="_blank">Click here for an example</a>';var ex_Solzone_href='<a href="/examples/Show.html?option=3" target="_blank">Click here for an example</a>';var ex_Weather_href='<a href="/examples/Show.html?option=2" target="_blank">Click here for an example</a>';var dl_folder="downloads";var link2_brochure='<a href="'+dl_folder+'/SolRenView Monitoring Brochure.pdf">SolrenView&trade; data sheet</a>';var link2_manual='<a href="'+dl_folder+'/Guide to SolrenView.pdf">SolrenView&trade; installation manual</a>';var link2_WeaManual='<a href="'+dl_folder+'/Weather Station Installation Manual.pdf">Weather Station installation manual</a>';var link2_survey='<a href="'+dl_folder+'/SolrenView order form.pdf">SolrenView&trade; site survey</a>';var link2_pc_sw='<a href="'+dl_folder+'/PVIDAQ.zip">Free Windows-based RS232 PV monitor</a>';var link2_3000_sw='<a href="'+dl_folder+'/SOLECTRIA MONITOR 1.04 for XP.zip">Free RS232 data logging software (PVI3000-5300 only)</a>';var site_info_title="";var windowvar;var gWin;var NoTimeouts=0;var WinRef=0;var WinOpen_AutoFocus=0;var interval=900;var update_link="";var update_descr="Refresh in ";var testheight=0;var TitleOverwrite="";var iPhoneApp=0;var browser_num=GetBrowser();var bEnCalendar=((browser_num==BROWSER_MICROSOFT)||(browser_num==BROWSER_NETSCAPE))?1:0;var bVerbose=0;var logoLoaded=0;var LoadDateStr="";var SiteStartDate=new Date();var DataStart=new Date();var DataEnd=new Date();var SetDate=new Date();var button_txt_Refresh="Refresh";var button_txt_Go="Go!";var GoButtonFontColor="#008700";var bar_height_inc=7;var height_inc=bar_height_inc;var GraphTimeoutID=0;var block_index=-1;var rgb_color="";var GraphZoom=1;var glast_width=0;var glast_height=0;var ParentDomain="";var Self_IPStr="";var ForceFocus="";var ForceHash="";var MoreInfo="";var start_win_width=0;var start_win_height=0;var ZoomFactor=1;var NoAutoZoom=0;var last_resize=new Date();var bFastGraph=0;var bDbug=0;var DISPLAY_MODE_THIS_DAY=0;var DISPLAY_MODE_THIS_WEEK=1;var DISPLAY_MODE_THIS_MONTH=2;var DisplayModeDescr=["Day","Week","Month"];var ViewModePos=1;var ViewModeArray=[];var ViewMode=DISPLAY_MODE_THIS_DAY;function Wr(a){document.write(a)}function GetObj(a){return document.getElementById(a)}function Inc(a){a++;if(a==0){a++}return a}function Move2Site(k){var o=0;var p;var n;var l=location.search;var a=new Array();var n="";var f="";var g="site_ID";a=l.split("&");var c=0;var d=0;var b=0;for(c=0;c<a.length;c++){p=GetParamValue(a[c],p,0);n=GetParamValue(a[c],p,1);if((p==g)&&(n.length>0)){o=parseInt(n);if(o>0){var m="";if(k){m=""+(o+1)}else{m=""+(o-1)}f+="&"+p+"="+m}else{if(c>0){f+="&"}f+=a[c]}}if((p=="cond")&&(n.length>0)){var h=n.indexOf(g+"=");if(h>=0){o=parseInt(n.substr((h+g.length+1),n.length-1))}if(o>0){var m=g+"=";if(k){m+=""+(o+1)}else{m+=""+(o-1)}f+="&"+p+"="+m}else{if(c>0){f+="&"}f+=a[c]}}else{if(c>0){f+="&"}f+=a[c]}}var q="http://"+document.domain+location.pathname+f;RedirectPage(q)}function GetDecimalPlaces(a){var b=0;var c=a.indexOf(".");if(c>=0){b=a.length-c-1}return b}function RemoveTrailingZeroes(a){var d=GetDecimalPlaces(a);var b=a.length-d-1;var f="";var c=a.length-1;if(d){while((c>0)&&(a.substring(c,c+1)=="0")){if(c==b){c--;break}c--}if(c==b){c--}f=a.substring(0,c+1);a=f}return a}function Roundf(c,a){if(c.toFixed){c=c.toFixed(a)}else{var b=Math.pow(10,a);c=Math.round(c*b)/b}return c}function RoundfMax(c,a){c=Roundf(c,a);var b=c+"";b=RemoveTrailingZeroes(b);c=parseFloat(b);return c}function GetTagCloseStr(a){close_bracket="";switch(a){case"[":close_bracket="]";break;case"(":close_bracket=")";break;case"<":close_bracket=">";break;case"<<":close_bracket=">>";break;case"{":close_bracket="}";break;default:close_bracket=a;break}return close_bracket}function Add2StrEnds(c,a,b){if(a.length){c=a+c}if(b.length){c=c+b}return c}function EncloseStr(b,a){return Add2StrEnds(b,a,a)}function Quote(a){return EncloseStr(a,"'")}function DoubleQuote(a){return EncloseStr(a,'"')}function Bracket(b,a){return Add2StrEnds(b,a,GetTagCloseStr(a))}function GetNoQuotes(f){var d=0;var b=0;var a="";var c="";for(d=0;d<f.length;d++){a=f.charAt(d);if((a!="'")&&(a!='"')){c+=a}}return c}function EscapeQuotes(c){var b="";alert("in EscapeQuotes:str="+c);var a=0;for(a=0;a<c.length;a++){if((c.charAt(a)=="'")||(c.charAt(a)=='"')){b+="\\"+c.charAt(a)}else{b+=c.charAt(a)}}return b}function Array2String(b){var a=0;var c="";a=0;for(a=0;a<b.length;a++){c=(a==b.length-1)?(c+b[a]):(c+b[a]+",")}return c}function WebLinkMatch(a,b){if((b.length<=0)||(a.length<=0)){return false}var c=a.indexOf(b);if(c>=0){if(a.length==(c+b.length)){return true}}return false}function PrintImgDimensions(c){var a=0;var b=0;var c;a=c.offsetHeight;b=c.offsetWidth;if(c.src){alert(c.src+": "+b+" X "+a)}else{alert(b+" X "+a)}}function SetObj_Value(b,a){if(b){b.value=a;return true}return false}function SetObj_innerHTML(a,b){if(a){a.innerHTML=b;return true}return false}function GetParamValue(f,c,a){var d=f.indexOf("=");var b="";c="";b="";if(d>0){c=f.substring(0,d);b=f.substring(d+1,f.length);b=GetNoQuotes(b)}else{c=f;b=""}if(a){return b}else{return c}}function GetWebDomain(a){var b="";var c="http://'";var d=a.indexOf(c)+c.length;b=a.substring(d,a.length);d=b.indexOf("/");b=b.substring(0,d);return b}function GetWebParams(a){var c=a.indexOf("?");if(c<0){return""}var b=a.substring(a.indexOf("?")+1,a.length);return b}function lightup(d,c){var a="";var b=GetBrowser();if(c>100){c=100}else{if(c<0){c==0}}switch(b){case BROWSER_NETSCAPE:case BROWSER_MICROSOFT:d.className="opaque"+c;break;default:d.className="opaque"+c;break}return c}function SetOpacity(c,d,a,b){var f="";var g=document.getElementById(c);d=lightup(g,d);if((a==0)||(b<=0)){return}if(((a>0)&&(d<100))||((a<0)&&(d>0))){d+=a;f="SetOpacity('"+c+"',"+d+","+a+","+b+")";if(b>0){window.setTimeout(f,b)}}}function UpdateObjSrc(d,a,g,c,b){if(!document.getElementById(a)){return -1}if((d>=g.length)||(d<0)){d=0}var f="";document.getElementById(a).src=g[d];if((b>0)){if(d>=(g.length-1)){d=0}else{d++}f="UpdateObjSrc("+d+',"'+a+'",'+c+',"'+c+'",'+b+")";window.setTimeout(f,b)}}function FlashPage0UpdatePics(a,b,c){document.getElementById(a).style.display="none";document.getElementById(b).style.display="block";document.getElementById(c).style.display="block";SetOpacity(c,0,0,0);SetOpacity(c,25,25,50)}function Zoom(a){}function GetMin(d,c){if(d<c){return d}return c}function GetWinHeight(){if(typeof(window.innerHeight)=="number"){return window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){return document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){return document.body.clientHeight}}}}function GetWinWidth(){if(typeof(window.innerWidth)=="number"){return window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){return document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){return document.body.clientWidth}}}}function alertSize(){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}}}window.alert("Width = "+b+"Height="+a)}function DisplayWinDimensions(){return alertSize();alert("window.document.documentElement width="+window.document.documentElement.clientHeight+",height="+window.document.documentElement.clientHeight);alert("document.documentElement width="+document.documentElement.clientHeight+",height="+document.documentElement.clientHeight);alert("document.documentElement width="+window.innerWidth+",height="+window.innerHeight)}function getTransformProperty(b){var a=["transform","WebkitTransform","MozTransform"];var c;while(c=a.shift()){if(typeof b.style[c]!="undefined"){return c}}return false}function ZoomPage(b){var g=0;if(b<1){return false}ZoomFactor=b;var h=window.document.body;var c=document.body.clientWidth;var d=document.body.clientHeight;var f=getTransformProperty(h);var j=(50*(b-1)/b);if(f){var a="";a="scale("+b+") ";a+="translate("+j+"%,"+j+"%)";switch(f){case"WebkitTransform":h.style.WebkitTransform=a;break;case"MozTransform":h.style.MozTransform=a;break;case"transform":h.style.transform=a;break;default:return false;break}return true}h.style.zoom=1;if(h.style.zoom){h.style.zoom=b;if((document.body.clientWidth==c)&&(document.body.clientHeight==d)){}else{return true}}return false}function CanZoom(){if(!ZoomFactor){ZoomFactor=1}var a=ZoomFactor;var b=document.body.clientWidth;var c=document.body.clientHeight;if(!ZoomPage(1.1)){if(bVerbose){alert("no zoom1")}return false}return ZoomPage(a)}function ZoomResize(){var f=0;var j="";if(typeof AutoZoom=="undefined"){f=1;j="AutoZoom undefined"}else{if(NoAutoZoom==1){f=1;j="NoAutoZoom"+NoAutoZoom}}if(f){window.onresize="";return}var a=Now();var m=a.getTime();var l=last_resize.getTime();var o=m-l;if((browser_num==BROWSER_MICROSOFT)&&(o<100)&&(AutoZoom.ResizeCount>0)){return}var g=GetObj(AutoZoom.txtStatusID);if(g){g.value="diff="+o}var h=GetObj(AutoZoom.TableRef);if((h)&&(h.offsetHeight>0)&&(h.offsetHeight)){last_resize=a;var p="Win="+GetWinWidth()+" x "+GetWinHeight()+", ";var d=0;var k=0;var b=0;var n;var c=GetObj(AutoZoom.TableRef);p+='"'+AutoZoom.TableRef+'"='+c.offsetWidth+" x "+c.offsetHeight;d=GetWinHeight()/c.offsetHeight;n=c.offsetWidth;k=GetWinWidth()/(n);b=GetMin(k,d);p+=" Zoom="+Roundf(ZoomFactor,2)+"=>"+Roundf(b,2)+" min("+Roundf(k,2)+","+Roundf(d,2)+")";if(NoAutoZoom==0){ZoomFactor=b;ZoomPage(ZoomFactor)}if(g){g.value=p}AutoZoom.ResizeCount=Inc(AutoZoom.ResizeCount)}}function AutoZoomInit(b,a){this.TableRef=b;this.ResizeCount=0;this.txtStatusID=a;this.Init=1}function ScreenRes(a){window.document.body.style.zoom=1;alert("here: screen width="+screen.width+",height="+screen.height);if(window.document.body.style.zoom){alert("got window.document.body.style.zoom="+window.document.body.style.zoom)}else{if(window.document.body.style){alert("got window.document.body.style, but NO.zoom")}else{alert("NO window.document.body.style")}}window.document.body.style.zoom=screen.width/a;alert("zoom=("+screen.width+"/"+a+")="+window.document.body.style.zoom)}function SelfClose(){window.opener=null;window.close()}function DrawHref(b,a,c,g,h){var f="";var j="";if(ParentDomain.length){var d=a;if(d.indexOf("http://")<0){j="http://"+ParentDomain;if(d.charAt(0)!="/"){j+="/"}}a=j+d;c+=" target=_parent"}f=b+"<a ";f+=c;f+=' HREF="'+a+'" ';f+=">";if(h){Wr(f)}return f}function OpenGraph(d,b,c){var f=400;var a=170;if(c>1){f*=c;a*=c;if(d.indexOf("?")>-1){d+="&zoom="+c}else{d+="?zoom="+c}}var g="toolbar=no, menubar=no, replace=true, scrollbars=no, height="+a+", width="+f;g+=",titlebar=no, location=no, status=no, directories=no";if(ParentDomain.length){WinRef=window.open(d,b,g);if(WinOpen_AutoFocus){WinRef.focus()}else{return WinRef}}else{WinOpen(d,b,g)}if(!WinOpen_AutoFocus){return WinRef}}function OpenStatusHelp(){var b="/StatusDef.html";var a="help";var c="resizable=0,width=500,height=220";WinOpen(b,a,c);if(!WinOpen_AutoFocus){WinRef.focus()}}function WinOpen(b,a,c){var d="";if(ParentDomain.length){if(b.indexOf("http://")<0){d="http://"+ParentDomain;if(b.charAt(0)!="/"){d+="/"}}}WinRef=window.open(d+b,a,c);if(WinOpen_AutoFocus){WinRef.focus()}else{return WinRef}}function FmtSrvHtmlTitle(a){var b="";if(a.indexOf(HTML_TITLE_START)<0){b=HTML_TITLE_START+" - "}b+=a;return b}function WinWrite(a,c,d,b){var f="<html><head>";if(c.length){f+="<title>"+FmtSrvHtmlTitle(c)+"</title>"}f+="</head>\n<body>\n<pre>";f+=b;f+="</pre></body></html>";newwin=window.open("",a,d);newwin.document.write(f);newwin.focus();newwin.document.close()}function OpenSRVWin(c,b){var h="";var d=1000;var a=740;var f;var g="toolbar=no, menubar=no, replace=true, scrollbars=no, height="+a+", width="+d;g+=",titlebar=no, location=no, status=no, directories=no";if(ParentDomain.length){if(c.indexOf("http://")<0){if(VariableExists("SRVJs")){if(SRVJs.p_SERVER_IP_STR.length){h="http://"+SRVJs.p_SERVER_IP_STR}}}}WinOpen(h+c,b,g);if(!WinOpen_AutoFocus){return WinRef}}function openMax(c,b){var f;var g="";var d=900;var a=600;if(screen){d=screen.width;a=screen.height;if(window.document.body.style.zoom){alert("zoom="+window.document.body.style.zoom)}alert("screen="+screen.width+" x "+screen.height)}g="toolbar=no, menubar=no, replace=true, scrollbars=no, titlebar=no, location=no, status=no, directories=no";g+=", height="+a+",width="+d;alert("params="+g);f=window.open(c,b,g);f.focus();CloseSelf();return f}function SetWinSize(a,b){if(typeof(window.innerWidth)=="number"){window.innerWidth=a;window.innerHeight=b}else{window.resizeTo(a,b)}}function SetToMaxWindow(){var a=900;var b=600;window.moveTo(0,0);if(screen){a=screen.width;b=screen.height}alert("setting to width="+a+", set_height="+b);SetWinSize(a,b);return;if(typeof(window.innerWidth)=="number"){window.innerWidth=a;window.innerHeight=b}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){window.resizeTo(a,b)}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){window.resizeTo(a,b)}}}}function GetModeDescr(a){if(a>0){return"On"}else{return"Off"}}function GetFnNameFromCallee(a){var c="";c="GetFnNameFromCallee:\n";var b;b=a.name;if(!b){b=a.toString();c+="\n  callee_obj.toString="+Quote(b);b=b.substr("function ".length);b=b.substr(0,b.indexOf("("))}c+="\n fn_name="+Quote(b);if(bVerbose>1){alert(c)}return b}function VariableExists(varname){var VarnameOK=0;if(varname.length<=0){return 0}var js_str="if(typeof("+varname+")!='undefined'){VarnameOK=1;}";eval(js_str);return VarnameOK}function show(b,a){document.getElementById(a).style.display="none";document.getElementById(b).style.display="block"}function UpdateClassName2(f,j,c,l,m,o){var g;var b;var n;var h;var a;var k;var d=3;if(typeof this.count=="undefined"){this.count=0}if(this.count>=d){this.count=0}else{this.count++}k=this.count;b="'"+f+"',"+j+","+c+",'"+l+"','"+m+"','"+o+"'";h=(k)?j:c;g=GetFnNameFromCallee(arguments.callee)+"("+b+")";if((k==1)||(k==3)){document.getElementById(f).className=m}else{if(k==2){document.getElementById(f).className=l}else{document.getElementById(f).className=o}}window.setTimeout(g,h)}function UpdateClassName(d,j,c,l,g){var f;var b;var m;var h;var a;var k;if(typeof this.count=="undefined"){this.count=0}if(this.count>=3){this.count=0}else{this.count++}k=this.count;b="'"+d+"',"+j+","+c+",'"+l+"','"+g+"'";h=(k)?j:c;f="UpdateClassName("+b+")";if(k==0){document.getElementById(d).className=g}else{if(k==1){document.getElementById(d).className="WeaSunny1_trans"}else{if(k==2){document.getElementById(d).className=l}else{if(k==3){document.getElementById(d).className="WeaSunny1_trans"}}}}window.setTimeout(f,h)}function fmt2digits(a){var b;if(a<10){b="0"+String(a)}else{if(a>99){b="99"}else{b=String(a)}}return b}function AlterUrl_Search(b,c,a){if(b.length==0){b+="?"}if(c.length){if((b.charAt(b.length-1)!="&")&&(c.charAt(0)!="&")){b+="&"}b+=c}return b}function FmtRemoteChildLink(b){var a="";a=ReplaceHrefDomain(location.href,document.domain,b,1);return a}function ReplaceStr(h,d,b){var a="";var f="ReplaceStr: b4=\n"+h+"\n\n";if(h.length>0){var g=h.split(d);var c=0;for(c=0;c<g.length;c++){if(c>0){a+=b}a+=g[c];if(bVerbose){f+="["+c+"]:'"+g[c]+"'\n"}}if(bVerbose){f+="\n"+a;alert(f)}}return a}function AlterParamValueStr(h,g){var a=h;var c="_";var f="^";var b="~";var d="|";if(g==1){a=ReplaceStr(a," ",c);a=ReplaceStr(a,TradeMarkAsStr,f);a=ReplaceStr(a,"'",b)}else{if(g==0){a=ReplaceStr(a,c," ");a=ReplaceStr(a,f,TradeMarkAsStr);a=ReplaceStr(a,b,"'")}}return a}function ReplaceStrOnce(h,c,a){var d="";var l="";var j=-1;var g=-1;var b="";var k="";var f="";var l="ReplaceStrOnce\n full_str="+h+"\n search="+c+"\n replace="+a;if((!h.length)||(!c.length)){return d}j=h.indexOf(c);l+="\n pos1="+j;if(j>=0){k=h.substring(0,j);f=h.substring(j+c.length,h.length);d=k+a+f;l+="\n\n->"+d}if(bVerbose){alert(l)}return d}function FmtAsHttpLink(f,b){var c="";var d=GetMyInfo(GetFnNameFromCallee(arguments.callee),1);d+="\n link="+f;var g=f.indexOf("http://");var a="";if(g<0){if((!b)||(b.length<=0)){c=document.domain}else{c=b}a="http://"+c;if((a.charAt(a.length-1)!="/")&&(f.charAt(0)!="/")){a+="/"}a+=f;f=a}if(bVerbose){d+="\n\n "+f;alert(d)}return f}function ReplaceHrefDomain(d,c,f,b){var a="";if(f.length){a=ReplaceStrOnce(d,"http://"+c,"http://"+f);if(a.length){if(b){a+="&parent="+c}}}return a}function Srv_ReplaceHrefDomain(d){var a="";var b="";var c="";if((!d)||(ParentDomain.length==0)){return false}b=ReplaceHrefDomain(d.href,document.domain,ParentDomain,0);if(b.length){d.href=b;if(d.target.length<=0){d.target="_parent"}return true}}function SrvCgiJs_End(){var a="";if(VariableExists("SRVJs")){SrvUpdateImgSrc(SRVJs.CustomPicsHost);if(SRVJs.adm>=1){var b=GetObj("notes");if(b){b.style.visibility="visible"}}}if(ParentDomain.length){if(bVerbose){a+="verbose&"}a+="title="+AlterParamValueStr(document.title,1);UpdateProxyFrame("ProxyFrame1",a,2)}UpdateHrefs();if(ForceHash.length){Objs=document.getElementsByName(ForceHash);if(Objs.length){location.hash="#"+ForceHash}}if(ForceFocus.length){b=GetObj(ForceFocus);if(b){b.focus()}}if(MoreInfo.length){b=GetObj("SiteInfo_id");if(b){b.innerHTML=MoreInfo+"\n"+b.innerHTML}}}function GetParentObj(a){var c=window;var b=0;while(b<a){if(b==0){c=parent}else{c=c.parent}b++}return c}function ProxyLoad(){}function ProxyCheckParams(){var q="Domain="+document.domain+",pathname="+location.pathname;var c="";var a=location.href;var f=0;var m=GetParentObj(f);var l=a.substring(a.indexOf("?")+1,a.length);var d=new Array();var o="";d=l.split("&");var h=0;var k=0;var g=0;var p;k=((d.length==1)&&(d[0].length>=a.length))?0:1;if(k){h=0;for(h=0;h<d.length;h++){var n=d[h].indexOf("=");var o="";p="";o="";if(n>0){p=d[h].substring(0,n);o=d[h].substring(n+1,d[h].length)}else{p=d[h];o=""}if(c.length){c+="&"+p;if(o.length){c+="="+o}}else{switch(p){case"verbose":bVerbose=(o.length)?parseInt(o):1;break;case"level":f=(o.length)?parseInt(o):1;m=GetParentObj(f);break;case"redir":c=o;break;case"title":m.document.title=AlterParamValueStr(o,0);break;default:q+="\n "+location.search;q+="\n parent.parent.parent="+parent.parent.parent.document.location;var b=m.document.getElementById(p);if(b){q+="\n Found "+p+", setting to "+o;b.value=o}else{q+="\n Did NOT Find "+p}if(bVerbose){alert(q)}break}}}}if(c.length){if(bVerbose){q+="\nlevel="+f+",\nredir="+c;alert(q)}m.document.location.href=c}}function AdjustSitePicsArray(c){var a=0;var b=CUSTOM_IMG_FOLDER+"/";if((VariableExists("SRVJs"))&&(SRVJs.CustomPicsHost.length)){a=0;for(a=0;a<c.length;a++){if(c[a].indexOf(b)==0){c[a]="http://"+SRVJs.CustomPicsHost+c[a]}}}}function SrvUpdateImgSrc(f){if(f.length==0){return}var b=0;var d;var c="";var j="";var a=document.getElementsByTagName("img");var h="http://"+document.domain+CUSTOM_IMG_FOLDER+"/";var g="http://"+document.domain+MISC_IMG_FOLDER+"/";if(a){b=0;for(b=0;b<a.length;b++){d=a.item(b);if((d.src.indexOf(h)>=0)&&(d.src.indexOf(g)<0)){j=ReplaceHrefDomain(d.src,document.domain,f,0);if(bVerbose){c+="["+b+"]:"+d.src;c+="\n "+j;c+="\n"}d.src=j}}if(bVerbose){alert(c)}}else{if(bVerbose){alert("no src?")}}}function UpdateHrefs(){var b=0;var d;var c="";var a=document.getElementsByTagName("a");if(a){b=0;for(b=0;b<a.length;b++){d=a.item(b);Srv_ReplaceHrefDomain(d);if(bVerbose){c+="["+b+"]:"+d.href;c+="\n"}}if(bVerbose){alert(c)}}else{if(bVerbose){alert("no href?")}}}function GetCgiStart(){var b=location.href;var a=b.substring(0,b.lastIndexOf(CGI_INPUT)+CGI_INPUT.length);return a}function HideObj(c,b){var a=(b)?0:100;a=lightup(c,a);return}function ToSiteList(){var a=location.href;a=GetCgiStart()+"sort=site_name";location.href=a}function updatetimer(){var c;var b;var a;var d;if(update_link.length==0){update_link=document.location.href}if(interval==-1){location.href=update_link;return}c=Math.floor(interval/60);b=interval-(c*60);a=fmt2digits(c);d=fmt2digits(b);if(document.getElementById("txtmsg")){document.getElementById("txtmsg").value="["+update_descr+a+":"+d+"]"}if(document.getElementById("txtStatus")){document.getElementById("txtStatus").value+=" ."}interval--;windowvar=window.setTimeout("updatetimer()",1000)}function GetBrowser(){var a=navigator.appName;var c=a.toLowerCase();var b=navigator.appVersion.toLowerCase();if(bVerbose){alert("appName="+navigator.appName+", appVersion="+navigator.appVersion+"userAgent="+navigator.userAgent)}if(c.indexOf("microsoft")>=0){return BROWSER_MICROSOFT}else{if(b.indexOf("safari")>=0){if(b.indexOf("iphone")>=0){iPhoneApp=1}return BROWSER_SAFARI}else{if(c.indexOf("netscape")>=0){return BROWSER_NETSCAPE}else{if(c.indexOf("opera")>=0){return BROWSER_OPERA}}}}return BROWSER_UNDEFINED}function PrintBrowserInfo(a){if(a.length<=0){a=GetFnNameFromCallee(arguments.callee)}s=a+":";s+="\n "+PrintVariable("navigator.appName",'"');s+="\n "+PrintVariable("navigator.appVersion",'"');s+="\n\n "+PrintVariable("navigator.userAgent",'"');return s}function GetMyInfo(b,a){var c="";if(a<=0){return c}if(b.length<=0){b=GetFnNameFromCallee(arguments.callee)}c=b+": "+Bracket("VerboseLevel="+a,"(");c+="\n "+PrintVariable("document.domain",'"');c+="\n "+PrintVariable("location.href",'"');c+="\n "+PrintVariable("location.search",'"');if(a<2){return c}c+="\n\n"+PrintBrowserInfo("");return c}function VariableValue(varname){var VariableValue;if(varname.length<=0){return 0}var js_str="if(typeof("+varname+")!='undefined'){VariableValue="+varname+";}else{VariableValue='undefined?';}";eval(js_str);return VariableValue}function PrintVariable(a,d){var c=VariableValue(a);if(!d){d=""}var b=a+"="+Bracket(c,d);return b}function HaveParentFrame(){if(ParentDomain.length){if(ParentDomain!=document.domain.toLowerCase()){return false}}if((parent.document.location)&&(parent.document.location!=location.href)){return true}else{return false}}function RedirectPage(d){var c=GetMyInfo("",1);var a="";var b="";if(ParentDomain.length){d=FmtAsHttpLink(d,document.domain);a=ReplaceHrefDomain(d,document.domain,ParentDomain,0);a=ReplaceStr(a,"&parent="+ParentDomain,"");c+="\nRedirParent="+a;b="redir="+a;c+="\nproxy_params="+b;if(bVerbose){alert(c)}UpdateProxyFrame("ProxyFrame1",b,2)}else{c+="\nno parent? location="+location.href;if(bVerbose){alert(c)}location.href=d}}function Redirect2Login(){var b=location.href;var d=b.substring(0,b.lastIndexOf(CGI_BIN));var a=b.substring(b.lastIndexOf(CGI_BIN)+CGI_BIN.length,b.length);var c=d+CGI_PRI+a;RedirectPage(c)}function FindParamValue(d,c){var h=new Array();var g="";var a="";var j=d;if(d.charAt(0)=="?"){j=d.substring(1,d.length)}h=j.split("&");var b=0;var f="";for(b=0;b<h.length;b++){f=GetParamValue(h[b],f,0);if(f==c){g=GetParamValue(h[b],f,1);return g}}return""}function ReplaceParamStr(k,b,m){var h="";if(k.length==0){return""}if(k.charAt(0)=="?"){h=k.substring(1,k.length)}else{h=GetWebParams(k)}if(h.length==0){h=k}if(bVerbose){alert("ReplaceParamStr:params_start='"+h+"',len="+h.length)}var a=new Array();var l="";var g="";a=h.split("&");var d=0;var f=0;var c=0;var n;if((a.length==1)&&(a[0].length>=h.length)){f=0}else{f=1}if(1==1){d=0;for(d=0;d<a.length;d++){n=GetParamValue(a[d],n,0);l=GetParamValue(a[d],n,1);n=n.toLowerCase();if(n.length>0){switch(n){case b:if(g.length){g+="&"}g+=n+"="+m;break;default:if(g.length){g+="&"}g+=n;if(l.length){g+="="+l}else{}break}}}}if(g.indexOf(b+"="+m)<0){if(g.length>0){g+="&"}else{g+="?"}g+=b+"="+m}if(g.charAt(0)!="?"){g="?"+g}return g}function WrHover(j,b,a,d,h,f,g){if(b.length==0){b="span"}var c="<"+b;if(j.length){c+=' id="'+j+'"'}if(h.length){c+=' class="'+h+'"'}c+=" onMouseOut=\"this.className='"+h+"';\"";if(d.length){c+=" onMouseOver=\"this.className='"+d+"';\""}if(f.length){c+=' onClick="'+f+'"'}c+=">";c+=a;c+="</"+b+">";if(g){Wr(c)}}function DrawBorderImgTable(b,d,h,a,c,g){var f="";if(b.length<=0){return f}f='<table align=center style="margin-top:'+a+"px;";if(c!=0){f+="margin-left:"+c+"px;"}f+='" ';f+="cellpadding=0 cellspacing=0>";f+="<tr><td><img ";if(d.length){f+='id="'+d+'" '}f+='src="'+b+'" width='+h+" ";f+="></td></tr>";if(g){Wr(f)}return f}function WrFrame(f,b,j,g,c,a){var h="We're sorry, but your browser does not support frames";var d=b;d+="<iframe";if(j.length>0){d+=' id="'+j+'"'}if(g.length){d+=" "+g}d+=">";if(c.length<=0){c=h}d+=" "+c;d+="</iframe>"+a;if(f){Wr(d)}return d}function WrInput(h,c,k,b,d,f,a,j,g){var l=h+"<input type="+c+' value="'+b+'" onClick="'+d+'" '+f+" ";if(k.length){l+='id="'+k+'" '}l+='style="';if(a.length){l+=a+";"}l+='"';l+=">"+j;if(g){Wr(l)}return l}function WrStr(d,a){var b=0;var c="";if(d.length<=0){return}for(b=0;b<a;b++){c+=d}Wr(c)}function Space(a){WrStr("&nbsp;",a)}function SP(a){Space(a)}function WrRowSeparator(a,d){var c="/rgb/clear.gif";if(bVerbose){c="/rgb/blue.gif"}if(a<=0){return}var b="";if(d>0){b=" colspan="+d}str="<tr><td"+b+'><img src="'+c+'" height='+a+" width=1></td></tr>";document.write(str)}function WrRowPx(a){WrRowSeparator(a,0)}function FrmSRVChildResize(){if(parent.document.getElementById("zoom_id")){if(browser_num==BROWSER_SAFARI){if(parent.document.getElementById("zoom_id")){if(bVerbose){alert("parent zoom="+parent.document.getElementById("zoom_id").value)}document.body.style.zoom=parseFloat(parent.document.getElementById("zoom_id").value);if(document.getElementById("zoom_id")){document.getElementById("zoom_id").value=document.body.style.zoom;if(bVerbose){alert("updating self zoom_id="+document.getElementById("zoom_id").value)}}}}}}function Redirect2Public(){var b=location.href;var d=b.substring(0,b.lastIndexOf(CGI_PRI));var a=b.substring(b.lastIndexOf(CGI_PRI)+CGI_PRI.length,b.length);var c=d+CGI_BIN+a;location.href=c}function CustomStartTbl(c,a){var b="0";if(GetBrowser()==BROWSER_MICROSOFT){b=")"}StartTblTag(c,a,b,0,"")}function StartTblTag(f,b,d,a,c){var g;printf_str="<table align=center width="+f+' style="position:absolute;top:'+b+"px;";if(d>0){printf_str=printf_str+"left:"+d+"px;"}if(a>0){printf_str=printf_str+"height:"+a+"px;"}printf_str=printf_str+c+'">';alert(printf_str);document.write(printf_str)}function DrawOuterTbl(a){var c;var d;var b="0";if(GetBrowser()==BROWSER_MICROSOFT){b="0"}StartTblTag(PAGE_WIDTH_STR,220,b,a,"border-bottom:10px solid #100;border-left:10px solid #100;border-right:10px solid #100;border-color:#DCDCDC;");document.write("<tr><td>&nbsp;</td></tr></table>")}function Now(){Dt=new Date();return Dt}function SetRefresh(a){windowvar=window.setTimeout("updatetimer()",1000);if(a){window.focus()}}function PrintSRVLinks(a){var b="";if(a){b='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="940" height="150" id="menu" align="middle">';b+='<param name="allowScriptAccess" value="sameDomain" />';b+='<param name="movie" value="menu.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#eeeeee" /><embed src="menu.swf" quality="high" wmode="transparent" bgcolor="#eeeeee" width="940" height="150" name="menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';b+="</object>"}else{b='<table cellpadding="0" cellspacing="0" border="0" width="940">';b+='<tr><td width="940" colspan="6"><img src="images/h_header.jpg" border="0" /></td></tr><tr>';b+='<Td valign="top"><a href="h_home.html"><img src="images/h_home.jpg" border="0" /></a></Td>';b+='<Td valign="top"><a href="h_products.html"><img src="images/h_products.jpg" border="0" /></a></Td>';b+='<Td valign="top"><a href="h_livesites.html"><img src="images/h_livesites.jpg" border="0" /></a></Td>';b+='<Td valign="top"><a href="h_downloads.html"><img src="images/h_downloads.jpg" border="0" /></a></Td>';b+='<Td valign="top"><a href="h_contact.html"><img src="images/h_contact.jpg" border="0" /></a></Td>';b+='<Td valign="top"><a href="http://www.solren.com" target="_blank"><img src="images/h_solren.jpg" border="0" /></a></Td>';b+="</tr></table>"}document.write(b)}function GetKeyCode(b){var a;if(b&&b.which){a=b.which}else{a=event.keyCode}return a}function GraphPageResize(){if((glast_width==0)&&(glast_height==0)){glast_width=start_win_width;glast_height=start_win_height;return}var d=GetWinWidth();var b=GetWinHeight();var a=Math.abs(glast_width-d);var g=Math.abs(glast_height-b);document.title=GetWinWidth()+" x "+GetWinHeight();if((a<100)&&(g<100)){return}var c=(b/start_win_height);var f=(d/start_win_width);var h=GetMin(c,f);document.title+=" min_ratio="+h;if(h>=1){GraphZoom=h;ZoomPage(GraphZoom)}glast_width=d;glast_height=b;document.title+=" zoom="+GraphZoom}function testload(){ZoomPage(GraphZoom);start_win_width=GetWinWidth();start_win_height=GetWinHeight()}function CheckGraphParams(){var a=location.href;var h=a.substring(a.indexOf("?")+1,a.length);var b=new Array();var k="";b=h.split("&");var f=0;var g=0;var d=0;var l;if((b.length==1)&&(b[0].length>=a.length)){g=0}else{g=1}if(g){f=0;for(f=0;f<b.length;f++){l=GetParamValue(b[f],l,0);k=GetParamValue(b[f],l,1);l=l.toLowerCase();switch(l){case"rgb":if(k.length){rgb_color=k}break;case"zoom":if(k.length){if((VariableExists("SRVJs"))&&(SRVJs.CgiRemoteChild.length>0)){}else{ZoomPage(parseFloat(k));NoAutoZoom=1}}break;case"fast":if(k.length){bFastGraph=parseInt(k)}else{bFastGraph=1}break;case"dbug":bDbug=(k.length)?parseInt(k):1;break;case"toplogo":if(k.length){var c=document.getElementById("logoID");if(c){c.src=k}}break;case"parent":ParentDomain=k.toLowerCase();break;case"focus":ForceFocus=k;break;case"hash":ForceHash=k;break}}}}function UpdateProxyFrame(h,c,d){var b="";var f="";var g;if(bDbug){f="Domain="+document.domain+" :"+location.pathname+"\n frameId="+h+"\n url_params="+c}if(ParentDomain.length){b="http://"+ParentDomain}b+="/proxy.html?";if(d>0){b+="&level="+d}if(c.length){b+="&"+c}if(bDbug){f+="\n setLink="+b}if(h.length){g=GetObj(h);if(g){f+="\n\n"+h+" already exists, src="+g.src;if(bVerbose){alert(f)}g.src=b;return}}var a='onLoad=";" width=0 height=0 frameborder=0 style="visibility:hidden;" src="'+b+'"';if(bDbug){f+="\n attr="+a;alert(f)}WrFrame(1,"",h,a,"","")}function ShowBlocks(h,f,a){var d;var g;var c=0;var b="";if(a.length==0){return}a=a.toLowerCase();for(c=0;c<MAX_SAMPLES_PER_SERIES;c++){g="g"+f+"_"+c;d=document.getElementById(g);if(d){b=d.src.toLowerCase();if(b.lastIndexOf(a)>=0){if(h){if(h.checked){d.style.visibility="visible"}else{d.style.visibility="hidden"}}}}else{break}}}function ShowLine(c,a){var b;b=document.getElementById(a);if(b){if(c.checked){b.style.visibility="visible";b.focus()}else{b.style.visibility="hidden"}}}function UpdateGraphBlocks(b){var a="g"+b;if(rgb_color.length){block_index=0;while(block_index<MAX_GRAPH_SERIES){var c=a+"_block"+block_index;if(document.getElementById(c)){document.getElementById(c).src="/RGB/clear.gif";document.getElementById(c).style.backgroundColor=rgb_color;block_index++}else{break}}}}function UpdateBarGraphs(a,d,b,k){var c="";var g="g"+a;var f=0;if(document.getElementById(g)){var j="";i=0;var h=0;while(i<=MAX_SAMPLES_PER_SERIES){j=g+"_"+i;if(document.getElementById(j)){if(d[i]>h){h=d[i]}if(document.getElementById(j).height<d[i]){f=1;document.getElementById(j).height+=height_inc}else{if(document.getElementById(j).height>d[i]){document.getElementById(j).height=d[i]}}if(rgb_color.length){if(block_index<0){UpdateGraphBlocks(a)}document.getElementById(j).src="/RGB/clear.gif";document.getElementById(j).style.backgroundColor=rgb_color}i++}else{break}}if(k>0){if(GraphTimeoutID>0){clearTimeout(GraphTimeoutID)}c="";if(f==0){a++;g="g"+a;if(document.getElementById(g)){b=g+"_height";if(!VariableExists(b)){if(bVerbose){}b="null"}}else{k=0}height_inc=bar_height_inc}else{if((h<60)&&(height_inc>=bar_height_inc)){height_inc=(bar_height_inc/2)}}c="UpdateBarGraphs("+a+","+b+",'"+b+"',"+k+")";if((c.length>0)&&(k>0)){GraphTimeoutID=window.setTimeout(c,k)}else{GraphTimeoutID=0}}}else{}}function AssertBarGraphsDone(graphIndex_last,msWait){var i=0;var graphIndex;var height_array_name="";var js_str="";var graph_element="";if(msWait>0){js_str=GetFnNameFromCallee(arguments.callee)+"("+graphIndex_last+",0)";setTimeout(js_str,msWait);return}graphIndex=0;for(graphIndex=0;graphIndex<=graphIndex_last;graphIndex++){graph_element="g"+graphIndex;height_array_name=graph_element+"_height";if((GetObj(graph_element))&&(VariableExists(height_array_name))){js_str="FinishBarGraphs("+graphIndex+","+height_array_name+");";eval(js_str)}else{break}}}function FinishBarGraphs(d,c){var b=0;var a="g"+d;if(document.getElementById(a)){while(b<=MAX_SAMPLES_PER_SERIES){check_element=a+"_"+b;if(document.getElementById(check_element)){document.getElementById(check_element).height=c[b];if(rgb_color.length){if(block_index<0){UpdateGraphBlocks(d)}document.getElementById(check_element).src="/RGB/clear.gif";document.getElementById(check_element).style.backgroundColor=rgb_color}}else{break}b++}if(bVerbose){alert("FinishBarGraphs: graphIndex="+d+", i="+b+", done")}}}function ClearGraphingTimeout(a,b){var c="";if(GraphTimeoutID!=0){clearTimeout(GraphTimeoutID);GraphTimeoutID=0}i=0;for(i=0;i<b.length;i++){c=a+"_"+i;if(document.getElementById(c)){document.getElementById(c).height=b[i]}}}function CheckSearch2(a,c){var b=GetKeyCode(c);if(b==13){FindString(a.value)}}function CheckSearch(a){var b=(window.event)?event.keyCode:e.which;if(b==13){FindString(a.value)}}function FindString(b){if(parseInt(navigator.appVersion)<4){return}var a;if(window.find){a=self.find(b);if(a&&self.getSelection&&!self.getSelection().anchorNode){a=self.find(b)}if(!a){a=self.find(b,0,1);while(self.find(b,0,1)){continue}}}else{if(navigator.appName.indexOf("Microsoft")!=-1){if(TRange!=null){TRange.collapse(false);a=TRange.findText(b);if(a){TRange.select()}}if(TRange==null||a==0){TRange=self.document.body.createTextRange();a=TRange.findText(b);if(a){TRange.select()}}}else{if(navigator.appName=="Opera"){alert("Opera browsers not supported, sorry...");return}}}if(!a){alert("String '"+b+"' not found!")}return}function GetDateSelected(b){if((bVerbose)&&(browser_num==BROWSER_SAFARI)){alert("GetDateSelected:date_str="+b)}var g=new Date(b);var h=g.getTime();if(isNaN(h)){if(bVerbose){alert("GetDateSelected:date_msecs is Nan")}b=b.replace(/-/g," ");if(bVerbose){alert("GetDateSelected:trying '"+b+"'")}var d=new Date(b);g=d;h=g.getTime();if(isNaN(h)){var f=0;var a=b.split(" ");b=MonthNamesShort[a[0]-1]+" "+a[1]+" "+a[2];if(bVerbose){alert("still Nan, trying '"+b)}var c=new Date(b);g=c;h=g.getTime()}}if(isNaN(h)){h=0}return h}function ConvertDateTime2Str(d){var c="";c=d.getFullYear();var b=d.getMonth()+1;var a=d.getDate();c=(b<10)?(c+"-0"+b):(c+"-"+b);c=(a<10)?(c+"-0"+a):(c+"-"+a);return c}function UpdateGoButton(){var c=document.getElementById("goId");var g=document.getElementById("goDiv");var a=document.getElementById("CalMsg");if(c==false){return}var b=GetDateSelected(document.SrvForm.CalInput.value);var d=new Date();d.setTime(b);SetDate=d;var h=Today.getTime();var f=SiteStartDate.getTime();ConvertDateTime2Str(SetDate);if(bVerbose){alert("selected:"+d+"="+b);if(b>h){alert("(selected_msecs>today_msecs):"+b+" is greater than "+h)}if(b<f){alert("(selected_msecs<start_msecs):"+b+" is less than "+f)}}var j=MonthNamesShort[d.getMonth()]+" "+d.getDate()+", "+d.getFullYear();if((d.getTime()>Today.getTime())||(d.getTime()<SiteStartDate.getTime())){c.disabled=true;c.style.color="#BCBCBC";c.style.fontWeight="bold";if(d.getTime()<SiteStartDate.getTime()){c.title="Data was not available yet on "+j}else{c.title="Data for "+j+" is not yet available"}}else{if(document.SrvForm.CalInput.value.toLowerCase()==LoadDateStr.toLowerCase()){if(1==1){c.value=button_txt_Go;c.style.fontWeight="normal"}else{c.value=button_txt_Refresh}var k=button_txt_Refresh+" - "+DisplayModeDescr[ViewMode]+" of "+j;c.title=k}else{c.style.fontWeight="bold";c.value=button_txt_Go;c.title="Go to "+DisplayModeDescr[ViewMode]+" of "+j}c.disabled=false;c.style.color=GoButtonFontColor}}function GoCalendarData(){var a="";var b=[];var f=document.getElementById("goId");var c=location.href;if(bVerbose){alert("GoCalendarData:title="+f.title+", button_txt_Refresh="+button_txt_Refresh)}if(f.title.indexOf(button_txt_Refresh)<0){c+="&t="+ConvertDateTime2Str(SetDate)+","+ConvertDateTime2Str(Today)}if(bVerbose){var d="GoCalendarData:bVerbose="+bVerbose+",link='"+c+"'";alert(d);if(bVerbose>1){return}}RedirectPage(c)}function ReplaceDisplayModeParams(c,b){var d="";if(bVerbose){Wr("<tr><td>0."+document.location.search+"</td></tr>")}var a=ReplaceParamStr(document.location.search,"view",c);if(bVerbose){Wr("<tr><td>1."+a+"</td></tr>")}a=ReplaceParamStr(a,"t",b);if(b.length<=0){a=a.replace(/&t=/,"")}if(bVerbose){Wr("<tr><td>2."+a+"</td></tr>")}d="http://"+document.domain+location.pathname+a;if(bVerbose){alert(GetFnNameFromCallee(arguments.callee)+":About to set location.search='"+a+"'")}location.href=d}function DateInput_SRV(h,c,l,b,d){var g=FindParamValue(location.search,"view");if(g.length>0){ViewModeArray=g.split(",");if(bVerbose){alert("ViewModeArray="+Array2String(ViewModeArray))}if(ViewModeArray.length>1){ViewMode=ViewModeArray[ViewModePos]}if(bVerbose){alert("DisplayModeDescr["+ViewMode+"]="+DisplayModeDescr[ViewMode])}}DateInput("CalInput",false,"MM-DD-YYYY",h);LoadDateStr=h;var j="";var m="";if(browser_num==BROWSER_MICROSOFT){j="margin:-24px 0px 0px 162px;"}else{if(browser_num==BROWSER_SAFARI){j="margin:-27px 0px 0px 160px;"}else{if(browser_num==BROWSER_NETSCAPE){j="margin:-27px 0px 0px 171px;"}else{j="margin:-28px 0px 0px 166px;"}}}if((browser_num==BROWSER_MICROSOFT)||(browser_num==BROWSER_NETSCAPE)){m="height:18px;width:27px;"}else{m="height:18px;"}m+="font-size:10px;background-color:#DEDEDE;color:"+GoButtonFontColor+";";var o="";var p='<div id="goDiv" style="'+j+'">\n';p+='<input id="goId" title=\''+o+"' style=\""+m+'" type="BUTTON" value="'+button_txt_Go+'" onClick="GoCalendarData();">';p+="</div>";document.write(p);var f=new Date(c);Today=f;var a=new Date(l);SiteStartDate=a;var k=new Date(b);DataStart=k;var n=new Date(d);DataEnd=n;UpdateGoButton()}function custom_onload(){var d=location.href;var c=0;var b=0;var a=0;if(d.indexOf("sort=pvi_IDs&cond=site_ID")>=0){c=1}else{if(d.indexOf("view=")>=0){c=2}}a=(c==1)?1:0;b=(c==2)?1:0;if(a){windowvar=window.setTimeout("updatetimer()",1000)}else{if(b){}}}function FmtLineGraphBox(j,c,a,h,k,f,g){var l="";var d="";var b=h+1;if(k.length>0){l+=k}l+='<img class="Box12" src="'+a+'"';if(c.length>0){l+=' id="'+c+'"'}d="ShowLine(this,'g"+j+"line"+b+"');";l+='><input type=checkbox class="opaque40" style="margin:0px 0px 0px -14px;" checked onClick="'+d+'"';if(g.length>0){l+=' title="'+g+'"'}l+=">";if(f.length){l+=" "+f}return l}function FmtLineGraphBox2(k,c,a,j,m,f,g,h){var l="";var d="";var b=j+1;if(m.length>0){l+=m}l+='<img class="Box12" src="'+a+'"';if(c.length>0){l+=' id="'+c+'"'}d="ShowLine(this,'g"+k+"line"+b+"');";l+='><input type=checkbox style="margin:0px 0px 0px -14px;" ';if(h>0){l+='class="opaque40" checked onClick="'+d+'"'}else{l+='class="opaque0" '}if(g.length>0){l+=' title="'+g+'"'}l+=">";if(f.length){l+=" "+f}return l}function GraphLineNum(a){return(a)}function GraphLineElement(a,b){return"g"+a+"line"+GraphLineNum(b)}function GraphBlockElement(a,b){return"g"+a+"_block"+b}function GraphCheckBoxElement(a,b){return GraphBlockElement(a,b)+"_box"}function GetHSCheckBoxesOn(b,a){var c=0;var g="";var d;var f=0;c=0;for(c=0;c<a.length;c++){g=GraphCheckBoxElement(b,a[c]);d=GetObj(g);if((d)&&(d.checked)){f++}}if(bVerbose){alert("count="+f)}return f}function UpdateHSDisplay(j,g,d){var h=0;var f=(j>0)?"MouseOver":"MouseOut";var c="hs"+g;var b=document.getElementById(c);var a="HS"+g;if(!b){alert("no "+c+"?");return}if(j){b.style.visibility="visible";document.getElementById(a+"_min").style.visibility=document.getElementById(a+"_mid").style.visibility=document.getElementById(a+"_max").style.visibility="visible"}else{if(GetHSCheckBoxesOn(g,d)==0){b.style.visibility="hidden";document.getElementById(a+"_min").style.visibility=document.getElementById(a+"_mid").style.visibility=document.getElementById(a+"_max").style.visibility="hidden"}}}function CheckGraphBox(d,a,b,c){var g=GraphCheckBoxElement(a,b);var f=GetObj(g);if(f){f.checked=d;if(c){ShowLine(f,GraphLineElement(a,b))}else{}}else{}}function LineGraphUpdate(a,b){var f=GraphCheckBoxElement(a,b);var d=GetObj(f);var c=GraphLineElement(a,b);if(d){ShowLine(d,c)}else{document.getElementById(c).visibility="visible"}}function isIrrLineGraph(b,a){if((a==0)&&(b.indexOf("/yellow.gif")>=0)){return 1}else{return 0}}function FmtGraphBox2(o,c,a,m,q,j,k,l,n,f){var p="";var h="";var b=GraphLineNum(m);var d="";if(q.length>0){p+=q}p+='<img class="Box12" src="'+a+'"';if(c.length>0){p+=' id="'+c+'"'}d=GraphCheckBoxElement(o,m);if(n){h="ShowLine(this,'"+GraphLineElement(o,m)+"');"}else{h="ShowBlocks(this,"+o+",'"+a+"');"}var g=0;g=(browser_num==BROWSER_MICROSOFT)?-16:-13;p+='><input type=checkbox style="margin:0px 0px 0px '+g+'px;" ';if(l==1){if(isIrrLineGraph(a,m)){l=0}}if(l>0){p+='class="opaque40" onClick="'+h+'"';if(f){p+=" checked "}}else{p+='class="opaque0" '}if(d.length>0){p+=' id="'+d+'" '}if(k.length>0){p+=' title="'+k+'"'}p+=">";if(j.length){p+=" "+j}if(bVerbose){alert("FmtGraphBox:"+p)}return p}function FmtGraphBox(o,c,a,m,q,j,k,l,n,f){var p="";var h="";var b=GraphLineNum(m);var d="";if(q.length>0){p+=q}p+='<img class="Box12" src="'+a+'"';if(c.length>0){p+=' id="'+c+'"'}d=GraphCheckBoxElement(o,m);if(n){h="ShowLine(this,'"+GraphLineElement(o,m)+"');"}else{h="ShowBlocks(this,"+o+",'"+a+"');"}var g=0;g=(browser_num==BROWSER_MICROSOFT)?-16:-13;p+='><input type=checkbox style="margin:0px 0px 0px '+g+'px;" ';if(l==1){if(isIrrLineGraph(a,m)){l=0}}if(l>0){p+='class="opaque40" onClick="'+h+'"';if(f){p+=" checked "}}else{p+='class="opaque0" '}if(d.length>0){p+=' id="'+d+'" '}if(k.length>0){p+=' title="'+k+'"'}p+=">";if(j.length){p+=" "+j}if(bVerbose){alert(p)}return p}function ToggleSign(a){a=(a.charAt(0)=="+")?"-":"+";return a}function GetPxNum(a){if(a.indexOf("px")<=0){return 0}else{return parseInt(a.replace("px",""))}}function SRVLogoOnLoad(){var a=GetObj("HideLinks");if(a){AdjustHideLinks(36);logoLoaded=0}else{logoLoaded=1}}function AdjustHideLinks(a){var d=document.getElementById("HideLinks");var b=0;if(d){if(bVerbose){alert("b4:top="+d.style.top+",num="+GetPxNum(d.style.top))}var c=document.getElementById("logoID");if(c){b=c.offsetHeight}else{if(bVerbose){alert("no logo")}}if(b>a){d.style.top=(b-a)+"px"}if(bVerbose){alert("after:top="+d.style.top+",num="+GetPxNum(d.style.top))}}}function FontAdjust(d,c){var b=d.style.fontSize;if(b.indexOf("px")<=0){return}var a=parseInt(b.replace("px",""));if(c!=0){a+=c;d.style.fontSize=a+"px"}}function ToggleExpand2(c,a){var b=document.getElementById(a);if(b){if(b.style.visibility=="hidden"){if(c.innerHTML.charAt(0)=="+"){FontAdjust(c,2)}b.style.visibility="visible";c.innerHTML="-"}else{if(c.innerHTML.charAt(0)=="-"){FontAdjust(c,-2)}b.style.visibility="hidden";c.innerHTML="+"}}else{c.innerHTML=ToggleSign(c.innerHTML)}}function ToggleExpand(d,a){var c=GetObj(a);if(bVerbose){alert("in ToggleExpand, id_to_show="+a)}if(!d){if(bVerbose){alert("ToggleExpand, obj false?")}return}if(c){var b=2;if(c.style.display=="none"){if(bVerbose){alert("1.ToggleExpand: display="+c.style.display)}if(d.innerHTML.charAt(0)=="+"){FontAdjust(d,b)}c.style.display="";d.innerHTML="-"}else{if(bVerbose){alert("2.ToggleExpand: display="+c.style.display)}if(d.innerHTML.charAt(0)=="-"){FontAdjust(d,(-1*b))}c.style.display="none";d.innerHTML="+"}}else{if(bVerbose){alert("ToggleExpand: no show_obj?")}d.innerHTML=ToggleSign(d.innerHTML)}if(d.innerHTML.charAt(0)=="+"){d.title="Click to Expand"}else{d.title="Click to Collapse"}}function ToggleExpand_bak(d,a){var c=GetObj(a);if(bVerbose){alert("in ToggleExpand, id_to_show="+a)}if(!d){if(bVerbose){alert("ToggleExpand, obj false?")}return}if(c){var b=2;if(c.style.display=="none"){if(bVerbose){alert("1.ToggleExpand: display="+c.style.display)}if(d.innerHTML.charAt(0)=="+"){FontAdjust(d,b)}c.style.display="";d.innerHTML="-";d.title="Click to Collapse"}else{if(bVerbose){alert("2.ToggleExpand: display="+c.style.display)}if(d.innerHTML.charAt(0)=="-"){FontAdjust(d,(-1*b))}c.style.display="none";d.innerHTML="+";d.title="Click to Expand"}}else{if(bVerbose){alert("ToggleExpand: no show_obj?")}d.innerHTML=ToggleSign(d.innerHTML)}}function BlinkElem(f,d,b){var c=GetObj(f);var a=0;var g="";if(!c){return}if(c.style.visibility=="visible"){c.style.visibility="hidden";a=b}else{c.style.visibility="visible";a=d}if(typeof(NoTimeouts)!="undefined"){if(NoTimeouts){c.style.visibility="visible";return}}g=GetFnNameFromCallee(arguments.callee)+"('"+f+"',"+d+","+b+");";setTimeout(g,a)}function DrawStatusSpan(elemID,color,text,on_Click,BlinkOn,BlinkOff,add_title){var s="<span";var blink_str="";if(elemID.length>0){s+=' id="'+elemID+'"';if((BlinkOn>0)&&(BlinkOff>0)){blink_str='BlinkElem("'+elemID+'",'+BlinkOn+","+BlinkOff+");"}}s+=' class="font_sm" onMouseOver="this.className=\'font_med\';" onMouseOut="this.className=\'font_sm\';" style="background-color:'+color+';"';if(on_Click.length>0){s+=' onClick="'+on_Click+'"'}if(add_title.length>0){s+=' title="'+add_title+'"'}s+=">"+text;s+="</span>";Wr(s);if(blink_str.length>0){eval(blink_str)}}function DrawExpandMore(c,b,a,f){var d="";if(a>0){d+="font-size:"+a+"px;"}if(f.length>0){d+="color:"+f+";"}DrawExpand(c,b,d)}function DrawExpand(b,a,c){var d="";var g="";var f=DARK_GOLD;if(c.length<=0){c+="font-size:12px;color:"+f+";"}d="<span";if(b.length>0){d+=' id="'+b+'"'}d+=' style="'+c+'"';d+=" onClick=\"ToggleExpand(this,'"+a+"');";d+='">+</span>';Wr(d);if(bVerbose){alert(d)}}function DrawSun(c){var b="";var a=13;b+='<img src="/images/sun.jpg" border=0  height='+a+" width="+a+" ";if(c){b+=' style="visibility:hidden" '}b+='onMouseOver="this.height=this.width=18;" onMouseOut="this.width=this.height='+a+';"';b+=">";Wr(b)}function WrPeakDataCell(b,a,d,g){var f=document.getElementById(b);var c="";if(a.length>0){c+='<span style="font-weight:bold;';if(d.length>11){c+="font-size:12px;"}c+='">'+a+"</span>"}if(d.length>0){if(d.length>11){c+=' <span class="'+g+'">'+d+"</span>"}else{c+=' &nbsp;<span class="'+g+'">['+d+"]</span>"}}if(f){f.innerHTML=c}else{Wr(c)}}function AddSiteToSiteTextObj(a,b){if(b){if(a>0){if(b.value.length==0){b.value=a}else{b.value+=","+a}}else{b.value=""}}}function WrCssBGColorClass(a){var c="MyBg";alert("here, color="+a);var b="<style>\n";b+="."+c+"{background-color:"+a+";}";b+="</style>";Wr(b);alert("class_name="+c+" "+b);return c}function $(){var c=new Array();for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof a=="string"){a=document.getElementById(a)}if(arguments.length==1){return a}c.push(a)}return c}function CloseSelf(){if(browser_num==BROWSER_NETSCAPE){}window.opener="X";window.open("","_parent","");window.close();return;window.opener="X";window.open("","_parent","");window.focus();window.close();alert("still here")}function testfunction(){alert("testheight="+testheight);return;alert("appCodeName="+navigator.appCodeName);alert("appName="+navigator.appName);alert("userAgent="+navigator.userAgent)}function SrvJs_Set(b){var a="Domain:"+document.domain+", in SrvJs_Set";this.p_SERVER_IP_STR=b[0];if(b.length>1){this.CustomPicsHost=b[1]}if(b.length>2){this.adm=parseInt(b[2])}if(b.length>3){this.CgiRemoteChild=b[3]}if((bVerbose)&&(a.length)){alert(a)}}function WrCSS(){var b=LIGHT_GREY;var a="";a+='<style type="text/css">\n table{font: 13px/2em Arial;}\n .border0 {border:0px;;}\n .border1 {border:1px solid #100;border-color:'+b+";}\n";if(iPhoneApp){a+=".graphtitle {font-size:8px;font-family:'arial';line-height:7px; vertical-align:text-bottom;}";a+=".maroon_md {font-size:12px;color:#A52A2A;font-weight:bold;}";a+=".MaroonGTxt{font-size:8px;color:#A52A2A;font-weight:bold;}"}a+="</style>";if(iPhoneApp){a+='\n<meta name="format-detection" content="telephone=no">'}Wr(a)}WrCSS();
