	(function($){
		$(document).ready(function(){
			//°øÅë»ç¿ëºÎºÐ cssÃ³¸®
			$(".sub_menu dl dd ul li:last-child").addClass('gnb_f');
			$(".sub_menu .gnb dl:last-child").addClass('gnb_f');
			$(".allmenu .content table td a:last-child").addClass('l');
			$(".allmenu .content table td.last a:last-child").addClass('l');
		});
	})(jQuery);

//mobile
function mobileqr(obj){
	if ( obj == "on" ){
		$(".qrcode").stop().fadeIn(0);
	}else{
		$(".qrcode").stop().fadeOut(0);
	}
}
function allmenu(obj){
	if ( obj == "on" ){
		$(".allmenu").stop().fadeIn(0);
	}else{
		$(".allmenu").stop().fadeOut(0);
	}
}

//ºÐ¿ø º° ¸Þ´º1 Depth  ¸¶¿ì½º¿À¹ö/¾Æ¿ô
function fLeftBranchDepth2(argOver,argIDX)
{
	var obj;
	var strTEMP ;
  strTEMP ="branch_left_depth2_" + argIDX ;
	obj = document.getElementById(strTEMP);
	if(obj)
	 if (argOver=="over")
		 obj.src="/IMAGES/COMMON/snb_dep2_" + argIDX +"_on.gif";
	 else
		 obj.src="/IMAGES/COMMON/snb_dep2_" + argIDX +".gif";
	 
}

//VOD ÆË¾÷ ÇÔ¼ö
function go_CommonVODPop(idx) {
	var vodpop;

	var pWidth = 890;
	var pHeight = 634;
	
	var iHeight	= screen.height;
	var iWidth	= screen.width;
	var iLeft;
	var iTop;
	
	iLeft	= (iWidth / 2) - (pWidth / 2); 
	iTop	= (iHeight / 2) - (pHeight / 2); 
	if(iLeft <0 )
		 iLeft=0;
	if(iTop <0 )
		 iTop=0;

	vodpop = window.open("/MENU_NEW/VOD/vod_main.asp?idx="+idx, "VOD_Pop","status=no,menubar=no,resizable=no,width=" +pWidth+" ,height="+ pHeight +",left="+iLeft+",top="+iTop + ",menubar=no,toolbar=no,location=no,status=no,scrollbars=no"  );
	vodpop.focus();
	
	//iLeft	= (iWidth / 2) - (pWidth / 2); 
	//iTop	= (iHeight / 2) - (pHeight / 2); 
	//vodpop.moveTo(iLeft, iTop);
	//vodpop.resizeTo(pWidth, pHeight);

	//vodpop.document.location.href= "/MENU_NEW/VOD/vod_main.asp?idx="+idx;
}

//VOD LOCAL PLAY iframe Å»ÇÇ¹æ½Ä
function fJSPlayerLocal(iWidth, iHeight,Vars)
{
		var _object_ = "";
	_object_ += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+ iWidth +'" height="'+ iHeight +'" id="jsPlayer" align="middle">';
	_object_ += '<param name="flashVars" value="'+ Vars +'" />';
	_object_ += '<param name="allowScriptAccess" value="always" />';
	_object_ += '<param name="allowFullScreen" value="true" />';
	_object_ += '<param name="wmode" value="transparent">';
	_object_ += '<param name="movie" value="http://210.182.156.180/player/javascript/jsPlayer.swf" />';
	_object_ += '<param name="quality" value="high" />';
	_object_ += '<param name="bgcolor" value="#ffffff" />';	
	_object_ += '<embed wmode="transparent" src="http://210.182.156.180/player/javascript/jsPlayer.swf" quality="high" bgcolor="#ffffff" width="'+ iWidth +'" height="'+ iHeight +'" flashVars ="'+ Vars +'" name="test" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />';
	_object_ += '</object>';


	document.write(_object_);			

}

	function callFlashVideoStop()
	{
		var flashVideoPlayer;
		var ie = navigator.appName.indexOf("Microsoft") != -1;
		
		//¿©±â¿¡¼­ 'jsPlayer'´Â ÇÃ·¡½Ã ¾ÆÀÌµð°ªÀ» ³ªÅ¸³½´Ù.
		flashVideoPlayer = (ie) ? window['jsPlayer'] : document['jsPlayer'];
		flashVideoPlayer.callStop();
	}

	function callFlashVideoPlay()
	{
		var flashVideoPlayer;
		var ie = navigator.appName.indexOf("Microsoft") != -1;
		//¿©±â¿¡¼­ 'jsPlayer'´Â ÇÃ·¡½Ã ¾ÆÀÌµð°ªÀ» ³ªÅ¸³½´Ù.
		flashVideoPlayer = (ie) ? window['jsPlayer'] : document['jsPlayer'];
		flashVideoPlayer.callPlay();
	}



