function DateRange(b,a){this.from=b;this.to=a}DateRange.prototype.withinRange=function(a){return(this.from.getTime()<=a.getTime()&&a.getTime()<=this.to.getTime())};DateRange.prototype.intersectsRange=function(a){return((a.from.getTime()<=this.to.getTime()&&this.to.getTime()<=a.to.getTime())||(a.from.getTime()<=this.from.getTime()&&this.from.getTime()<=a.to.getTime()))};DateRange.prototype.intersectsRanges=function(a){for(var b=0;b<a.length;++b){if(this.intersectsRange(a[b])){return true}}};Date.Days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.Months=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.prototype.padded=function(a){return(a<10?("0"+a):a.toString())};Date.prototype.getFullMonth=function(){return Date.Months[this.getMonth()]};Date.prototype.getShortMonth=function(){return Date.Months[this.getMonth()].substring(0,3)};Date.prototype.getFullDay=function(){return Date.Days[this.getDay()]};Date.prototype.getShortDay=function(){return Date.Days[this.getDay()].substring(0,3)};Date.prototype.format=function(a){var b=new String(a);b=b.replace("HH",this.padded(this.getHours()));b=b.replace("H",this.getHours().toString());b=b.replace("MM",this.padded(this.getMinutes()));b=b.replace("M",this.getMinutes().toString());b=b.replace("SS",this.padded(this.getSeconds()));b=b.replace("S",this.getSeconds().toString());b=b.replace("YYYY",this.getFullYear().toString());b=b.replace("YY",this.getFullYear().toString().substring(2,4));b=b.replace("DDDD",this.getFullDay());b=b.replace("DDD",this.getShortDay());b=b.replace("DD",this.padded(this.getDate()));b=b.replace("D",this.getDate().toString());b=b.replace("mmmm",this.getFullMonth());b=b.replace("mmm",this.getShortMonth());b=b.replace("mm",this.padded(this.getMonth()+1));return b};Date.prototype.withinRange=function(a){return(a.from.getTime()<=this.getTime()&&this.getTime()<=a.to.getTime())};Date.prototype.withinRanges=function(a){for(var b=0;b<a.length;++b){if(this.withinRange(a[b])){return true}}return false};Date.prototype.dateWithinRange=function(c){var b=new Date(c.from.getTime());var a=new Date(c.to.getTime());b.setHours(0,0,0,0);a.setHours(23,59,59,999);return(b.getTime()<=this.getTime()&&this.getTime()<=a.getTime())};Date.prototype.dateWithinRanges=function(a){for(var b=0;b<a.length;++b){if(this.dateWithinRange(a[b])){return true}}return false};Date.prototype.monthWithinRange=function(c){var b=new Date(c.from.getTime());var a=new Date(c.to.getTime());b.setDate(1);b.setHours(0,0,0,0);a.setMonth(c.to.getMonth()+1,1);a.setHours(0,0,0,0);a.setTime(a.getTime()-1);return(b.getTime()<=this.getTime()&&this.getTime()<=a.getTime())};Date.prototype.monthWithinRanges=function(a){for(var b=0;b<a.length;++b){if(this.monthWithinRange(a[b])){return true}}return false};function populateOptions(e,b,d){var a=document.getElementById(e);var f=false;a.selectedIndex=-1;a.options.length=0;for(var c=0;c<b.length;++c){a.options[c]=new Option(b[c][1],b[c][0]);if(f==false&&b[c][0]==d){f=true;a.selectedIndex=c}}if(f==false){a.selectedIndex=0}}function populateNumericOptions(e,b,g,d){var a=document.getElementById(e);var f=false;a.selectedIndex=-1;a.options.length=0;for(var c=b;c<=g;++c){a.options[c-b]=new Option(c.toString(),c.toString());if(f==false&&c.toString()==d){f=true;a.selectedIndex=c-b}}if(f==false){a.selectedIndex=0}}function populateOptionsMulti(a,g,f,k){var b=0;var h=document.getElementById(a);var c=false;h.selectedIndex=-1;h.options.length=0;var d=0;for(var e=k-1;e<g.length;e=e+k){h.options[d]=new Option(g[e][1],g[e][0]);if(c==false&&g[e][0]==f){c=true;b=d}++d}h.selectedIndex=b}function populateOptionsWithStyle(e,b,d){var a=document.getElementById(e);var f=false;a.selectedIndex=-1;a.options.length=0;for(var c=0;c<b.length;++c){a.options[c]=new Option(b[c][1],b[c][0]);if(b[c][2]!=null&&b[c][2]!=""){a.options[c].className=b[c][2]}if(f==false&&b[c][0]==d){f=true;a.selectedIndex=c}}if(f==false){a.selectedIndex=0}}var menuCHeadingUrl;function MenuItem(){this.label=null;this.url=null;this.secure=false;this.nestedMenuItems=new Array()}MenuItem.prototype.add=function(c,b,d){var a=new MenuItem();a.label=c;a.url=b;a.secure=(d==null||d==false?false:true);this.nestedMenuItems[this.nestedMenuItems.length]=a;return a};MenuItem.prototype.getUrl=function(b,a){return this.url==null?"javascript://void":this.url.indexOf("://")>=0?this.url:this.secure==true?a+this.url:b+this.url};function ExpandableMenu(d,a,c){this.varName=d;this.menuHeading=a;this.menuItems=c;this.totalTopLevelMenuItems=0;this.httpPrefix=null;this.httpsPrefix=null;for(var b=0;b<this.menuItems.length;++b){this.totalTopLevelMenuItems+=this.menuItems[b].nestedMenuItems.length}}ExpandableMenu.prototype.setUrlPrefixes=function(b,a){this.httpPrefix=b;this.httpsPrefix=a};ExpandableMenu.prototype.writeMenu=function(e,b,h,p){var m=null;var c='<dl id="'+e+'" class="'+e+' clearit"><dt><a href="'+menuCHeadingUrl+'">'+this.menuHeading+"</a></dt>";for(var l=0;l<this.menuItems.length;++l){var a=this.menuItems[l];for(var g=0;g<a.nestedMenuItems.length;++g){m=a.nestedMenuItems[g];c+="\n<dd><a";var o="";var n=false;var d=true;if(m.label==h){if(m.nestedMenuItems.length>0){n=true;if(p==null||p.length==0){o+="active"}o+=" expand"}else{o+="active";if(m.url!=location.pathname){d=false}}}else{if(m.nestedMenuItems.length>0){o+="collapse "}}if(o.length>0){c+=' class="'+o+'"'}if(m.url==null||m.url.length==0||(o.indexOf("active")>=0&&d)||o.indexOf("collapse")>=0){c+=' href="javascript://void"';if(m.nestedMenuItems.length>0){c+=' onclick="javascript:'+this.varName+".toggleNestedMenu(this,'"+b+"_"+g+"');\""}}else{c+=' href="'+m.getUrl(this.httpPrefix,this.httpsPrefix)+'"'}c+=">"+m.label+"</a>";if(m.nestedMenuItems.length>0){c+='\n<ul id="'+b+"_"+g+'" class="'+b;if(n){c+=" expand"}c+='">';for(var f=0;f<m.nestedMenuItems.length;++f){c+="\n<li><a";if(m.nestedMenuItems[f].label==p){c+=' class="active"'}c+=' href="'+m.nestedMenuItems[f].getUrl(this.httpPrefix,this.httpsPrefix)+'" >'+m.nestedMenuItems[f].label+"</a></li>"}c+="\n</ul>"}c+="</dd>"}}c+="</dl>";document.write(c)};ExpandableMenu.prototype.toggleNestedMenu=function(d,g){var f=document.getElementById(g);var a=document.getElementById("menu-c");allanchors=a.getElementsByTagName("a");for(var c=0;c<allanchors.length;++c){if(allanchors[c].className.indexOf("expand")>=0){allanchors[c].className=allanchors[c].className.replace(/expand/ig,"collapse")}}alldivs=a.getElementsByTagName("div");for(var c=0;c<alldivs.length;++c){if(alldivs[c].className.indexOf("menu-d")>=0){alldivs[c].style.display="none"}}var b=navigator.userAgent.toLowerCase();if(b.indexOf("safari")+1){var e=f.style.display}else{var e=(f.currentStyle?f.currentStyle.display:document.defaultView.getComputedStyle(f,null).display)}if(e=="none"){f.style.display="block";d.className=d.className.replace(/collapse/ig,"expand")}else{anchors=f.getElementsByTagName("a");for(var c=0;c<anchors.length;++c){if(anchors[c].className.indexOf("active")>=0){return}}f.style.display="none";d.className=d.className.replace(/expand/ig,"collapse")}};function TabbedMenu(c,b){this.varName=c;this.menuItems=b;this.totalTopLevelMenuItems=0;this.httpPrefix=null;this.httpsPrefix=null;for(var a=0;a<this.menuItems.length;++a){this.totalTopLevelMenuItems+=this.menuItems[a].nestedMenuItems.length}this.mouseOverCounter=new Array();this.popup=null}TabbedMenu.prototype.millisecondTimein=300;TabbedMenu.prototype.millisecondTimeout=700;TabbedMenu.prototype.popupVarName=function(){return this.varName};TabbedMenu.prototype.setUrlPrefixes=function(b,a){this.httpPrefix=b;this.httpsPrefix=a};TabbedMenu.prototype.writeMenu=function(o,d,f,n){var h=null;var b='\n<table id="'+o+'" cellspacing="0">\n<tr>';for(var g=0;g<this.menuItems.length;++g){var a=this.menuItems[g];for(var e=0;e<a.nestedMenuItems.length;++e){h=a.nestedMenuItems[e];b+="\n<td ";if(h.label.length<=3){b+=' class="char3"'}else{if(h.label.length>3&&h.label.length<=5){b+=' class="char5"'}}b+='><a id="m'+g+e+'" href="'+h.getUrl(this.httpPrefix,this.httpsPrefix)+'"';var m="m"+g;if(h.label==f){m+=" active"}else{var l="'m"+g+e+"','"+d+"-"+g+e+"'";b+=' onmouseout="javascript:'+this.varName+".mouseOut("+l+');" onmouseover="javascript:'+this.varName+".mouseOver("+l+');"'}b+='class="'+m+'"';b+=">"+h.label+"</a></td>"}}b+="\n</tr></table>";for(var g=0;g<this.menuItems.length;++g){var a=this.menuItems[g];for(var e=0;e<a.nestedMenuItems.length;++e){h=a.nestedMenuItems[e];b+='\n<div id="'+d+"-"+g+e+'"';b+=' class="'+d;if(h.label==f&&h.nestedMenuItems.length>0){b+=' active"'}else{var l="'m"+g+e+"','"+d+"-"+g+e+"'";b+='" onmouseout="javascript:'+this.varName+".mouseOut("+l+');" onmouseover="javascript:'+this.varName+".mouseOver("+l+');"'}b+=">";for(var c=0;c<h.nestedMenuItems.length;++c){b+="<a";if(h.nestedMenuItems[c].label==n){b+=' class="active"';menuCHeadingUrl=h.nestedMenuItems[c].getUrl(this.httpPrefix,this.httpsPrefix)}b+=' href="'+h.nestedMenuItems[c].getUrl(this.httpPrefix,this.httpsPrefix)+'" >'+h.nestedMenuItems[c].label+"</a>"}b+="\n</div>"}}document.write(b);document.getElementById(o).tableLayout="fixed"};TabbedMenu.prototype.mouseOver=function(b,c){if(this.mouseOverCounter[c]==null){this.mouseOverCounter[c]=0}this.mouseOverCounter[c]++;if(this.popup==null){this.showPopup(b,c)}else{var a=this.varName+'.showPopup("'+b+'","'+c+'");';window.setTimeout(a,this.millisecondTimein)}};TabbedMenu.prototype.mouseOut=function(b,c){if(this.mouseOverCounter[c]==null){this.mouseOverCounter[c]=0}else{this.mouseOverCounter[c]--;var a=this.varName+'.hidePopup("'+c+'");';window.setTimeout(a,this.millisecondTimeout)}};TabbedMenu.prototype.showPopup=function(a,b){if(this.mouseOverCounter[b]>0){if(this.popup==null||this.popup.id!=b){if(this.popup!=null){this.killPopup()}this.popup=document.getElementById(b);this.popup.contentSize=this.popup.innerHTML.replace(/[\s\r\n\t ]*/ig,"").length;if(this.popup.contentSize>0){this.popup.style.display="block"}this.popup.invokingNode=document.getElementById(a);this.popup.invokingNode.className+=" hover"}}};TabbedMenu.prototype.hidePopup=function(a){if(this.mouseOverCounter[a]==0){if(this.popup!=null&&this.popup.id==a){this.killPopup()}}};TabbedMenu.prototype.killPopup=function(){this.mouseOverCounter[this.popup.id]=0;this.popup.style.display="none";this.popup.invokingNode.className=this.popup.invokingNode.className.replace(/\ hover/ig,"");this.popup=null};$j(document).ready(function(){$j("#menu-b-10").children().addClass("right")});
