var curDiv;var d=eval('document');function getObj(oName,oFrame,oDoc){if(!oDoc){if(oFrame){oDoc=oFrame.document;}else{oDoc=window.document;}}if(oDoc[oName]){return oDoc[oName];}if(oDoc.all&&oDoc.all[oName]){return oDoc.all[oName];}if(oDoc.getElementById&&oDoc.getElementById(oName)){return oDoc.getElementById(oName);}for(x=0;x<oDoc.forms.length;x++){if(oDoc.forms[x][oName]){return oDoc.forms[x][oName];}}for(x=0;x<oDoc.anchors.length;x++){if(oDoc.anchors[x].name==oName){return oDoc.anchors[x];}}for(x=0;document.layers&&x<oDoc.layers.length;x++){theOb=findObj(oName,null,oDoc.layers[x].document);if(theOb){return theOb;}}if(!oFrame&&window[oName]){return window[oName];}if(oFrame&&oFrame[oName]){return oFrame[oName];}for(x=0;oFrame&&oFrame.frames&&x<oFrame.frames.length;x++){theOb=findObj(oName,oFrame.frames[x],oFrame.frames[x].document);if(theOb){return theOb;}}return null;}function preload(img){var x=new Image();x.src=img;return x;}function setOpacity(val){var el=getObj(curDiv);try{el.style.opacity=val/10;el.style.filter='alpha(opacity='+val*10+')';}catch(e){}}function fadeIn(){for(var i=0;i<=90;i++){try{setTimeout('setOpacity('+(i/10)+')',8*i);}catch(e){}}}function fadeOut(){for(var i=0;i<=85;i++){try{setTimeout('setOpacity('+(10-i/10)+')',8*i);}catch(e){}}closeDiv();}function closeDiv(el){if(el){x=getObj(el);x.style.display="none";if(el==curDiv){curDiv="";}}else{var cd=getObj(curDiv);cd.style.display="none";curDiv="";}}function showDiv(el){if(el==curDiv){closeDiv(el);}else{if(divlist.length){var arDivList=divlist.split(",");for(i=0;i<arDivList.length;i++){divID=arDivList[i];if(el!=divID){getObj(divID).style.display="none";}}}curDiv=el;setOpacity(0);oMain=getObj('main');getObj(el).style.top=(oMain.offsetTop+100)+'px';getObj(el).style.left=(oMain.offsetLeft+50)+'px';getObj(el).style.display="block";fadeIn();}}function changeimg(id,img){if(d.images){getObj(id).src=img;}}
