window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);var d=document,elems=new Array(),zInterval=null,current=0,pause=false;function so_init(){if(!d.getElementById||!d.createElement)return;css=d.createElement("link");css.setAttribute("href","css/xfade2.css");css.setAttribute("rel","stylesheet");css.setAttribute("type","text/css");d.getElementsByTagName("head")[0].appendChild(css);elems=d.getElementById("newsticker").getElementsByTagName("li");for(i=1;i<elems.length;i++)elems[i].xOpacity=0;elems[0].style.display="block";elems[0].xOpacity=.99;setTimeout(so_xfade,2000);}
function so_xfade(){cOpacity=elems[current].xOpacity;nIndex=elems[current+1]?current+1:0;nOpacity=elems[nIndex].xOpacity;cOpacity-=.05;nOpacity+=.05;elems[nIndex].style.display="block";elems[current].xOpacity=cOpacity;elems[nIndex].xOpacity=nOpacity;setOpacity(elems[current]);setOpacity(elems[nIndex]);if(cOpacity<=0){elems[current].style.display="none";current=nIndex;setTimeout(so_xfade,2000);}else{setTimeout(so_xfade,50);}
function setOpacity(obj){if(obj.xOpacity>.99){obj.xOpacity=.99;return;}
obj.style.opacity=obj.xOpacity;obj.style.MozOpacity=obj.xOpacity;obj.style.filter="alpha(opacity="+(obj.xOpacity*100)+")";}}
var content=new Array('img/content/rotate/0000_img.jpg','img/content/rotate/0001_img.jpg','img/content/rotate/0002_img.jpg','img/content/rotate/0004_img.jpg','img/content/rotate/0005_img.jpg','img/content/rotate/0007_img.jpg','img/content/rotate/0008_img.jpg','img/content/rotate/0009_img.jpg','img/content/rotate/0010_img.jpg','img/content/rotate/0011_img.jpg');var l=content.length;function imageRotate(){document.getElementById("rotate-image").setAttribute("src",content[Math.round(Math.random()*l)])}
window.onload=imageRotate;var popupLinkConfig=new Array;popupLinkConfig["theater"]=new Array("","width=600,height=380,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");popupLinkConfig["ext"]=new Array("","");popupLinkConfig["help"]=new Array("help","width=400,height=500,scrollbars=yes,resizable=yes,status=no,toolbar=no,location=no,menubar=no");window.addEventListener?window.addEventListener("load",initPopupLinks,false):window.attachEvent("onload",initPopupLinks);function initPopupLinks(){if(!document.getElementsByTagName)return true;var pageLinks=document.getElementsByTagName("a");for(var i=0;i<pageLinks.length;i++){if(((pageLinks[i].className!=null)&&(pageLinks[i].className!=""))||((pageLinks[i].parentNode.className!=null)&&(pageLinks[i].parentNode.className!="")))
{var linkClass=" "+pageLinks[i].className+" ";if((linkClass=="  ")&&(pageLinks[i].parentNode.className!="")){linkClass=" "+pageLinks[i].parentNode.className+" ";}
for(var theKey in popupLinkConfig){if(linkClass.indexOf(" "+theKey+" ")>-1){if((pageLinks[i].target=="")||(pageLinks[i].target==null)){pageLinks[i].target=(popupLinkConfig[theKey][0]!="")?popupLinkConfig[theKey][0]:theKey;}
pageLinks[i].settings=popupLinkConfig[theKey][1];pageLinks[i].onclick=popUp;}}}}
return true;}
function popUp(){newWin=window.open(this.href,this.target,this.settings);newWin.focus();return false;}
var s1={height:100};var h1={height:0};var s2={top:-100};var h2={top:0};var ic1=$('#i-catalog');var ia1=$('#i-calculator');var iu1=$('#i-updates');var is1=$('#i-social');var lc1=$('#l-catalog');var la1=$('#l-calculator');var lu1=$('#l-updates');var ls1=$('#l-social');var ic2=$('#i-catalog');var ia2=$('#i-calculator');var iu2=$('#i-updates');var is2=$('#i-social');var lc2=$('#l-catalog');var la2=$('#l-calculator');var lu2=$('#l-updates');var ls2=$('#l-social');$('#a-catalog').click(function(){if(ic1.height()==100){ic1.animate(h1);lc1.animate(h2);}else{ic1.animate(s1);ia2.animate(h1);iu2.animate(h1);is2.animate(h1);lc1.animate(s2);la2.animate(h2);lu2.animate(h2);ls2.animate(h2);}});$('#a-calculator').click(function(){if(ia1.height()==100){ia1.animate(h1);la1.animate(h2);}else{ia1.animate(s1);ic2.animate(h1);iu2.animate(h1);is2.animate(h1);la1.animate(s2);lc2.animate(h2);lu2.animate(h2);ls2.animate(h2);}});$('#a-updates').click(function(){if(iu1.height()==100){iu1.animate(h1);lu1.animate(h2);}else{iu1.animate(s1);ic2.animate(h1);ia2.animate(h1);is2.animate(h1);lu1.animate(s2);lc2.animate(h2);la2.animate(h2);ls2.animate(h2);}});$('#a-social').click(function(){if(is1.height()==100){is1.animate(h1);ls1.animate(h2);}else{is1.animate(s1);ic2.animate(h1);ia2.animate(h1);iu2.animate(h1);ls1.animate(s2);lc2.animate(h2);la2.animate(h2);lu2.animate(h2);}});
