function set1st(){layoutacts();if(bwsName!="ie"||bwsName!="opera"||(bwsName=="ie" && navigator.appVersion.indexOf("MSIE 6.0")<0)){videofadein();}else{videoforie6();}}var layoutTimer;function layoutacts(){mainmenulayout();videolayout();setTimeout("layoutacts()",200);}function mainmenulayout(){tarobj=document.getElementById("subtitle1");tarw=tarobj.clientWidth;for(i=2;i<=5;i++){document.getElementById("subtitle"+i).style.width=tarw+"px";}}function videolayout(){videoelm1=document.getElementById("videobody");videoelm2=document.getElementById("videobodybg");videoelm3=document.getElementById("videobtm");videoelm2.style.height=videoelm1.clientHeight+"px";videoelm3.style.paddingTop=videoelm1.clientHeight+"px";}waitcount=0;newalpha=0;fadespeed=20;tarTop=30;var videoTimer;function videofadein(){waitcount++;tarobj1=document.getElementById("videoframe");tarobj2=document.getElementById("videobody");tarobj3=document.getElementById("videoflash");tarelm1=document.getElementById("videobodybg");tarelm2=document.getElementById("videobtm");if(waitcount<(1000/fadespeed)*0.5){tarobj1.style.top="60px";}else{newalpha+=5;if(bwsName=="ie"){tarobj1.style.filter="alpha(opacity="+newalpha+")";tarobj2.style.filter="alpha(opacity="+newalpha+")";tarobj3.style.filter="alpha(opacity="+newalpha+")";setalpha=Math.ceil(newalpha/2);tarelm1.style.filter="alpha(opacity="+setalpha+")";tarelm2.style.filter="alpha(opacity="+setalpha+")";}else{setalpha=newalpha/100;tarobj1.style.opacity=setalpha;tarobj2.style.opacity=setalpha;tarobj3.style.opacity=setalpha;setalpha=newalpha/100/2;tarelm1.style.opacity=setalpha;tarelm2.style.opacity=setalpha;}movTop=Math.floor((tarTop-tarobj1.offsetTop)/5);tarobj1.style.top=(tarobj1.offsetTop+movTop)+"px";}if(newalpha<100){videoTimer=setTimeout("videofadein()",fadespeed);}else{clearTimeout(videoTimer);}}function videoforie6(){tarobj1=document.getElementById("videoframe");tarobj2=document.getElementById("videobody");tarobj3=document.getElementById("videoflash");tarelm1=document.getElementById("videobodybg");tarelm2=document.getElementById("videobtm");tarobj1.style.filter="alpha(opacity=100)";tarobj2.style.filter="alpha(opacity=100)";tarobj3.style.filter="alpha(opacity=100)";tarelm1.style.filter="alpha(opacity=50)";tarelm2.style.filter="alpha(opacity=50)";}function topmenuact(tarnum,status){document.getElementById("menu"+tarnum).style.backgroundImage="url(images/top_menu_deco_"+status+"_"+nowusingclr+".gif)";if(status=="on"){newcolor="#d9d9d9";}else{newcolor="#626262";}document.getElementById("subtitle"+tarnum).style.color=newcolor;}function topnewsact(tarnum,status){for(i=1;i<=3;i++){document.getElementById("newsarrow"+i).style.display="none";document.getElementById("news"+i).style.backgroundImage="url(images/top_news_bgtop_off_"+nowusingclr+".gif)";document.getElementById("news"+i+"btm").style.backgroundImage="url(images/top_news_bgbtm_off_"+nowusingclr+".gif)";}tarobj=document.getElementById("newsarrow"+tarnum);tarYpos=Math.round((document.getElementById("news"+tarnum).offsetHeight-9)/2);if(status=="on"){tarobj.style.display="block";tarobj.style.top=tarYpos+"px";document.getElementById("news"+tarnum).style.backgroundImage="url(images/top_news_bgtop_on_"+nowusingclr+".gif)";document.getElementById("news"+tarnum+"btm").style.backgroundImage="url(images/top_news_bgbtm_on_"+nowusingclr+".gif)";}}function prTopSetup(){for(prnum=0;prnum<=2;prnum++){document.write('<div id="news'+(prnum+1)+'">');document.write('<div id="news'+(prnum+1)+'btm">');document.write('<strong class="newsdate minifontb clr-mainbk">'+prDateAry[prnum]+'</strong>');document.write('<h2 class="newsdetails minifont"><a href="'+prUrlAry[prnum]+'" target="_blank" onmouseover="topnewsact('+(prnum+1)+',\'on\')" onmouseout="topnewsact('+(prnum+1)+',\'off\')">'+prTitleAry[prnum]+'</a></h2>');document.write('<div id="newsarrow'+(prnum+1)+'" class="newsarrow"><img src="images/blank.gif" width="5" height="9" border="0" alt=""/></div>');document.write('</div>');document.write('</div>');}}