var qObj; 
var req;
var userKeyword = "";
var oldUserKeyword = "";
var useSuggestFunction = true;
var totalKeywordCount = 0;
var curCursorPos = -1;
var guideDisplayFlag = true;
var buildListComplete = true;
var virtualValue = "";
var oldValue = "";
var g_oConvert = "";
var strCDATAXML = "";
var query = "query";
var QLIST_COUNT = 10; //¹Þ¾Æ¿Ã ÃÖ´ë °³¼ö¸¦ ¼³Á¤ÇÑ´Ù, ¼öÁ¤ÇÒ ÇÊ¿ä°¡ ¾ø´Ù.
var isFirstBuild = false;
var service = "ark"; //°íÁ¤µÈ ¼­ºñ½º ÀÌ¸§, ¼öÁ¤ºÒ°¡

var TotalRow = 0;
var TotalPage = 0;
var Target = 0;
var curCount = 0;
var intPage= 1;

var imbc_cont_id;	
var imbc_prog_code	
var imbc_running_no	
var imbc_running_date	
var imbc_preview		
var imbc_itemid		
var imbc_imgfilename	
var imbc_target		
var imbc_UbookURL 	
var imbc_media_swf	
var imbc_media_pvod	
var imbc_meida_hpvod	
var imbc_media_ofvod	
var imbc_meida_preview	
var imbc_media_overseas	
var imbc_media_overseas_down 
var imbc_media_pc_down 
var imbc_media_pmp_down
var imbc_scenariocheck
var imbc_media_file_type_cnt	//2008.02.22 ´Ù¿îÅ¸¿î ¹Ìµð¾î Á¤Ã¥ º¯°æÀ¸·Î ÄÚµå Ãß°¡ÇÔ (¼öÁ¤ÀÚ: PHS)


var stradtarget;
var strBasicimgfilename;

var	start_time;
var	saturday_start_time;
var	sunday_start_time ;
var	strrunningdate ;
var	strrunningtime ;
var strrunningweekday;
var xmlNodeCount=0;
var fNavigatorSelectBool=false;
var vodSubclass ="";

var Before_imbc_cont_id
var After_imbcimbc_cont_id
var adstr="";


var vodPeople = "0"
var vodnomal = "1";
var vodhigh = "1";
var vodsponsor ="1";
var vodpreview = "1";
var vodscenario = "1";
var vodforeign = "1";
var vodforeigndown = "1";
var vodpcdown = "1";
var vodpmpdown = "1";
var vodpackage = "1";

var vodhighalt= "";
var vodhighimg= "";
var vodhighimgover= "";



var StrEvtHtml      ="";
var strEvtimgurl    ="";
var strEvtRecArea1  ="";
var strEvtRecArea2  ="";
var strEvturl1      ="";
var strEvturl2      ="";
var strEvtalt       ="";



function dynamicTag(){   

//strCDATAXML="<Response><Return>0</Return> <TotalCount>10</TotalCount> <ARKList> <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;&lt;/font&gt;\" keyword=\"ÁÖ¸ù\" type=\"9\" count=\"354\" linkname=\"\" linkurl=\"\" />   <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;&lt;/font&gt;\" keyword=\"ÁÖ¸ù\" type=\"9\" count=\"354\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;68È¸&lt;/font&gt;\" keyword=\"ÁÖ¸ù68È¸\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;69È¸&lt;/font&gt;\" keyword=\"ÁÖ¸ù69È¸\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;70È¸&lt;/font&gt;\" keyword=\"ÁÖ¸ù70È¸\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt; µîÀåÀÎ¹°&lt;/font&gt;\" keyword=\"ÁÖ¸ù µîÀåÀÎ¹°\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;69È¸&lt;/font&gt;\" keyword=\"ÁÖ¸ù69È¸\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;68È¸&lt;/font&gt;\" keyword=\"ÁÖ¸ù68È¸\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;70È¸&lt;/font&gt;\" keyword=\"ÁÖ¸ù70È¸\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />    <ARK HKeyword=\"&lt;font style='font-size:12px'&gt;&lt;font style='color:#CC6633'&gt;ÁÖ¸ù&lt;/font&gt;67È¸&lt;/font&gt;\" keyword=\"ÁÖ¸ù67È¸\" type=\"2\" count=\"100\" linkname=\"\" linkurl=\"\" />  </ARKList></Response>"
	//var userinput = document.getElementById("userinput").value; 
	//var request = "http://api.search.yahoo.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query="   + userinput    + "&output=json&callback=getImages";

	
	var vodProgCode =document.getElementById("vodProgCode").value;
	var vodcurPage =document.getElementById("vodcurPage").value;
	var vodPageRow =document.getElementById("vodPageRow").value;
	vodSubclass =document.getElementById("vodSubclass").value;
	
	try{ vodPeople   =document.getElementById("vodPeople").value; }catch(e){}
	

	try{ vodnomal = document.getElementById("vodnomal").value; }catch(e){}
	try{ vodhigh = document.getElementById("vodhigh").value; }catch(e){}
	try{ vodsponsor = document.getElementById("vodsponsor").value; }catch(e){}
	try{ vodpreview = document.getElementById("vodpreview").value; }catch(e){}
	try{ vodscenario = document.getElementById("vodscenario").value; }catch(e){}
	try{ vodforeign = document.getElementById("vodforeign").value; }catch(e){}
	try{ vodforeigndown = document.getElementById("vodforeigndown").value; }catch(e){}
	try{ vodpcdown = document.getElementById("vodpcdown").value; }catch(e){}
	try{ vodpmpdown = document.getElementById("vodpmpdown").value; }catch(e){}
        try{ vodpackage= document.getElementById("vodpackage").value; }catch(e){}

	try{ vodhighalt = document.getElementById("vodhighalt").value; }catch(e){}
	try{ vodhighimg       = document.getElementById("vodhighimg").value; }catch(e){}
	try{ vodhighimgover       = document.getElementById("vodhighimgover").value; }catch(e){}


try{ strEvtimgurl    = document.getElementById("Evtimgurl").value; }catch(e){}
try{ strEvtRecArea1  = document.getElementById("EvtRecArea1").value; }catch(e){}
try{ strEvtRecArea2  = document.getElementById("EvtRecArea2").value; }catch(e){}
try{ strEvturl1      = document.getElementById("Evturl1").value; }catch(e){}
try{ strEvturl2      = document.getElementById("Evturl2").value; }catch(e){}
try{ strEvtalt       = document.getElementById("Evtalt").value; }catch(e){}





	


	if ((vodnomal=="") || (vodnomal == null)){vodnomal="1"}
	if ((vodhigh=="") || (vodhigh == null)){vodhigh="1"}
	if ((vodsponsor=="") || (vodsponsor == null)){vodsponsor="1"}
	if ((vodpreview=="") || (vodpreview == null)){vodpreview="1"}
	if ((vodscenario=="") || (vodscenario == null)){vodscenario="1"}
	if ((vodforeign=="") || (vodforeign == null)){vodforeign="1"}
	if ((vodforeigndown=="") || (vodforeigndown == null)){vodforeigndown="1"}
	if ((vodpcdown=="") || (vodpcdown == null)){vodpcdown="1"}
	if ((vodpmpdown=="") || (vodpmpdown == null)){vodpmpdown="1"}
        if ((vodpackage=="") || (vodpackage== null)){vodpackage="1"}
        if ((vodhighalt=="") || (vodhighalt== null)){vodhighalt="http://img.imbc.com/broad/tv/drama/queserasera/images2/p_02.gif"}
        if ((vodhighimg=="") || (vodhighimg== null)){vodhighimg="http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_02.gif"}
        if ((vodhighimgover=="") || (vodhighimgover== null)){vodhighimgover="http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_02_b.gif"}







	//var request =document.getElementById("request").value;
	var request = "http://playercue.imbc.com/vodlist/Default.aspx?ProgCode="+ vodProgCode +"&curPage="+ vodcurPage +"&PageRow="+ vodPageRow ;

	var head = document.getElementsByTagName("head").item(0);  
	var script = document.createElement("script");   
	script.setAttribute("type", "text/javascript");  
	script.setAttribute("src", request);  
	head.appendChild(script);
	PlaceminiNavi1.innerHTML = "";
	PlaceminiNavi2.innerHTML = "";

	

	PlaceList.innerHTML = "";//objwriteSwf('http://img.imbc.com/cue/loading.swf',100,100,false);

	//getParserXML();

	//Load°¡ ¿Ï·áµÇ¾úÀ»¶§ getParserXML()¸¦ È£Ãâ
	//±×·¸Áö ¸øÇÒ¶§ ¾ÆÁ÷ ¿Ï·á µÇÁö ¾Ê¾ÒÀ»¶§ È£ÃâµÉ °æ¿ì ¿¡·¯ ¹ß»ý
	//µû¶ó¼­ getParserXMLÀº µ¿Àû script À» È£ÃâÇÏ´Â ÂÊ¿¡¼­ È£ÃâÇÏµµ·Ï Ã³¸® ÇØ¾ß µÊ.


}


function AdReload(){

	try{
	adstr = Adcode.innerHTML
	Adcode.innerHTML = "";
	setTimeout("pushAd()",500)
	}catch(e){}
}

function pushAd(){
	try{
			if (adstr!=""){
			Adcode.innerHTML = adstr ;
			}
		}catch(e){}
}






function opendownurl(url) {
		window.open(url, '_blank', 'width=385, height=435, resizable=no, scrollbars=no, status=no');
	}


function LayerDns(str){

		var intExtPos = parseInt(str.lastIndexOf(".")) ;
		var strTemp  = str.substr(0, intExtPos);
		var intTempPos = parseInt(strTemp.lastIndexOf("/"));
                                return strTemp.substr(intTempPos + 1, intExtPos).replace("[", "").replace("]", "").replace("(", "").replace(")", "");
//		return strTemp.substr(intTempPos + 1, intExtPos)
}

