//Copyright timeanddate.com 2005-2010, do not use without permission
men={};menact=null;elh={};fh={};ifa=null;
menus=[{p:"/",s:[]},{p:"/w",s:[{t:"Main World Clock",u:"orldclock/"},{t:"Extended World Clock",u:"orldclock/full.html"},{t:"Personal World Clock",u:"orldclock/personal.html"},{t:"Fixed Time World Clock",u:"orldclock/fixedform.html"},{t:"Time and Weather",u:"eather/"}]},{p:"/",s:[{t:"Time Zone Converter",u:"worldclock/converter.html"},{t:"Meeting Planner",u:"worldclock/meeting.html"},{t:"Time Zone Abbreviations",u:"library/abbreviations/timezones/"},{t:"Time Zone News",u:"news/time/"},{t:"Daylight Saving Time",
u:"time/aboutdst.html"}]},{p:"/calendar/",s:[{t:"Calendar for 2010",u:"?year=2010"},{t:"Calendar for 2011",u:"?year=2011"},{t:"Monthly Calendar",u:"monthly.html"},{t:"Basic Creator",u:"basic.html"},{t:"Advanced Creator",u:"custommenu.html"}]},{p:"/",s:[{t:"Sun Calculator",u:"worldclock/sunrise.html"},{t:"Moon Calculator",u:"worldclock/moonrise.html"},{t:"Moonphases",u:"calendar/moonphases.html"},{t:"Seasons",u:"calendar/seasons.html"},{t:"Day and Night Map",u:"worldclock/sunearth.html"},{t:"Eclipses",
u:"eclipse/"}]},{p:"/",s:[{t:"Countdown to Any Date",u:"counters/customcount.html"},{t:"Date Duration",u:"date/duration.html"},{t:"New Year Countdown",u:"counters/newyear.html"},{t:"Date Calculator",u:"date/dateadd.html"},{t:"Dialing Codes",u:"worldclock/dialing.html"},{t:"Distance Calculator",u:"worldclock/distance.html"}]},{p:"/",s:[{t:"What's new?",u:"updates/"},{t:"About Us",u:"information/"},{t:"Customization",u:"custom/"},{t:"Newsletter",u:"newsletter/"},{t:"Site Search",u:"search/"},{t:"Site Map",
u:"sitemap.html"}]}];sm="_,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(/,/);function pf(a,b){for(;(a="0000"+a)&&a.length<b;);return a.substring(a.length-b)}function p2(a){return a<10?"0"+a:a}function lim(a,b,c){return Math.max(Math.min(a,c),b)}function dt(){return(new Date).getTime()}function gf(a){var b=document;if(b.getElementById)return b.getElementById(a);if(b.all)return b.all[a];return null}function ih(a,b){if(a)a.innerHTML=b}function iH(a,b){ih(gf(a),b)}
function sd(a,b){if(a)a.style.display=b?b==2?"block":"":"none"}function he(a,b){sd(gf(a),b)}function ee(a,b,c){if(a=a[b])a.disabled=!c}function ac(a,b,c){var d,e,f;if(a){d=a.className+" ";e=" "+d;f=e.indexOf(" "+b+" ");if(c){if(f>=0)return;d+=b}else{if(f<0)return;d=d.substring(0,f)+e.substring(f+b.length+1)}a.className=d}}sem_a={};function sem(a,b){var c;c=a.name;a="e"+c;if(sem_a[c]!=b){sem_a[c]=b;a=gf(a);c=gf(c);if(a){ih(a,b);ac(a,"errmark",b)}c&&ac(c,"errf",b)}}
function gx(){function a(e){try{if(c.ActiveXObject)return new ActiveXObject(e)}catch(f){}}var b=null,c=window;try{if(c.XMLHttpRequest)b=new XMLHttpRequest}catch(d){}b||(b=a("Msxml2.XMLHTTP"));b||(b=a("Microsoft.XMLHTTP"));return b}function gp(a,b,c){if(a)try{a.open("GET","http://"+document.domain+b,true);a.onreadystatechange=c;a.send("");return 1}catch(d){alert(d)}return 0}
function rs4(a){if(a&&a.readyState==4)if(a.status!==200){errm="rs4:status="+a.status;return}else return a.responseText+"";return false}function po(a){for(var b={x:0,y:a.offsetHeight};a;){b.x+=a.offsetLeft;b.y+=a.offsetTop;a=a.offsetParent}return b}function gso(a){return a.options[a.selectedIndex]}
function gfv(a){var b=a.type;if(b)switch(b){case "select-one":return gso(a).value;case "text":case "hidden":return a.value;case "radio":if(a.checked)return a.value;break;case "checkbox":return a.checked?a.value:"";case "button":case "submit":return null;default:alert("Unknown type "+b)}return null}function ga(a){var b=[],c=a.elements,d=c.length,e,f;for(e=0;e<d;e++){a=c[e];f=gfv(a);if(f!==null)b[a.name]=f}return b}
function au(a){var b=[],c=0,d;for(d in a)b[c++]=d+="="+escape(a[d]);return b.join("&")}function ap(a){for(var b=0,c=0;a;){b+=a.offsetLeft;c+=a.offsetTop;a=a.offsetParent}return{x:b,y:c}}function ep(a,b){a=a.style;a.left=b.x+"px";a.top=b.y+"px"}function jp(a,b,c,d,e){b=b.offsetWidth;var f=c.offsetWidth;c=c.offsetHeight;if(d==-1)a.x-=b-f;if(d==1)a.x+=f;if(e==-1)a.y-=c;if(e==1)a.y+=c;if(a.x<0)a.x=0}
function ru(a,b){var c,d,e=b.split("&");a=a.replace(/\?/,"?&");for(d=0;d<e.length;d++){b=e[d];c=b.indexOf("=");if(c>0){c=b.substr(0,c+1);c=a.indexOf("&"+c);if(c>0)a=a.substring(0,c+1)+b+a.substring(c+1);else a+="&"+b}}return a.replace(/\?\&/,"?")}function hu(a){return a.replace(/\&/,"&amp;")}
function siv(a){var b=document.body,c=b.scrollLeft,d=b.scrollTop,e=b.clientWidth,f=b.clientHeight,g=ap(a),i=a.clientWidth;a=a.clientHeight;var h=0,k=0;c=g.x-c;if(c<0)h=c;c+=i-e;if(c>0)h=c;c=g.y-d;if(c<0)k=c;c+=a-f;if(c>0)k=c;if(h)b.scrollLeft+=h;if(k)b.scrollTop+=k}function ael(a,b,c,d){if(a.addEventListener)a.addEventListener(b,c,d);else a.attachEvent&&a.attachEvent("on"+b,c)}function oael(a,b,c,d){var e;e=a.id;if(!e)e=a.name;if(!e)e=a.href;e=b+":"+e;if(!elh[e]){elh[e]=1;ael(a,b,c,d)}}
function PU(a){this.n=a;this.s=0}PU.prototype.h=function(a){var b=gf(this.n);this.e=b;ih(b,a);sd(b,2);return b};PU.prototype.k=function(){sd(this.e,0);this.s=0};PU.prototype.x=function(a){a&&a!=this.s||this.s>=0&&this.k()};PU.prototype.y=function(){this.s=-1};PU.prototype.z=function(){var a=dt()+1E3,b=this;b.s=a;window.setTimeout(function(){b.x(a)},1100)};pM=new PU("po1");nM=new PU("ho");function mena(a,b){men[a]=b}function menc(a){var b=menact;if(b)if(a=b.a[a])b.i.value=a.n;pM.k()}
function mens(a,b){var c,d,e,f,g,i,h,k,m,n,p,o,l;if(l=men[a]){a=ap(b);c=l.u?l.u.replace(/\&amp\073/g,"&"):null;d=l.a;e=0;f="<div class=mn onmouseout='pM.z()'>";g=d.length;i=l.r;h=0;k=i&&i<g;m=1;if(k){m=Math.floor((g+i-1)/i);f+="<table border=0 cellpadding=0 cellspacing=0><tr>"}else i=g;for(;m--;){h+=i;if(k)f+="<td valign=top>";for(f+="<ul class='mn'>";e<g&&e<h;e++){n=d[e];p="";if(n.p)p=hu(ru(c,n.p));o=(o=(m?"lr":"")+(e==i-1?" ls":""))?"class='"+o+"' ":"";f+="<li onmouseover='pM.y()'"+(n.h?' class="h" ':
"")+">";n=n.n+(n.d?n.d:"");f+=p?"<a "+o+"href='"+p+"'>"+n+"</a></li>":l.i?"<a "+o+"href='javascript:menc("+e+")'>"+n+"</a></li>":n+"</li>"}f+="</ul>";if(k)f+="</td>"}if(k)f+="</tr></table>";menact=l;c=pM.h(f);if(l.i){c.style.width="";d=c.offsetWidth;l=l.i.offsetWidth;if(d<l)c.style.width=l+"px"}jp(a,c,b,-1,1);ep(c,a);siv(c)}}var j=window;function ifcb(){pM.x()}
function ifkd(a){var b,c,d=true;if(b=window.event){c=b.keyCode;a=b.srcElement}else{c=a.which;a=a.target}b=0;if(c==38)b=-1;if(c==40)b=1;if(b){c=a.value-0;if(c>=0)c+=b;b=fh[a.name];if(!b||!b.a||b.i<=c&&b.a>=c){a.value=c;d=false}}ifd(ifa);return d}
function ifd(a){var b,c,d,e,f,g,i=a.f;g=a.t;var h,k=11,m={i:i,a:[]};b=i.value;ifa=a;oael(i,"keydown",ifkd,0);oael(i,"blur",ifcb,0);if(g.length==1){c=b=b.replace(/[^\d]/g,"");d=new Date;f=2;a.i=1;if(g=="y"){h=d.getFullYear()-5;f=b.length;if(f>0){if(f<4)b+="1005".slice(f);h=b.slice(0,4)-5}a.a=3999;f=4}if(g=="m"){h=1;k=12;a.a=12;e=sm}if(g=="d"){h=1;k=31;a.a=31;m.r=10}h=lim(h,1,3989);if(g=="i"||g=="s"){h=0;k=60;a.a=59;m.r=10}if(g=="h"){h=0;k=24;a.a=23;m.r=12;e=[];for(b=0;b<k;b++)e[b]=(b+11)%12+1+(b<12?
"am":"pm")}for(b=0;b<k;b++){g=e?" - "+e[h]:"";m.a[m.a.length]={n:pf(h,f),d:g,h:c==h};h++}}mena(a.n,m);mens(a.n,i)}function ifc(a,b){var c=a.name,d=fh[c];if(!d){d={n:c,f:a,t:b};fh[c]=d}return ifd(d)}function om(a,b){var c,d,e;c=menus[b];b=c.p;var f=c.s,g=f.length,i="";oael(a,"mouseout",function(){nM.z()},0);if(g){for(e=0;e<g;e++){c=f[e];d=(d=c.u)?b+d:b;i+="<li><a href='"+d+"' onmouseover='nM.y()'>"+c.t+"</a></li>"}b=nM.h(i);a=po(a);a.x-=2;ep(b,a);nM.y()}}blo=-1;
function blf(){var a=window,b=a.location.href,c=document.title,d;if(d=a.sidebar){d.addPanel(c,b,"");return false}if(d=a.external){d.AddFavorite(b,c);return false}}function bls(a){var b=gf("FB");sd(b,blo);if(blo<0){a=a.href.replace(".h","-frame.h");ih(b,"<iframe id=FBF src='"+a+"' width=750 height=500 frameborder=0>webmaster@timeanddate.com</iframe>")}blo=!blo;return false}function blc(){blo=0;bls();blo=-1}function blw(a,b,c,d){document.write('<a href="'+a+'" alt="'+c+'"'+d+">"+b+"</a>")}
function blh(a){if(!a)a=window.event;if(a)if(a=a.target||a.srcElement){if(a.id)return blf();if(a=a.href)try{if(window.open(a,"blhw"))return false}catch(b){}}return 1}
function bli(){var a,b,c,d,e;if(b=window.location){a="?url="+b.pathname;if(b=b.search)a+=escape(b);blw("/information/feedback.html"+a,"Feedback","Send feedback to us",' onclick="return bls(this)"');a.length>8?blw("/createshort.html"+a,"Short URL","Create a short URL to this page",""):blw("/information/linkpolicy.html","Link policy","About linking","");if(b=gf("IM")){d=b.getElementsByTagName("area");e=d.length;a+="&title="+escape(document.title);for(c=0;c<e;c++){b=d.item(c);b.href+=a;b.onclick=blh;
b.alt=b.title="Add this page to "+b.alt}}}};

