<!-- //////////////////////////////////////////////////////////////
//*****************************************************************
//  Web Site: http://www.CginJs.Com
//  CGI ¿Í JavaScript°¡ ¸¸³µÀ» ¶§ = C.n.J ¢Ñ http://www.CginJs.Com
//  CGI ¿Í JavaScript°¡ ¸¸³µÀ» ¶§ = C.n.J ¢Ñ webmaster@CginJs.Com
//  C.n.J ÀÚ¹Ù½ºÅ©¸³Æ® ÀÚµ¿ »ý¼º ¸¶¹ý»ç ¢Ñ http://www.CginJs.Com
//  C.n.J ÀÚ¹Ù½ºÅ©¸³Æ®(JavaScript) °¡ÀÌµå ¢Ñ http://www.CginJs.Com
//  C.n.J CSS(Cascading Style Sheet) °¡ÀÌµå ¢Ñ http://www.CginJs.Com
//  Editer : Web Site: http://www.CginJs.Com
//*****************************************************************
/////////////////////////////////////////////////////////////// -->
// Switch Content script- ?Dynamic Drive www.dynamicdrive.com)
// FAQ °°Àº ¿ëµµ·Î »ç¿ëÇÏ¸é ÁÁ°Ú³×¿ä (Åä±Û¸Þ´º - IEÀü¿ë)
var enablepersist="off" // Å¬¸¯Çß´ÂÁö ±â¾ï¿©ºÎ

if (document.getElementById){
document.write('<st'+'yle>');
document.write('td {font-size:12px; font-family:±¼¸²; text-decoration:none; }');
document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
document.write('A:hover {text-decoration:none; color:ff9900}');
document.write('font { font-size: 9pt; }');
document.write('.cnj_input{display:none;}')
document.write('</st'+'yle>');
}

function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}

function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(cid){
if (typeof ccollect!="undefined"){
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
selectedItem=cid+"|"+document.getElementById(cid).style.display

  // ÁÂÃø ¸Þ´º ¾ÆÀÌÄÜ ¹Ù²Ù±â Ã³¸®
  var fchar = cid.substr(0,1)
  if (fchar == "m") {
    if (document.getElementById(cid).style.display!="block"){	
     document.getElementById("i"+cid).src =	"images/q_search_icon1.gif"
    } else {
     document.getElementById("i"+cid).src =	"images/q_search_icon1b.gif"	
    }
  } else if (fchar == "e"){
    if (document.getElementById(cid).style.display!="block"){	
     document.getElementById("b"+cid).src =	"images/btn_open.gif"
    } else {
     document.getElementById("b"+cid).src =	"images/btn_close.gif"	
    }  	
  }	
  // ÁÂÃø ¸Þ´º ¾ÆÀÌÄÜ ¹Ù²Ù±â Ã³¸®
}
}

function revivecontent(){
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
contractcontent(selectedComponents[0])
document.getElementById(selectedComponents[0]).style.display=selectedComponents[1]
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
if (typeof selectedItem!="undefined")
document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
getElementbyClass("cnj_input")
if (enablepersist=="on" && getselectedItem()!="")
revivecontent()
}


if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate



function audiodown(prgcode, bday, tracknum, pcode, audiofile){

        var urlstr = "audiodownload.asp?prgcode=" + prgcode + "&bday=" + bday + "&tracknum=" + tracknum + "&pcode=" + pcode + "&audiofile=" + audiofile;
	//ar urlstr = "audiodownload.asp?prgcode=" + <%=prgcode%>&bday=<%=broadcastday%>&tracknum=<%=tracknum%>&pcode=<%=pcode%>&audiofile=<%=audiofile%>";
	//var urlstr = "audiodownload.asp";
        window.name = "Audiodownload";
        //ConfirmWin = window.open(urlstr,"Confirm"," scrollbars =yes,width=10,height=10,resizable=yes, toolbar=yes");
        window.open(urlstr,"Confirm"," scrollbars =yes,width=10,height=10,resizable=no, toolbar=no");
}

function pdfdown(prgcode, bday, tracknum, pcode, pdffile){

        var urlstr = "pdfdownload.asp?prgcode=" + prgcode + "&bday=" + bday + "&tracknum=" + tracknum + "&pcode=" + pcode + "&pdffile=" + pdffile;
        window.name = "Pdfdownload";
        //ConfirmWin = window.open(urlstr,"Confirm"," scrollbars =yes,width=10,height=10,resizable=yes, toolbar=yes");
        window.open(urlstr,"Confirm"," scrollbars =yes,width=10,height=10,resizable=no, toolbar=no");

}	

function audiodowne(prgcode, bday, tracknum, pcode, audiofile){

        var urlstr = "audiodownloade.asp?prgcode=" + prgcode + "&bday=" + bday + "&tracknum=" + tracknum + "&pcode=" + pcode + "&audiofile=" + audiofile;

        window.name = "Audiodownload";
        window.open(urlstr,"Confirm"," scrollbars =yes,width=10,height=10,resizable=no, toolbar=no");
}

function pdfdowne(prgcode, bday, tracknum, pcode, pdffile){

        var urlstr = "pdfdownloade.asp?prgcode=" + prgcode + "&bday=" + bday + "&tracknum=" + tracknum + "&pcode=" + pcode + "&pdffile=" + pdffile;
        window.name = "Pdfdownload";
        window.open(urlstr,"Confirm"," scrollbars =yes,width=10,height=10,resizable=no, toolbar=no");
}	