function rtrim(value)
{
  var RightTrimValue = "";
  if( value == "" )
        return "";
  strLen = value.length;
  --strLen;
  while( 0 <= strLen)
  {
    if(value.charAt(strLen) != " ") break;
    --strLen;
  }
  for(s=0;s<=strLen;s++)
  {
    RightTrimValue = RightTrimValue + value.charAt(s);
  }
  return RightTrimValue;
}



function callJavascript(str) {

		var objLayer = "s"+ LayerDns(str)
		var objimgLayer = "img" + LayerDns(str)
		var objswf  = objwriteSwf(str + "?idx=0",181,128,false);
		var objimg  = "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"181\" height=\"128\">"	

		eval(objimgLayer + ".innerHTML ='"+ objimg +"'");
	
	//eval(objLayer + ".innerHTML =''");
	swfappend = document.getElementById(objLayer)
	var swfscript = document.createElement("script");   
	swfscript.setAttribute("type", "text/javascript");  

	swfscript.setAttribute("src", "http://playercue.imbc.com/vodlist/Preview.aspx?swfurl=" + str + "?idx=0&swfwidth=181&swfheight=128&swfname=" + objLayer);  
	swfappend.appendChild(swfscript);


	//alert(eval(objLayer + ".innerHTML"));
//	alert(objswf)
//	eval(objLayer + ".innerHTML ='" + objswf + "'");



		




		
		

	//	alert( eval(objimgLayer + ".innerHTML"));

		//alert(objswf);



 //  alert(str)
  //return "ÇÃ·¡½Ã 8ÀÇ »õ·Î¿î class ÀÎ ExternalInterface.call() ÀÔ´Ï´Ù^^."
}

	function objwriteSwf(url, width, height, allowDomain) {

		var swfobject=""; 
		if (allowDomain == "") {
			allowDomain = false;
		}
		try {
			swfobject +='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="' + width + '" height="' + height + '">';
			swfobject +='<param name="movie" value="' + url + '">';
			if (allowDomain == true) {
			swfobject +='<param name="allowScriptAccess" value="sameDomain"/>';
			} else {
			swfobject +='<param name="allowScriptAccess" value="always"/>';
			}
			swfobject +='<param name="quality" value="high"><param name="wmode" value="transparent">';
			swfobject +='<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>';
			swfobject +='</object>';


	  try{
	// document.getElementById("test").value = swfobject;
	 }catch(e){}



			return swfobject
		} catch(E){
		return "";
		}
	}


function objPlaywriteSwf(url, width, height, allowDomain) {
		var swfobject=""; 
		if (allowDomain == "") {
			allowDomain = false;
		}
		try {
			swfobject +='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="' + width + '" height="' + height + '">';
			swfobject +='<param name="movie" value="http://swf.imbc.com/ucc/start.swf">';
			if (allowDomain == true) {
			swfobject +='<param name="allowScriptAccess" value="sameDomain"/>';
			} else {
			swfobject +='<param name="allowScriptAccess" value="always"/>';
			}
			swfobject += '<param name="FlashVars" value="movie_URL='+url+'">';
			swfobject +='<param name="quality" value="high"><param name="wmode" value="transparent">';
			swfobject +='<embed src="http://swf.imbc.com/ucc/start.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>';
			swfobject +='</object>';
			return swfobject
		} catch(E){
		return "";
		}
	}




function getParserXML(){
//PlaceList.innerHTML = objwriteSwf('http://img.imbc.com/cue/loading.swf',100,100,false); 
//setTimeout("getParserSubXML()",500)
getParserSubXML();
	
}

function getParserSubXML(){

AdReload();

    var xmlhttp;
    var alerted = true;
    
	try 
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLDOM")
	  	//xmlhttp=new ActiveXObject("Msxml.DOMDocument")	  
	} 
	catch (e) 
	{
	  	try 
	  	{
	  	//	xmlhttp=new ActiveXObject("Microsoft.XMLDOM")
	  		
	  	} 
	  	catch (E) 
	  	{
	  	
	  	  xmlhttp=false
	  	  alerted=true
	  	}
	}	   


    xmlhttp.async = false;
    xmlhttp.loadXML(strCDATAXML);

    
    buildQueryList(xmlhttp);
}

function noChildValue(xmlRet,i,j){
	try{
	return	xmlRet.childNodes(0).childNodes(i).childNodes(j).firstChild.nodeValue;		
	}
	catch(e){
	return "";
	}
}

function vodRno(strNo) {
	var i=0;
	
	try {
		if (strNo==null || strNo=="") return;
		while(i<strNo.length) {
			if (strNo.substring(i,i+1) != "0") {
				return rtrim(strNo.substring(i, strNo.length));
				return;
			} else {
				i++;
			}
		}
		strNo = rtrim(strNo);
		return strNo;
	} catch(e) {return strNo}
}

function vodRnoSelecter(strNo) {
	var strNumber = vodRno(strNo);
	if (isNaN(strNumber)==true)
	{
		return strNumber;	
	}
	else
	{
		return strNumber + "È¸ ";
	}
}

function checkxydate(strx,stry,imbc_media_pvod,i) 
{
var dateX
var dateY

	try {

	dateX = new Date(parseInt(strx.substring(0,4)) , (parseInt(strx.substring(5,7)) -1)  ,  parseInt(strx.substring(8,10)));
	dateY = new Date(parseInt(stry.substring(0,4)) , (parseInt(stry.substring(5,7)) -1) ,  parseInt(stry.substring(8,10)));



	var tmime = (dateY.getTime() - dateX.getTime());
	var itime = 24 * 60 * 60 * 1000;
	var fdday = tmime / itime;
	var dday = Math.floor(fdday);
	var diftime = 24 * 60 * 60 * 1000 * 7 * -1;


//1ÀÏ * ´ÜÀ§ * 7ÀÏ      
//alert(86400 * 1000 * 7 * -1)
	//alert(parseInt(strx.substring(0,4)) + "," + (parseInt(strx.substring(5,7)) -1) + "," +  parseInt(strx.substring(9,10)) + "-" + tmime+ " : " +   fdday+ " : " +  dday + " : " +  strx + " " + stry + " " +  imbc_media_pvod + " " + i)
			if ((dday >=-7) && (imbc_media_pvod!="") )
			{
				return "x";
			}
			else if((dday == 0)&& (imbc_media_pvod==""))
			{
				return "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/before_air.gif\" width=\"46\" height=\"14\">";
			}
			else if(strx < stry)
			{
				return "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/before_air.gif\" width=\"46\" height=\"14\">";
			}
			else
			{
			return "" ;
			}
		} 
		catch(e) {return "";}
}

