// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function CHIMG(obj){
   var str = obj.src;          
   if(str.indexOf('on.gif') < 0){ 
    ss = str.substr(0, str.indexOf('.gif')) 
    obj.src = ss + "on.gif";    
   } else {            
    ss = str.substr(0, str.indexOf('on.gif'))
    obj.src = ss + ".gif";
   }  
  }
  
function button_over(obj, img){
//	alert('test');
	obj.src = img;
	obj.style.cursor = "pointer"
}

function button_out(obj, img){
	obj.src = img;
}
  
// ÅØ½ºÆ®¹Ú½º ¹è°æ
function nonebg(obj){
	obj.style.background = "none";
  }  

// PNG ¹è°æ Åõ¸íÈ­ (for IE)
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 	

// ¸¶ÀÌÅë ¸ÞÀÎ ¸®½ºÆ® ·Ñ¿À¹ö
function overLi(obj) {
	if(obj.className == "") {
		obj.className = "hover";
		}
	else {
		obj.className = "";		
		}
	}

function overDate(objID) {
	if (document.getElementById('date' + objID).className == "l4") {
		document.getElementById('date' + objID).className = "datehover";
		}
	else {
		document.getElementById('date' + objID).className = "l4";	
		}
	}
	
// ¸¶ÀÌÅë ¸ÞÀÎ ½½¶óÀÌµù ¸Þ´º	
function menuOver1(obj,bol) { 
    if(bol) {
	obj.className="rollover1"; 
	} 	
	else {
    obj.className="left"; 
	} 				
}	

function menuOver2(obj,bol) { 
    if(bol) {
	obj.className="rollover2"; 
	} 	
	else {
    obj.className="right"; 
	} 				
}	

function ViewTabContentBox(viewBox, curTab){
	var oLayerRelative = document.getElementById("LayerRelative");
	document.getElementById("LayerComment").style.display = 'none';
	if (oLayerRelative)
		document.getElementById("LayerRelative").style.display = 'none';
	document.getElementById("LayerSympathy").style.display = 'none';		
//	document.all.tabsympathysplit.style.display = document.all.tabcommentsplit.style.display = 'inline';
	
	for( i=0 ; i < document.getElementById("Tab").childNodes.length ; i++ )
		document.getElementById("Tab").childNodes[i].className = "tabitem";
	
	document.getElementById(viewBox).style.display = 'block';
	curTab.parentNode.parentNode.parentNode.className = "tabitem selected";
	
	if (viewBox == "LyaerComment") {
		document.getElementById("tabcommentsplit").style.display = 'none';
	} else if( viewBox == "LayerRelative") {
		document.getElementById("tabsympathysplit").style.display = 'none'; 
		document.getElementById("tabcommentsplit").style.display = 'none';
	} else if (viewBox == "LayerSympathy") {
		if (oLayerRelative)
			document.getElementById("tabcommentsplit").style.display = 'inline';
		else
			document.getElementById("tabcommentsplit").style.display = 'none';
	}
}

