function goLoginPage() {
	document.CLGNFRM.submit();
}

function nav_main(url) {
	if (url == undefined) {
		url = "http://www.xxx.com/";
	}
	location.href = url;
}

function buy(Lcate, Mcate) {
	nav_main("/pages/attend/application.asp?lCate="+Lcate+"&Mcate="+Mcate);
}

function nav_open(url) {
	if (url != undefined) {
		if (url != "") {
			window.open(url,"","");
		}
	}
}

function sound(file_name, width, height) {
    document.write('<OBJECT id="mPlayer" style="LEFT: 0px; TOP: 0px" width="'+width+'" height="'+height+'" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">');
	document.write('<PARAM NAME="AutoSize" VALUE="0">');
	document.write('<PARAM NAME="AutoStart" VALUE="1">');
	document.write('<PARAM NAME="Volume" VALUE="-100">');
	document.write('<PARAM NAME="Filename" value="'+file_name+'">');
	document.write('<PARAM NAME="CanSeek" VALUE="1">');
	document.write('<PARAM NAME="CanSeekToMarkers" VALUE="1">');
	document.write('<PARAM NAME="ShowPositionControls" VALUE="0">');
	document.write('<PARAM NAME="ShowCaptioning" VALUE="0">');
	document.write('</OBJECT>');
}

function goOpenUrl(url,size,scroll) {
	if (url == undefined) { url = "http://www.xxx.co.kr/"; }
	if (scroll == undefined) { scroll = "0"; }
	if (size != undefined) {
		var splitS = size.split(",");
		var ws = splitS[0];
		var hs = splitS[1];
		if (scroll == "0") {
			window.open(url,"","width="+ws+",height="+hs);
		} else {
			window.open(url,"","width="+ws+",height="+hs+",scrollbars=1");
		}
	} else {
		window.open(url,"","");
	}
}

//ÄíÅ° °¡Á®¿À±â
function getCookie(name) { 
	var nameOfCookie = name + "="; 
	var x = 0; 

	while ( x <= document.cookie.length ) { 
		var y = (x+nameOfCookie.length); 
		if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
		if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; 
		return unescape( document.cookie.substring( y, endOfCookie ) ); 
		}

		x = document.cookie.indexOf( " ", x ) + 1; 
		if ( x == 0 ) break; 
	}
	
	return ""; 

} 
/***************************************************************************************************/
var ASCII_WIDTH_TABLE = new Array(
	0,6,6,6,6,6,6,6,6,0,0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
	6,6,6,6,0,4,4,6,6,10,0,4,5,5,6,6,4,6,4,6,6,6,6,6,6,6,6,6,6,
	6,4,4,0,6,8,6,12,8,8,9,8,8,7,9,8,3,6,8,7,11,9,9,8,9,8,8,8,8,
	8,10,8,8,8,6,11,6,6,6,4,7,7,7,7,7,3,7,7,3,3,6,3,11,7,7,7,7,4,
	7,3,7,6,10,7,7,7,6,6,6,9,6,10,10,10,10,10,10,10,10,10,10,10,10,
	10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,4,5,
	6,6,7,6,3,6,6,9,5,6,7,0,9,6,4,10,4,4,4,7,7,3,3,4,5,6,6,6,6,7,9,9,
	9,9,9,9,11,8,7,7,7,7,4,4,4,4,9,9,9,9,9,9,9,10,9,9,9,9,9,8,7,6,5,5,
	5,5,5,5,8,5,5,5,5,5,3,3,3,3,6,6,6,6,6,6,6,10,6,6,6,6,6,7,7,7);
var KOREAN_WIDTH = 12;

function get_bytes(str) {
	str = "" + str;
	var n;
	var len = str.length;
	var bytes = 0;
	for (var i = 0 ; i < len ; i++) {
		n = str.charCodeAt(i);
		bytes += (n < 0 || n > 127) ? 2 : 1;
	}
	return bytes;
}

function LEFT(str, len)	{
	len = isNaN(len) ? 1 : +len;
	return C_STR(str).substring(0, len);
}

function RIGHT(str, len) {
	len = isNaN(len) ? 1 : +len;
	return C_STR(str).substring(C_STR(str).length - len);
}

function MID(str, index, len) {
	index = isNaN(index) ? 0 : +index;
	if (!isNaN(len))
		return C_STR(str).substring(index, index + len);
	else
		return C_STR(str).substring(index);
}