function buildDetailQueryList(req){

	xmlRet = req ;
	//v1.2ºÎÅÍ´Â xml·Î ÇÑ´Ù.
	//¾Õ¿¡ ¾²·¹±â ³ëµå 2°³ Á¦°Å
	xmlNodeCount= xmlRet.childNodes(0).childNodes.length - 2;
	TotalRow = xmlRet.childNodes(0).childNodes(0).childNodes(0).firstChild.nodeValue; // ÀüÃ¼ ÃÑ °¹¼ö 
	TotalPage = xmlRet.childNodes(0).childNodes(0).childNodes(1).firstChild.nodeValue // ÀüÃ¼ ÆäÀÌÁö ¼ö
	try {	
	Target = xmlRet.childNodes(0).childNodes(0).childNodes(2).firstChild.nodeValue // ±¤°í °¹¼ö
	}
	catch(e)
	{
	Target = 0;
	}
	curCount = xmlRet.childNodes(0).childNodes(0).childNodes(5).firstChild.nodeValue // ÇöÀç ÆäÀÌ¼öÀÇ ÃÑ ¼ö
	intPage = xmlRet.childNodes(0).childNodes(0).childNodes(6).firstChild.nodeValue // ÇöÀç ÆäÀÌÁö ¹øÈ£
	stradtarget =  noChildValue(xmlRet,0,7); // ±âº» ±¤°í °¹¼ö
	strBasicimgfilename	 =  noChildValue(xmlRet,0,8); // µðÆúÆ® ÀÌ¹ÌÁö

	start_time =  noChildValue(xmlRet,0,9); // ÆòÀÏ ½Ã°£
	saturday_start_time = noChildValue(xmlRet,0,10); // Åä ½Ã°£
	sunday_start_time = noChildValue(xmlRet,0,11); // ÀÏ ½Ã°£
	strrunningdate = noChildValue(xmlRet,0,12); // ¿À´Ã ³¯Â¥
	strrunningtime = noChildValue(xmlRet,0,13); // ÇöÀç ½Ã°£
	strrunningweekday= noChildValue(xmlRet,0,14); // ÇöÀç ¿äÀÏ





	TotalRow = xmlRet.childNodes(0).childNodes(0).childNodes(0).firstChild.nodeValue; // ÀüÃ¼ ÃÑ °¹¼ö 
	TotalPage = xmlRet.childNodes(0).childNodes(0).childNodes(1).firstChild.nodeValue // ÀüÃ¼ ÆäÀÌÁö ¼ö

	try{
	Target = xmlRet.childNodes(0).childNodes(0).childNodes(2).firstChild.nodeValue // ±¤°í °¹¼ö
	}
	catch(e)
	{
	Target =0
	}

	curCount = xmlRet.childNodes(0).childNodes(0).childNodes(5).firstChild.nodeValue // ÇöÀç ÆäÀÌ¼öÀÇ ÃÑ ¼ö
	intPage = xmlRet.childNodes(0).childNodes(0).childNodes(6).firstChild.nodeValue // ÇöÀç ÆäÀÌÁö ¹øÈ£
	stradtarget =  noChildValue(xmlRet,0,7); // ±âº» ±¤°í °¹¼ö
	strBasicimgfilename	 =  noChildValue(xmlRet,0,8); // µðÆúÆ® ÀÌ¹ÌÁö

	start_time =  noChildValue(xmlRet,0,9); // ÆòÀÏ ½Ã°£
	saturday_start_time = noChildValue(xmlRet,0,10); // Åä ½Ã°£
	sunday_start_time = noChildValue(xmlRet,0,11); // ÀÏ ½Ã°£
	strrunningdate = noChildValue(xmlRet,0,12); // ¿À´Ã ³¯Â¥
	strrunningtime = noChildValue(xmlRet,0,13); // ÇöÀç ½Ã°£
	strrunningweekday= noChildValue(xmlRet,0,14); // ÇöÀç ¿äÀÏ

	imbc_cont_id			=   noChildValue(xmlRet,1,0);
	imbc_prog_code			=   noChildValue(xmlRet,1,1);
	imbc_running_no			=   noChildValue(xmlRet,1,2);
	imbc_running_date		=   noChildValue(xmlRet,1,3);
	imbc_preview			=   noChildValue(xmlRet,1,4);
	imbc_itemid				=   noChildValue(xmlRet,1,5);
	imbc_imgfilename		=   noChildValue(xmlRet,1,6);
	imbc_target				=   noChildValue(xmlRet,1,7);
	imbc_UbookURL			=   noChildValue(xmlRet,1,8);
	imbc_media_swf			=   noChildValue(xmlRet,1,9);
	imbc_media_pvod			=   noChildValue(xmlRet,1,10);
	imbc_meida_hpvod		=   noChildValue(xmlRet,1,11);
	imbc_media_ofvod		=   noChildValue(xmlRet,1,12);
	imbc_meida_preview		=   noChildValue(xmlRet,1,13);
	imbc_media_overseas		=   noChildValue(xmlRet,1,14);
	imbc_media_overseas_down=   noChildValue(xmlRet,1,15);
	imbc_media_pc_down		=   noChildValue(xmlRet,1,16);
	imbc_media_pmp_down		=   noChildValue(xmlRet,1,17);
	imbc_scenariocheck		=	noChildValue(xmlRet,1,18);
	imbc_media_file_type_cnt = 	noChildValue(xmlRet,1,20); //2008.02.22 ´Ù¿îÅ¸¿î ¹Ìµð¾î Á¤Ã¥ º¯°æÀ¸·Î ÄÚµå Ãß°¡ÇÔ (¼öÁ¤ÀÚ: PHS)

	Before_imbc_cont_id			=   noChildValue(xmlRet,2,0);
	After_imbcimbc_cont_id		=   noChildValue(xmlRet,3,0);
	var temptarget="";


	var strmininavi = ""
	//strmininavi = "<td width=\"224\" align=\"right\">"





	if (After_imbcimbc_cont_id=="")
	{
		strmininavi += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_before.gif\"   width=\"39\" height=\"14\" border=\"0\" alt=\"ÀÌÀü È¸Â÷°¡ ¾ø½À´Ï´Ù\">"
	}
	else
	{
	strmininavi += "<a href=\"javascript:contentdetail('"+ After_imbcimbc_cont_id +"')\">"
	strmininavi += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_before.gif\" alt=\"ÀÌÀü È¸Â÷\" width=\"39\" height=\"14\" border=\"0\">"
	strmininavi += "</a>"
	}

	if (Before_imbc_cont_id=="")
	{
				strmininavi += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_next.gif\"  width=\"36\" height=\"14\" border=\"0\" alt=\"´ÙÀ½ È¸Â÷°¡ ¾ø½À´Ï´Ù\">"
	}
	else
	{
	strmininavi += "<a href=\"javascript:contentdetail('"+ Before_imbc_cont_id +"')\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_next.gif\"  alt=\"´ÙÀ½ È¸Â÷\" width=\"36\" height=\"14\" border=\"0\"></a>"
	}
	strmininavi += "<a href=\"javascript:dynamicTag()\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_list.gif\"  alt=\"¸ñ·Ïº¸±â\"  width=\"55\" height=\"14\" border=\"0\"></a>"
	//strmininavi += "</td>"



	PlaceminiNavi1.innerHTML = strmininavi;
	PlaceminiNavi2.innerHTML = strmininavi;

	PlaceNavi.innerHTML ="";
	var str = "";
	  
	  //ÀÌÀü ´ÙÀ½	
	//  str += "<a href=\"#\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_before.gif\" width=\"39\" height=\"14\" border=\"0\"></a><a href=\"#\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_next.gif\" width=\"36\" height=\"14\" border=\"0\"></a><a href=\"#\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/view_list.gif\" width=\"55\" height=\"14\" border=\"0\"></a>"

	  str += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"580\" height=\"8\"><br>";
	  str += "<table width=\"577\" height=\"207\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/detail_box_bg.gif\">";
	  str += " 	<tr>";
	  str += "	  <td align=\"center\" valign=\"top\"><table width=\"577\" height=\"30\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/detail_top_bg_30.gif\">";
	  str += "			<tr>";
	  str += "			  <td align=\"center\"><table width=\"551\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	  str += " 				<tr>";
	  str += "				  <td width=\"200\" height=\"24\" align=\"left\" valign=\"middle\"><table width=\"200\" height=\"20\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
	  str += "					  <tr>";
	  str += "						<td width=\"16\" align=\"center\" valign=\"middle\"><span class=\"style3\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/arrow_white.gif\" width=\"7\" height=\"12\" align=\"middle\"> </span></td>";
	  str += "						<td width=\"190\" valign=\"bottom\"><span class=\"style3\"><strong>"+ vodRno(imbc_running_no) +"È¸ "+ imbc_running_date +"</strong></span></td>";
	  str += "						<td width=\"60\">";

	  if (checkxydate(strrunningdate,imbc_running_date,imbc_media_pvod,1)=="x")
	  {
	  str += objwriteSwf("http://swf.imbc.com/broad/tv/drama/queserasera/vod/new.swf",45,14,false);
	  }
	  else
	  {
	  str += 		checkxydate(strrunningdate,imbc_running_date,imbc_media_pvod,1)	 + 	"</td>";
	  }

	  str += " 					  </tr>";
	  str += "				  </table></td>";
	  str += "				  <td  align=\"right\" valign=\"bottom\"><table border=0 valign=top width=100%><tr><td width=55%>&nbsp;</td><td align=right valign=top style=\"padding:7 25 0 0\" widht=35%><span class=\"style3\">Á¶È¸¼ö : </span></td><td widht=15%  valign=top style=\"padding:7 0 0 0\">" + "<" 	 +  "if" + "rame" + " allowTransparency=\"true\" frameborder=\"0\" width=\"50\" height=\"14\" SCROLLING=no   src=\"http://touch.imbc.com/count/RefCntMgrNew2_Onair.asp?BG=c0c0c0&FC=FFFFFF&mode=select&artno="+ imbc_cont_id +"\"></i"+ "fra" + "me>"+"<!--/span-->&nbsp;&nbsp;</td></tr></table></td>";
	  str += " 				  </tr>";
  	  str += "<i"+ "fr" +"ame allowTransparency=\"true\" frameborder=\"0\" width=\"1\" height=\"1\"  src=\"http://touch.imbc.com/count/RefCntMgrNew2_Onair.asp?mode=insert&artno="+ imbc_cont_id +"\"></i"+ "fr"+ "ame>"  

	  str += "			  </table></td>";
	  str += "			</tr>";


	  



	  str += " 		  </table>";
	  str += "		  <img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"500\" height=\"7\"><br>";
	  str += "		  <table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	  str += "			<tr>";

	  str += "			  <td width=\"551\" height=\"30\" align=\"left\">"

	  if (vodnomal=="1")
	  {
		  			if (imbc_media_pvod=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01_g.gif\" width=\"37\" height=\"18\"> ";
					}
					else
					{
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_media_pvod +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'  onMouseOver=\"rollover101.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01_b.gif'\" onMouseOut=\"rollover101.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01.gif' name='rollover101' width=\"37\" height=\"18\" border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_01.gif' class=aa ></a> ";
					}
	   }


	  if (vodhigh=="1")
	  {
					if (imbc_meida_hpvod=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_02_g.gif\" width=\"37\" height=\"18\">";
					}
					else
					{
		  //str += "				<a href='"+ imbc_meida_hpvod +"'  onMouseOver=\"rollover102.src='"+ vodhighimgover +"'\" onMouseOut=\"rollover102.src='"+ vodhighimg +"'\"><img src='"+ vodhighimg +"' name='rollover102'  height=\"18\" border='0' alt1='"+ vodhighalt + "' class=aa ></a> ";
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_meida_hpvod +"&type=" + vodSubclass + "&speed=1000&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'  onMouseOver=\"rollover102.src='"+ vodhighimgover +"'\" onMouseOut=\"rollover102.src='"+ vodhighimg +"'\"><img src='"+ vodhighimg +"' name='rollover102'  height=\"18\" border='0' alt1='"+ vodhighalt + "' class=aa ></a> ";
					}
		}

	  if (vodsponsor=="1")
	  {
					if(imbc_media_ofvod=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03_g.gif\" width=\"37\" height=\"18\">";
					}
					else
					{
		//str += "			    <a href='"+ imbc_media_ofvod +"'  onMouseOver=\"rollover103.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03_b.gif'\" onMouseOut=\"rollover103.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03.gif' name='rollover103' width=\"37\" height=\"18\" border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_03.gif' class=aa ></a> ";
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_media_ofvod +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'  onMouseOver=\"rollover103.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03_b.gif'\" onMouseOut=\"rollover103.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03.gif' name='rollover103' width=\"37\" height=\"18\" border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_03.gif' class=aa ></a> ";
					}
		}
	  str += "&nbsp;&nbsp;";

	  if (vodpreview=="1")
	  {
					if(imbc_meida_preview=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04_g.gif\" width=\"91\" height=\"18\"> ";
					}
					else
					{
		  //str += "				<a href='"+ imbc_meida_preview +"'  onMouseOver=\"rollover104.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04_b.gif'\" onMouseOut=\"rollover104.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04.gif' name='rollover104'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_08.gif' class=aa ></a> ";
  		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_meida_preview +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'    onMouseOver=\"rollover104.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04_b.gif'\" onMouseOut=\"rollover104.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04.gif' name='rollover104'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_08.gif' class=aa ></a> ";
					}
		}

		if (vodscenario=="1")
		{
					if(imbc_scenariocheck=="-1")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05_g.gif\" width=\"61\" height=\"18\">";
					}
					else
					{
		  //str += "			     <a href='"+ imbc_cont_id +"'  onMouseOver=\"rollover105.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05_b.gif'\" onMouseOut=\"rollover105.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05.gif' name='rollover105'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_09.gif' class=aa ></a>";
		  str += "			    <a href=\"javascript:OpenWin2('http://script.imbc.com/scenario_info_search.asp?ContID="+ imbc_cont_id +"');\"' onMouseOver=\"rollover105.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05_b.gif'\" onMouseOut=\"rollover105.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05.gif' name='rollover105'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_09.gif' class=aa ></a>";
					}
		}
	  str += "</td>";
	  str += "			</tr>";
	  str += "			<tr>";
	  str += "			  <td height=\"30\" align=\"left\">"

		if (vodforeign=="1")
		{
				    if(imbc_media_overseas=="")
					{
		  str += "	 			<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06_g.gif\" width=\"37\" height=\"18\">";
					}
					else
					{
		  //str += "				<a href='"+ imbc_media_overseas +"'  onMouseOver=\"rollover106.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06_b.gif'\" onMouseOut=\"rollover106.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06.gif' name='rollover106'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_04.gif' class=aa ></a>";
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_media_overseas +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'      onMouseOver=\"rollover106.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06_b.gif'\" onMouseOut=\"rollover106.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06.gif' name='rollover106'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_04.gif' class=aa ></a>";
					}
		}
		
		if (vodforeigndown=="1")
		{
					if(imbc_media_overseas_down=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07_g.gif\" width=\"81\" height=\"18\">";
					}
					else
					{
		  //str += "			    <a href='"+ imbc_media_overseas_down +"'  onMouseOver=\"rollover107.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07_b.gif'\" onMouseOut=\"rollover107.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07.gif' name='rollover107'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_05.gif' class=aa ></a>";
  		  str += "			    <a href=\"javascript:opendownurl('http://script.imbc.com/dowload_info_search.asp?ContID="+ imbc_cont_id +"');\"'  onMouseOver=\"rollover107.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07_b.gif'\" onMouseOut=\"rollover107.src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07.gif' name='rollover107'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_05.gif' class=aa ></a>&nbsp;&nbsp;";
					}
		}


		if (vodpcdown=="1")
		{
 		  			if(imbc_media_pc_down=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08_g.gif\" width=\"74\" height=\"18\"> ";
					}
					else
					{
						//2008.02.22 ´Ù¿îÅ¸¿î ¹Ìµð¾î Á¤Ã¥ º¯°æÀ¸·Î ÄÚµå Ãß°¡ÇÔ (¼öÁ¤ÀÚ: PHS)
						if (imbc_media_file_type_cnt == "1.1" || imbc_media_file_type_cnt == "1.2")
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pc_down+"','','status=yes,width=510,height=460')\" onMouseOver=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08_b.gif'\" onMouseOut=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif' name='rolloverpc_down" + i  + "'  border='0' class=aa alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_06_re.gif' ></a> ";
	  					else
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pc_down+"','','status=yes,width=510,height=460')\" onMouseOver=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08_b.gif'\" onMouseOut=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif' name='rolloverpc_down" + i  + "'  border='0' class=aa alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_06.gif' ></a> ";
					}
		}


		if (vodpmpdown=="1")
		{
					if(imbc_media_pmp_down=="")
					{
	      str += " 					<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09_g.gif\" width=\"78\" height=\"18\">";
					}
					else
					{
						//2008.02.22 ´Ù¿îÅ¸¿î ¹Ìµð¾î Á¤Ã¥ º¯°æÀ¸·Î ÄÚµå Ãß°¡ÇÔ (¼öÁ¤ÀÚ: PHS)
						if (imbc_media_file_type_cnt == "1.1" || imbc_media_file_type_cnt == "2.1")
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pmp_down+"','','status=yes,width=510,height=460')\"  onMouseOver=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09_b.gif'\" onMouseOut=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif' name='rolloverpmp_down" + i  + "'   border='0' class=aa  alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_07_re.gif' ></a>";
		  				else
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pmp_down+"','','status=yes,width=510,height=460')\"  onMouseOver=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09_b.gif'\" onMouseOut=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif' name='rolloverpmp_down" + i  + "'   border='0' class=aa  alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_07.gif' ></a>";
					}
		}

		str += "</td>";
	  str += "			</tr>";
	
	  if (imbc_media_swf!="")
	  {

	  str += "			<tr>";
	  str += "			  <td align=\"center\">";
	  
	  str += 	objwriteSwf(imbc_media_swf,500,335,false);
			  
	  str += " 			  <br>";
	  str += "			  <br></td>";
	  str += "			</tr>";
	  }
	
	  str += "			<tr>";
	  str += "			  <td align=left>";

	 if (vodPeople=="1")
	 {
 	  str += "				<pre>"+ imbc_preview.GetPeopleConvert() +"</p>";
	 }
	 else
	 {
	  str += "				<pre>"+ imbc_preview +"</pre>";	  
	 }


	  str += "			  </td>";
	  str += "			</tr>";
	  str += "		</table>";
	  str += "		<br>";
	  str += "		<br></td>";
	  str += "	</tr>";
	  str += "	<tr>";
	  str += "	  <td align=\"center\" valign=\"top\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/detail_under_bg.gif\" width=\"577\" height=\"9\"></td>";
	  str += "	</tr>";
	  str += "</table>";
	  
	  //str += "<br>";
	  //str += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"580\" height=\"12\"><br>";
	  //str += "<table width=\"577\" height=\"207\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/detail_box_bg.gif\">";
	  //str += " 	<tr>";
	  //str += "	  <td align=\"center\" valign=\"top\"><table width=\"577\" height=\"30\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/detail_top_bg_30.gif\">";
	  //str += "		  <tr>";
	  //str += "			<td align=\"center\"><table width=\"551\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	  //str += "				<tr>";
	  //str += " 				  <td height=\"24\" align=\"left\" valign=\"middle\"><table width=\"330\" height=\"20\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
	  //str += "					  <tr>";
	  //str += "						<td width=\"16\" align=\"center\" valign=\"bottom\"><span class=\"style3\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/arrow_white.gif\" width=\"7\" height=\"12\"> </span></td>";
	  //str += "						<td width=\"314\"><span class=\"style3\"><strong>»ý»ýÇÑ ÇöÀå¼ÓÀ¸·Î!</strong></span></td>";
	  //str += "						</tr>";
	  //str += "				  </table></td>";
	  //str += "				  </tr>";
	  //str += "			</table></td>";
	  //str += "		  </tr>";
	  //str += "		</table>";
	  //str += "		  <img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"500\" height=\"7\"><br>";
	  //str += "		  <table width=\"560\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">";
	  //str += "			<tr>";
	  //str += "			  <td height=\"150\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/sam_01.gif\" width=\"134\" height=\"134\"></td>";
	  //str += "			  <td><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/sam_01.gif\" width=\"134\" height=\"134\"></td>";
	  //str += "			  <td><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/sam_01.gif\" width=\"134\" height=\"134\"></td>";
	  //str += "			  <td><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/sam_01.gif\" width=\"134\" height=\"134\"></td>";
	  //str += "			</tr>";
	  //str += "			<tr>";
	  //str += "			  <td height=\"50\" class=\"ad\"><div align=\"center\"><a href=\"#\" >[µæÅÛ] Ãâ¿¬ÀÚ ÀÚÇÊ ½ÎÀÎ ver.1(10)</a></div></td>";
	  //str += "			  <td class=\"ad\"><div align=\"center\"><a href=\"#\" >[º¸³Ê½º] 4Â÷¿ø ng¼ÓÀ¸·Î ÇÑ ¹ø ºüÁ®~ º¾½Ã´Ù~!!(19)</a></div></td>";
	  //str += "			  <td class=\"ad\"><div align=\"center\"><a href=\"#\" >[º¸³Ê½º] 4Â÷¿ø ng¼ÓÀ¸·Î ÇÑ ¹ø ºüÁ®~ º¾½Ã´Ù~!!(19)</a></div></td>";
	  //str += "			  <td class=\"ad\"><div align=\"center\"><a href=\"#\" >[º¸³Ê½º] 4Â÷¿ø ng¼ÓÀ¸·Î ÇÑ ¹ø ºüÁ®~ º¾½Ã´Ù~!!(19)</a></div></td>";
	  //str += "			</tr>";
	  //str += " 		  </table></td>";
	  //str += "	</tr>";
	  //str += "	<tr>";
      //str += "		  <td align=\"center\" valign=\"top\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/detail_under_bg.gif\" width=\"577\" height=\"9\"></td>";
	  //str += "	</tr>";
	  //str += "</table>";
	  

	  PlaceList.innerHTML = str;


}

