//comment
function commentOn (value, This) {
	if (value=="1") {
		This.style.background="url('./images/img_cm01_on.gif') no-repeat 11px 6px";
		This.style.backgroundColor="#fef0e5";
	}
	else if (value=="2") {
		This.style.background="url('./images/img_cm02_on.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#fef0e5";
	}
	else if (value=="3") {
		This.style.background="url('./images/img_cm03_on.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#fef0e5";
	}
	else if (value=="4") {
		This.style.background="url('./images/img_cm04_on.gif') no-repeat 10px 11px";
		This.style.backgroundColor="#fef0e5";
		This.style.width="94%";
	}
}

function commentOut (value, This) {
	if (value=="1") {
		This.style.background="url('./images/img_cm01.gif') no-repeat 11px 6px";
		This.style.backgroundColor="#ffffff";
	}
	else if (value=="2") {
		This.style.background="url('./images/img_cm02.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#ffffff";
	}
	else if (value=="3") {
		This.style.background="url('./images/img_cm03.gif') no-repeat 11px 7px";
		This.style.backgroundColor="#ffffff";
	}
	else if (value=="4") {
		This.style.background="url('./images/img_cm04.gif') no-repeat 10px 11px";
		This.style.backgroundColor="#ffffff";
	}
}

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+"',sizeMethod='image');"
	objsrc='';
	return '';
}

function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;

$(document).ready(function() {
	
	$('#gnb1, #gnb2, #gnb3, #gnb4, #gnb5').hoverIntent(function() {
		$(this).addClass('on');
		$(this).children('.subgnb').slideDown('normal');
	}, function() {		
		$(this).children('.subgnb').slideUp('normal');
		$(this).removeClass('on');
	});

});
