/****************************************************************/

function openwin(pUrl, pName, pScroll, pWidth, pHeight, pLeft, pTop){
	newwin = window.open(pUrl,pName,"width="+pWidth+", height="+pHeight+", left="+pLeft+", top="+pTop+", scrollbars="+pScroll+", toolbars=no, status=no");
	newwin.focus();
}
function openwin2(pUrl, pName, pScroll, pWidth, pHeight, pLeft, pTop, pReSize){
	newwin2 = window.open(pUrl,pName,"width="+pWidth+", height="+pHeight+", left="+pLeft+", top="+pTop+", scrollbars="+pScroll+", resizable = "+ pReSize +", toolbars=no, status=no");
	newwin2.focus();
}
function winallclose()
{
	if(navigator.appVersion.indexOf("MSiE 7.0") >= 0 )	{
	   //IE7.0 ´Ý´ÂºÎºÐ
	    window.open('about:blank','_self').close();
	}
	else{
	    //IE6.0 ´Ý´ÂºÎºÐ
	    window.opener = self;
	    self.close();
	}
}
					
/* Ajax ÇÔ¼ö ½ÃÀÛ */
function getXmlHttpRequest(){
	     var xmlhttp = false;

		 if(window.XMLHttpRequest){
			 xmlhttp = new XMLHttpRequest();
		 }else{
			 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		 }
		 return xmlhttp;
}



HTTPRequest = function (pageUrl)
{
	this.dtsrcUrl = pageUrl;
	this.req = null;
	this.reqXML = null;
	this.reqText = null;
	this.GetRequest();
}

HTTPRequest.prototype.GetRequest = function ()
{
	try
	{
		var xmlRequest = null;
		if (window.ActiveXObject)
		{
		    var ms_xml_http = new Array('Msxml2.XMLHTTP.7.0','Msxml2.XMLHTTP.6.0','Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');

			for (var i = 0; i < ms_xml_http.length; i++)
			{
				try { xmlRequest = new ActiveXObject(ms_xml_http[i]); break; }
				catch (e) { xmlRequest = null; }
			}
		}
		else if (window.XMLHttpRequest) { xmlRequest = new XMLHttpRequest(); }

		xmlRequest.open('POST', this.dtsrcUrl, false);
		xmlRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		xmlRequest.setRequestHeader('Content-length', '0');
		xmlRequest.send('');

		this.req = xmlRequest;
		this.reqXML = this.req.responseXML;
		this.reqText = this.req.responseText;

		return this.req;
	}
	catch (e) { return null; }

	return null;
}

HTTPRequest.prototype.GetSimpleResult = function()
{
	var rtn = 'Error';
	if(this.reqXML!=null)
	{
		try { rtn = this.reqXML.getElementsByTagName('ccount')[0].firstChild.data; }
		catch (e) {}
	}
	return rtn;
}
/* Ajax ÇÔ¼ö ³¡ */
					
					


function swf_obj(src,w,h,swfid){
	swf_html = '';
	swf_html += '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="'+w+'" HEIGHT="'+h+'" id="'+swfid+'">';
	swf_html += '<param name="movie" value="'+src+'">';
	swf_html += '<param name="quality" value="high">';
	swf_html += '<PARAM NAME="menu" VALUE="false">';
	swf_html += '<PARAM NAME="wmode" VALUE="transparent">';
	swf_html += '<EMBED src="'+src+'" menu="false" wmode="transparent" quality="high" WIDTH="'+w+'" HEIGHT="'+h+'" NAME="'+swfid+'"></EMBED>';
	swf_html += '<\/object>';
	document.write(swf_html);
}

function playerSmall(src, w, h)
{
	html = '';
	html += '<OBJECT id=ArtePlay ';
	html += '      codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803 ';
	html += '      type=application/x-oleobject height='+h+' ';
	html += '      standby="Loading Windows Media Player components..." width='+w+' ';
	html += '      classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>';
	html += '<PARAM NAME="FileName" VALUE="'+src+'">';
	html += '<PARAM NAME="AllowChangeDisplaySize" VALUE="True">';
	html += '<PARAM NAME="transparentAtStart" VALUE="True">';
	html += '<PARAM NAME="transparentAtStop" VALUE="False">';
	html += '<PARAM NAME="AnimationAtStart" VALUE="False">';
	html += '<PARAM NAME="AutoStart" VALUE="1">';
	html += '<PARAM NAME="AutoRewind" VALUE="true">';
	html += '<PARAM NAME="SendMouseClickEvents" VALUE="1">';
	html += '<PARAM NAME="DisplaySize" VALUE="1">';
	html += '<PARAM NAME="ClientSkip" VALUE="1">';
	html += '<PARAM NAME="ClickToPlay" value="true">';
	html += '<PARAM NAME="AutoSize" VALUE="0">';
	html += '<PARAM NAME="ShowDisplay" VALUE="0">';
	html += '<PARAM NAME="ShowStatusBar" VALUE="0">';
	html += '<PARAM NAME="ShowControls" VALUE="0">';
	html += '<PARAM NAME="ShowTracker" VALUE="1">';
	html += '<PARAM NAME="Enabled" VALUE="1">';
	html += '<PARAM NAME="EnableContextMenu" VALUE="0">';
	html += '<PARAM NAME="EnablePositionControls" VALUE="1">';
	html += '<PARAM NAME="AllowChangeDisplaySize" VALUE="1">';
	html += '<PARAM NAME="EnableFullScreenControls" VALUE="1">';
	html += '<PARAM NAME="fullScreen" VALUE="1">';
	html += '<PARAM NAME="ShowPositionControls" VALUE="0">';
	html += '<PARAM NAME="SendKeyboardEvents" VALUE="1">';
	html += '<PARAM NAME="Mute" VALUE="0">';
	html += '<PARAM NAME="PreviewMode" value="false">';
	html += '<PARAM NAME="Rate" VALUE="1">';
	html += '<PARAM NAME="SAMILang" VALUE="">';
	html += '<PARAM NAME="SAMIStyle" VALUE="">';
	html += '<PARAM NAME="SAMIFileName" VALUE="">';
	html += '<PARAM NAME="SendMouseClickEvents" value="true">';
	html += '<PARAM NAME="CursorType" VALUE="1">';
	html += '<PARAM NAME="PlayCount" VALUE="0">';
	html += '</OBJECT>';

	document.write(html);
}	

/*
alt="½ÃÀÛ" onClick="VOD.play()" class="cursor" title="½ÃÀÛ"></td>
alt="ÀÏ½ÃÁßÁö" onClick="VOD.pause()" class="cursor" title="¸ØÃã"></td>
alt="Á¤Áö" onClick="VOD.stop()"
*/
function ArtePlay_Play()
{
	ArtePlay.play()
	document.getElementById('arte_playimg').style.display="none";
	document.getElementById('arte_play').style.display="block";
	document.getElementById('muteimg').src = "http://image.arte.co.kr/img/btn_sound_on.gif";
	setCookie("Play_MuteImg", "" ,0 );
	//document.getElementById('ArtePlay').play = true;	
	
}
function ArtePlay_Pause()
{
	ArtePlay.pause()
	document.getElementById('arte_playimg').style.display="none";
	document.getElementById('arte_play').style.display="block";
	//document.getElementById('ArtePlay').play = true;	
}

function ArtePlay_Mute()
{
	if (document.getElementById('ArtePlay').mute == false)
	{
		//setCookie("Play_MuteImg", "done" ,1 );
		document.getElementById('ArtePlay').mute = true;
		document.getElementById('muteimg').src = "http://image.arte.co.kr/img/btn_sound_off.gif";
	}
	else {
		//setCookie("Play_MuteImg", "" ,0 );
		document.getElementById('ArtePlay').mute = false;
		document.getElementById('muteimg').src = "http://image.arte.co.kr/img/btn_sound_on.gif";
	}
}

function setCookie( name, value, expiredays )
{
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function Call_getCookie()
{
	if (getCookie("Play_MuteImg") != "done") {
		document.getElementById('ArtePlay').mute = false;
		document.getElementById('muteimg').src = "http://image.arte.co.kr/img/btn_sound_off.gif";
	}
	else {
		document.getElementById('ArtePlay').mute = true;
		document.getElementById('muteimg').src = "http://image.arte.co.kr/img/btn_sound_on.gif";
	}
}
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 "";
}								
					
					