function LTRIM(str)	{
	while (C_STR(str).charAt(0) == ' ')
	{
		str = MID(str, 1);
	}
	return str;
}

function RTRIM(str)	{
	while (C_STR(str).charAt(C_STR(str).length - 1) == ' ')
		str = LEFT(str, C_STR(str).length - 1);
	return str;
}

function TRIM(str) {
	str = LTRIM(str);
	str = RTRIM(str);
	return str;
}

function C_STR(str)	{
	return (typeof(str) == "undefined" ? "" : "" + str);
}

function CSTR(o){return (""+o);}
function CINT(o){return parseInt(o);}

function GetChrWidth(chr) {
	var n = CSTR(chr).charCodeAt(0);
	return ( (n >= 0 && n < 256) ? ASCII_WIDTH_TABLE[n] : KOREAN_WIDTH );
}

function GetStrWidth(str) {
	var w = 0;
	str = CSTR(str);
	for (var i = 0 ; i < str.length ; i++)
		w += GetChrWidth(str.charAt(i));
	return w;
}

// Á¦¸ñ ±ÛÀÚ¼ö Â©¶óÁÜ
function MakeStrEllipsis(str, width) {
	str = CSTR(str);
	width = CINT(width);
	var w = 0;
	var addedStr = ". . .";
	var addedWidth = GetStrWidth(addedStr);
	if (GetStrWidth(str) <= width) return str;
	for (var i = 0 ; i < str.length ; i++)
	{
		w += GetChrWidth(str.charAt(i));
		if (w + addedWidth > width) {--i;break;}
	}
	return LEFT(str, i+1)+addedStr;
}

function runObj(string)
{
	if(string != undefined) {
		document.write(string);
	}
}

function runObj_tframe(string, tframe)
{
	if(tframe == null)
	{
		if(string != undefined) {
			document.write(string);
		}
	}
	else
	{
		if(string != undefined) {
			tframe.document.write(string);
		}
	}
}

function runObj_innerHTML(string, tobj)
{
	if(string != undefined) {
		tobj.innerHTML = string;
	}
}

function auto_fit_size(w_width, w_height)
{
/*
	var Dwidth = null;
	var Dheight = null;

	if(w_width == null ||  w_width == '')
		Dwidth = parseInt(document.body.scrollWidth);
	else
		Dwidth = parseInt(w_width);

	if(w_height == null ||  w_height == '')
		Dheight = parseInt(document.body.scrollHeight);
	else
		Dheight = parseInt(w_height);

	var divEl = document.createElement("div");
	divEl.style.position = "absolute";
	divEl.style.left = "0px";
	divEl.style.top = "0px";
	divEl.style.width = "100%";
	divEl.style.height = "100%";

	document.body.appendChild(divEl);

	window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight);

	document.body.removeChild(divEl);
*/
	var thisX = parseInt(document.body.scrollWidth);
	var thisY = parseInt(document.body.scrollHeight);
	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 50;
	var marginY = 0;
	var marginX = 10;

	if (navigator.userAgent.indexOf("MSIE 9") > 0){
		marginY = 72;        // IE 9.x
		marginX = 16;
	}else if(navigator.userAgent.indexOf("MSIE 8") > 0) {
		marginY = 75;    // IE 8.x
		marginX = 16;
	}else if(navigator.userAgent.indexOf("MSIE 7") > 0) {
		marginY = 75;    // IE 7.x
		marginX = 20;
	}else if(navigator.userAgent.indexOf("MSIE 6") > 0) {
		marginY = 45;    // IE 6.x
	}else if(navigator.userAgent.indexOf("Firefox") > 0) {
		marginY = 50;   // FF
	}else if(navigator.userAgent.indexOf("Opera") > 0) {
		marginY = 30;     // Opera
	}else if(navigator.userAgent.indexOf("Netscape") > 0) {
		marginY = -2;  // Netscape
	}
	if (thisX > maxThisX) {
		window.document.body.scroll = "yes";
		thisX = maxThisX;
	}
	if (thisY > maxThisY - marginY) {
		window.document.body.scroll = "yes";
		thisX += 19;
		thisY = maxThisY - marginY;
	}
	window.resizeTo(thisX+marginX, thisY+marginY);
}

