// ÀÌ¹ÌÁö ·Ñ¿À¹ö (¾Æ¿ôÀÌ¹ÌÁö°¡ _offÀÏ¶§)
function img_over(obj,overName,outName){
	if(!overName){
		overName="_on";
	}

	var imgType;
	var imgURL=obj.getAttribute("src");
	if(!outName){
		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{
		if(imgURL.indexOf(overName)==-1){
			imgURL.indexOf(".gif")>0?imgType=".gif":imgType=".jpg"
			var imgName=imgURL.substr(0,imgURL.indexOf(imgType))
			imgName=imgName.substr(0,imgURL.indexOf(outName))
			obj.setAttribute("src",imgName+overName+imgType);
		}
	}
}

// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function img_over2(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_out2(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 showhidden(obj){
	var obj2 = document.getElementById(obj);
	if(obj2.style.display=='none'){
		obj2.style.display = 'block';
	}else{
		obj2.style.display='none';
	}
}


// ·¹ÀÌ¾î º¸ÀÌ°Ô
function Layershow(obj){
	var obj2 = document.getElementById(obj);
	obj2.style.display='block';
}

// ·¹ÀÌ¾î ¾Èº¸ÀÌ°Ô
function Layerhidden(obj){
	var obj2 = document.getElementById(obj);
	obj2.style.display='none';
}

//¾ÆÀÌÄÜ ¼³¸í ÆË¾÷
function icon_pop() {
	window.open('/lecture_n/pop_icon_info.asp','icon','width=530,height=615,resizable=no,status=no');
}

//±³Àçº¸±â ÆË¾÷
function book_pop(bookId) {
	window.open('/lecture_n/pop_book_info.asp?bookId='+bookId,'icon','width=530,height=450,resizable=no,status=no');
}

//¸Àº¸±â ÆË¾÷
function smaple_player(l_idx, media_type) {
	if (media_type=='2H')
	{
		window.open('/player/sample_player_stream.asp?l_idx='+l_idx+'&media_type='+media_type,'sample_player','width=1035,height=680,resizable=no,status=no');
	}
	else{
		window.open('/player/sample_player.asp?l_idx='+l_idx+'&media_type='+media_type,'sample_player','width=1035,height=680,resizable=no,status=no');
	}

}

//¼ö°­Æò ÆË¾÷
function opinion_pop(t_id, area_cd, lec_cd) {
	window.open('/lecture_n/pop_lecture_opinion.asp?l_t_mem_id='+t_id+'&area_cd='+area_cd+'&lec_cd='+lec_cd,'opinion','width=618,height=540,status=no,scrollbars=yes');
}

//Ç® ½ºÅ©¸°
function fullscreen(str) {
	if(str=="heroes") {
		window.open("/teacher/heroes/heroes.asp", "heroes", "fullscreen, scrollbars");
	} else if(str=="mythology") {
		window.open("/teacher/mythology/mythology.asp", "mythology", "fullscreen, scrollbars");
	}
}

//½Ç¼Ó ±¸¸Å °¡ÀÌµå ÆË¾÷
function buyGuide(type) {

	if(type=="A") {
		window.open("/event/090424_buyGuide/guide_A.asp", "", "width=688,height=700,scrollbars");
	} else if(type=="B") {
		window.open("/event/090424_buyGuide/guide_B.asp", "", "width=688,height=700,scrollbars");
	}

}


// ·¹ÀÌ¾î open 
/*
item : item id 
*/
function dlMemOpen(item) {
	obj=document.getElementById(item);
	obj.style.display="block";
}
// ·¹ÀÌ¾î close
/*
item : item id 
*/
function dlMemClose(item) {

	obj=document.getElementById(item);
	setInterval("doAction()",5000)

	 if (obj.onmouseout){
	obj.style.display="none";
	}
}

function doplay(item){
	if(!mouseStatus) doAction(item);
}

function doAction(){

}