function ArtePlayer(src, w, h)
{
	html = '';
	html += '<OBJECT id="ArteVoDPlay" ';
	html += '      codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803 ';
	html += '      style="FILTER: xray();border:5 #A1BADF solid" type="video/x-ms-wmv" height='+h+' ';
	html += '      standby="Loading Windows Media Player components..." width='+w+' ';
	html += '      classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 VIEWASTEXT>';
	html += '<PARAM NAME="FileName" VALUE="'+src+'">';
	html += '<PARAM NAME="AllowChangeDisplaySize" VALUE="True">';
	html += '<PARAM NAME="transparentAtStart" VALUE="True">';
	html += '<PARAM NAME="transparentAtStop" VALUE="False">';
	html += '<PARAM NAME="AnimationAtStart" VALUE="False">';
	html += '<PARAM NAME="AutoStart" VALUE="1">';
	html += '<PARAM NAME="AutoRewind" VALUE="true">';
	html += '<PARAM NAME="SendMouseClickEvents" VALUE="1">';
	html += '<PARAM NAME="DisplaySize" VALUE="1">';
	html += '<PARAM NAME="ClientSkip" VALUE="1">';
	html += '<PARAM NAME="ClickToPlay" value="true">';
	html += '<PARAM NAME="AutoSize" VALUE="1">';
	html += '<PARAM NAME="ShowDisplay" VALUE="0">';
	html += '<PARAM NAME="ShowStatusBar" VALUE="1">';
	html += '<PARAM NAME="ShowControls" VALUE="1">';
	html += '<PARAM NAME="ShowTracker" VALUE="1">';
	html += '<PARAM NAME="Enabled" VALUE="1">';
	html += '<PARAM NAME="EnableContextMenu" VALUE="0">';
	html += '<PARAM NAME="EnablePositionControls" VALUE="1">';
	html += '<PARAM NAME="AllowChangeDisplaySize" VALUE="1">';
	html += '<PARAM NAME="EnableFullScreenControls" VALUE="1">';
	html += '<PARAM NAME="fullScreen" VALUE="1">';
	html += '<PARAM NAME="ShowPositionControls" VALUE="0">';
	html += '<PARAM NAME="SendKeyboardEvents" VALUE="1">';
	html += '<PARAM NAME="Mute" VALUE="0">';
	html += '<PARAM NAME="PreviewMode" value="false">';
	html += '<PARAM NAME="Rate" VALUE="1">';
	html += '<PARAM NAME="SAMILang" VALUE="">';
	html += '<PARAM NAME="SAMIStyle" VALUE="">';
	html += '<PARAM NAME="SAMIFileName" VALUE="">';
	html += '<PARAM NAME="SendMouseClickEvents" value="true">';
	html += '<PARAM NAME="CursorType" VALUE="1">';
	html += '<PARAM NAME="invokeurls" VALUE="1">';
	html += '<PARAM NAME="stretchtofit" VALUE="0">';
	html += '<PARAM NAME="uimode" VALUE="none">';
	html += '<PARAM NAME="balance" VALUE="0">';
	html += '<PARAM NAME="currentposition" VALUE="0">';
	html += '<PARAM NAME="displaybackcolor" VALUE="0">';
	
	
	
	html += '</OBJECT>';

	document.write(html);
}

function playerDB(src, w, h)
{
	html = '';
	html += '<OBJECT id=ArtePlay ';
	
	html += '      codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,5,0803 ';
	html += '      style="FILTER: xray();border:0 #e0e0e0 solid" type="video/x-ms-wmv" height='+h+' ';
	html += '      standby="Loading Windows Media Player components..." width='+w+' ';
	html += '      classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 VIEWASTEXT>';
	html += '<PARAM NAME="FileName" VALUE="'+src+'">';
	html += '<param name="AudioStream" value="-1">';
	html += '<param name="AutoSize" value="false">';
	html += '<param name="AutoStart" value="true">';
	html += '<param name="AnimationAtStart" value="true">';
	html += '<param name="AllowScan" value="true">';
	html += '<param name="AllowChangeDisplaySize" value="true">';
	html += '<param name="AutoRewind" value="false">';
	html += '<param name="Balance" value="0">';
	html += '<param name="BufferingTime" value="5">';
	html += '<param name="ClickToPlay" value="true">';
	html += '<param name="CursorType" value="0">';
	html += '<param name="CurrentPosition" value="-1">';
	html += '<param name="CurrentMarker" value="0">';
	html += '<param name="DisplayBackColor" value="0">';
	html += '<param name="DisplayForeColor" value="16777215">';
	html += '<param name="DisplayMode" value="0">';
	html += '<param name="DisplaySize" value="0">';
	html += '<param name="Enabled" value="true">';
	html += '<param name="EnableContextMenu" value="true">';
	html += '<param name="EnablePositionControls" value="true">';
	html += '<param name="EnableFullScreenControls" value="false">';
	html += '<param name="EnableTracker" value="true">';
	html += '<param name="InvokeURLs" value="true">';
	html += '<param name="Language" value="-1">';
	html += '<param name="Mute" value="false">';
	html += '<param name="PlayCount" value="1">';
	html += '<param name="PreviewMode" value="false">';
	html += '<param name="Rate" value="1">';
	html += '<param name="SelectionStart" value="-1">';
	html += '<param name="SelectionEnd" value="-1">';
	html += '<param name="SendOpenStateChangeEvents" value="true">';
	html += '<param name="SendWarningEvents" value="true">';
	html += '<param name="SendErrorEvents" value="true">';
	html += '<param name="SendKeyboardEvents" value="false">';
	html += '<param name="SendMouseClickEvents" value="false">';
	html += '<param name="SendMouseMoveEvents" value="false">';
	html += '<param name="SendPlayStateChangeEvents" value="true">';
	html += '<param name="ShowCaptioning" value="false">';
	html += '<param name="ShowControls" value="true">';
	html += '<param name="ShowAudioControls" value="true">';
	html += '<param name="ShowDisplay" value="false">';
	html += '<param name="ShowGotoBar" value="false">';
	html += '<param name="ShowPositionControls" value="false">';
	html += '<param name="ShowStatusBar" value="false">';
	html += '<param name="ShowTracker" value="true">';
	html += '<param name="TransparentAtStart" value="false">';
	html += '<param name="VideoBorderWidth" value="0">';
	html += '<param name="VideoBorderColor" value="0">';
	html += '<param name="VideoBorder3D" value="false">';
	html += '<param name="Volume" value="-600">';
	html += '<param name="WindowlessVideo" value="false">';
	
	html += '</OBJECT>';

	document.write(html);
}	

        
function openwinPlayer(pUrl){
	openwin(pUrl, '', 0, 680, 540, 0, 0)
}