function auto_fit_size1(div_name, w_width, w_height)
{
	var thisX = parseInt(div_name.scrollWidth);
	var thisY = parseInt(div_name.scrollHeight);
	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 50;
	var marginY = 0;

	if (navigator.userAgent.indexOf("MSIE 8") > 0) marginY = 72;        // IE 8.x
	else if(navigator.userAgent.indexOf("MSIE 7") > 0) marginY = 75;    // IE 7.x
	else if(navigator.userAgent.indexOf("MSIE 6") > 0) marginY = 45;    // IE 6.x
	else if(navigator.userAgent.indexOf("Firefox") > 0) marginY = 50;   // FF
	else if(navigator.userAgent.indexOf("Opera") > 0) marginY = 30;     // Opera
	else if(navigator.userAgent.indexOf("Netscape") > 0) marginY = -2;  // Netscape

	if (thisX > maxThisX) {
		window.div_name.scroll = "yes";
		thisX = maxThisX;
	}
	if (thisY > maxThisY - marginY) {
		window.div_name.scroll = "yes";
		thisX += 19;
		thisY = maxThisY - marginY;
	}
	window.resizeTo(thisX+10, thisY+marginY);
}

function auto_fit_size2(w_width, w_height)
{
	var thisX = parseInt(document.body.scrollWidth);
	var thisY = parseInt(document.body.scrollHeight);
	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 50;
	var marginY = 0;

	if (navigator.userAgent.indexOf("MSIE 8") > 0) marginY = 40;        // IE 8.x
	else if(navigator.userAgent.indexOf("MSIE 7") > 0) marginY = 75;    // IE 7.x
	else if(navigator.userAgent.indexOf("MSIE 6") > 0) marginY = 45;    // IE 6.x
	else if(navigator.userAgent.indexOf("Firefox") > 0) marginY = 50;   // FF
	else if(navigator.userAgent.indexOf("Opera") > 0) marginY = 30;     // Opera
	else if(navigator.userAgent.indexOf("Netscape") > 0) marginY = -2;  // Netscape

	if (thisX > maxThisX) {
		window.document.body.scroll = "yes";
		thisX = maxThisX;
	}
	if (thisY > maxThisY - marginY) {
		window.document.body.scroll = "yes";
		thisX += 19;
		thisY = maxThisY - marginY;
	}
	if(w_width == null ||  w_width == '')
		thisX = thisX + 10
	else
		thisX = parseInt(w_width);

	if(w_height == null ||  w_height == '')
		thisY = thisY + marginY;
	else
		thisY = parseInt(w_height);

	window.resizeTo(thisX, thisY+marginY);
}

/***************************************************************************************************/
/*                             »ó´Ü¸Þ´º °ü·Ã Àü¿ªº¯¼­.										       */
/***************************************************************************************************/
/***************************************************************************************************/
/*                             ¿ä±â ¾Æ·¡¿¡¼­ ºÎÅÍ.. °³ÀÎ ÇÔ¼ö¸¦ Ãß°¡ÇÏ¼¼¿ä.                        */
/***************************************************************************************************/

//#ºñÁÖ¾ó½ºÅ©¸³Æ® ±è¿ìÁ¤ Ãß°¡
/*ActiveX ÇÃ·¡½¬*/
// id: flash id
// url: source url
// w: source width
// h: source height
// t: wmode (none/transparent/opaque)

