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