	/* Rollover*/
	$(document).ready(function (){
		jQuery(".ImgRollOver").mouseover(function (){
			jQuery(this).attr("src", jQuery(this).attr("src").replace("_n", "_o"));
		}).mouseout(function (){
			jQuery(this).attr("src", jQuery(this).attr("src").replace("_o", "_n"));
		}).css("cursor", "pointer");	
	});


	/*png transparent*/
	function setPng24(obj) {
		if ($.browser.msie && $.browser.version != 6) {
			return false;
		}


		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 '';
	}

	
	/* flash */	
	function flash_show(name,src,width,height){
	document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
	document.write(		"codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ");
	document.write("id='"+name+"' WIDTH='"+width+"' HEIGHT='"+height+"' ALIGN=''>");
	document.write("<PARAM NAME=movie VALUE='"+src+"'>");
	document.write("<PARAM NAME=wmode VALUE=transparent>");
	document.write("<PARAM NAME=quality VALUE=high>");
	document.write("<EMBED src='"+src+"' quality=high bgcolor=#FFFFFF ");
	document.write("NAME='"+name+"' WIDTH='"+width+"' HEIGHT='"+height+"' ALIGN='' ");
	document.write("TYPE='application/x-shockwave-flash' ");
	document.write("PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>");
	document.write("</EMBED>");
	document.writeln("</OBJECT>");
	}


	/*탭메뉴 스크립트(id네임,id번호,총갯수)*/
	function show_sub(obj,num,total){
		for(var i=1; i<=total; i++){
			if(i == num){
				document.getElementById(obj+i).style.display = 'block';
			}else{
				document.getElementById(obj+i).style.display = 'none';
			}
		}
	}
	
	
	/* 메뉴 롤오버 */
		$(document).ready(function (){
			jQuery(".menu_box > dl").mouseover(function (){
				var idx = jQuery(".menu_box > dl").index(this);
				jQuery(".menu_box > dl").find("dt").each(function (index){
					var imgObj =jQuery(this).find("img");
					if(idx == index){
						imgObj.attr("src", imgObj.attr("src").replace("_n", "_o"));
					}else{
						imgObj.attr("src", imgObj.attr("src").replace("_o", "_n"));
					}
				});
	
				jQuery(".menu_box > dl").find("dd").hide().eq(idx).show();
	
			});
	
			jQuery(".menu_box > dl").eq(0).mouseover();
		});

//네비게이션
$(document).ready(function (){
		//탑메뉴에서 앵커에 마우스오버와 포커스 이벤트적용
		$("#menunavi > dl a").bind("mouseover focus", function (){
			showNaviMenu($(this));
			$("body").unbind("mouseover").bind("mouseover", function (){
				$("#menunavi > dl").each(function (){
					$(this).next().hide();
					var imgObj = $(this).find("img");
					imgObj.attr("src", imgObj.attr("src").replace(/_o\./gi, "_n."));
				});
				$("body").unbind("mouseover");
			});
		});

		$("#menunavi").bind("mouseover", function (){
			return false;
		});

		function showNaviMenu(obj){
			$("#menunavi > dl").each(function (){
				$(this).next().hide();
				var imgObj = $(this).find("img");
				imgObj.attr("src", imgObj.attr("src").replace(/_o\./gi, "_n."));
			});
			var dlObj =  $(obj).parents("dl:eq(0)");
			dlObj.next().show();
			var imgObj = dlObj.find("img");
			imgObj.attr("src", imgObj.attr("src").replace(/_n\./gi, "_o."));			
		}
	});