/**********************************************

*   °á°ú·Î ¹ÞÀº ÃßÃµ¾î ¸®½ºÆ®¸¦ Ãâ·ÂÇÑ´Ù.

**********************************************/
function buildQueryList(req) {

  	//xmlRet = req.responseXML;
	xmlRet = req ;
	//v1.2ºÎÅÍ´Â xml·Î ÇÑ´Ù.
	
	//alert(strCDATAXML);
	//alert(xmlRet.childNodes(0).tagName)
    //alert(xmlRet.childNodes(0).childNodes(0).tagName)
    //alert(xmlRet.childNodes(0).childNodes.length)

	//¾Õ¿¡ ¾²·¹±â ³ëµå 2°³ Á¦°Å
	xmlNodeCount= xmlRet.childNodes(0).childNodes.length - 2;


	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(0).tagName)
        //alert(xmlRet.childNodes(0).childNodes(0).childNodes(0).firstChild.nodeValue)
        //xmlRet.childNodes(0).childNodes(0).childNodes(0).
	TotalRow = xmlRet.childNodes(0).childNodes(0).childNodes(0).firstChild.nodeValue; // ÀüÃ¼ ÃÑ °¹¼ö 

	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(1).tagName)
    //alert(xmlRet.childNodes(0).childNodes(0).childNodes(1).firstChild.nodeValue)
	TotalPage = xmlRet.childNodes(0).childNodes(0).childNodes(1).firstChild.nodeValue // ÀüÃ¼ ÆäÀÌÁö ¼ö

	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(2).tagName)
    	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(2).firstChild.nodeValue)
	//alert("sX")
	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(2).firstChild.nodeValue)

	try{
	Target = xmlRet.childNodes(0).childNodes(0).childNodes(2).firstChild.nodeValue // ±¤°í °¹¼ö
	}catch(e)
	{
	Target = 0;
	}

	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(3).tagName)
    //alert(xmlRet.childNodes(0).childNodes(0).childNodes(3).firstChild.nodeValue)

	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(4).tagName)
    //alert(xmlRet.childNodes(0).childNodes(0).childNodes(4).firstChild.nodeValue)

	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(5).tagName)
    //alert(xmlRet.childNodes(0).childNodes(0).childNodes(5).firstChild.nodeValue)

	curCount = xmlRet.childNodes(0).childNodes(0).childNodes(5).firstChild.nodeValue // ÇöÀç ÆäÀÌ¼öÀÇ ÃÑ ¼ö
	
	//alert(xmlRet.childNodes(0).childNodes(0).childNodes(6).tagName)
    //alert(xmlRet.childNodes(0).childNodes(0).childNodes(6).firstChild.nodeValue)

	intPage = xmlRet.childNodes(0).childNodes(0).childNodes(6).firstChild.nodeValue // ÇöÀç ÆäÀÌÁö ¹øÈ£


	stradtarget =  noChildValue(xmlRet,0,7); // ±âº» ±¤°í °¹¼ö
	strBasicimgfilename	 =  noChildValue(xmlRet,0,8); // µðÆúÆ® ÀÌ¹ÌÁö

	start_time =  noChildValue(xmlRet,0,9); // ÆòÀÏ ½Ã°£
	saturday_start_time = noChildValue(xmlRet,0,10); // Åä ½Ã°£
	sunday_start_time = noChildValue(xmlRet,0,11); // ÀÏ ½Ã°£
	strrunningdate = noChildValue(xmlRet,0,12); // ¿À´Ã ³¯Â¥
	strrunningtime = noChildValue(xmlRet,0,13); // ÇöÀç ½Ã°£
	strrunningweekday= noChildValue(xmlRet,0,14); // ÇöÀç ¿äÀÏ

	var temptarget="";

