// JavaScript Document

function dl_chg_dtimg(my, img_url){
	var root = my.parentNode.parentNode.parentNode.parentNode;
	var target_a = root.getElementsByTagName("A");
	var target_img = root.getElementsByTagName("IMG");
	for(i=0;i<target_a.length;i++){
		target_a[i].className = " ";
	}
	my.className = "over";
	target_img[0].src = img_url;
}

function ChangImg(my,image_src,num){ 
	document.getElementById("good_image"+num).src = image_src;
	var root = my.parentNode.parentNode.parentNode.parentNode;
	var source_a = root.getElementsByTagName("A");
	for(i=0; i<source_a.length; i++){
		source_a[i].className = " ";		
	}
	my.className = "over";
}

function leftmenu(num,tot){
	for(i=0; i<=tot; i++){
		document.getElementById("menu"+i).className="off";
		document.getElementById("menu"+i+"_sub").style.display = "none";
	}
	document.getElementById("menu"+num+"_sub").style.display = "block";
	document.getElementById("menu"+num).className="on";
}


function productsInfo(no){
	for(i=1;i<7;i++){
		if(i==no){
			//document.getElementById("tmimg0"+no).src="/img/products/tab_0"+no+"up.gif";
			document.getElementById("pdt_tab"+no).className="on";
			document.getElementById("info"+no).style.display="block";
		}else{
			if(document.getElementById("pdt_tab"+i)){
				//document.getElementById("tmimg0"+i).src="/img/products/tab_0"+i+"down.gif";
				document.getElementById("pdt_tab"+i).className="off";
				document.getElementById("info"+i).style.display="none";
			}
		}
	}

}

function tabOver(no){
	document.getElementById("tmimg0"+no).src="/img/products/tab_0"+no+"up.gif";
}

function tabOut(no){
	if(document.getElementById("info"+no).style.display=="block"){
	}else{
		document.getElementById("tmimg0"+no).src="/img/products/tab_0"+no+"down.gif";
	}
}

function menuOver(no){
	document.getElementById("menu0"+no).src="/img/common/menu0"+no+"_ov.gif";
}

function menuOut(no){
		document.getElementById("menu0"+no).src="/img/common/menu0"+no+"_on.gif";
}