function Flash(id,url,w,h,bg,t){
document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='always' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" wmode="+t+" allowScriptAccess='always' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}


/*ActiveX µ¿¿µ»ó<script>Movie('url','178','133','0');</script*/
function Movie(url,width,height,controls){
document.write("\
<object width='"+width+"' height='"+height+"' id='Player' classid='clsid:22D6f312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject' VIEWASTEXT>\
<param name='AutoRestart' value='true'>\
<param name='AutoRewind' value='false'>\
<param name='ShowAudioControls' value='true'>\
<param name='ShowControls' value='"+controls+"'>\
<param name='PlayCount' value='1'>\
<param name='EnableContextMenu' value='0'>\
<param name='BufferTime' value='3'>\
<param name='ClickToPlay' value='false'>\
<param name='AnimationAtStart' value='false'>\
<param name='FileName' value='"+url+"'>\
<param name='Volume' value='0'>\
</object>\
");
}

function fncAct(nextUrl) {
	document.addInfoForm.action = nextUrl;
	document.addInfoForm.submit();
}

function fncCMAct2(nextUrl) {
	document.glLoginForm2.action = nextUrl;
	document.glLoginForm2.submit();
}


function actLogin() {
	var pForm = document.loginForm;
	if(pForm.userid.value == "") {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		pForm.userid.focus();
		return;
	}
	if(pForm.passwd.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		pForm.passwd.focus();
		return;
	}

	pForm.submit();
}

function formatnumber(num)
{
	num	=	num.toString();
	var strLen	=	num.length;
	var retVal	=	"";

	for(var i = 0; i < strLen; i++)
	{
		if(((strLen - i) % 3 == 0) && i > 0)
			retVal	=	retVal + "," + num.substring(i, i + 1);
		else
			retVal	+=	num.substring(i, i + 1);
	}

	return retVal;
}

function fncCMAct(nextUrl) {
	document.glLoginForm.action = nextUrl;
	document.glLoginForm.submit();
}

function goBlog(userid, pageType, viewSid) {
	var f = document.BlogForm;
	var HelloBlog = window.open("about:blank","HelloBlog","width=935, height=630");

	f.UserID.value = userid;
	f.viewSid.value = viewSid;

	f.target = "HelloBlog";
	f.action = "/pages/onlinestudy/blog_"+ pageType +".asp";
	f.submit();
}

function videoStart(teacher, sseq, joinName, joinerID, peopleCnt)
{
	var teacherId = sseq;
	var url = "http://www.hello-et.com/accuzone/videoStart.asp?Teacher=" + teacher + "&JoinerID=" + joinerID + "&JoinerName=" + joinName + "&StudentID=" + teacherId + "&peopleCnt=" + peopleCnt;
	window.open(url, "", "width=100, height=100");
}

//È­»ó º¯°æÃß°¡ ÇÔ¼ö
function new_videoStart(sseq) {
	var url = "/pages/common/pop_videoClass.asp?sseq="+sseq;
	window.open(url, "", "width=380, height=150, scrollbars=no");
}

function fullScreenOpen(whatIsIt) {
	var widthValue = screen.availWidth - 11;
	var heightValue = screen.availHeight - 50;
	var  propertyValue;
	propertyValue = "width="+ widthValue +",height="+ heightValue +", toolbar=no,top=0,left=0,resizable=yes,scrollbars=yes,status=no";
window.open(whatIsIt,'hellocourse',propertyValue);
}


/*************************************************************
 *    DYNIFS - Dynamic IFrame Auto Size v1.0.0
 *
 *    Copyright (C) 2006, Markus (phpMiX)
 *    This script is released under GPL License.
 *    Feel free to use this script (or part of it) wherever you need
 *    it ...but please, give credit to original author. Thank you. :-)
 *    We will also appreciate any links you could give us.
 *    http://www.phpmix.org
 *
 *    Enjoy! ;-)
*************************************************************/

var DYNIFS = {
    // Storage for known IFrames.
    iframes: {},
    // Here we save any previously installed onresize handler.
    oldresize: null,
    // Flag that tell us if we have already installed our onresize handler.
    ready: false,
    // The document dimensions last time onresize was executed.
    dim: [-1,-1],
    // Timer ID used to defer the actual resize action.
    timerID: 0,
    // Obtain the dimensions (width,height) of the given document.
    getDim: function(d) {
        var w=200, h=200, scr_h, off_h;
        if( d.height ) { return [d.width,d.height]; }
        with( d.body ) {
            if( scrollHeight ) { h=scr_h=scrollHeight; w=scrollWidth; }
            if( offsetHeight ) { h=off_h=offsetHeight; w=offsetWidth; }
            if( scr_h && off_h ) h=Math.max(scr_h, off_h);
        }
        return [w,h];
    },
    // This is our window.onresize handler.
    onresize: function() {
        // Invoke any previously installed onresize handler.
        if( typeof this.oldresize == 'function' ) { this.oldresize(); }
        // Check if the document dimensions really changed.
        var dim = this.getDim(document);
        if( this.dim[0] == dim[0] && this.dim[1] == dim[1] ) return;
        // Defer the resize action to prevent endless loop in quirksmode.
        if( this.timerID ) return;
        this.timerID = setTimeout('DYNIFS.deferred_resize();', 10);
    },
    // This is where the actual IFrame resize is invoked.
    deferred_resize: function() {
        // Walk the list of known IFrames to see if they need to be resized.
        for( var id in this.iframes ) this.resize(id);
        // Store resulting document dimensions.
        this.dim = this.getDim(document);
        // Clear the timer flag.
        this.timerID = 0;
    },
    // This is invoked when the IFrame is loaded or when the main window is resized.
    resize: function(id) {
        // Browser compatibility check.
        if( !window.frames || !window.frames[id] || !document.getElementById || !document.body )
            return;
        // Get references to the IFrame window and layer.
        var iframe = window.frames[id];
        var div = document.getElementById(id);
        if( !div ) return;
        // Save the IFrame id for later use in our onresize handler.
        if( !this.iframes[id] ) {
            this.iframes[id] = true;
        }
        // Should we inject our onresize event handler?
        if( !this.ready ) {
            this.ready = true;
            this.oldresize = window.onresize;
            window.onresize = new Function('DYNIFS.onresize();');
        }
        // This appears to be necessary in MSIE to compute the height
        // when the IFrame'd document is in quirksmode.
        // OTOH, it doesn't seem to break anything in standards mode, so...
        if( document.all ) div.style.height = '0px';
        // Resize the IFrame container.
        var dim = this.getDim(iframe.document);
        div.style.height = (dim[1]+20) + 'px';
    }
};


// png alpha channels
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 +"',sizingMethod='image');"
	obj.src='about:blank';
	return '';
}