/*
var strCDATAXML="<NewDataSet>  <Table>    <cont_id>83</cont_id>    <prog_code>28</prog_code>  
<running_no>3</running_no>    <running_date>2010-01-20</running_date> 
	<preview>TotalRow,TotalPage,Target</preview>    <itemid>3</itemid>  
	<imgfilename>1</imgfilename>    <media_swf>21:55</media_swf>   
	<media_pvod xml:space='preserve'>     </media_pvod>    <meida_hpvod xml:space='preserve'> 
	</meida_hpvod>    <media_ofvod>2007-04-26</media_ofvod>    <meida_preview>17</meida_preview>  </Table>  <Table>    <cont_id>TV0000000063831</cont_id>    <prog_code>DRAMA00002035</prog_code>    <running_no>000081 </running_no>    <running_date>2007-03-06</running_date>    <preview>°í±¸·Á ºÎ¿© ¿¬ÇÕ±º ´ë ÇÑ³ª¶óÀÇ ÀüÀïÀ§ÇØ ÃâÁ¤ÁØºñ¸¦ ÇÏ°í..\n¼Ò¼­³ë´Â °í±¸·Á¸¦ ¶°³­´Ù ÀÌº°À» °íÇÏ´Âµ¥......</preview>    <itemid>266032</itemid>    <imgfilename>http://img.imbc.com/search/TV/DRAMA/DRAMA00002035/TV0000000063831.jpg</imgfilename>    <target xml:space='preserve'> </target>    <UbookURL>?book_num=07030147&amp;file_num=00</UbookURL>    <media_swf>http://swf.imbc.com/broad/tv/drama/jumong/images12/preview_81.swf</media_swf>    <media_pvod>mms://pvod2.imbc.com/pvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070306_081_c.wmv</media_pvod>    <meida_hpvod>mms://gung.imbc.com/hpvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070306_081_1000k.wmv</meida_hpvod>    <media_ofvod>mms://gung.imbc.com/ofvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070306_081_c_of.wmv</media_ofvod>    <meida_preview>mms://pvod.imbc.com/pvod/IB/VCON/VCON000003716/ib_dr_joomong_pre_81_300k.wmv</meida_preview>    <media_overseas>mms://dnengs.imbc.com/pvod/TV/DRAMA/DRAMA00002035/f_jumong_070306_081_c.wmv</media_overseas>    <media_overseas_down>http://dneng.imbc.com/FileDown/TV/DRAMA/DRAMA00002035/f_jumong_070306_081_dl.wmv</media_overseas_down>    <media_pc_down />    <media_pmp_down />  </Table>  <Table>    <cont_id>TV0000000063830</cont_id>    <prog_code>DRAMA00002035</prog_code>    <running_no>000080 </running_no>    <running_date>2007-03-05</running_date>    <preview>Âù¼ö°¡ ¿Á¿¡ °¤È÷ÀÚ Ã¤·ÉÀº ¾çÅ¹°ú ÇÔ²² ÁÖ¸ùÀÌ Á¦ÀåµéÀ» °Å´À¸®°í ¼ø½Ã¸¦ ³ª°£ »ç\nÀÌ ¿ª¸ð¸¦ ²Ù¹Î´Ù. ÀÌ¸¦ ¾Ë°Ô µÈ ¼Ò¼­³ë´Â ¿¬Å¸¹ß°ú »ç¿ë°ú ÇÔ²² ´Þ·Á°¡ Ã¤·ÉÀÇ ¿ëº´\n±ºµéÀ» Á¦¾ÐÇÏ°í Ã¤·É°ú ¾çÅ¹¿¡°Ô °í±¸·Á¿¡¼­ Ãß¹æ½ÃÅ²´Ù. ¿ª¸ð¿¡ ºñ·ù°¡ °ü°è°¡ ÀÖ\n´Ù´Â »ç½Ç¿¡ ¼Ò¼­³ë´Â °¡½¿ÀÌ ¾ÆÇÁ°í ¹è·ù¿Í ¿ÂÁ¶¿¡°Ô ´õ ³ÐÀº ¼¼»óÀ» º¸°í ¿À¶ó¸ç \n³²ÂÊÀ¸·Î...</preview>    <itemid>265814</itemid>    <imgfilename>http://img.imbc.com/search/TV/DRAMA/DRAMA00002035/TV0000000063830.jpg</imgfilename>    <target xml:space='preserve'> </target>    <UbookURL>?book_num=07030105&amp;file_num=00</UbookURL>    <media_swf>http://swf.imbc.com/broad/tv/drama/jumong/images12/preview_80.swf</media_swf>    <media_pvod>mms://pvod2.imbc.com/pvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070305_080_c.wmv</media_pvod>    <meida_hpvod>mms://gung.imbc.com/hpvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070305_080_1000k.wmv</meida_hpvod>    <media_ofvod>mms://gung.imbc.com/ofvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070305_080_c_of.wmv</media_ofvod>    <meida_preview>mms://pvod.imbc.com/pvod/IB/VCON/VCON000003716/ib_dr_joomong_pre_80_300k.wmv</meida_preview>    <media_overseas>mms://dnengs.imbc.com/pvod/TV/DRAMA/DRAMA00002035/f_jumong_070305_080_c.wmv</media_overseas>    <media_overseas_down>http://dneng.imbc.com/FileDown/TV/DRAMA/DRAMA00002035/f_jumong_070305_080_dl.wmv</media_overseas_down>    <media_pc_down />    <media_pmp_down />  </Table>  <Table>    <cont_id>TV0000000063671</cont_id>    <prog_code>DRAMA00002035</prog_code>    <running_no>000079 </running_no>    <running_date>2007-02-27</running_date>    <preview>À¯¸®°¡ ¸Ó¹«¸£´ø Ã¶±â¹æ ¾ßÀå ¼÷¼Ò°¡ ºÒ¿¡ Å¸¿À¸£ÀÚ ¹«¼ÛÀÌ ±º»çµé°ú ÇÔ²² ´Ù±ÞÇÏ\n°Ô ¹°À» »Ñ·Áº¸´Âµ¥ ºÒ±æÀº ÀâÈ÷Áú ¾Ê´Â´Ù. µÚ´Ê°Ô ¼Ò½ÄÀ» µè°í Ã¶±â¹æÀ» Ã£Àº ÁÖ¸ù\n°ú ´ë¼Ò½Å·áµé. ¿ÀÀÌ´Â À¯¸®¸¦ ±¸ÇÏ±â À§ÇØ Ã¶±â¹æ ¾ÈÀ¸·Î ¶Ù¾î µé¾î°¡·Á ÇÏÁö¸¸ ÁÖ\n¸ùÀº ÀÌ¹Ì ´Ê¾ú´Ù¸ç ¿ÀÀÌ¸¦ ¸¸·ùÇÑ´Ù. \n\nÃ¶±â¹æ¿¡ ºÒÀ» Áö¸¥ ¹üÀÎÀÌ ÇÑ³ª¶óÀÇ ÀÚ°´ÀÓÀ» ¾Ë°Ô...</preview>    <itemid>264044</itemid>    <imgfilename>http://img.imbc.com/search/TV/DRAMA/DRAMA00002035/TV0000000063671.jpg</imgfilename>    <target xml:space='preserve'> </target>    <UbookURL>?book_num=07020759&amp;file_num=00</UbookURL>    <media_swf>http://swf.imbc.com/broad/tv/drama/jumong/images12/preview_79.swf</media_swf>    <media_pvod>mms://pvod2.imbc.com/pvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070227_079_c.wmv</media_pvod>    <meida_hpvod>mms://gung.imbc.com/hpvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070227_079_1000k.wmv</meida_hpvod>    <media_ofvod>mms://gung.imbc.com/ofvod/TV/DRAMA/DRAMA00002035/tv_dr_jumong_070227_079_c_of.wmv</media_ofvod>    <meida_preview>mms://pvod.imbc.com/pvod/IB/VCON/VCON000003716/ib_dr_joomong_pre_79_300k_c.wmv</meida_preview>    <media_overseas>mms://dnengs.imbc.com/pvod/TV/DRAMA/DRAMA00002035/f_jumong_070227_079_c.wmv</media_overseas>    <media_overseas_down>http://dneng.imbc.com/FileDown/TV/DRAMA/DRAMA00002035/f_jumong_070227_079_dl.wmv</media_overseas_down>    <media_pc_down />    <media_pmp_down />  </Table>  <Table1>    <Column1>3</Column1>  </Table1>  <Table2>    <Column1>1900-01-01T00:00:00.03+09:00</Column1>  </Table2></NewDataSet>";
getParserXML();
*/

	//alert(TotalRow + "~" + TotalPage + "~" + Target  + "~" +  curCount + "~" +  intPage)

	var str = "";



	StrEvtHtml  = "";
	StrEvtHtml  += "<table border=0 cellspacing=0 cellpadding=0>";
	StrEvtHtml  += "<tr>";
	StrEvtHtml  += "  <td><img src="+ strEvtimgurl +" width=577  border=0 usemap=#Map_event><map name=Map_event id=Map_event><area shape=rect coords="+ strEvtRecArea2 + "  href="+ strEvturl2 +" onfocus=this.blur()>";
	StrEvtHtml  += "      <area shape=rect coords="+ strEvtRecArea1+" href="+ strEvturl1  +" alt="+ strEvtalt+">";
	StrEvtHtml  += "    </map></td>";
	StrEvtHtml  += "</tr>";
	StrEvtHtml  += "</table>";
   
                if (strEvtimgurl!="")
                {           
                 str =StrEvtHtml   ;
                }


	for (var i=1;i<=curCount;i++) {
			for (var j=0;j<=20;j++)
			{
				//0	cont_id	,
				//1	prog_code	,
				//2	running_no	,
				//3	running_date	,
				//4	preview		,
				//5	itemid		,
				//6	imgfilename	,
				//7	target		,
				//8	UbookURL 	,
				//9	media_swf	,
				//10	media_pvod	,
				//11	meida_hpvod	,
				//12	media_ofvod	,
				//13	meida_preview	,
				//14	media_overseas	,
				//15	media_overseas_down ,
				//16	media_pc_down ,
				//17	media_pmp_dow , 
				//18
				//19	
				//20	media_file_type_cnt
				if (j==0)
				{
					imbc_cont_id = noChildValue(xmlRet,i,j);
				}
				else if(j==1)
				{
					imbc_prog_code = noChildValue(xmlRet,i,j);
				}
				else if(j==2)
				{
					imbc_running_no	= noChildValue(xmlRet,i,j);
				}
				else if(j==3)
				{
					imbc_running_date = noChildValue(xmlRet,i,j).substring(0,10);	
				}
				else if(j==4)
				{
					imbc_preview = noChildValue(xmlRet,i,j);	
				}
				else if(j==5)
				{
					imbc_itemid = noChildValue(xmlRet,i,j);			
				}
				else if(j==6)
				{
					imbc_imgfilename = noChildValue(xmlRet,i,j);		
				}
				else if(j==7)
				{
					imbc_target = noChildValue(xmlRet,i,j);			
				}
				else if(j==8)
				{
					imbc_UbookURL = noChildValue(xmlRet,i,j);	 	
				}
				else if(j==9)
				{
					imbc_media_swf = noChildValue(xmlRet,i,j);		
				}
				else if(j==10)
				{
					imbc_media_pvod = noChildValue(xmlRet,i,j);		
				}
				else if(j==11)
				{
					imbc_meida_hpvod = noChildValue(xmlRet,i,j);		
				}
				else if(j==12)
				{
					imbc_media_ofvod = noChildValue(xmlRet,i,j);	
				}
				else if(j==13)
				{
					imbc_meida_preview = noChildValue(xmlRet,i,j);		
				}
				else if(j==14)
				{
					imbc_media_overseas = noChildValue(xmlRet,i,j);		
				}
				else if(j==15)
				{
					imbc_media_overseas_down = noChildValue(xmlRet,i,j);	 
				}
				else if(j==16)
				{
					imbc_media_pc_down = noChildValue(xmlRet,i,j);	 
					//alert(imbc_media_pc_down )
				}
				else if(j==17)
				{
					imbc_media_pmp_down = noChildValue(xmlRet,i,j);	
							//			alert(imbc_media_pmp_down )
				}
				else if(j==18)
				{
					imbc_scenariocheck = noChildValue(xmlRet,i,j);	
							//			alert(imbc_media_pmp_down )
				}
				else if(j==20)
				{
					//2008.02.22 ´Ù¿îÅ¸¿î ¹Ìµð¾î Á¤Ã¥ º¯°æÀ¸·Î ÄÚµå Ãß°¡ÇÔ (¼öÁ¤ÀÚ: PHS)
					imbc_media_file_type_cnt = noChildValue(xmlRet,i,j);	 
				}
				
				if (imbc_target="")
				{
					temptarget = stradtarget;
				}
				else
				{
					temptarget = imbc_target;
				}

				//alert(i + " - " + j + " - " + xmlRet.childNodes(0).childNodes(i).childNodes(j).tagName)
				//alert(i + " - " + j + " - " + xmlRet.childNodes(0).childNodes(i).childNodes(j).tagName + " -  "+ xmlRet.childNodes(0).childNodes(i).childNodes(j).firstChild.nodeValue)
				//alert(i + " - " + j + " - " + xmlRet.childNodes(0).childNodes(i).childNodes(j).tagName + " -  "+ noChildValue(xmlRet,i,j))

			//	str += i + " - " + j + " - " + xmlRet.childNodes(0).childNodes(i).childNodes(j).tagName + " -  "+ noChildValue(xmlRet,i,j) + "<BR>"
			}

          str += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"580\" height=\"8\"><br>";
          str += "<table width=\"577\" height=\"207\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/new_bg_gray.gif\">";
          str += "  <tr>";
          str += "    <td align=\"center\" valign=\"top\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"500\" height=\"7\"><br>";
          str += "      <table width=\"551\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
          str += "      <tr>";
          str += "        <td height=\"24\" align=\"left\" valign=\"top\">";
          str += "          <table width=\"216\" height=\"20\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
          str += "            <tr>";
          str += "              <td width=\"16\" align=\"center\" valign=\"bottom\"><span class=\"style3\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/arrow_white.gif\" width=\"7\" height=\"12\">  </span></td>";
          str += "              <td width=\"130\"><span class=\"style3\"><strong>"+ vodRno(imbc_running_no) +"È¸ "+ imbc_running_date +"</strong></span></td>";

	  if (checkxydate(strrunningdate,imbc_running_date,imbc_media_pvod,i)=="x")
	  {
	  str +=  "              <td width=\"70\">" +objwriteSwf("http://swf.imbc.com/broad/tv/drama/queserasera/vod/new.swf",45,14,false) + "</td>";
	  }
	  else
	  {
	   str += "              <td width=\"70\">" + checkxydate(strrunningdate,imbc_running_date,imbc_media_pvod,i) + "</td>";
	  }

       
          str += "            </tr>";
          str += "          </table>                </td>";

	if (vodpackage=="1")
	{
          str += "        <td width=\"187\" align=\"right\"><a href='http://icash.imbc.com/FreeTicket/FreeTicketMain.asp' alt=\"ÀÚÀ¯ÀÌ¿ë±Ç\" onMouseOver=\"rolloverfreecash"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/free_b.gif'\" onMouseOut=\"rolloverfreecash"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/free_a.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/free_a.gif' name='rolloverfreecash" + i  + "' border='0'></a>&nbsp;&nbsp;<a href='http://help.imbc.com' alt=\"ÀÌ¿ë¹æ¹ý\" onMouseOver=\"rolloverhelp"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/info_b.gif'\" onMouseOut=\"rolloverhelp"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/info_a.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/info_a.gif' alt1=\"200¿ø 24½Ã°£\" name='rolloverhelp" + i  + "' border='0'></a>&nbsp;&nbsp;</td>";
	}
		else
		{
          str += "        <td width=\"187\" align=\"right\">&nbsp;&nbsp;<a href='http://help.imbc.com' alt=\"ÀÌ¿ë¹æ¹ý\" onMouseOver=\"rolloverhelp"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/info_b.gif'\" onMouseOut=\"rolloverhelp"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/info_a.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/info_a.gif' alt1=\"200¿ø 24½Ã°£\" name='rolloverhelp" + i  + "' border='0'></a>&nbsp;&nbsp;</td>";
		}




          str += "      </tr>";
          str += "    </table>";

          str += "      <img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/blank.gif\" width=\"500\" height=\"7\"><br>";
          str += "      <table width=\"551\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
          str += "        <tr>";
          str += "          <td width=\"200\" rowspan=\"4\" align=\"left\">";


					if (imbc_media_swf!="")
					{
		  //str += 	objwriteSwf(imbc_media_swf,181,141,false);
		  //str += 	objPlaywriteSwf(imbc_media_swf,181,141,false);
		  
			

					str += 	"<span style=\"position:relative;margin:0 0 0 0;\">"
					str += 	"<span id=\"s"+ LayerDns(imbc_media_swf) +"\" style=\"position:absolute; left:0px; top:0px; z-index:2\">"
					str += 	objPlaywriteSwf(imbc_media_swf,181,128,false); //Àç»ý ¹öÆ°
					str += 	"</span></span>"

					str += 	"<span id=\"img"+ LayerDns(imbc_media_swf) +"\">"
					if(imbc_imgfilename!="")
								{
					  str += "		<img src=\""+ imbc_imgfilename +"\" width=\"181\" height=\"128\">";
								}
								else if(strBasicimgfilename!="")
								{
					  str += "		<img src=\""+ strBasicimgfilename +"\" width=\"181\" height=\"128\">";
								}
								else
								{
					  str += "		<img src=\"http://cue.imbc.com/images/mbc.jpg\" width=\"170\" height=\"128\">";						
								}
					  str += 	"</span>";
			
					}
					else if(imbc_imgfilename!="")
					{
					str += 	"<span style=\"position:relative;margin:0 0 0 0;\">"
					str += 	"<span id=\""+ LayerDns(imbc_imgfilename) +"\" style=\"position:absolute; left:0px; top:0px; z-index:2\">"
					str += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/photo_skin.gif\" width=\"181\" height=\"128\">";
					str += 	"</span></span>"

					str += 	"<span id=\"img"+ LayerDns(imbc_imgfilename) +"\">"
				    str += "		<img src=\""+ imbc_imgfilename +"\" width=\"181\" height=\"128\">";

				    str += 	"</span>";
				    //str += "		<img src=\""+ imbc_imgfilename +"\" width=\"181\" height=\"128\">";
					}
					else if(strBasicimgfilename!="")
					{
					str += 	"<span style=\"position:relative;margin:0 0 0 0;\">"
					str += 	"<span id=\""+ LayerDns(strBasicimgfilename) +"\" style=\"position:absolute; left:0px; top:0px; z-index:2\">"
					str += "<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/photo_skin.gif\" width=\"181\" height=\"128\">";				
					str += 	"</span></span>"

					str += 	"<span id=\"img"+ LayerDns(strBasicimgfilename) +"\">"
					str += "		<img src=\""+ strBasicimgfilename +"\" width=\"181\" height=\"128\">";
				    str += 	"</span>";

		  //str += "		<img src=\""+ strBasicimgfilename +"\" width=\"181\" height=\"128\">";
					}
					else
					{
		  str += "		<img src=\"http://cue.imbc.com/images/mbc.jpg\" width=\"170\" height=\"128\">";						
					}

		  str += " 			</td>"

          str += "          <td width=\"351\" height=\"30\" align=\"left\">";

		if (vodnomal=="1")
		{
					if (imbc_media_pvod=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01_g.gif\" width=\"37\" height=\"18\"> ";
					}
					else
					{
					
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_media_pvod +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'  onMouseOver=\"rolloverpvod"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01_b.gif'\" onMouseOut=\"rolloverpvod"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_01.gif' name='rolloverpvod" + i  + "' width=\"37\" height=\"18\" border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_01.gif' class=aa ></a> ";
					}
		}

		if (vodhigh=="1")
		{	
					if (imbc_meida_hpvod=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_02_g.gif\" width=\"37\" height=\"18\">";
					}
					else
					{
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_meida_hpvod +"&type=" + vodSubclass + "&speed=1000&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'  onMouseOver=\"rolloverhpvod"+ i +".src='"+ vodhighimgover +"'\" onMouseOut=\"rolloverhpvod"+ i +".src='"+ vodhighimg +"'\"><img src='"+ vodhighimg +"' name='rolloverhpvod" + i  + "'  height=\"18\" border='0' alt1='"+ vodhighalt + "' class=aa ></a> ";
					}
		}
		
		if (vodsponsor=="1")
		{
					if(imbc_media_ofvod=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03_g.gif\" width=\"37\" height=\"18\">";
					}
					else
					{
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_media_ofvod +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'  onMouseOver=\"rolloverofvod"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03_b.gif'\" onMouseOut=\"rolloverofvod"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_03.gif' name='rolloverofvod" + i  + "' width=\"37\" height=\"18\" border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_03.gif' class=aa ></a> ";
		 			}
		}

		  str += " 				&nbsp;&nbsp;";

		
		if(vodpreview=="1")
		{
					if(imbc_meida_preview=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04_g.gif\" width=\"91\" height=\"18\"> ";
					}
					else
					{
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_meida_preview +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'    onMouseOver=\"rolloverpreview"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04_b.gif'\" onMouseOut=\"rolloverpreview"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_04.gif' name='rolloverpreview" + i  + "'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_08.gif' class=aa ></a> ";
					}
		}
		

		if (vodscenario=="1")
		{
					if(imbc_scenariocheck=="-1")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05_g.gif\" width=\"61\" height=\"18\">";
					}
					else
					{
						
		  str += "			    <a href=\"javascript:OpenWin2('http://script.imbc.com/scenario_info_search.asp?ContID="+ imbc_cont_id +"');\"' onMouseOver=\"rolloverscenario"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05_b.gif'\" onMouseOut=\"rolloverscenario"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_05.gif' name='rolloverscenario" + i  + "'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_09.gif' class=aa ></a>";
					}
		  }


		  str += "			</td>";
          str += "        </tr>";
          str += "        <tr>";
          str += "          <td height=\"30\" align=\"left\">";

		  if(vodforeign=="1")
		  {
				    if(imbc_media_overseas=="")
					{
		  str += "	 			<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06_g.gif\" width=\"37\" height=\"18\">";
					}
					else
					{
		  str += "			    <a href=\"javascript:openVOD('http://touch.imbc.com/Touchplayer.asp?id="+ imbc_prog_code +"&file="+ imbc_media_overseas +"&type=" + vodSubclass + "&speed=300&caption=&rd="+ imbc_running_date +"&target="+ temptarget +"');\"'      onMouseOver=\"rolloveroverseas"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06_b.gif'\" onMouseOut=\"rolloveroverseas"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_06.gif' name='rolloveroverseas" + i  + "'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_04.gif' class=aa ></a>";
					}
		  }

		  if(vodforeigndown=="1")
		  {
				    if(imbc_media_overseas_down=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07_g.gif\" width=\"81\" height=\"18\">";
					}
					else
					{
		  str += "			    <a href=\"javascript:opendownurl('http://script.imbc.com/dowload_info_search.asp?ContID="+ imbc_cont_id +"');\"'  onMouseOver=\"rolloveroverseas_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07_b.gif'\" onMouseOut=\"rolloveroverseas_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_07.gif' name='rolloveroverseas_down" + i  + "'  border='0' alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_05.gif' class=aa ></a>";
					}
		  }

		   if ( (vodforeign=="1") || (vodforeigndown=="1") )
		   {	
		   str += " 				&nbsp;&nbsp;";
		   }

		  if(vodpcdown=="1")
		  {
		  			if(imbc_media_pc_down=="")
					{
		  str += "				<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08_g.gif\" width=\"74\" height=\"18\"> ";
					}
					else
					{
						//2008.02.22 ´Ù¿îÅ¸¿î ¹Ìµð¾î Á¤Ã¥ º¯°æÀ¸·Î ÄÚµå Ãß°¡ÇÔ (¼öÁ¤ÀÚ: PHS)
						if (imbc_media_file_type_cnt == "1.1" || imbc_media_file_type_cnt == "1.2")
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pc_down+"','','status=yes,width=510,height=460')\" onMouseOver=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08_b.gif'\" onMouseOut=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif' name='rolloverpc_down" + i  + "'  border='0' class=aa alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_06_re.gif' ></a> ";
	  					else
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pc_down+"','','status=yes,width=510,height=460')\" onMouseOver=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08_b.gif'\" onMouseOut=\"rolloverpc_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_08.gif' name='rolloverpc_down" + i  + "'  border='0' class=aa alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_06.gif' ></a> ";
		  			}
		  }

		  if(vodpmpdown=="1")
		  {
					if(imbc_media_pmp_down=="")
					{
	      str += " 					<img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09_g.gif\" width=\"78\" height=\"18\">";
					}
					else
					{
						//2008.02.22 ´Ù¿îÅ¸¿î ¹Ìµð¾î Á¤Ã¥ º¯°æÀ¸·Î ÄÚµå Ãß°¡ÇÔ (¼öÁ¤ÀÚ: PHS)
						if (imbc_media_file_type_cnt == "1.1" || imbc_media_file_type_cnt == "2.1")
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pmp_down+"','','status=yes,width=510,height=460')\"  onMouseOver=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09_b.gif'\" onMouseOut=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif' name='rolloverpmp_down" + i  + "'   border='0' class=aa  alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_07_re.gif' ></a>";
		  				else
		  str += "				<a href=\"javascript:MM_openBrWindow('"+imbc_media_pmp_down+"','','status=yes,width=510,height=460')\"  onMouseOver=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09_b.gif'\" onMouseOut=\"rolloverpmp_down"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_09.gif' name='rolloverpmp_down" + i  + "'   border='0' class=aa  alt1='http://img.imbc.com/broad/tv/drama/queserasera/images2/p_07.gif' ></a>";
					}
		  }

		  str += "			</td>";
          str += "        </tr>";
          str += "        <tr>";
          str += "          <td><div align=\"justify\"><span class=\"ad\"><a href=\"javascript:contentdetail('"+ imbc_cont_id +"')\">"+ imbc_preview +"</a></span> <br>";
          str += "          </div></td>";
          str += "        </tr>";
          str += "        <tr>";
          str += "          <td height=\"24\" align=\"right\"><a href=\"javascript:contentdetail('"+ imbc_cont_id +"')\" onMouseOver=\"rollovermore"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/more_b.gif'\" onMouseOut=\"rollovermore"+ i +".src='http://img.imbc.com/broad/tv/drama/queserasera/images2/more.gif'\"><img src='http://img.imbc.com/broad/tv/drama/queserasera/images2/more.gif' name='rollovermore" + i  + "' border='0' id=\"rollover05\"></a></td>";
          str += "        </tr>";
          str += "      </table></td>";
          str += "  </tr>";
          str += "</table>";

	}
	fNavigatorSelect(xmlRet)

	//ÆäÀÌÁö ºÐÇÒ ³×ÀÌº£ÀÌ¼Ç
	PlaceNavi.innerHTML = fNavigator(intPage,TotalPage);;
	
	  try{
	 document.getElementById("test").value = str;
	 }catch(e){}


	if(!isFirstBuild){
	}
	isFirstBuild = false;

