/* select menu */   
function Select_Box(num){

	menu=eval("document.all.Lang.style");		
		//alert(menu);
	if (num==1){
		if (menu.display=="block"){ 
			menu.display="none"; 			  
		}
		else {
			menu.display="block"; 
		}
	} 
	if (num==2) {
		if (menu.display=="block"){ 
			menu.display="block"; 			  
		}
		else{
			menu.display="block"; 
		}
	}
}
	
/* ·Ñ¿À¹ö ÀÌ¹ÌÁö */
	function MenuRollOver() {
        el = event.srcElement;
        if(el.oversrc) {
                tmp = el.src;
                el.src = el.oversrc;
                el.oversrc = tmp;
        }
	}

	function InitRollOver() {
		for(i=0; i<60; i++) {
				if(el = document.all['menu'+i]) {
						el.onmouseover = MenuRollOver;
						el.onmouseout = MenuRollOver;
				}
		}
	}
	function SetMenuID(id) {
		el = document.all[id];
		if(el.setsrc) {
				el.src = el.setsrc;
				if(el.oversrc) el.oversrc = el.setsrc;
		} else {
				if(el.oversrc) el.src = el.oversrc
		}
	}
		
	InitRollOver();
	
/* ÀÌ¹ÌÁö È®´ëº¸±â */	
function CaricaFoto(img){ 
	foto1= new Image(); 
	foto1.src=(img); 
	Controlla(img); 
} 
function Controlla(img){ 
	if((foto1.width!=0)&&(foto1.height!=0)){ 
	viewFoto(img); 
} 
else{ 
	funzione="Controlla('"+img+"')"; 
	intervallo=setTimeout(funzione,20); 
} 
} 
function viewFoto(img){ 
	largh=foto1.width+20; 
	altez=foto1.height+20; 
	stringa="width="+largh+",height="+altez; 
	finestra=window.open(img,"",stringa); 
} 

function setPrint()
{
	PrintID.style.visibility = "hidden";
	window.print();
	PrintID.style.visibility = "visible";
}


/* Banner */
	self.onError=null;
	currentX = currentY = 0;  
	whichIt = null;
	lastScrollX = 0; lastScrollY = 0;
	action = window.setInterval("heartBeat()",1);

	function heartBeat() {

		diffY = document.body.scrollTop; 
		diffX = 0; 
		if (diffY != lastScrollY) {
			percent = .2 * (diffY - lastScrollY);
			if (percent > 0) {
				percent = Math.ceil(percent);
			} else {
				percent = Math.floor(percent);
			}
			document.all.layer_right.style.pixelTop += percent;
					lastScrollY = lastScrollY + percent;
		}
		if (diffX != lastScrollX) {
			percent = .2 * (diffX - lastScrollX);
			if (percent > 0) {
				percent = Math.ceil(percent);
			} else {
				percent = Math.floor(percent);
			}
			document.all.layer_right.style.pixelLeft += percent;
			lastScrollY = lastScrollY + percent;
		}	
	}

	/* Select Box */
function selectopenpop(val){
if(val != ""){
	window.open(val,"","");
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}