// JavaScript //
/***************************************************************************************!

Build Info  : 2007
created on  : DECO9
Webdesigner : ¨Þ

****************************************************************************************!
*/


/* Auto blur */
function autoBlur(){ 
        if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
                document.body.focus(); 
        }
        document.onfocusin=autoBlur; 

/* click_popup */
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; 
        altez=foto1.height; 
        stringa="width="+largh+",height="+altez+",left="+100+",top="+100+",resizable="+1; 
        image_view=window.open(img,"",stringa); 
        image_view.document.write("<html><head><title>View</title></head>"); 
        image_view.document.write("<body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>"); 
        image_view.document.write("<img src="+img+" onclick='self.close()'>"); 
        image_view.document.close(); 
} 

/* jumpMenu */
function MM_jumpMenu(targ,selObj,restore){
        eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
        if (restore) selObj.selectedIndex=0;
}



/* Åä±ÛÅ×ÀÌºí */
function A_news(g) {
        for (var i = 1; i <= 3 ; i ++ ) { 
        Vid = eval("A_news" +  i ); 
                if(g == i) {
					Vid.style.display = '';
                } else {
					Vid.style.display = 'none';
                }
        }
}
function B_news(g) {
        for (var i = 1; i <= 7 ; i ++ ) { 
        Vid = eval("B_news" +  i ); 
                if(g == i) {
					Vid.style.display = '';
                } else {
					Vid.style.display = 'none';
                }
        }
						}
function C_news(g) {
        for (var i = 1; i <= 2 ; i ++ ) { 
        Vid = eval("C_news" +  i ); 
                if(g == i) {
					Vid.style.display = '';
                } else {
					Vid.style.display = 'none';
                }
        }
}