function click_loginchk(preurl)
{
	if (confirm("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. \n\n·Î±×ÀÎÀ» ÇÏ½Ã°Ú½À´Ï±î?"))
	{
		document.location.href="/member/login/?reurl="+ escape(preurl) +"";
		}
	
}


	function NewsImageSlide()
	{
		// ¸Å°³º¯¼ö ÀÔ·Â
		this.SlideID		= arguments[0];	// ½½¶óÀÌµåID
		this.ShowCount	= arguments[1];	// º¸¿©Áú ÀÌ¹ÌÁö ¼ö
		this.ShowGroup	= arguments[2];	// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö
		this.ShowDirec	= arguments[3];	// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ 
		this.ImgWidth		= arguments[4];	// ½½¶óÀÌµå ÀÌ¹ÌÁö °¡·Î Å©±â
		this.ImgHeight	= arguments[5];	// ½½¶óÀÌµå ÀÌ¹ÌÁö ¼¼·Î Å©±â
		this.SlideSpeed	= arguments[6];	// ½½¶óÀÌµå ¼Óµµ
		
		// Start ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		// º¸¿©Áú ÀÌ¹ÌÁö ¼ö (±âº»°ª : 3°³)
		if (this.ShowCount == null)
			this.ShowCount = 3;
		
		// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö (±âº»°ª : 1°³)
		if (this.ShowGroup == null)
			this.ShowGroup = 3;
			
		// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ (±âº»:¿ÞÂÊ = 0)
		if (this.ShowDirec == null)
			this.ShowDirec = 0;
		
		// ÀÌ¹ÌÁö Å©±â	(±âº»°ª : 86x66)
		if ( this.ImgWidth	== null || this.ImgHeight == null)
		{
			// ¸Å°³º¯¼ö °ª ÀÔ·Â½Ã ÀÌ¹ÌÁö Å©±â 86x66À¸·Î °íÁ¤
			this.ImgWidth	= 86;
			this.ImgHeight	= 66;
		}

		// ½½¶óÀÌµå ¼Óµµ (±âº»°ª : 3ÃÊ = 3,000ms)
		if (this.SlideSpeed == null)
			this.SlideSpeed	= 6000;
			
		// End ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		this.Item		= new Array();	// ÀÌ¹ÌÁö Á¤º¸¸¦ ´ãÀ» ¹è¿­
		this.ItemCount	= 0;						// ÀÌ¹ÌÁö Á¤º¸ ¹è¿­ Å©±â
		this.CurShow	= 0;						// ÇöÀç º¸¿©Áö´Â Ã¹¹øÂ° ÀÌ¹ÌÁö ¹øÈ£
		this.Stop		= false;				// ÁßÁö¿©ºÎ (ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over½Ã ÁßÁö¸¦ À§ÇØ)

			// ½½¶óÀÌµå ÀÌ¹ÌÁö Á¤º¸ Ãß°¡
			// »ç¿ë½Ã ¸Å°³º¯¼ö·Î XXX.add(¸µÅ©URL, ÀÌ¹ÌÁöURL, ÀÌ¹ÌÁö Á¦¸ñ)À» ÀÔ·Â
			this.add = function () {
				
				SlideDvDSeq		= arguments[0];		// ¸µÅ© URL
				SlideDvDImage		= arguments[1];		// ÀÌ¹ÌÁö URL
				SlideDvDTitle		= arguments[2];		// ÀÌ¹ÌÁö Á¦¸ñ
				SlideDvDContent	= arguments[3];		// ÀÌ¹ÌÁö Á¦¸ñ
				SlideDvDPreImg	= arguments[4];		// µ¿¿µ»ó¹Ì¸®º¸±âÀÌ¹ÌÁö

				// ÀÌ¹ÌÁö ±ôºýÀÓÀ» ¾ø¿¡±â À§ÇØ ¹Ì¸® ÀÌ¹ÌÁö ·Îµù
				(new Image).src = SlideDvDImage;
				
				SlideHtml = "";

/*
				SlideHtml += "									<div class=\"imgMdlBox\">";
				SlideHtml += "										<p class=\"imgBox\">";
				SlideHtml += "											<a href=\"" + SlideLink + "\"><img src=\""+ SlideImage + "\" alt=\"\" border=\"0\" width=\"" + this.ImgWidth + "\" height=\"" + this.ImgHeight + "\"/></a>";
				SlideHtml += "										</p>";
				SlideHtml += "										<p class=\"descBox\">";
				SlideHtml += "											<a href=\"" + SlideLink + "\">" + SlideTitle + "["+ SlideTitle2 +"]</a>";
				SlideHtml += "										</p>";
				SlideHtml += "									</div>";
				*/
				
				//SlideHtml += "	<li><a href=\"/artedvd/recommend/view.asp?dvdseq=546\"><img src=\"http://image.arte.co.kr/uploadimg/cover/DVD20080724214202.jpg\" width=\"60\" height=\"85\" border=\"0\" align=\"absmiddle\"></a><a href=\"/artedvd/recommend/view.asp?dvdseq=546\"><b>ÇªÄ¡´Ï : Åä½ºÄ« : ¹«..</b></a><br><span class=\"con\">ÀÛ°î : ÀÚÄÚ¸ð ÇªÄ¡´Ï&nbsp;ÁöÈÖ : ¸®Ä«¸£µµ ¹«Æ¼&nbsp;¿ÀÄÉ½ºÆ®¶ó : ½ºÄ®¶ó ±ØÀå ¿ÀÄÉ½ºÆ®¶ó&nbsp;</span></li>";
				
				SlideHtml += "	<li><a href=\"/artedvd/recommend/view.asp?dvdseq="+ SlideDvDSeq +"\"><img src=\""+ SlideDvDImage +"\" width=\"60\" height=\"85\" border=\"0\" align=\"absmiddle\" class=\"img1\"></a><a href=\"/artedvd/recommend/view.asp?dvdseq="+ SlideDvDSeq +"\" class=\"title01\"><b>"+ SlideDvDTitle +"</b></a><br><span class=\"con\">"+ SlideDvDContent +"</span><br>"+ SlideDvDPreImg +"</li>";
				
				
				
				// HTML¼Ò½º Item µî·Ï
				this.Item[this.ItemCount] = SlideHtml;
				this.ItemCount++;
				
			}
		
			// ÃÊ±â ¼ÂÆÃ
			// ÀÌ¹ÌÁö ½½¶óÀÌµå°¡ µé¾î°¥ DIV¿Í ´ÙÀ½ ¹× ÀÌÀü ¹öÆ° ÀÌ¹ÌÁö
			this.Start = function () {
				
				SlideBase = "";
				
				// ÆÄ¶ó¹ÌÅÍ °ª È®ÀÎ¿ë
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
				// SlideBase += "<center>" + this.SlideID + " : " + this.ShowCount + "," + this.ShowGroup + "," + this.ShowDirec + "," + this.ImgWidth + "," + this.ImgHeight + "," + this.SlideSpeed + "</center>";
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
				
				/*
				SlideBase += "						<div class=\"listBox\" onMouseOver=\""+this.SlideID+".MouseOver();\" onMouseOut=\""+this.SlideID+".MouseOut();\">";
				SlideBase += "							<a href=\"javascript:" + this.SlideID + ".Prev();\"><img src=\"http://newsimg.nate.com/img/2007/btn/btn_02_left_arrow.gif\"  alt=\"\" border=\"0\" class=\"lbtn\" /></a>";
				SlideBase += "							<a href=\"javascript:" + this.SlideID + ".Next();\"><img src=\"http://newsimg.nate.com/img/2007/btn/btn_02_right_arrow.gif\"   alt=\"\" border=\"0\" class=\"rbtn\" /></a>";
				SlideBase += "							<div class=\"innerBox\" id=\"" + this.SlideID + "\">";
				SlideBase += "							</div>"
				SlideBase += "						</div>"
				
				*/
				
				

				SlideBase += "	<div id=\"reco_dvd2\">";
				SlideBase += "		<div class=\"top\"></div>";
				SlideBase += "		<h2 class=\"title\"><a href=\"javascript:" + this.SlideID + ".Prev();\"><img src=\"http://image.arte.co.kr/img/btn_next03.gif\" width=\"16\" height=\"16\"  border=\"0\"></a><a href=\"javascript:" + this.SlideID + ".Next();\"><img src=\"http://image.arte.co.kr/img/btn_prev02.gif\" width=\"16\" height=\"16\"  border=\"0\"></a><a href=\"#\" class=\"title\">ÃßÃµ DVD</a></h2>";
				SlideBase += "	<ul>";
				SlideBase += "							<div class=\"innerBox\" id=\"" + this.SlideID + "\">";
				SlideBase += "							</div>"				
				SlideBase += "	</ul>";
				SlideBase += "		<div class=\"bottom\"></div>";
				SlideBase += "	</div>";
	

	
				document.write(SlideBase);

				this.ChangeImage();
				
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);

			}
			
			// ÀÚµ¿ ·Ñ¸µ
			this.Rolling = function(){
				if(!this.Stop)
				{
					this.MoveImage(this.ShowDirec);
					this.ChangeImage();
				}
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);
			}
			
			// ´ÙÀ½ ¹öÆ° ±â´É
			this.Next = function(){	
				this.MoveImage(0);
				this.ChangeImage();
			}
			
			// ÀÌÀü ¹öÆ° ±â´É
			this.Prev = function(){	

				this.MoveImage(1);
				this.ChangeImage();
				
			}

			// ½½¶óÀÌµå ÀÌ¹ÌÁö ÀÌµ¿ ±â´É
			this.MoveImage = function() {
				ShowDirec		= arguments[0];		// ÀÌµ¿ ¹æÇâ (0:¿ÞÂÊ, 1:¿À¸¥ÂÊ)
				
				if(ShowDirec == 0){
	
					this.CurShow = this.CurShow + this.ShowGroup;
					
					if(this.CurShow >= this.ItemCount)
						this.CurShow = 0;
				}
				else
				{
					this.CurShow = this.CurShow - this.ShowGroup;
					
					if(this.CurShow < 0)
						this.CurShow = this.ItemCount - 1;
				}
				
			}
			
			// ½½¶óÀÌµå ÀÌ¹ÌÁö º¯°æ ±â´É
			this.ChangeImage = function() {
				tmpHTML = "";
				
				for( i = this.CurShow; i < (this.CurShow + this.ShowCount); i++ )
				{
					tmpHTML += this.Item[(i % this.ItemCount)];
				}
				
				tmpHTML += "\n								";
				
				Obj = document.getElementById(this.SlideID);
				Obj.innerHTML= tmpHTML;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over ½Ã Á¤Áö ¼³Á¤
			this.MouseOver = function(){
				this.Stop = true;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Out ½Ã Á¤Áö ÇØÁ¦
			this.MouseOut = function(){
				this.Stop = false;
			}
	}
	

	function NewsImageSlide_BBs()
	{
		// ¸Å°³º¯¼ö ÀÔ·Â
		this.SlideID		= arguments[0];	// ½½¶óÀÌµåID
		this.ShowCount	= arguments[1];	// º¸¿©Áú ÀÌ¹ÌÁö ¼ö
		this.ShowGroup	= arguments[2];	// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö
		this.ShowDirec	= arguments[3];	// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ 
		this.ImgWidth		= arguments[4];	// ½½¶óÀÌµå ÀÌ¹ÌÁö °¡·Î Å©±â
		this.ImgHeight	= arguments[5];	// ½½¶óÀÌµå ÀÌ¹ÌÁö ¼¼·Î Å©±â
		this.SlideSpeed	= arguments[6];	// ½½¶óÀÌµå ¼Óµµ
		
		// Start ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		// º¸¿©Áú ÀÌ¹ÌÁö ¼ö (±âº»°ª : 3°³)
		if (this.ShowCount == null)
			this.ShowCount = 4;
		
		// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö (±âº»°ª : 1°³)
		if (this.ShowGroup == null)
			this.ShowGroup = 4;
			
		// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ (±âº»:¿ÞÂÊ = 0)
		if (this.ShowDirec == null)
			this.ShowDirec = 0;
		
		// ÀÌ¹ÌÁö Å©±â	(±âº»°ª : 86x66)
		if ( this.ImgWidth	== null || this.ImgHeight == null)
		{
			// ¸Å°³º¯¼ö °ª ÀÔ·Â½Ã ÀÌ¹ÌÁö Å©±â 86x66À¸·Î °íÁ¤
			this.ImgWidth	= 86;
			this.ImgHeight	= 66;
		}

		// ½½¶óÀÌµå ¼Óµµ (±âº»°ª : 3ÃÊ = 3,000ms)
		if (this.SlideSpeed == null)
			this.SlideSpeed	= 2000;
			
		// End ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		this.Item		= new Array();	// ÀÌ¹ÌÁö Á¤º¸¸¦ ´ãÀ» ¹è¿­
		this.ItemCount	= 0;						// ÀÌ¹ÌÁö Á¤º¸ ¹è¿­ Å©±â
		this.CurShow	= 0;						// ÇöÀç º¸¿©Áö´Â Ã¹¹øÂ° ÀÌ¹ÌÁö ¹øÈ£
		this.Stop		= false;				// ÁßÁö¿©ºÎ (ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over½Ã ÁßÁö¸¦ À§ÇØ)

			// ½½¶óÀÌµå ÀÌ¹ÌÁö Á¤º¸ Ãß°¡
			// »ç¿ë½Ã ¸Å°³º¯¼ö·Î XXX.add(¸µÅ©URL, ÀÌ¹ÌÁöURL, ÀÌ¹ÌÁö Á¦¸ñ)À» ÀÔ·Â
			this.add = function () {
				
				SlideDvDSeq		= arguments[0];		// ¸µÅ© URL
				SlideDvDImage		= arguments[1];		// ÀÌ¹ÌÁö URL
				SlideDvDTitle		= arguments[2];		// ÀÌ¹ÌÁö Á¦¸ñ
				SlideDvDContent	= arguments[3];		// ÀÌ¹ÌÁö Á¦¸ñ

				// ÀÌ¹ÌÁö ±ôºýÀÓÀ» ¾ø¿¡±â À§ÇØ ¹Ì¸® ÀÌ¹ÌÁö ·Îµù
				(new Image).src = SlideDvDImage;
				
				SlideHtml = "";

				SlideHtml += "	<li><a href=\"/artebbs/info/?bbsid=1001&bbsseq="+ SlideDvDSeq +"&action=view\"><img src=\""+ SlideDvDImage +"\" width=\"70\" height=\"47\" border=\"0\" align=\"absmiddle\"></a><a href=\"/artebbs/info/?bbsid=1001&bbsseq="+ SlideDvDSeq +"&action=view\"><b>"+ SlideDvDTitle +"</b></a><br><span class=\"con\">"+ SlideDvDContent +"</span></li>";

				
				
				// HTML¼Ò½º Item µî·Ï
				this.Item[this.ItemCount] = SlideHtml;
				this.ItemCount++;
				
			}
		
			// ÃÊ±â ¼ÂÆÃ
			// ÀÌ¹ÌÁö ½½¶óÀÌµå°¡ µé¾î°¥ DIV¿Í ´ÙÀ½ ¹× ÀÌÀü ¹öÆ° ÀÌ¹ÌÁö
			this.Start = function () {
				
				SlideBase = "";



				SlideBase += "	<div id=\"performance\">";
				SlideBase += "	<div class=\"top\"></div>";
				SlideBase += "		<h2 class=\"title\" onclick=\"javascript:document.location.href='/artebbs/info/';\"><a href=\"/artebbs/info/\"><img src=\"http://image.arte.co.kr/img/more.gif\" alt=\"´õº¸±â\" width=\"34\" height=\"8\"  border=\"0\"></a><a href=\"#\" class=\"title\">°ø¿¬ Àü½ÃÁ¤º¸</a></h2>";
				SlideBase += "		<ul>";
				SlideBase += "							<div class=\"innerBox\" id=\"" + this.SlideID + "\"></div>";
				SlideBase += "		</ul>";
				SlideBase += "	<div class=\"bottom\"></div>";
				SlideBase += "	</div>";
	
				document.write(SlideBase);

				this.ChangeImage();
				
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);

			}
			
			// ÀÚµ¿ ·Ñ¸µ
			this.Rolling = function(){
				if(!this.Stop)
				{
					this.MoveImage(this.ShowDirec);
					this.ChangeImage();
				}
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);
			}
			
			// ´ÙÀ½ ¹öÆ° ±â´É
			this.Next = function(){	
				this.MoveImage(0);
				this.ChangeImage();
			}
			
			// ÀÌÀü ¹öÆ° ±â´É
			this.Prev = function(){	

				this.MoveImage(1);
				this.ChangeImage();
				
			}

			// ½½¶óÀÌµå ÀÌ¹ÌÁö ÀÌµ¿ ±â´É
			this.MoveImage = function() {
				ShowDirec		= arguments[0];		// ÀÌµ¿ ¹æÇâ (0:¿ÞÂÊ, 1:¿À¸¥ÂÊ)
				
				if(ShowDirec == 0){
	
					this.CurShow = this.CurShow + this.ShowGroup;
					
					if(this.CurShow >= this.ItemCount)
						this.CurShow = 0;
				}
				else
				{
					this.CurShow = this.CurShow - this.ShowGroup;
					
					if(this.CurShow < 0)
						this.CurShow = this.ItemCount - 1;
				}
				
			}
			
			// ½½¶óÀÌµå ÀÌ¹ÌÁö º¯°æ ±â´É
			this.ChangeImage = function() {
				tmpHTML = "";
				
				for( i = this.CurShow; i < (this.CurShow + this.ShowCount); i++ )
				{
					tmpHTML += this.Item[(i % this.ItemCount)];
				}
				
				tmpHTML += "\n								";
				
				Obj = document.getElementById(this.SlideID);
				Obj.innerHTML= tmpHTML;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over ½Ã Á¤Áö ¼³Á¤
			this.MouseOver = function(){
				this.Stop = true;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Out ½Ã Á¤Áö ÇØÁ¦
			this.MouseOut = function(){
				this.Stop = false;
			}
	}
		
	function NewsImageSlide_H()
	{
		// ¸Å°³º¯¼ö ÀÔ·Â
		this.SlideID		= arguments[0];	// ½½¶óÀÌµåID
		this.ShowCount	= arguments[1];	// º¸¿©Áú ÀÌ¹ÌÁö ¼ö
		this.ShowGroup	= arguments[2];	// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö
		this.ShowDirec	= arguments[3];	// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ 
		this.ImgWidth		= arguments[4];	// ½½¶óÀÌµå ÀÌ¹ÌÁö °¡·Î Å©±â
		this.ImgHeight	= arguments[5];	// ½½¶óÀÌµå ÀÌ¹ÌÁö ¼¼·Î Å©±â
		this.SlideSpeed	= arguments[6];	// ½½¶óÀÌµå ¼Óµµ
		
		// Start ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		// º¸¿©Áú ÀÌ¹ÌÁö ¼ö (±âº»°ª : 3°³)
		if (this.ShowCount == null)
			this.ShowCount = 3;
		
		// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö (±âº»°ª : 1°³)
		if (this.ShowGroup == null)
			this.ShowGroup = 3;
			
		// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ (±âº»:¿ÞÂÊ = 0)
		if (this.ShowDirec == null)
			this.ShowDirec = 0;
		
		// ÀÌ¹ÌÁö Å©±â	(±âº»°ª : 86x66)
		if ( this.ImgWidth	== null || this.ImgHeight == null)
		{
			// ¸Å°³º¯¼ö °ª ÀÔ·Â½Ã ÀÌ¹ÌÁö Å©±â 86x66À¸·Î °íÁ¤
			this.ImgWidth	= 86;
			this.ImgHeight	= 66;
		}

		// ½½¶óÀÌµå ¼Óµµ (±âº»°ª : 3ÃÊ = 3,000ms)
		if (this.SlideSpeed == null)
			this.SlideSpeed	= 2000;
			
		// End ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		this.Item		= new Array();	// ÀÌ¹ÌÁö Á¤º¸¸¦ ´ãÀ» ¹è¿­
		this.ItemCount	= 0;						// ÀÌ¹ÌÁö Á¤º¸ ¹è¿­ Å©±â
		this.CurShow	= 0;						// ÇöÀç º¸¿©Áö´Â Ã¹¹øÂ° ÀÌ¹ÌÁö ¹øÈ£
		this.Stop		= false;				// ÁßÁö¿©ºÎ (ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over½Ã ÁßÁö¸¦ À§ÇØ)

			// ½½¶óÀÌµå ÀÌ¹ÌÁö Á¤º¸ Ãß°¡
			// »ç¿ë½Ã ¸Å°³º¯¼ö·Î XXX.add(¸µÅ©URL, ÀÌ¹ÌÁöURL, ÀÌ¹ÌÁö Á¦¸ñ)À» ÀÔ·Â
			this.add = function () {
				
				SlideDvDSeq		= arguments[0];		// ¸µÅ© URL
				SlideDvDImage		= arguments[1];		// ÀÌ¹ÌÁö URL
				SlideDvDTitle		= arguments[2];		// ÀÌ¹ÌÁö Á¦¸ñ
				SlideDvDContent	= arguments[3];		// ÀÌ¹ÌÁö Á¦¸ñ

				// ÀÌ¹ÌÁö ±ôºýÀÓÀ» ¾ø¿¡±â À§ÇØ ¹Ì¸® ÀÌ¹ÌÁö ·Îµù
				(new Image).src = SlideDvDImage;
				
				SlideHtml = "";

/*
				SlideHtml += "									<div class=\"imgMdlBox\">";
				SlideHtml += "										<p class=\"imgBox\">";
				SlideHtml += "											<a href=\"" + SlideLink + "\"><img src=\""+ SlideImage + "\" alt=\"\" border=\"0\" width=\"" + this.ImgWidth + "\" height=\"" + this.ImgHeight + "\"/></a>";
				SlideHtml += "										</p>";
				SlideHtml += "										<p class=\"descBox\">";
				SlideHtml += "											<a href=\"" + SlideLink + "\">" + SlideTitle + "["+ SlideTitle2 +"]</a>";
				SlideHtml += "										</p>";
				SlideHtml += "									</div>";
				*/
				
				//SlideHtml += "	<li><a href=\"/artedvd/recommend/view.asp?dvdseq=546\"><img src=\"http://image.arte.co.kr/uploadimg/cover/DVD20080724214202.jpg\" width=\"60\" height=\"85\" border=\"0\" align=\"absmiddle\"></a><a href=\"/artedvd/recommend/view.asp?dvdseq=546\"><b>ÇªÄ¡´Ï : Åä½ºÄ« : ¹«..</b></a><br><span class=\"con\">ÀÛ°î : ÀÚÄÚ¸ð ÇªÄ¡´Ï&nbsp;ÁöÈÖ : ¸®Ä«¸£µµ ¹«Æ¼&nbsp;¿ÀÄÉ½ºÆ®¶ó : ½ºÄ®¶ó ±ØÀå ¿ÀÄÉ½ºÆ®¶ó&nbsp;</span></li>";
				
				//SlideHtml += "	<li><a href=\"/artedvd/recommend/view.asp?dvdseq="+ SlideDvDSeq +"\"><img src=\""+ SlideDvDImage +"\" width=\"60\" height=\"85\" border=\"0\" align=\"absmiddle\"></a><a href=\"/artedvd/recommend/view.asp?dvdseq="+ SlideDvDSeq +"\"><b>"+ SlideDvDTitle +"</b></a><br><span class=\"con\">"+ SlideDvDContent +"</span></li>";
				
				
				SlideHtml += "	<div id=\"highlight_c\">";
				SlideHtml += "	<div id=\"highlight_img\">"+ SlideDvDSeq +"<img src=\""+ SlideDvDImage +"\" width=\"143\" height=\"85\" border=\"0\" ></a></div>";
				SlideHtml += "	<div id=\"highlight_txt\">";
				SlideHtml += "		<div class=\"txt1\">"+ SlideDvDSeq +""+ SlideDvDTitle +"</a></div>";
				SlideHtml += "		<div class=\"txt2\">"+ SlideDvDContent +"</div>";
				SlideHtml += "	</div>";
				SlideHtml += "	</div>";
				
				
				// HTML¼Ò½º Item µî·Ï
				this.Item[this.ItemCount] = SlideHtml;
				this.ItemCount++;
				
			}
		
			// ÃÊ±â ¼ÂÆÃ
			// ÀÌ¹ÌÁö ½½¶óÀÌµå°¡ µé¾î°¥ DIV¿Í ´ÙÀ½ ¹× ÀÌÀü ¹öÆ° ÀÌ¹ÌÁö
			this.Start = function () {
				
				SlideBase = "";
				
				// ÆÄ¶ó¹ÌÅÍ °ª È®ÀÎ¿ë
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
				// SlideBase += "<center>" + this.SlideID + " : " + this.ShowCount + "," + this.ShowGroup + "," + this.ShowDirec + "," + this.ImgWidth + "," + this.ImgHeight + "," + this.SlideSpeed + "</center>";
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
				
				/*
				SlideBase += "						<div class=\"listBox\" onMouseOver=\""+this.SlideID+".MouseOver();\" onMouseOut=\""+this.SlideID+".MouseOut();\">";
				SlideBase += "							<a href=\"javascript:" + this.SlideID + ".Prev();\"><img src=\"http://newsimg.nate.com/img/2007/btn/btn_02_left_arrow.gif\"  alt=\"\" border=\"0\" class=\"lbtn\" /></a>";
				SlideBase += "							<a href=\"javascript:" + this.SlideID + ".Next();\"><img src=\"http://newsimg.nate.com/img/2007/btn/btn_02_right_arrow.gif\"   alt=\"\" border=\"0\" class=\"rbtn\" /></a>";
				SlideBase += "							<div class=\"innerBox\" id=\"" + this.SlideID + "\">";
				SlideBase += "							</div>"
				SlideBase += "						</div>"
				
				*/
				
				
								
				SlideBase += "	<div id=\"highlight\">";
				SlideBase += "		<div id=\"highlight_b\"><a href=\"javascript:" + this.SlideID + ".Prev();\"><img src=\"http://image.arte.co.kr/img/btn_prev02.gif\" width=\"16\" height=\"16\"></a> <a href=\"javascript:" + this.SlideID + ".Next();\"><img src=\"http://image.arte.co.kr/img/btn_next03.gif\" width=\"16\" height=\"16\"></a></div>";
				SlideBase += "							<div class=\"innerBox\" id=\"" + this.SlideID + "\">";
				SlideBase += "							</div>"								
				SlideBase += "	</div>";
								
				document.write(SlideBase);

				this.ChangeImage();
				
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);

			}
			
			// ÀÚµ¿ ·Ñ¸µ
			this.Rolling = function(){
				if(!this.Stop)
				{
					this.MoveImage(this.ShowDirec);
					this.ChangeImage();
				}
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);
			}
			
			// ´ÙÀ½ ¹öÆ° ±â´É
			this.Next = function(){	
				this.MoveImage(0);
				this.ChangeImage();
			}
			
			// ÀÌÀü ¹öÆ° ±â´É
			this.Prev = function(){	

				this.MoveImage(1);
				this.ChangeImage();
				
			}

			// ½½¶óÀÌµå ÀÌ¹ÌÁö ÀÌµ¿ ±â´É
			this.MoveImage = function() {
				ShowDirec		= arguments[0];		// ÀÌµ¿ ¹æÇâ (0:¿ÞÂÊ, 1:¿À¸¥ÂÊ)
				
				if(ShowDirec == 0){
	
					this.CurShow = this.CurShow + this.ShowGroup;
					
					if(this.CurShow >= this.ItemCount)
						this.CurShow = 0;
				}
				else
				{
					this.CurShow = this.CurShow - this.ShowGroup;
					
					if(this.CurShow < 0)
						this.CurShow = this.ItemCount - 1;
				}
				
			}
			
			// ½½¶óÀÌµå ÀÌ¹ÌÁö º¯°æ ±â´É
			this.ChangeImage = function() {
				tmpHTML = "";
				
				for( i = this.CurShow; i < (this.CurShow + this.ShowCount); i++ )
				{
					tmpHTML += this.Item[(i % this.ItemCount)];
				}
				
				tmpHTML += "\n								<br class=\"clear\" />";
				
				Obj = document.getElementById(this.SlideID);
				Obj.innerHTML= tmpHTML;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over ½Ã Á¤Áö ¼³Á¤
			this.MouseOver = function(){
				this.Stop = true;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Out ½Ã Á¤Áö ÇØÁ¦
			this.MouseOut = function(){
				this.Stop = false;
			}
	}

	var scrollwidth_goods = 460;
	var total_area_b_goods = 0;
	var scroll_interval_goods;
	
	var scrollspeed_goods = 1;
	var waitingtime_goods = 500;
	
	
	var s_tmp_goods = 0;
	var tmp_goods;
	
	var scroll_goods_act = true;
	var scroll_direction = 'left';
	
	function startscroll_goods()
	{
		for (i=0; i <2; i++) {
			insert_area_b(total_area_b_goods, total_area_b_goods++);
		}
		if (total_area_b_goods > 1) {
			scroll_interval_goods = setInterval("scroll_left_goods()", waitingtime_goods);
		}
	}
	function scroll_left_goods()
	{
		
		if (total_area_b_goods > 1) {
			if (scroll_goods_act) {
				if (scroll_direction != 'left') {
					arrange_area('left');
				}
				for (i = 0; i < total_area_b_goods; i++) {
					tmp_goods = document.getElementById('scroll_snc_area'+i).style;
					tmp_goods.left = parseInt(tmp_goods.left) - scrollspeed_goods;
					if (parseInt(tmp_goods.left) <= -scrollwidth_goods) {
						tmp_goods.left = scrollwidth_goods * (total_area_b_goods - 1);
					}
				}
				if ((s_tmp_goods += scrollspeed_goods) >= scrollwidth_goods) {
					clearInterval(scroll_interval_goods);
					s_tmp_goods = 0;
					scroll_interval_goods = setInterval("scroll_left_goods()", waitingtime_goods);
					return;
					
					
				}
			}
			clearInterval(scroll_interval_goods);
			scroll_interval_goods = setInterval("scroll_left_goods()", 1);
		} else {
			clearInterval(scroll_interval_goods);
		}
	}
	
	function scroll_right_goods()
	{
		if (total_area_b_goods > 1) {
			if (scroll_goods_act) {
				if (scroll_direction != 'right') {
					arrange_area('right');
				}
				for (i = 0; i < total_area_b_goods; i++) {
					tmp_goods = document.getElementById('scroll_snc_area'+i).style;
					tmp_goods.left = parseInt(tmp_goods.left) + scrollspeed_goods;
					if (parseInt(tmp_goods.left) >= scrollwidth_goods) {
						tmp_goods.left = -scrollwidth_goods * (total_area_b_goods - 1);
					}
				}
				if ((s_tmp_goods -= scrollspeed_goods) <= -scrollwidth_goods) {
					clearInterval(scroll_interval_goods);
					s_tmp_goods = 0;
					scroll_interval_goods = setInterval("scroll_right_goods()", waitingtime_goods);
					return;
				}
			}
			clearInterval(scroll_interval_goods);
			scroll_interval_goods = setInterval("scroll_right_goods()", 1);
		} else {
			clearInterval(scroll_interval_goods);
		}
	
	}
	
	function insert_area_b(idx, n)
	{
		document.writeln('<div style="padding:0 0 0 0px; left:' + (scrollwidth_goods * n) + 'px; width:490px" id="scroll_snc_area' + n + '" class="highlight_sc_box">');
		document.writeln(scroll_snc[idx]);
		document.writeln('</div>');
	}
	
	function arrange_area(dir)
	{
		if (dir == 'right') {
			for (i = 0; i < total_area_b_goods; i++) {
				tmp_goods = document.getElementById('scroll_snc_area' + i).style;
				if (parseInt(tmp_goods.left) >= scrollwidth_goods) {
					tmp_goods.left = parseInt(tmp_goods.left) - (scrollwidth_goods * total_area_b_goods);
				}
			}
		} else if (dir == 'left') {
			for (i = 0; i < total_area_b_goods; i++) {
				tmp_goods = document.getElementById('scroll_snc_area' + i).style;
				if (parseInt(tmp_goods.left) <= -scrollwidth_goods) {
					tmp_goods.left = parseInt(tmp_goods.left) + (scrollwidth_goods * total_area_b_goods);
				}
			}
		}
		scroll_direction = dir;
	}


/* TV ¸ÞÀÎ ¿¹¼ú¸¶Ä«µ¥¹Ì ½ÃÀÛ */
	var scrollwidth_ArteA = 478;
	var total_area_b_ArteA = 0;
	var scroll_interval_ArteA;
	
	var scrollspeed_ArteA = 1;
	var waitingtime_ArteA = 500;
	var s_tmp_ArteA = 0;
	var tmp_ArteA;
	
	var scroll_ArteA_act = true;
	var scroll_directionA = 'left';
	
	function startscroll_ArteA()
	{
		for (i=0; i <2; i++) {
			insert_area_b_ArteA(total_area_b_ArteA, total_area_b_ArteA++);
		}
		if (total_area_b_ArteA > 1) {
			scroll_interval_ArteA = setInterval("scroll_left_ArteA()", waitingtime_ArteA);
		}
	}
	function scroll_left_ArteA()
	{
		if (total_area_b_ArteA > 1) {
			if (scroll_ArteA_act) {
				if (scroll_directionA != 'left') {
					arrange_area_ArteA('left');
				}
				for (i = 0; i < total_area_b_ArteA; i++) {
					tmp_ArteA = document.getElementById('scroll_snc_area'+i).style;
					tmp_ArteA.left = parseInt(tmp_ArteA.left) - scrollspeed_ArteA;
					if (parseInt(tmp_ArteA.left) <= -scrollwidth_ArteA) {
						tmp_ArteA.left = scrollwidth_ArteA * (total_area_b_ArteA - 1);
					}
				}
				if ((s_tmp_ArteA += scrollspeed_ArteA) >= scrollwidth_ArteA) {
					clearInterval(scroll_interval_ArteA);
					s_tmp_ArteA = 0;
					scroll_interval_ArteA = setInterval("scroll_left_ArteA()", waitingtime_ArteA);
					return;
				}
			}
			clearInterval(scroll_interval_ArteA);
			scroll_interval_ArteA = setInterval("scroll_left_ArteA()", 1);
		} else {
			clearInterval(scroll_interval_ArteA);
		}
	}
	
	function scroll_right_ArteA()
	{
		if (total_area_b_ArteA > 1) {
			if (scroll_ArteA_act) {
				if (scroll_directionA != 'right') {
					arrange_area_ArteA('right');
				}
				for (i = 0; i < total_area_b_ArteA; i++) {
					tmp_ArteA = document.getElementById('scroll_snc_area'+i).style;
					tmp_ArteA.left = parseInt(tmp_ArteA.left) + scrollspeed_ArteA;
					if (parseInt(tmp_ArteA.left) >= scrollwidth_ArteA) {
						tmp_ArteA.left = -scrollwidth_ArteA * (total_area_b_ArteA - 1);
					}
				}
				if ((s_tmp_ArteA -= scrollspeed_ArteA) <= -scrollwidth_ArteA) {
					clearInterval(scroll_interval_ArteA);
					s_tmp_ArteA = 0;
					scroll_interval_ArteA = setInterval("scroll_right_ArteA()", waitingtime_ArteA);
					return;
				}
			}
			clearInterval(scroll_interval_ArteA);
			scroll_interval_ArteA = setInterval("scroll_right_ArteA()", 1);
		} else {
			clearInterval(scroll_interval_ArteA);
		}
	
	}
	
	function insert_area_b_ArteA(idx, n)
	{

		document.writeln('<div style="padding:0 0 0 0px; left:' + (scrollwidth_ArteA * n) + 'px; width:490px" id="scroll_snc_area' + n + '" class="academy_sc_box">');
		document.writeln(scroll_artetvA[idx]);
		document.writeln('</div>');
	}
	
	function arrange_area_ArteA(dir)
	{
		if (dir == 'right') {
			for (i = 0; i < total_area_b_ArteA; i++) {
				tmp_ArteA = document.getElementById('scroll_snc_area' + i).style;
				if (parseInt(tmp_ArteA.left) >= scrollwidth_ArteA) {
					tmp_ArteA.left = parseInt(tmp_ArteA.left) - (scrollwidth_ArteA * total_area_b_ArteA);
				}
			}
		} else if (dir == 'left') {
			for (i = 0; i < total_area_b_ArteA; i++) {
				tmp_ArteA = document.getElementById('scroll_snc_area' + i).style;
				if (parseInt(tmp_ArteA.left) <= -scrollwidth_ArteA) {
					tmp_ArteA.left = parseInt(tmp_ArteA.left) + (scrollwidth_ArteA * total_area_b_ArteA);
				}
			}
		}
		scroll_directionA = dir;
	}
/* TV ¸ÞÀÎ ¿¹¼ú¸¶Ä«µ¥¹Ì ³¡ */	

	function NewsImageSlideReComDvD()
	{
		// ¸Å°³º¯¼ö ÀÔ·Â
		this.SlideID		= arguments[0];	// ½½¶óÀÌµåID
		this.ShowCount	= arguments[1];	// º¸¿©Áú ÀÌ¹ÌÁö ¼ö
		this.ShowGroup	= arguments[2];	// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö
		this.ShowDirec	= arguments[3];	// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ 
		this.ImgWidth		= arguments[4];	// ½½¶óÀÌµå ÀÌ¹ÌÁö °¡·Î Å©±â
		this.ImgHeight	= arguments[5];	// ½½¶óÀÌµå ÀÌ¹ÌÁö ¼¼·Î Å©±â
		this.SlideSpeed	= arguments[6];	// ½½¶óÀÌµå ¼Óµµ
		
		// Start ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		// º¸¿©Áú ÀÌ¹ÌÁö ¼ö (±âº»°ª : 3°³)
		if (this.ShowCount == null)
			this.ShowCount = 2;
		
		// ´ÙÀ½ º¸¿©Áú ¹­À½ ¼ö (±âº»°ª : 1°³)
		if (this.ShowGroup == null)
			this.ShowGroup = 2;
			
		// ÀÌ¹ÌÁö ÀÌµ¿ ¹æÇâ (±âº»:¿ÞÂÊ = 0)
		if (this.ShowDirec == null)
			this.ShowDirec = 0;
		
		// ÀÌ¹ÌÁö Å©±â	(±âº»°ª : 86x66)
		if ( this.ImgWidth	== null || this.ImgHeight == null)
		{
			// ¸Å°³º¯¼ö °ª ÀÔ·Â½Ã ÀÌ¹ÌÁö Å©±â 86x66À¸·Î °íÁ¤
			this.ImgWidth	= 86;
			this.ImgHeight	= 66;
		}

		// ½½¶óÀÌµå ¼Óµµ (±âº»°ª : 3ÃÊ = 3,000ms)
		if (this.SlideSpeed == null)
			this.SlideSpeed	= 2000;
			
		// End ------------------------------ ÀÔ·ÂÇÏÁö ¾Ê´Â °æ¿ì ±âº»°ª ¼³Á¤
		
		this.Item		= new Array();	// ÀÌ¹ÌÁö Á¤º¸¸¦ ´ãÀ» ¹è¿­
		this.ItemCount	= 0;						// ÀÌ¹ÌÁö Á¤º¸ ¹è¿­ Å©±â
		this.CurShow	= 0;						// ÇöÀç º¸¿©Áö´Â Ã¹¹øÂ° ÀÌ¹ÌÁö ¹øÈ£
		this.Stop		= false;				// ÁßÁö¿©ºÎ (ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over½Ã ÁßÁö¸¦ À§ÇØ)

			// ½½¶óÀÌµå ÀÌ¹ÌÁö Á¤º¸ Ãß°¡
			// »ç¿ë½Ã ¸Å°³º¯¼ö·Î XXX.add(¸µÅ©URL, ÀÌ¹ÌÁöURL, ÀÌ¹ÌÁö Á¦¸ñ)À» ÀÔ·Â
			this.add = function () {
				
				SlideDvDSeq		= arguments[0];		// ¸µÅ© URL
				SlideDvDImage		= arguments[1];		// ÀÌ¹ÌÁö URL
				SlideDvDTitle		= arguments[2];		// ÀÌ¹ÌÁö Á¦¸ñ
				SlideDvDTitle1		= arguments[3];		// ÀÌ¹ÌÁö Á¦¸ñ
				SlideDvDContent	= arguments[4];		// ÀÌ¹ÌÁö Á¦¸ñ
				SlideDvDPreImg	= arguments[5];		// µ¿¿µ»ó¹Ì¸®º¸±âÀÌ¹ÌÁö

				// ÀÌ¹ÌÁö ±ôºýÀÓÀ» ¾ø¿¡±â À§ÇØ ¹Ì¸® ÀÌ¹ÌÁö ·Îµù
				(new Image).src = SlideDvDImage;
				
				SlideHtml = "";

				
				
				SlideHtml += "	<li><a href=\"/artedvd/recommend/view.asp?dvdseq="+ SlideDvDSeq +"\"><img src=\""+ SlideDvDImage +"\" width=\"45\" height=\"64\" border=\"0\" align=\"absmiddle\" class=\"img1\"></a><a href=\"/artedvd/recommend/view.asp?dvdseq="+ SlideDvDSeq +"\" class=\"title01\">"+ SlideDvDTitle +"</a><a href=\"/artedvd/recommend/view.asp?dvdseq="+ SlideDvDSeq +"\">"+ SlideDvDTitle1 +"</a><br>°¡°Ý : <span class=\"orange\">"+ SlideDvDContent +"</span>&nbsp;"+ SlideDvDPreImg +"</li>";
				
				// HTML¼Ò½º Item µî·Ï
				this.Item[this.ItemCount] = SlideHtml;
				this.ItemCount++;
				
			}
		
			// ÃÊ±â ¼ÂÆÃ
			// ÀÌ¹ÌÁö ½½¶óÀÌµå°¡ µé¾î°¥ DIV¿Í ´ÙÀ½ ¹× ÀÌÀü ¹öÆ° ÀÌ¹ÌÁö
			this.Start = function () {
				
				SlideBase = "";
				
				// ÆÄ¶ó¹ÌÅÍ °ª È®ÀÎ¿ë
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
				// SlideBase += "<center>" + this.SlideID + " : " + this.ShowCount + "," + this.ShowGroup + "," + this.ShowDirec + "," + this.ImgWidth + "," + this.ImgHeight + "," + this.SlideSpeed + "</center>";
				// ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
				
				
				
				SlideBase += "		<ul>";
				SlideBase += "			<div class=\"innerBox\" id=\"" + this.SlideID + "\">";
				SlideBase += "			</div>";
				SlideBase += "		</ul>";				
			
				document.write(SlideBase);

				this.ChangeImage();
				
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);

			}
			
			// ÀÚµ¿ ·Ñ¸µ
			this.Rolling = function(){
				if(!this.Stop)
				{
					this.MoveImage(this.ShowDirec);
					this.ChangeImage();
				}
				setTimeout(this.SlideID + '.Rolling()',this.SlideSpeed);
			}
			
			// ´ÙÀ½ ¹öÆ° ±â´É
			this.Next = function(){	
				this.MoveImage(0);
				this.ChangeImage();
			}
			
			// ÀÌÀü ¹öÆ° ±â´É
			this.Prev = function(){	

				this.MoveImage(1);
				this.ChangeImage();
				
			}

			// ½½¶óÀÌµå ÀÌ¹ÌÁö ÀÌµ¿ ±â´É
			this.MoveImage = function() {
				ShowDirec		= arguments[0];		// ÀÌµ¿ ¹æÇâ (0:¿ÞÂÊ, 1:¿À¸¥ÂÊ)
				
				if(ShowDirec == 0){
	
					this.CurShow = this.CurShow + this.ShowGroup;
					
					if(this.CurShow >= this.ItemCount)
						this.CurShow = 0;
				}
				else
				{
					this.CurShow = this.CurShow - this.ShowGroup;
					
					if(this.CurShow < 0)
						this.CurShow = this.ItemCount - 1;
				}
				
			}
			
			// ½½¶óÀÌµå ÀÌ¹ÌÁö º¯°æ ±â´É
			this.ChangeImage = function() {
				tmpHTML = "";
				
				for( i = this.CurShow; i < (this.CurShow + this.ShowCount); i++ )
				{
					tmpHTML += this.Item[(i % this.ItemCount)];
				}
				
				tmpHTML += "\n								";
				
				Obj = document.getElementById(this.SlideID);
				Obj.innerHTML= tmpHTML;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Over ½Ã Á¤Áö ¼³Á¤
			this.MouseOver = function(){
				this.Stop = true;
			}
			
			// ÀÌ¹ÌÁö ½½¶óÀÌµå ºÎºÐ ¸¶¿ì½º Out ½Ã Á¤Áö ÇØÁ¦
			this.MouseOut = function(){
				this.Stop = false;
			}
	}
	
/* ½ºÅ©·Ñ */	
	
	function pausescroller(content, divId, divClass, delay){
	this.content=content //message array content
	this.tickerid=divId //ID of ticker div to display information
	this.delay=delay //Delay between msg change, in miliseconds.
	this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
	this.hiddendivpointer=1 //index of message array for hidden div
	document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
	var scrollerinstance=this
	if (window.addEventListener) //run onload in DOM2 browsers
	window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
	else if (window.attachEvent) //run onload in IE5.5+
	window.attachEvent("onload", function(){scrollerinstance.initialize()})
	else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
	setTimeout(function(){scrollerinstance.initialize()}, 500)
	}
	
	pausescroller.prototype.initialize=function(){
	this.tickerdiv=document.getElementById(this.tickerid)
	this.visiblediv=document.getElementById(this.tickerid+"1")
	this.hiddendiv=document.getElementById(this.tickerid+"2")
	this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
	//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
	this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
	this.getinline(this.visiblediv, this.hiddendiv)
	this.hiddendiv.style.visibility="visible"
	var scrollerinstance=this
	document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
	document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
	if (window.attachEvent) //Clean up loose references in IE
	window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
	setTimeout(function(){scrollerinstance.animateup()}, this.delay)
	}
	
	pausescroller.prototype.animateup=function(){
	var scrollerinstance=this
	if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
	this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
	this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
	setTimeout(function(){scrollerinstance.animateup()}, 50)
	}
	else{
	this.getinline(this.hiddendiv, this.visiblediv)
	this.swapdivs()
	setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
	}
	}
	
	pausescroller.prototype.swapdivs=function(){
	var tempcontainer=this.visiblediv
	this.visiblediv=this.hiddendiv
	this.hiddendiv=tempcontainer
	}
	
	pausescroller.prototype.getinline=function(div1, div2){
	div1.style.top=this.visibledivtop+"px"
	div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
	}
	
	
	pausescroller.prototype.setmessage=function(){
	var scrollerinstance=this
	if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
	setTimeout(function(){scrollerinstance.setmessage()}, 100)
	else{
	var i=this.hiddendivpointer
	var ceiling=this.content.length
	this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
	this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
	this.animateup()
	}
	}
	
	pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
	if (tickerobj.currentStyle)
	return tickerobj.currentStyle["paddingTop"]
	else if (window.getComputedStyle) //if DOM2
	return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
	else
	return 0
	}