function textview(prgcode, bday, tracknum, pcode, pdffile){

        var urlstr = "paper.asp?prgcode=" + prgcode + "&bday=" + bday + "&tracknum=" + tracknum + "&pcode=" + pcode + "&pdffile=" + pdffile;
        window.name = "TextView";
        //ConfirmWin = window.open(urlstr,"Confirm"," scrollbars =yes,width=200,height=300,resizable=yes, toolbar=yes");
        window.open(urlstr,"Confirm"," scrollbars =yes,width=742,height=600,resizable=no, toolbar=no");

}

function textPrint(prgcode, bday, tracknum, callcode){

        var urlstr = "print.asp?p=" + prgcode + "&b=" + bday + "&t=" + tracknum + "&c=" + callcode;
        window.name = "TextView";
        //ConfirmWin = window.open(urlstr,"Confirm"," scrollbars =yes,width=610,height=300,resizable=yes, toolbar=yes");
        window.open(urlstr,"Print"," scrollbars =yes,width=766,height=600,resizable=no, toolbar=no");

}	

function textPrinte(prgcode, bday, tracknum, callcode){

        var urlstr = "printe.asp?p=" + prgcode + "&b=" + bday + "&t=" + tracknum + "&c=" + callcode;
        window.name = "TextView";
        //ConfirmWin = window.open(urlstr,"Confirm"," scrollbars =yes,width=610,height=300,resizable=yes, toolbar=yes");
        window.open(urlstr,"Print"," scrollbars =yes,width=766,height=600,resizable=no, toolbar=no");

}	

function freeloginAlert() {
    window.alert("·Î±×ÀÎ ÈÄ ÀÌ¿ë°¡´ÉÇÕ´Ï´Ù!");
}		

function loginAlert() {
    window.alert("À¯·áÀÌ¿ë ¿µ¿ªÀÔ´Ï´Ù!");
}		

function accessAlert() {
    window.alert("È¸¿ø´ÔÀÇ »ç¿ë°¡´É ¿µ¿ªÀÌ ¾Æ´Õ´Ï´Ù!");
}	

function accessAlertE() {
    window.alert("È¸¿ø´ÔÀÇ »ç¿ë°¡´É ¿µ¿ªÀÌ ¾Æ´Õ´Ï´Ù! eGROUND´Â ÀüÃ¼ÀÌ¿ë±ÇÀÚ¸¸ ÀÌ¿ë°¡´ÉÇÕ´Ï´Ù.");
}		
		
function downAlert() {
    window.alert("´Ù¿î·Îµå 5È¸ ÃÊ°ú!! ´Ù¿î·Îµå´Â 5È¸±îÁö¸¸ ÀÌ¿ë°¡´ÉÇÕ´Ï´Ù!");
}

function downAlertE() {
    window.alert("´Ù¿î·Îµå 10È¸ ÃÊ°ú!! eGROUND´Ù¿î·Îµå´Â 10È¸±îÁö¸¸ ÀÌ¿ë°¡´ÉÇÕ´Ï´Ù!");
}

function todaydownAlert() {
    window.alert("ÀÏÀÏ ´Ù¿î·Îµå 100È¸ ÃÊ°ú!! ÀÏÀÏ´Ù¿î·Îµå´Â 100È¸±îÁöÀÔ´Ï´Ù!");
}

function todaydownAlertE() {
    window.alert("ÀÏÀÏ ´Ù¿î·Îµå 100È¸ ÃÊ°ú!! eGROUNDÀÏÀÏ´Ù¿î·Îµå´Â 100È¸±îÁöÀÔ´Ï´Ù!");
}

function viewAlert() {
    window.alert("ÅØ½ºÆ® Á¶È¸ 5È¸ ÃÊ°ú!! ÅØ½ºÆ® Á¶È¸´Â 5È¸±îÁö¸¸ ÀÌ¿ë°¡´ÉÇÕ´Ï´Ù!");
}

function viewAlertE() {
    window.alert("ÅØ½ºÆ® Á¶È¸ 5È¸ ÃÊ°ú!! ÅØ½ºÆ® Á¶È¸´Â 5È¸±îÁö¸¸ ÀÌ¿ë°¡´ÉÇÕ´Ï´Ù!");
}

function todayviewAlert() {
    window.alert("ÀÏÀÏ ÅØ½ºÆ® Á¶È¸ 100È¸ ÃÊ°ú!! ÀÏÀÏ ÅØ½ºÆ® Á¶È¸´Â 100È¸±îÁöÀÔ´Ï´Ù!");
}

function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function tv_vod_playerCms(file_name, boardTableName, boardId) {	
	
	window.open("http://tbs.seoul.kr/vod/vod_playerCms.jsp?file_name="+file_name+ "&boardTableName=" + boardTableName+ "&boardId=" + boardId,"ROAD", "toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,width=470,height=470,resizable=no");
}

function Vod_Open(prgcode, bday, tracknum, pcode, vfile){

        var urlstr = "vodopen.asp?prgcode=" + prgcode + "&bday=" + bday + "&tracknum=" + tracknum + "&pcode=" + pcode + "&vfile=" + vfile;

        window.name = "VOD";
        //ConfirmWin = window.open(urlstr,"Confirm"," scrollbars =yes,width=10,height=10,resizable=yes, toolbar=yes");
        window.open(urlstr,"Confirm"," scrollbars =yes,width=144,height=156,resizable=no, toolbar=no");
}


//-->






