function addLoadEvent(d){var c=window.onload;if(typeof window.onload!="function"){window.onload=d}else{window.onload=function(){c();d()}}}document.getElementsByClassName=function(l,g){if(g){var m=document.getElementById(g);var h=m.getElementsByTagName("*")}else{var h=document.getElementsByTagName("*")||document.all}var j=[];var k=new RegExp("\\b"+l+"\\b","g");for(i=0;i<h.length;i++){if(h[i].className.match(k)){j.push(h[i])}}if(j.length>0){return j}else{return false}};document.getElementsByAttribute=function(j,g){var h=document.getElementsByTagName(j);var k=new Array();for(var f=0;f<h.length;f++){if(h[f].getAttribute(g)){k.push(h[f]);k.push(h[f].getAttribute(g))}}return k};function setOpacity(c,d){if(!c){return false}d=(d==100)?99.999:d;c.style.filter="alpha(opacity:"+d+")";c.style.KHTMLOpacity=d/100;c.style.MozOpacity=d/100;c.style.opacity=d/100}var fadeInTimer;function fadeIn(f,g,j,k,h){clearTimeout(fadeInTimer);if(document.getElementById){obj=document.getElementById(f);if(g<=j){setOpacity(obj,g);g+=10;fadeInTimer=window.setTimeout("fadeIn('"+f+"',"+g+","+j+","+k+","+h+")",k)}else{if(typeof h=="function"){h()}}}}var fadeOutTimer;function fadeOut(o,h,m,n,k,l){clearTimeout(fadeOutTimer);obj=document.getElementById(o);if(document.getElementById&&obj){if(h>=m){setOpacity(obj,h);h-=10;fadeOutTimer=window.setTimeout("fadeOut('"+o+"',"+h+","+m+","+n+",'"+k+"',"+l+")",n)}else{if(k=="hide"){obj.style.display="none"}else{if(k=="delete"){var j=obj.parentNode;j.removeChild(obj);return true}}if(typeof l=="function"){l()}}}}function initStripe(q,p,n,t,x,s){if(x==null){x="oddRow"}if(s==null){s="evenRow"}if(p){var u=document.getElementById(p);if(n==true){var o=u.getElementsByTagName("table");for(var v=0;v<o.length;v++){var r=new RegExp(q,"i");if(o[v].className.match(r)){var w=o[v].getElementsByTagName("tbody");var y=w[0].getElementsByTagName("tr")}}}else{var y=u.getElementsByClassName(q)}}else{var y=document.getElementsByClassName(q)}stripeRows(y,x,s)}function stripeRows(h,g,f){for(var e=0;e<h.length;e++){regexp=new RegExp("(\\s"+g+"|\\s"+f+")");h[e].className=h[e].className.replace(regexp,"");regexp=new RegExp("(\\s"+g+"|\\s"+f+"|"+h[e].className+"(?!\\S))");if(e%2){h[e].className=h[e].className.replace(regexp,h[e].className+" "+f)}else{h[e].className=h[e].className.replace(regexp,h[e].className+" "+g)}}delete regexp}function fontSizing(j,h){var l=document.getElementById(j);var m=l.getElementsByTagName("*")||document.all;for(var g=0;g<m.length;g++){childName=m[g].nodeName.toLowerCase();if(m[g].nodeType==1&&(childName=="p"||childName=="li"||childName=="td"||childName=="h2"||childName=="h3"||childName=="h4")){if(m[g].currentStyle){var k=m[g].currentStyle.fontSize}else{if(window.getComputedStyle){var k=document.defaultView.getComputedStyle(m[g],null).getPropertyValue("font-size")}}k=k.replace("px","");if(h=="plus"){m[g].style.fontSize=Math.round(k*1.2)+"px"}else{if(h=="minus"){m[g].style.fontSize=Math.round(k/1.2)+"px"}}}}}function scanInputs(){var e=new Array();var f=document.getElementsByTagName("input");for(var h=0;h<f.length;h++){e.push(f[h])}var g=document.getElementsByTagName("textarea");for(var h=0;h<g.length;h++){e.push(g[h])}inputValuesArray=new Array();for(var h=0;h<e.length;h++){if(e[h].getAttribute("type")&&e[h].getAttribute("type").toLowerCase()=="text"){inputValuesArray[f[h].getAttribute("name")]=f[h].value;e[h].onfocus=function(){if(this.value==inputValuesArray[this.getAttribute("name")]){this.value=""}};e[h].onblur=function(){if(this.value==""){this.value=inputValuesArray[this.getAttribute("name")]}}}else{if(e[h].nodeName.toLowerCase()=="textarea"){inputValuesArray[e[h].getAttribute("name")]=e[h].innerHTML;e[h].onfocus=function(){if(this.innerHTML==inputValuesArray[this.getAttribute("name")]){this.innerHTML=""}};e[h].onblur=function(){if(this.innerHTML==""){this.innerHTML=inputValuesArray[this.getAttribute("name")]}}}}}}function openWin(h,g,f){if(typeof(arguments[2])=="object"){var e=_parameters(arguments[2])}window.open(h,g,e)}function _parameters(c){var d=[];for(attribute in c){d.push(attribute+"="+c[attribute].toString())}return d.join(",")}function _attributes(c){var d=[];for(attribute in c){d.push((attribute=="className"?"class":attribute)+'="'+c[attribute].toString()+'"')}return d}function removeElement(b){if(typeof b!="object"){b=document.getElementById(b)}b.parentNode.removeChild(b)}function toggle(b){if(typeof b!="object"){b=document.getElementById(b)}if(b.style.display=="none"){b.style.display="block"}else{b.style.display="none"}};