/* ½ºÅ©·Ñ */	

/* ³¯Â¥°è»ê */
function orderOf(object,term){
	
	var newdate=new Date();
	var nowdate=new Date();
	
	if(term == "1day"){
		var DaysToAdd = 0;
	}else if(term == "7day"){
		var DaysToAdd = -7;
	}else if(term == "30day"){
		var DaysToAdd = -30;		
	}else if(term == "90day"){
		var DaysToAdd = -90;
	}else if(term == "180day"){
		var DaysToAdd = -180;
	}
	
	<!-- ±â°£Á¶È¸ -->	
	var newtimes=newdate.getTime()+(DaysToAdd*24*60*60*1000);	
	newdate.setTime(newtimes);
			
	
	var sYear;
	var sMon;
	var sDay;
	
	
			
	sYear = newdate.getYear()
	
	
	
	if(newdate.getMonth() <9){
		sMon = "0" + (newdate.getMonth()+1).toString();
	}else{
		sMon = (newdate.getMonth()+1).toString();
	}		
	
	if(newdate.getDate() <10 ){
		sDay = "0" + newdate.getDate().toString();
	}else{
		sDay = newdate.getDate().toString();
	}	
	
	document.all[object].sdate.value = sYear + "-" + sMon + "-" + sDay;
	
} 