function divHidden(objText) {
	objE = document.getElementById(objText);
	objE.style.visibility = "hidden";

}


//check browser
var isie=(/msie/i).test(navigator.userAgent); //ie
var isie6=(/msie 6/i).test(navigator.userAgent); //ie 6
var isie7=(/msie 7/i).test(navigator.userAgent); //ie 7
var isie8=(/msie 8/i).test(navigator.userAgent); //ie 8
var isie9=(/msie 9/i).test(navigator.userAgent); //ie 9
var isfirefox=(/firefox/i).test(navigator.userAgent); //firefox
var isapple=(/applewebkit/i).test(navigator.userAgent); //safari,chrome
var isopera=(/opera/i).test(navigator.userAgent); //opera
var isios=(/(ipod|iphone|ipad)/i).test(navigator.userAgent);//ios
var isipad=(/(ipad)/i).test(navigator.userAgent);//ipad
var isandroid=(/android/i).test(navigator.userAgent);//android
if(isie7 || isie8 || isie9) isie6=false;
if(isie9) isie=false;

// IE6 PNG Load
if (isie6) {
	DD_belatedPNG.fix ( "img " );
}

// RollOver
function imageOver(imgs) {
	imgs.src = imgs.src.replace("off.gif", "on.gif");
}
function imageOut(imgs) {
	imgs.src = imgs.src.replace("on.gif", "off.gif");
//  onmouseover="imageOver(this);" onmouseout="imageOut(this);"
} 

// IE6 background fix
try{
	document.execCommand('BackgroundImageCache',false,true);
}
catch(e){}

// popup
function popupOpen(url,w,h,type){
	window.open(url ,  "openWin", "width="+w+",height="+h+",top=30,left=100,resizable=no,scrollbars="+type) ;
}

// flash Laod
function flash(src, w, h, swfid) {
	swf_html = '';
	swf_html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + w + '" height="' + h + '" id="' + swfid + '">';
	swf_html += '<param name="allowScriptAccess" value="sameDomain">';
	swf_html += '<param name="movie" value="' + src + '">';
	swf_html += '<param name="quality" value="high">';
	swf_html += '<param name="bgcolor" value="#FFFFFF">';
	swf_html += '<PARAM NAME="wmode" VALUE="transparent">';
	swf_html += '<PARAM NAME="base" VALUE=".">';
	swf_html += '<embed base="." src="' + src + '" quality="high" bgcolor="#FFFFFF" width="' + w + '" height="' + h + '" name="' + swfid + '" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	swf_html += '</object>';
	document.write(swf_html);
}

