/* Copyright (c) 2007 Spill Group. Parts by Alessandro Fulciniti (a.fulciniti@html.it). */




function positionLayer(layername,x,y){n=getStyle(layername);n.left=x+'px';n.top=y+'px';}
function getStyle(layer){if(document.getElementById){return document.getElementById(layer).style;}else if(document.all){return document.all[layer].style;}else{return document[layer];}}
function getElement(id){return document.getElementById(id);}
function setLanguage(language){var expiredate=new Date();expiredate.setHours(expiredate.getHours()+24*365*10);setCookie('language',language,expiredate,'/','antioyun.com');}
var IE=document.all?true:false
if(!IE)document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getMouseXY;var mousepositionX=0
var mousepositionY=0
var allowHide=true;function getMouseXY(e){if(IE){mousepositionX=event.clientX+document.documentElement.scrollLeft;mousepositionY=event.clientY+document.documentElement.scrollTop;}else{mousepositionX=e.pageX;mousepositionY=e.pageY;}
if(mousepositionX<0){mousepositionX=0}
if(mousepositionY<0){mousepositionY=0}
return true}
function showImage(imageName){if(getElement('tooltiplayer').allowDisplay==false||getElement('tooltiplayer').allowDisplay==undefined){getElement('tooltiplayer').allowDisplay=true;getElement('tooltipimage').allowDisplay=false;getElement('tooltipimage').src=imageName;getElement('tooltipimage').onload=tooltipimageOnload;document.status=getElement('tooltiplayer').allowDisplay;}
positionLayer('tooltiplayer',mousepositionX+15,mousepositionY-30);}
function hideImage(){getElement('tooltiplayer').allowDisplay=false;hideElement('tooltiplayer');}
function tooltipimageOnload(){getElement('tooltipimage').allowDisplay=true;if(getElement('tooltipimage').allowDisplay&&getElement('tooltiplayer').allowDisplay){getStyle('tooltiplayer').display='block';}}

function hideElement(elementID){if(allowHide){getStyle(elementID).display='none';}}
_ge=function(id){if(document.getElementById){var elem=document.getElementById(id);}else if(document.all){var elem=document.all[id];}
return elem;};var actualWidth=0;var actualHeight=0;var startWidth=0;var startHeight=0;var ratio=1.1;zoom=function(inout){var obj=_ge('flashobj');if(actualWidth==0||actualHeight==0){actualWidth=obj.style.width.replace(/px/i,'');actualHeight=obj.style.height.replace(/px/i,'');startWidth=actualWidth;startHeight=actualHeight;}
switch(inout){case 1:var temp=actualWidth;actualWidth=Math.ceil(ratio*actualWidth);actualHeight=Math.ceil((actualHeight*actualWidth)/temp);break;case-1:var temp=actualWidth;actualWidth=Math.ceil(actualWidth/ratio);actualHeight=Math.ceil((actualHeight*actualWidth)/temp);break;}
obj.style.width=actualWidth+'px';obj.style.height=actualHeight+'px';};resetZoom=function(){if(startWidth>0&&startHeight>0){var obj=_ge('flashobj');actualWidth=0;actualHeight=0;obj.style.width=startWidth+'px';obj.style.height=startHeight+'px';}};String.prototype.isEmpty=function(){if(this==""||this==null||this=="undefined"){return true;}
return false;};function isArray(obj){if(typeof(obj)!="undefined"&&obj!=""){return(typeof(obj.length)=="undefined")?false:true;}
return false;};