//alert(str)
	PlaceList.innerHTML = str;
}

function fNavigatorSelect(xmlRet){

   var strNaviSelect="";
   var strNaviSelect1="";
   var strNaviSelect2="";

   if (fNavigatorSelectBool==false)
   {
		strNaviSelect1 = "<select name=\"NaviSelect1\" class=\"list\" onchange=\"contentdetail(this.value);\"><option value=\"\"> : ¼±ÅÃÇÏ±â : </option>";
		strNaviSelect2 = "<select name=\"NaviSelect2\" class=\"list\" onchange=\"contentdetail(this.value);\"><option value=\"\"> : ¼±ÅÃÇÏ±â : </option>";

		strNaviSelect ="";
		for (var i=parseInt(curCount)+1;i<xmlNodeCount;i++) 
		{

			strNaviSelect += "<option value=\""+ noChildValue(xmlRet,i,0) +"\"> : " + vodRnoSelecter(noChildValue(xmlRet,i,2)) + noChildValue(xmlRet,i,3) + " :</option>"
			//noChildValue(xmlRet,i,2); //running_no
			//noChildValue(xmlRet,i,3); //running_date
		}
		 strNaviSelect += "</select>";
		//alert(strNaviSelect)
		//alert(strNaviSelect)

		strNaviSelect1 = strNaviSelect1 + strNaviSelect;
		strNaviSelect2 = strNaviSelect2 + strNaviSelect;

		PlaceNaviSelect1.innerHTML = strNaviSelect1 ;
		PlaceNaviSelect2.innerHTML = strNaviSelect2 ;
		fNavigatorSelectBool = true;
   }	

}