function orderOf2(object,term, pname){
	
	var newdate=new Date();
	var nowdate=new Date();
	
	if(term == "1day"){
		var DaysToAdd = 0;
	}else if(term == "7day"){
		var DaysToAdd = 7;
	}else if(term == "30day"){
		var DaysToAdd = 30;		
	}else if(term == "90day"){
		var DaysToAdd = 90;
	}else if(term == "180day"){
		var DaysToAdd = 180;
	}
	
	<!-- ±â°£Á¶È¸ -->	
	var newtimes=newdate.getTime()+(DaysToAdd*24*60*60*1000);	
	newdate.setTime(newtimes);
			
	
	var sYear;
	var sMon;
	var sDay;
	
	
			
	sYear = newdate.getYear()
	
	
	
	if(newdate.getMonth() <9){
		sMon = "0" + (newdate.getMonth()+1).toString();
	}else{
		sMon = (newdate.getMonth()+1).toString();
	}		
	
	if(newdate.getDate() <10 ){
		sDay = "0" + newdate.getDate().toString();
	}else{
		sDay = newdate.getDate().toString();
	}	
	
	var calldate = eval("document.all[object]."+ pname +"");
	calldate.value = sYear + "-" + sMon + "-" + sDay;
	
}

/* */

/* ±ÛÀÚ¼ö Á¦ÇÑÇÏ±â*/
function fc_chk_byte(aro_name,ari_max)
	{

	   var ls_str     = aro_name.value; // ÀÌº¥Æ®°¡ ÀÏ¾î³­ ÄÁÆ®·ÑÀÇ value °ª
	   var li_str_len = ls_str.length;  // ÀüÃ¼±æÀÌ

	   // º¯¼öÃÊ±âÈ­
	   var li_max      = ari_max; // Á¦ÇÑÇÒ ±ÛÀÚ¼ö Å©±â
	   var i           = 0;  // for¹®¿¡ »ç¿ë
	   var li_byte     = 0;  // ÇÑ±ÛÀÏ°æ¿ì´Â 2 ±×¹Ü¿¡´Â 1À» ´õÇÔ
	   var li_len      = 0;  // substringÇÏ±â À§ÇØ¼­ »ç¿ë
	   var ls_one_char = ""; // ÇÑ±ÛÀÚ¾¿ °Ë»çÇÑ´Ù
	   var ls_str2     = ""; // ±ÛÀÚ¼ö¸¦ ÃÊ°úÇÏ¸é Á¦ÇÑÇÒ¼ö ±ÛÀÚÀü±îÁö¸¸ º¸¿©ÁØ´Ù.

	   for(i=0; i< li_str_len; i++)
	   {
		  // ÇÑ±ÛÀÚÃßÃâ
		  ls_one_char = ls_str.charAt(i);

		  // ÇÑ±ÛÀÌ¸é 2¸¦ ´õÇÑ´Ù.
		  if (escape(ls_one_char).length > 4)
		  {
			 li_byte += 2;
		  }
		  // ±×¹ÜÀÇ °æ¿ì´Â 1À» ´õÇÑ´Ù.
		  else
		  {
			 li_byte++;
		  }

		  // ÀüÃ¼ Å©±â°¡ li_max¸¦ ³ÑÁö¾ÊÀ¸¸é
		  if(li_byte <= li_max)
		  {
			 li_len = i + 1;
		  }
	   }

	   // ÀüÃ¼±æÀÌ¸¦ ÃÊ°úÇÏ¸é
	   if(li_byte > li_max)
	   {
		  alert( li_max + " ±ÛÀÚ¸¦ ÃÊ°ú ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù. \n ÃÊ°úµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù. ");
		  ls_str2 = ls_str.substr(0, li_len);
		  aro_name.value = ls_str2;
			  
		  li_byte = li_max;

	   }
	   document.all.content_cnt.innerHTML = li_byte;
	   
	   aro_name.focus();
	}
	
	function CommonVod_Login(pCurrURLQ)
	{
		if (confirm("¾Æ¸£¶¼È¸¿ø Àü¿ë¼­ºñ½ºÀÔ´Ï´Ù.\n\n·Î±×ÀÎÀ» ÇÏ°í ÀÌ¿ëÇÏ½Ã°Ú½À´Ï±î?      "))
		{
			document.location.href="/member/login/?reurl="+ pCurrURLQ +"";
		}
	}	
	function targetLink(purl, ptarget) {
		if (ptarget==0){
			document.location.href = purl;
		}
		else {
			window.open(purl);	
		}
	}		
	function TextLen_Call(aro_name, ari_max, pid)
	{


	   var ls_str     = aro_name.value; // ÀÌº¥Æ®°¡ ÀÏ¾î³­ ÄÁÆ®·ÑÀÇ value °ª
	   var li_str_len = ls_str.length;  // ÀüÃ¼±æÀÌ

	   // º¯¼öÃÊ±âÈ­
	   var li_max      = ari_max; // Á¦ÇÑÇÒ ±ÛÀÚ¼ö Å©±â
	   var i           = 0;  // for¹®¿¡ »ç¿ë
	   var li_byte     = 0;  // ÇÑ±ÛÀÏ°æ¿ì´Â 2 ±×¹Ü¿¡´Â 1À» ´õÇÔ
	   var li_len      = 0;  // substringÇÏ±â À§ÇØ¼­ »ç¿ë
	   var ls_one_char = ""; // ÇÑ±ÛÀÚ¾¿ °Ë»çÇÑ´Ù
	   var ls_str2     = ""; // ±ÛÀÚ¼ö¸¦ ÃÊ°úÇÏ¸é Á¦ÇÑÇÒ¼ö ±ÛÀÚÀü±îÁö¸¸ º¸¿©ÁØ´Ù.

	   for(i=0; i< li_str_len; i++)
	   {
		  // ÇÑ±ÛÀÚÃßÃâ
		  ls_one_char = ls_str.charAt(i);

		  // ÇÑ±ÛÀÌ¸é 2¸¦ ´õÇÑ´Ù.
		  if (escape(ls_one_char).length > 4)
		  {
			 li_byte += 2;
		  }
		  // ±×¹ÜÀÇ °æ¿ì´Â 1À» ´õÇÑ´Ù.
		  else
		  {
			 li_byte++;
		  }

		  // ÀüÃ¼ Å©±â°¡ li_max¸¦ ³ÑÁö¾ÊÀ¸¸é
		  if(li_byte <= li_max)
		  {
			 li_len = i + 1;
		  }
	   }

	   // ÀüÃ¼±æÀÌ¸¦ ÃÊ°úÇÏ¸é
	   if(li_byte > li_max)
	   {
		  alert( li_max + " ±ÛÀÚ¸¦ ÃÊ°ú ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù. \n ÃÊ°úµÈ ³»¿ëÀº ÀÚµ¿À¸·Î »èÁ¦ µË´Ï´Ù. ");
		  ls_str2 = ls_str.substr(0, li_len);
		  aro_name.value = ls_str2;
			  
		  li_byte = li_max;

	   }
	   document.getElementById(pid).innerHTML=li_byte;
	   
	   aro_name.focus();
	}