
function toggle(cls, num, imgCls) {
	var targetObjs = $("." + cls);
	var imgs = $("." + imgCls);
	targetObjs.each(function (i){
		if (i != num - 1){
			$(this).slideUp("fast");
		}
	})
	imgs.each(function (i){
		if (i != num -1){
			$(this).attr("class", "off " + imgCls);
		}
	});
	if ($(imgs[num-1]).attr("class") ==  "off " + imgCls) {
		$(imgs[num-1]).attr("class", "on " + imgCls);
	} else {
		$(imgs[num-1]).attr("class", "off " + imgCls);
	} if ($(targetObjs[num-1]).css("display") == "none"){
		$(targetObjs[num-1]).slideDown("fast");
	} else {
		$(targetObjs[num-1]).slideUp("fast");
	}
}

function zoomImg(){
	$("#zoomLayer").removeClass ("hide");
	zoomLayerResize();
}
var st;
function zoomLayerResize(){
	if(document.body.clientHeight < 650) {
		$("#zoomLayer").css("height",650);
	} else {
		var hei = document.body.clientHeight;
		$("#zoomLayer").css("height",hei);
	}
	st = setTimeout ("zoomLayerResize()",500);
}
function zoomLayerClose(){
	$('#zoomLayer').addClass ("hide");
	clearTimeout(st);
}

function img_rollover(id,img_title,e){
	var e = e || window.event; // ºê¶ó¿ìÀúº° ¼³Á¤
	if(e.type == "mouseover"){
		id.src = img_title +"_on.gif";
	}else{
		id.src = img_title +".gif";
	}
}