function contentdetail(strContent)
{
	//alert(NaviSelect1.options.selectedIndex )



//	alert(strContent)
	if (strContent!="")
	{
		var vodProgCode =document.getElementById("vodProgCode").value;
		var vodContID =document.getElementById("vodContID").value;
		var vodcurPage =document.getElementById("vodcurPage").value;
		var vodPageRow =document.getElementById("vodPageRow").value;
		try{ vodPeople   =document.getElementById("vodPeople").value; }catch(e){}

		try{
			for(var i=0; i<NaviSelect1.options.length; i++) {						
						// NaviSelect1.options[i].text;
						//alert(NaviSelect1.options[i].value);

						if (strContent==NaviSelect1.options[i].value)
						{
							NaviSelect1.options.selectedIndex = i;
							NaviSelect2.options.selectedIndex = i;
						}
				}
		}catch(e){}




		//var request =document.getElementById("request").value;
		var request = "http://playercue.imbc.com/vodlist/Default.aspx?ProgCode="+ vodProgCode +"&ContID="+ strContent +"&curPage="+ vodcurPage +"&PageRow="+ vodPageRow+"&PeopleBool="+ vodPeople ;

		var head = document.getElementsByTagName("head").item(0);  
		var script = document.createElement("script");   
		script.setAttribute("type", "text/javascript");  
		script.setAttribute("src", request);  
		head.appendChild(script);
	}
}




