google.load("jquery","1.4.2");var rotationInterval=null;function resizeLines(){if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){winW=window.innerWidth;winH=window.innerHeight}if(navigator.appName.indexOf("Microsoft")!=-1){winW=document.body.offsetWidth;winH=document.body.offsetHeight}}var b=document.getElementById("nav");var d=document.getElementById("logo");var e=document.getElementById("main");var g=document.getElementById("main2");var j=document.getElementById("headerimg");var i=document.getElementById("lineV");if(e!=null){var f=e.offsetTop+e.offsetHeight}if(g!=null){var c=g.offsetTop+g.offsetHeight;if(e!=null){if(mainNum2>f){f=c}}else{f=c}}var h=getMinLineHeight();var a=b.offsetTop+b.offsetHeight-10;if(f>a){if(f>h){i.style.height=f}else{i.style.height=h}}else{if(a>h){i.style.height=a}else{i.style.height=h}}}function getMinLineHeight(){var b=document.createElement("div");var a=document.createElement("div");a.setAttribute("className","lineMinHeight");b.appendChild(a);return a.style.height}function centerIndex(){if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){winW=window.innerWidth;winH=window.innerHeight}if(navigator.appName.indexOf("Microsoft")!=-1){winW=document.body.offsetWidth;winH=document.body.offsetHeight}}var f=document.getElementById("nav");var e=document.getElementById("logo");var a=document.getElementById("main");var c=document.getElementById("headerimg");var b=document.getElementById("lineV");var d=document.getElementById("lineH");var g=(winH-(a.offsetTop+a.offsetHeight))/2;b.style.top=g;d.style.top=g;f.style.top=g;e.style.top=g;a.style.top=g;c.style.top=g}function flipImageOut(b,c,a){if(rotationInterval==null){b.src=a}else{b.src=c}}function flipImageOver(b,c,a){if(rotationInterval!=null){b.src=a}}function startImageRotate(){rotationInterval=setInterval("doRotate()",4000)}function stopImageRotate(){clearInterval(rotationInterval);rotationInterval=null}function flipImageRotate(c,b,a){if(rotationInterval==null){startImageRotate();c.src=b}else{stopImageRotate();c.src=a}}function doRotate(){var g=new Array();var h="imgrotate-";var e=0;var f=0;var c=document.getElementById(h+e);while(c!=null){if(c.className==="show"){f=e}g[e++]=c;c=document.getElementById(h+e)}var a=g.length;var d=Math.floor((Math.random()*(new Date()).getTime())%a);if(d==f){if((d+1)<a){d++}else{if((d-1)>=0){d--}}}for(var b=0;b<a;b++){if(b==d){g[b].className="show"}else{g[b].className="hide"}}}function doVnAjaxResponse(){if(request.readyState==4){if(request.status==200){eval(respFunction)}else{if(request.status==404){}else{}}}}function getVnAjaxRequest(){var c=false;try{c=new XMLHttpRequest()}catch(b){try{c=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){try{c=new ActiveXObject("Microsoft.XMLHTTP")}catch(a){c=false}}}if(!c){alert("Error initializing some critical JavaScript components!");return false}return c}function iefix(){var a=document.uniqueID&&document.compatMode&&!window.XMLHttpRequest&&document.execCommand;try{if(!!a){a("BackgroundImageCache",false,true)}}catch(b){}}function jq_navi(){$("ul#navlist span").css("opacity","0");$("div#HomeImage span").css("opacity","0");$("div#HomePlayPauseImage span").css("opacity","0");$("#headerimg td:not(.m_sel) div#HomeImage a").hover(function(){$(this).stop().animate({opacity:0.25},"fast")},function(){$(this).stop().animate({opacity:1},"fast")});$("#headerimg td:not(.m_sel) div#HomePlayPauseImage a").hover(function(){$(this).stop().animate({opacity:0.25},"fast")},function(){$(this).stop().animate({opacity:1},"fast")});$("ul#navlist li:not(.m_sel) a").hover(function(){$(this).stop().animate({opacity:0.25},"fast")},function(){$(this).stop().animate({opacity:1},"fast")})};