function go_CommonVODPopMenu(argMENU1,argMENU2) {
	var vodpop;

	var pWidth = 890;
	var pHeight = 634;
	
	var iHeight	= screen.height;
	var iWidth	= screen.width;
	var iLeft;
	var iTop;
	
	iLeft	= (iWidth / 2) - (pWidth / 2); 
	iTop	= (iHeight / 2) - (pHeight / 2); 
	if(iLeft <0 )
		 iLeft=0;
	if(iTop <0 )
		 iTop=0;

	vodpop = window.open("/MENU_NEW/VOD/vod_main.asp?MENU_IDX1="+argMENU1+"&MENU_IDX2="+argMENU2 , "VOD_Pop","status=no,menubar=no,resizable=no,width=" +pWidth+" ,height="+ pHeight +",left="+iLeft+",top="+iTop + ",menubar=no,toolbar=no,location=no,status=no,scrollbars=no"  );
	vodpop.focus();
	
	//iLeft	= (iWidth / 2) - (pWidth / 2); 
	//iTop	= (iHeight / 2) - (pHeight / 2); 
	//vodpop.moveTo(iLeft, iTop);
	//vodpop.resizeTo(pWidth, pHeight);

	//vodpop.document.location.href= "/MENU_NEW/VOD/vod_main.asp?idx="+idx;
}


function fWiteSWF(sUrl, iWidth, iHeight,Vars)
{
		var _object_ = "";
	
	_object_ += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + iWidth + '" height="' + iHeight + '">';
	if(Vars)
	{
		_object_ += '<param name="flashVars" value="' + Vars +'">';
  }
	_object_ += '<param name="movie" value="' + sUrl + '">';
	_object_ += '<param name="quality" value="high">';
	_object_ += '<param name="wmode" value="transparent">';
	_object_ += '<embed src="' + sUrl + '?'+ Vars +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + iWidth + '" height="' + iHeight + '"></embed>';
	_object_ += '</object>';
	
	document.write(_object_);			

}

function mv(url, w, h){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width=",w," height=",h,">");
	document.write("<param name=movie value='",url,"'><param name=quality value=high><param name=wmode value=transparent><param name=menu value=false>");
	document.write("<param name=loop value=false><param name=menu value=false><param name=quality value=high><param name=scale value=exactfit><param name=salign value=T>");
	document.write("<embed src='",url,"' quality=high width=",w," height=",h," swliveconnect=true type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object>");
}


//ÄÁÅÙÃ÷ ÇÁ¸°Æ® ÇÔ¼ö
    function fPrintContentsOnly(argOBJ_ID)  
    { 
		var objWin=null; 

    var strFeature; 
		var strCONTENTS;
		var obj ;

		if(argOBJ_ID)
			 ;
		else
			argOBJ_ID ="div_MAIN" ;


		obj=document.getElementById(argOBJ_ID) ;
		if(obj)
		  strCONTENTS = obj.innerHTML ;
		else
		 {
		  alert("ÇÁ¸°Æ®ÇÒ ´ë»ó Element¸¦ Ã£À» ¼ö ¾ø½À´Ï´Ù.");
		  return;
		 }


        strFeature = "width=780,height=600,toolbar=no,location=no,directories=no"; 
        strFeature += ",status=no,menubar=no,scrollbars=yes,resizable=no"; 


        objWin = window.open('', 'print', strFeature); 
        self.focus(); 


        objWin.document.open(); 
        //objWin.document.write('<' + 'html' + '><' + 'head' + '>'); 
		objWin.document.write("<html>\n");
		objWin.document.write("<head>\n");
		objWin.document.write("<title>¼ö¼ú¾øÀÌ µð½ºÅ©¸¦ Ä¡·áÇÏ´Â ÀÚ»ýÇÑ¹æº´¿ø.Çã¸®µð½ºÅ©,¸ñµð½ºÅ©,ÅðÇà¼º°ñ°üÀýÁúÈ¯ ±Ùº»Ä¡·á ¹× ÀÀ±ÞÄ¡·á</title>\n");
		objWin.document.write("<meta content='text/html; charset=euc-kr' http-equiv='Content-Type'/>\n");		
		objWin.document.write("<link rel='stylesheet' type='text/css' href='/COMMON/CSS/jaseng_all.css' />\n");
		objWin.document.write("<script src='/COMMON/JS/jquery15.js' type='text/javascript'></script>\n");

		objWin.document.write("</head>\n");

		objWin.document.write("<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false' >\n"); 
		objWin.document.write("<div id='" + argOBJ_ID + "'>\n"); 

		objWin.document.write(strCONTENTS); 

		objWin.document.write("</div>\n"); 
        objWin.document.write('<' + '/' + 'body' + '><' + '/' + 'html' + '>'); 
        objWin.document.close(); 
        
        objWin.print(); 
        objWin.close(); 
    } 