function getParserDatailXML(){
//PlaceList.innerHTML = objwriteSwf('http://img.imbc.com/cue/loading.swf',100,100,false); 
//setTimeout("getParserDatailSubXML()",500)
getParserDatailSubXML();
	
}

function getParserDatailSubXML(){
 AdReload();

	var xmlhttp;
    var alerted = true;
    
	try 
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLDOM")
	  	//xmlhttp=new ActiveXObject("Msxml.DOMDocument")	  
	} 
	catch (e) 
	{
	  	try 
	  	{
	  	//	xmlhttp=new ActiveXObject("Microsoft.XMLDOM")
	  		
	  	} 
	  	catch (E) 
	  	{
	  	
	  	  xmlhttp=false
	  	  alerted=true
	  	}
	}	   

	//alert(strCDATAXML)
    xmlhttp.async = false;
    xmlhttp.loadXML(strCDATAXML);


    buildDetailQueryList(xmlhttp);
    
}

function fNavigatorBefore()
{
	if(parseInt(intPage)>1)
	{
		intPage = parseInt(intPage) -1;
		document.getElementById("vodcurPage").value = intPage;
		dynamicTag();
	} 
}

function fNavigatorAfter()
{
	//alert( intPage  + " : " + intPage.length + " & " + TotalPage + " : " + TotalPage.length)

//alert(intPage.length)

	if(parseInt(intPage) < parseInt(TotalPage))
	{
		//alert( intPage  + " : " + TotalPage)
		intPage = parseInt(intPage) +1;
		
		document.getElementById("vodcurPage").value = intPage;
		dynamicTag();
	} 
}

function fNavigatorMove(nMovePage)
{
	document.getElementById("vodcurPage").value = nMovePage;
	dynamicTag();
}


/*
	'==============================================================================
	' °Ô½ÃÆÇ ³×ºñ°ÔÀÌÅÍ(±âº»Çü)
	'  - ±âº» ÆÄ¶ó¹ÌÅÍ ÇÏ³ª¸¸À» °¡Áú¼ö ÀÖ´Ù.
	' »ç¿ë¹ý : fNavigator(sFileName, nCurPage, nTotalPage, nPageSize)
	' ÆÄ¶ó¹ÌÅÍ ¼³¸í
	'  - sFileName  : °Ô½ÃÆÇ ¸®½ºÆ® ÆÄÀÏ ÀÌ¸§(³×ÀÌ°ÔÀÌÆ®¸¦ È£ÃâÇÏ´Â ÆÄÀÏ¸íÀ» ¾²¸é µÈ´Ù.)
	'  - nCurPage   : ÇöÀç ÆäÀÌÁö No
	'  - nTotalPage : °è»êµÈ ÀüÃ¼ ÆäÀÌÁö¼ö Value
	'  - nPageSize  : ÇÑÆäÀÌÁö¿¡ º¸¿©Áö´Â °¹¼ö
	'==============================================================================
*/
function fNavigator(nCurPage, nTotalPage)
{

	var strNavi="";
    var intsplit = nCurPage%10 ;
      
	strNavi +="<table width=\"120\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	strNavi +="                <tr>";
  //'============================================================
  //' Ã³À½ÆäÀÌÁö/ÀÌÀüÆäÀÌÁö
  //'============================================================
	strNavi +="                  <td><a href=\"javascript:fNavigatorMove('1');\" alt=\"Ã¹ ÆäÀÌÁö\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_first.gif\" width=\"9\" height=\"9\" border=\"0\"></a></td>";
	strNavi +="                  <td><a href=\"javascript:fNavigatorBefore();\"  alt=\"ÀÌÀü ÆäÀÌÁö\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_before.gif\" width=\"9\" height=\"9\" border=\"0\"></a></td>";

	strNavi +="                  <td><div align=\"center\" class=\"ad\">"
   

	if ((intsplit > 0) && (intsplit <= 5))
	{
	   for (var nUsrSelPage=1;nUsrSelPage<=5;nUsrSelPage++) 
	   {
			var nCurPageList = parseInt(nCurPage / 10 - 0.01) * 10 + nUsrSelPage;

			//strNavi +="<strong><font color=red>"+ nCurPageList + ":" + nTotalPage + "</font></strong> "

			if (nCurPageList <= nTotalPage)
			{
				 if (nCurPage == nCurPageList)
				 {
					strNavi +="<strong>"+ nCurPageList + "</strong> "
				 }
				 else
				 { 
					strNavi +="<a href=\"javascript:fNavigatorMove('"+ nCurPageList + "')\">" + nCurPageList + "</a> "
				 }
			}

		}
	}
	else if ((intsplit== 0) || (intsplit > 5))
	{
	   for (var nUsrSelPage=6;nUsrSelPage<=10;nUsrSelPage++) 
	   {
			var nCurPageList = parseInt(nCurPage / 10 - 0.01) * 10 + nUsrSelPage;

			//strNavi +="<strong><font color=red>"+ nCurPageList + ":" + nTotalPage + "</font></strong> "

			if (nCurPageList <= nTotalPage)
			{
				 if (nCurPage == nCurPageList)
				 {
					strNavi +="<strong>"+ nCurPageList + "</strong> "
				 }
				 else
				 { 
					strNavi +="<a href=\"javascript:fNavigatorMove('"+ nCurPageList + "')\">" + nCurPageList + "</a> "
				 }
			}

		}
	}

	strNavi +="</div></td>";


	// '============================================================
    //  ' ´ÙÀ½ÆäÀÌÁö/¸¶Áö¸·ÆäÀÌÁö
    //  '============================================================

	strNavi +="                  <td><a href=\"javascript:fNavigatorAfter();\"  alt=\"´ÙÀ½ ÆäÀÌÁö\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_next.gif\" width=\"9\" height=\"9\" border=\"0\"></a></td>";
	strNavi +="                  <td><a href=\"javascript:fNavigatorMove('"+ nTotalPage +"');\"  alt=\"¸¶Áö¸· ÆäÀÌÁö\"><img src=\"http://img.imbc.com/broad/tv/drama/queserasera/images2/icon_final.gif\" width=\"9\" height=\"9\" border=\"0\"></a></td>";
	strNavi +="                </tr>";
	strNavi +="      </table>";
//alert(strNavi)
	return strNavi;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
