function setup2nd(){setthis();setbtn();getcache2nd();eachpage();}function setthis(){thisURL=document.location.href;if(thisURL.indexOf("overview")>=0){tarname="ov";}else if(thisURL.indexOf("benefits")>=0){tarname="be";}else if(thisURL.indexOf("products_solutions")>=0){tarname="ps";}else if(thisURL.indexOf("son")>=0){tarname="so";}else if(thisURL.indexOf("downloads")>=0){tarname="dw";}else if(thisURL.indexOf("press_release")>=0){tarname="";}if(tarname!=""){cngmenu(tarname,'on');}}function cngmenu(tarname,status){tarobj=document.getElementById('menu'+tarname);tarobj.style.backgroundImage="url(../images/common_menu_"+tarname+"_"+status+"_"+nowusingclr+".gif)";}function cngbtn(tarname,status){document.getElementById(tarname).src="../images/common_btn_"+tarname+"_"+status+".gif";}function setheaderdeco(){document.write('<img src="../images/common_2ndheader_'+nowusingclr+'.png" width="900" height="116" border="0" alt="" class="iepngfix"/>');}function setbtn(){if(bwsName=="ie" && navigator.appVersion.indexOf("MSIE 6.0")>=0){document.getElementById("topagetop").style.display="block";document.getElementById("pageend").style.marginBottom="20px";}}function getcache2nd(){imgArray=new Array('common_menu_ov_on_','common_menu_be_on_','common_menu_ps_on_','common_menu_so_on_');for(i=0;i<=imgArray.length-1;i++){var cacheimg=new Image();cacheimg.src=tarpath+"images/"+imgArray[i]+nowusingclr+".gif";}}function eachpage(){if(document.location.href.indexOf("benefits")>=0){tar1=document.getElementById("boxlist1");tar2=document.getElementById("boxlist2");tar3=document.getElementById("boxlist3");tar4=document.getElementById("boxlist4");tar1.style.height=tar2.style.height=tar3.style.height=tar4.style.height="auto";tar1.style.height=tar2.style.height=(Math.max(tar1.offsetHeight,tar2.offsetHeight)-15)+"px";tar3.style.height=tar4.style.height=(Math.max(tar3.offsetHeight,tar4.offsetHeight)-15)+"px";beTimer=setTimeout("eachpage()",500);}else if(document.location.href.indexOf("products_solutions")>=0){box1=document.getElementById("dbox1");box2=document.getElementById("dbox2");box3=document.getElementById("dbox3");box1.style.height=box2.style.height=box3.style.height=(Math.max(box1.offsetHeight,box2.offsetHeight,box3.offsetHeight)-5)+"px";box4=document.getElementById("dbox4");box5=document.getElementById("dbox5");box6=document.getElementById("dbox6");box7=document.getElementById("dbox7");box4.style.height=box5.style.height=box6.style.height=box7.style.height=(Math.max(box4.offsetHeight,box5.offsetHeight,box6.offsetHeight,box7.offsetHeight)-5)+"px";}}function prsetup(){for(prnum=0;prnum<prDateAry.length;prnum++){document.write('<div class="newsitem" id="item'+prnum+'">');document.write('<div class="newsbtm" id="item'+prnum+'btm">');document.write('<div class="newsdeco" id="item'+prnum+'deco">');document.write('<h2 class="minifontbcon clr-mainwh">'+prDateAry[prnum]+'</h2>');document.write('<h3 class="basefont"><a href="'+prUrlAry[prnum]+'" target="_blank" onmouseover="linkcng('+prnum+',\'on\',true)" onmouseout="linkcng('+prnum+',\'off\',true)">'+prTitleAry[prnum]+'</a></h3>');document.write('</div>');document.write('</div>');document.write('</div>');}}function linkcng(tarnum,status,decoexist){basepath="url(../images/common_cell11_";document.getElementById('item'+tarnum).style.backgroundImage=basepath+"bg_top_"+status+"_"+nowusingclr+".gif)";document.getElementById('item'+tarnum+'btm').style.backgroundImage=basepath+"bg_btm_"+status+"_"+nowusingclr+".gif)";if(decoexist){document.getElementById('item'+tarnum+'deco').style.backgroundImage=basepath+"deco_"+status+"_"+nowusingclr+".gif)";}}function linkcnghalf(tarnum,status){basepath="url(../images/common_cell21_";document.getElementById('item'+tarnum).style.backgroundImage=basepath+"bg_top_"+status+"_"+nowusingclr+".gif)";document.getElementById('item'+tarnum+'btm').style.backgroundImage=basepath+"bg_btm_"+status+"_"+nowusingclr+".gif)";}var scrOldY=10000;var scrTimer;function scrtotop(){speed=5;if((osPlat=="mac" && bwsName=="ie")||bwsName=="safari"||bwsName=="chrome"||(osPlat=="win" && bwsName=="netscape")){if(document.body.scrollTop>scrOldY){scrEnd();}else{movY=Math.floor((0-document.body.scrollTop)/speed);window.scrollBy(0,movY);scrOldY=document.body.scrollTop;}}else{if(document.documentElement.scrollTop>scrOldY){scrEnd();}else{movY=Math.floor((0-document.documentElement.scrollTop)/speed);window.scrollBy(0,movY);scrOldY=document.documentElement.scrollTop;}}if(movY==0||scrOldY==10000){scrEnd();}else{scrTimer=setTimeout("scrtotop()",30);}}function scrEnd(){scrOldY=10000;clearTimeout(scrTimer);}