// jQuery Load
(function($){
	$(document).ready(function(){
		// leyout dom setting for ie6
		if(isie6){$('#contents, #leftmenu').css('height','350px');}

		//quick
		if ($('#contents').length > 0){
			var options = { 'speed' : 500, // ½ºÇÇµå
			'initTop': 87 ,  // ±âº» top À§Ä¡
			'alwaysTop' : false, // Ç×»ó°íÁ¤ true , false ÀÌµ¿
			'default_x' : '#contents'  //·¹¾î¾Æ¿ôÀÌ °¡¿îµ¥ Á¤·Ä ÀÏ¶§ ·¹ÀÌ¾î°¡ ºÙ´Â ¾ÆÀÌµð°ª
		   }
		   $('#quick').Floater(options);
		};
		
		if ($('#top_Section').length > 0){
			var options = { 'speed' : 500, // ½ºÇÇµå
			'initTop': 120 ,  // ±âº» top À§Ä¡
			'alwaysTop' : false, // Ç×»ó°íÁ¤ true , false ÀÌµ¿
			'default_x' : '#top_Section'  //·¹¾î¾Æ¿ôÀÌ °¡¿îµ¥ Á¤·Ä ÀÏ¶§ ·¹ÀÌ¾î°¡ ºÙ´Â ¾ÆÀÌµð°ª
		   }
		   $('#main_quick').Floater(options);
		};
		

		// GNB Controls
		if($('#gnb > li.on').length > 0){
			var onli = $('#gnb > li.on > a > img').attr('src');
			$('#gnb > li.on > a > img').attr('src',onli.replace('off.gif','on.gif'));
			$('#gnb > li.on > span').css('display','block')
			
			if($('#gnb > li.on ol li.on').length > 0){
				var onlis = $('#gnb li.on ol li.on a img').attr('src');
				$('#gnb li.on ol li.on a img').attr('src',onlis.replace('off.gif','on.gif'));
			}
		}
		$('#gnb li:not(.on) img').mouseover(function(){
			var filename = $(this).attr('src');
			$(this).attr('src',filename.replace('off.gif','on.gif'));
		});
		$('#gnb li:not(.on) img').mouseout(function(){
			var filename = $(this).attr('src');
			$(this).attr('src',filename.replace('on.gif','off.gif'));
		});
		$('#gnb li').mouseover(function(){
			$('#gnb li ol').css('display','none');
			$('#gnb li span').css('display','none');
			$(this).find('ol').css('display','block')
			$(this).find('span').css('display','block')
		});

		// LNB Controls
		$('#lnb li:not(.on) img').mouseover(function(){
			var lnbname = $(this).attr('src');
			$(this).attr('src',lnbname.replace('off.gif','on.gif'));
		});
		$('#lnb li:not(.on) img').mouseout(function(){
			var lnbname = $(this).attr('src');
			$(this).attr('src',lnbname.replace('on.gif','off.gif'));
		});

		//FAQ
		$('.always_faq dt').click(function(){
			$(this).siblings('dd').css('display','none');
			$('.always_faq dt').removeClass('on');
			$(this).next('dd').css('display','block');
			$(this).addClass("on");
		});
		

		/* select */
		$('.tb_list_type1 tbody tr:first-child td').css('border-top','1px solid #4A4545');
		$('.tb_list_type1 tbody tr:first-child th').css('border-top','1px solid #4A4545');
		$('.address ul li:first-child').css({background:'none',padding:'0'});
		$('#util ol li:first-child').css({background:'none',padding:'0'});
		$('.tab_type2 li:last-child').css('margin-right','0');
		$('.no_reservation li:first-child').css({background:'none',padding:'0'});
		$('.yes_reservation li:first-child').css({background:'none',padding:'0'});

		$('#lnb ul li:last').css({border:'none'});
	});
})(jQuery);










//BP ÇÔ¼ö È£Ãâ
function goFranchiseBP(arg1, arg2) {
	try{
		parent.goFranchiseBP(arg1, arg2)
	}catch(e){}
}
function goCustomerCenterBP(arg1, arg2) {
	try{
		parent.goCustomerCenterBP(arg1, arg2)
	}catch(e){}
}
function goUsePolicyBP(arg1, arg2) {
	try{
		parent.goUsePolicyBP(arg1, arg2)
	}catch(e){}
}
function goTermsBP(arg1, arg2) {
	try{
		parent.goTermsBP(arg1, arg2)
	}catch(e){}
}
function goRefundPolicyBP(arg1, arg2) {
	try{
		parent.goRefundPolicyBP(arg1, arg2)
	}catch(e){}
}
function goResponsibillityBP(arg1, arg2) {
	try{
		parent.goResponsibillityBP(arg1, arg2)
	}catch(e){}
}
function goDenyCollectEmailBP(arg1, arg2) {
	try{
		parent.goDenyCollectEmailBP(arg1, arg2)
	}catch(e){}
}
function goLoginBP(arg1, arg2) {
	try{
		parent.goLoginBP(arg1, arg2)
	}catch(e){}
}

