
/* ÀÌ¹ÌÁö ·Ñ¿À¹ö01 */
function img_over(obj,overName){
	if(!overName){
		overName="_on";
	}
	var imgType;
	var imgURL=obj.getAttribute("src");
	if(imgURL.indexOf(overName)==-1){
		imgURL.indexOf(".gif")>0?imgType=".gif":imgType=".jpg"
		var imgName=imgURL.substr(0,imgURL.indexOf(imgType))
		obj.setAttribute("src",imgName+overName+imgType);
	}else{
		obj.imgOver="always";
	}
}
/* ÀÌ¹ÌÁö ·Ñ¿À¹ö02 */
function img_out(obj,overName){
	if(!overName){
		overName="_on";
	}
	if(obj.imgOver!="always"){
		var imgType;
		var imgURL=obj.getAttribute("src");
		var imgName=imgURL.substr(0,imgURL.indexOf(overName));
		imgURL.indexOf(".gif")>0?imgType=".gif":imgType=".jpg"
		obj.setAttribute("src",imgName+imgType);
	}
}

/*Á¡¼± »èÁ¦*/
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 


 // ½æ³×ÀÏ ¿À¹ö
function img_over(obj,overName){
	if(!overName){
		overName="_on";
	}
	var imgType;
	var imgURL=obj.getAttribute("src");
	if(imgURL.indexOf(overName)==-1){
		imgURL.indexOf(".gif")>0?imgType=".gif":imgType=".jpg"
		var imgName=imgURL.substr(0,imgURL.indexOf(imgType))
		obj.setAttribute("src",imgName+overName+imgType);
	}else{
		obj.imgOver="always";
	}
}

// ½æ³×ÀÏ ¾Æ¿ô
function img_out(obj,overName){
	if(!overName){
		overName="_on";
	}
	if(obj.imgOver!="always"){
		var imgType;
		var imgURL=obj.getAttribute("src");
		//alert(imgURL);
		if(imgURL.indexOf(overName) != -1){
			var imgName=imgURL.substr(0,imgURL.indexOf(overName));
			imgURL.indexOf(".gif")>0?imgType=".gif":imgType=".jpg"
			obj.setAttribute("src",imgName+imgType);						
		}
	}
}

function tab_cont(code)
{
	for (i = 1; i < 5;  i++)
	{
		document.getElementById("cont_tab_0"+i).imgOver="";
		img_out(document.getElementById("cont_tab_0"+i));
		document.getElementById("tab_cont_0"+i).style.display = "none";
	}
	document.getElementById("cont_tab_0"+code).imgOver="always";
	img_over(document.getElementById("cont_tab_0"+code));
	document.getElementById("tab_cont_0"+code).style.display = "";		
}

function openPopUp(strUrl, strWinName, intWidth, intHeight)
{
	window.open(strUrl, strWinName, 'width=' + intWidth + ', height=' + intHeight + ', scrollbars=no, resizable=no');
}



// ÇÃ·¹½¬
function playflash(file,width,height,bgcolor,quality,name,wmode){
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+name+'">');
 document.write('<param name="movie" value="'+file+'" />');
 document.write('<param name="quality" value="'+quality+'" />');
 document.write('<param name="wmode" value="'+wmode+'" />');
 document.write('<param name="bgcolor" value="'+bgcolor+'" />');
 document.write('<embed src="'+file+'" quality="'+quality+'" wmode="'+wmode+'" bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+name+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>')
}

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


// ¸Þ´º ¸µÅ©
function flashmenu(inMenu1,inMenu2,inMenu3)
{

	var xmlDoc = new ActiveXObject("MSXML.DOMDocument");
	xmlDoc.async = false;
//¡Úxml°æ·Î ¹Ù²ãÁÖ¼¼¿ä~
	xmlDoc.load("/js/menu.xml");

	navLnk=""

	if(xmlDoc.parseError != 0){}
	else
	{
		// ·çÆ® ¿ä¼ÒÃ£±â
		var xroot = xmlDoc.documentElement;
		var node1 = xroot.getElementsByTagName("menu1");
		// ============= 1Â÷ ¸Þ´º =============
		if (inMenu1!="")
		{			
			for (var i=0;i<node1.length;i++) {				
				if (node1(i).attributes(0).nodeValue == inMenu1 && node1(i).nodeName=="menu1"){
						navLnk = node1(i).attributes(2).nodeValue

					// ============= 2Â÷ ¸Þ´º =============					
					if (inMenu2!="") {
						for ( var j=0;j<node1(i).childNodes.length;j++) {			
							if (node1(i).childNodes(j).attributes(0).nodeValue == inMenu2 && node1(i).childNodes(j).nodeName=="menu2") {
									navLnk = node1(i).childNodes(j).attributes(2).nodeValue
								// ============= 3Â÷ ¸Þ´º =============
								if (inMenu3!=null) {
									if (inMenu3!="") {
										im = eval(inMenu3-1)
										node2 = xroot.childNodes(i).childNodes(j)
										navLnk = node2.childNodes(im).attributes(2).nodeValue
									} // 3Â÷ ¸Þ´º
								}
							}
						}
					} // 2Â÷ ¸Þ´º
				}
			}
		} // 1Â÷ ¸Þ´º

		//alert(navLnk);

		location.href=navLnk;

	}
}
function newWin(tgurl){
  window.open(tgurl);
}

