﻿var inImgPropertyChanged=false;function imgPropertyChanged(){if(window.event.propertyName=="src"&&!inImgPropertyChanged){inImgPropertyChanged=true;var a=window.event.srcElement;if(a.src!=smallTransparentGif){a.filters.item(0).src=a.src;a.src=smallTransparentGif}inImgPropertyChanged=false}}var smallTransparentGif="";function fixupIEPNG(c,b){smallTransparentGif=b;if(windowsInternetExplorer&&browserVersion<7){var a=document.getElementById(c);if(a){var d=a.src;a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d+"', sizingMethod='scale')";a.src=b;a.attachEvent("onpropertychange",imgPropertyChanged)}}}function getChildOfType(d,c,b){var a=d.getElementsByTagName(c);return b<a.length?a.item(b):null}function onPageLoad(){detectBrowser();adjustLineHeightIfTooBig("id10");adjustFontSizeIfTooBig("id10");adjustLineHeightIfTooBig("id16");adjustFontSizeIfTooBig("id16");adjustLineHeightIfTooBig("id19");adjustFontSizeIfTooBig("id19");fixupAllIEPNGBGs();fixupIEPNG("id1","Home_files/transparent.gif");fixupIEPNG("id2","Home_files/transparent.gif");fixupIEPNG("id3","Home_files/transparent.gif");fixupIEPNG("id4","Home_files/transparent.gif");fixupIEPNG("id5","Home_files/transparent.gif");fixupIEPNG("id6","Home_files/transparent.gif");fixupIEPNG("id7","Home_files/transparent.gif");fixupIEPNG("id8","Home_files/transparent.gif");fixupIEPNG("id9","Home_files/transparent.gif");fixupIEPNG("id11","Home_files/transparent.gif");fixupIEPNG("id12","Home_files/transparent.gif");fixupIEPNG("id13","Home_files/transparent.gif");fixupIEPNG("id14","Home_files/transparent.gif");fixupIEPNG("id15","Home_files/transparent.gif");fixupIEPNG("id17","Home_files/transparent.gif");fixupIEPNG("id18","Home_files/transparent.gif");fixupIEPNG("id20","Home_files/transparent.gif");fixupIEPNG("id21","Home_files/transparent.gif");return true}function fixupIEPNGBG(a){if(a){var r=a.currentStyle.backgroundImage,q=a.currentStyle.backgroundRepeat,t=r.indexOf("url("),u=r.indexOf(")",t),d=r.substring(t+4,u);if(d.charAt(0)=='"')d=d.substring(1);if(d.charAt(d.length-1)=='"')d=d.substring(0,d.length-1);var s=false,l="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d+"', sizingMethod='crop');";if(RegExp("/C[0-9A-F]{8}.png$").exec(d)!=null){l="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d+"', sizingMethod='scale');";s=true}var p=new Image;p.src=d;var c=p.width,b=p.height,f=0,e=0;if(a.style.width)f=parseInt(a.style.width);else f=a.offsetWidth;if(a.style.height)e=parseInt(a.style.height);else e=a.offsetHeight;if(f==0||e==0)return;var n=1,j=1,k=0,i=0;if(q.indexOf("no-repeat")!=-1||c==0&&b==0||s){c=f;b=e}else if(q.indexOf("repeat-x")!=-1||b==0){j=Math.floor(f/c);i=f-c*j;b=e}else if(q.indexOf("repeat-y")!=-1){n=Math.floor(e/b);k=e-b*n;c=f}else{j=Math.floor(f/c);n=Math.floor(e/b);i=f-c*j;k=e-b*n}var g=document.createElement("div");g.style.position="relative";g.style.zIndex="1";g.style.left="0px";g.style.top="0px";if(!isNaN(parseInt(a.style.width)))g.style.width=""+f+"px";if(!isNaN(parseInt(a.style.height)))g.style.height=""+e+"px";var o=true;while(a.hasChildNodes()){if(a.firstChild.nodeType==3){if(RegExp("^ *$").exec(a.firstChild.data)==null)o=false}else o=false;g.appendChild(a.firstChild)}if(o)g.style.lineHeight="0px";var m="";for(var h=0;h<n;h++){for(currentCol=0;currentCol<j;currentCol++)m+='<div style="position: absolute; line-height: 0px; width: '+c+"px; "+"height: "+b+"px; "+"left:"+currentCol*c+"px; "+"top:"+h*b+"px; "+"filter:"+l+'" > </div>';if(i!=0)m+='<div style="position: absolute; line-height: 0px; width: '+i+"px; "+"height: "+b+"px; "+"left:"+currentCol*c+"px; "+"top:"+h*b+"px; "+"filter:"+l+'" > </div>'}if(k!=0){for(currentCol=0;currentCol<j;currentCol++)m+='<div style="position: absolute; line-height: 0px; width: '+c+"px; "+"height: "+k+"px; "+"left:"+currentCol*c+"px; "+"top:"+h*b+"px; "+"filter:"+l+'" > </div>';if(i!=0)m+='<div style="position: absolute; line-height: 0px; width: '+i+"px; "+"height: "+k+"px; "+"left:"+currentCol*c+"px; "+"top:"+h*b+"px; "+"filter:"+l+'" > </div>'}a.innerHTML=m;a.appendChild(g);a.style.background=""}}function fixupAllIEPNGBGs(){if(windowsInternetExplorer&&browserVersion<7)try{var c=document.getElementsByTagName("DIV");for(var b=0;b<c.length;b++){var a=c.item(b);if(a.currentStyle&&a.currentStyle.backgroundImage&&a.currentStyle.backgroundImage.indexOf("url(")!=-1&&a.currentStyle.backgroundImage.indexOf('.png")')!=-1)fixupIEPNGBG(a)}}catch(d){}}function NBmouseover(c){var b=document.getElementById("navbar_"+c+"_normal"),a=document.getElementById("navbar_"+c+"_rollover");if(b&&a){b.style.visibility="hidden";a.style.visibility="visible"}return true}var windowsInternetExplorer=false,browserVersion=0;function detectBrowser(){windowsInternetExplorer=false;var a=navigator.appVersion;if(a.indexOf("MSIE")!=-1&&a.indexOf("Macintosh")==-1){var b=a.split("MSIE");browserVersion=parseFloat(b[1]);windowsInternetExplorer=true}}function elementLineHeight(b){var a=MINIMUM_FONT;if(document.defaultView){var c=document.defaultView.getComputedStyle(b,null);if(c)a=c.getPropertyValue("line-height")}else if(b.currentStyle)a=b.currentStyle.lineHeight;if(UNITS.length==0&&a!=MINIMUM_FONT)UNITS=a.substring(a.length-2,a.length);return parseFloat(a)}function adjustLineHeightIfTooBig(o){var e,b,c,e=document.getElementById(o);if(e){b=getChildOfType(e,"DIV",0);if(b){c=getChildOfType(b,"DIV",0);if(c){var g=c.offsetHeight,f=g;if(b.style.height!="")f=parseFloat(b.style.height);else if(e.style.height!="")f=parseFloat(e.style.height);if(g>f){var k=true,n=0;while(k&&g>f&&n<10){k=false;++n;var l=getParaDescendants(c);for(i=0;i<l.length;i++){var a=l[i];if(a.nodeName=="DIV"){var m=elementFontSize(a),h=elementLineHeight(a)*.95;if(h>=m*1.1){a.style.lineHeight=h+UNITS;k=true}for(j=0;j<a.childNodes.length;j++){var d=a.childNodes[j];if(d.nodeName=="SPAN"||d.nodeName=="A"){var m=elementFontSize(d),h=elementLineHeight(d)*.95;if(h>=m*1.1){d.style.lineHeight=h+UNITS;var k=true}}}}}g=c.offsetHeight}}}}}}function getParaDescendants(e){var c=[],b=e.getElementsByTagName("DIV");for(var a=0;a<b.length;a++){var d=b.item(a);if(d.className.lastIndexOf("paragraph")!=-1)c.push(d)}return c}var MINIMUM_FONT="10",UNITS="";function elementFontSize(b){var a=MINIMUM_FONT;if(document.defaultView){var c=document.defaultView.getComputedStyle(b,null);if(c)a=c.getPropertyValue("font-size")}else if(b.currentStyle)a=b.currentStyle.fontSize;if(UNITS.length==0&&a!=MINIMUM_FONT)UNITS=a.substring(a.length-2,a.length);return parseFloat(a)}function adjustFontSizeIfTooBig(u){var f,e,d,f=document.getElementById(u);if(f){e=getChildOfType(f,"DIV",0);if(e){d=getChildOfType(e,"DIV",0);if(d){var k=d.offsetHeight,g=k;if(e.style.height!="")g=parseFloat(e.style.height);else if(f.style.height!="")g=parseFloat(f.style.height);if(k>g){var b=200,h=getParaDescendants(d),n=false;for(i=0;i<h.length;i++){var a=h[i],v=elementLineHeight(a);n=n||v*1.5>=g;if(a.nodeName=="DIV"){var m=elementFontSize(a);b=Math.min(b,m);for(j=0;j<a.childNodes.length;j++){var c=a.childNodes[j];if(c.nodeName=="SPAN"||c.nodeName=="A"){m=elementFontSize(c);b=Math.min(b,m)}}}}var r=parseFloat(MINIMUM_FONT),o=0;while(b>r&&k>g&&o<10){++o;if(n){var w=parseInt(f.style.width);d.style.width=""+w*Math.pow(1.05,o)+"px"}else{var l=Math.max(.95,r/b);for(i=0;i<h.length;i++){var a=h[i];if(a.nodeName=="DIV"){var p=elementFontSize(a)*l,s=elementLineHeight(a)*l;for(j=0;j<a.childNodes.length;j++){var c=a.childNodes[j];if(c.nodeName=="SPAN"||c.nodeName=="A"){var q=elementFontSize(c)*l,t=elementLineHeight(c)*l;c.style.fontSize=q+UNITS;c.style.lineHeight=t+UNITS;b=Math.min(b,q)}}a.style.fontSize=p+UNITS;a.style.lineHeight=s+UNITS;b=Math.min(b,p)}}}k=d.offsetHeight}}}}}}function NBmouseout(c){var b=document.getElementById("navbar_"+c+"_normal"),a=document.getElementById("navbar_"+c+"_rollover");if(b&&a){b.style.visibility="visible";a.style.visibility="hidden"}return true}