
function ShowFlashView(url, width, height, zidx, wmode){
        document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT Style="z-index:'+zidx+'">');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<param name="wmode" value="' + wmode + '">');
        document.write('<param name="allowScriptAccess" value="always">');
        document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" allowScriptAccess="always"></embed>');
        document.write('</object>');
}

function TeacherCanadaINfo(Url){
//Ä³³ª´Ù ¼±»ý¼Ò°³ µ¿¿µ»ó
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0" width="500" height="435" id="1137612" align="middle">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="allowFullScreen" value="true" />');
document.write('<param name="movie" value="' + Url + '" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="' + Url + '"  quality="high" bgcolor="#FFFFFF" width="500" height="435" name="1137612" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>                      <td height="16">&nbsp;</td>');
}

function YoungChoonINfo(){
//¿µÃá¼Ò°³ µ¿¿µ»ó
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0" width="500" height="435" id="753280" align="middle">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="allowFullScreen" value="true" />');
document.write('<param name="movie" value="http://play.mgoon.com/Video/753280/" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="http://play.mgoon.com/Video/753280/" quality="high" bgcolor="#FFFFFF" width="500" height="435" name="753280" align="middle" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}


function MainMovie(UrlName){
//¸ÞÀÎ µ¿¿µ»ó
document.write("<embed pluginspage='http://www.macromedia.com/go/getflashplayer' src='"+UrlName+"' width='407' height='365' type='application/x-shockwave-flash'> </embed>")
}

function MainMovie2(UrlName){
//°Ô½Ã¹° µ¿¿µ»ó
document.write("<embed pluginspage='http://www.macromedia.com/go/getflashplayer' src='"+UrlName+"' width='500' height='435' type='application/x-shockwave-flash'> </embed>")
}




function mEmGET(arrayKey, arrayValue, Value) { 
    count = arrayKey.length; 
    for(i=0;i<count;i++) { 
        if(arrayKey[i]==Value) { 
            return arrayValue[i]; 
            break; 
        } 
    } 
} 
// ie ativeX Ãâ·Â º¯°æ ÇÔ¼ö 
function mEmbed() { 
    var emtype; 
    var key = new Array(); 
    var value = new Array(); 
  // error_check=0; 
    for(i=0;i<mEmbed.arguments.length;i++) { 
        data = mEmbed.arguments[i].split('='); 
        key[i] = data[0]; 
        value[i] = data[1]; 
    } 

    contents = ''; 
    srcdata = mEmGET(key,value,'src').toLowerCase(); 

    classid = mEmGET(key,value,'classid'); 
    codebase = mEmGET(key,value,'codebase'); 
    
    if(/\.(swf)$/.test(srcdata)) { //flash 
        classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'; 
        codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c-ab#version=6,0,29,0'; 
        emtype="flash"; 
    } else if(/\.(wmv|wma|asf|avi|wav|asx|mpeg|mp3|midi|aiff|au|wpl|wm|wmx|wmd|wmz)$/.test(srcdata)){//media 
        classid = 'CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'; 
        codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'; 
        emtype="media"; 
    } 
    if(classid && codebase) { 
        contents += '<object'; 
        if(classid) { 
            contents += ' classid="' + classid + '"'; 
        } 
        if(codebase) { 
            contents += ' codebase="' + codebase + '"'; 
        } 
        count = key.length; 
        for(i=0;i<count;i++) { 
            if(value[i]!='') { 
                if(key[i]!='src') { 
                    contents += ' ' + key[i] + '="' + value[i] + '"'; 
                } 
            } 
        } 
        contents += '>'; 
        for(i=0;i<count;i++) { 
            if(value[i]!='') { 
                if(emtype=='flash' && key[i]=='src') { 
                    contents += '<param name="movie" value="' + value[i] + '" />'; 
                } else  if(emtype=='media' && key[i]=='src') { 
                    contents += '<param name="filename" value="' + value[i] + '" />'; 
                } else { 
                    contents += '<param name="' + key[i] + '" value="' + value[i] + '" />'; 
                } 
            } 
        } 
    } 
    contents += '<embed'; 
    for(i=0;i<count;i++) { 
        if(value[i]!='') { 
            contents += ' ' + key[i] + '="' + value[i] + '"'; 
        } 
    } 
    contents += '>'; 
    contents += '</embed>'; 
    if(classid && codebase) { 
        contents += '</object>'; 
    } 
    document.write(contents); 
    //return contents; 
} 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function Movie(Bpath, sfile) {

    document.write('<OBJECT ID="MMPlayer1"  width="360"  height="300" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">');
	document.write('<PARAM NAME="FileName" VALUE="'+Bpath+sfile+'"> ');
	document.write('<PARAM NAME="ShowControls" VALUE="1">');
	document.write('<PARAM NAME="ShowStatusBar" VALUE="1">');
	document.write('<PARAM NAME="AutoRewind" VALUE="0">');
	document.write('<PARAM NAME="ShowDisplay" VALUE="0">');
	document.write('<PARAM NAME="DefaultFrame" VALUE="Slide">');
	document.write('<PARAM NAME="Autostart" VALUE="1">');
	document.write('<PARAM NAME="SendMouseClickEvents" VALUE="1">');
	document.write('<PARAM NAME="EnableContextMenu" value="false">');
	document.write('<PARAM NAME="TransparentAtStart" value="-1">');
	document.write('<PARAM NAME="AnimationAtStart" value="0">');
	document.write('<Embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" src="<%=Bpath%><%=sfile %>" Name=MMPlayer1 Autostart="1" ShowControls="0" ShowDisplay="0" ShowStatusBar="0" DefaultFrame="Slide"  AutoRewind="0" SendMouseClickEvents="1" EnableContextMenu="false" TransparentAtStart="-1" AnimationAtStart="0">');
	document.write('</OBJECT>');
}


function print_ok(){ //ÇÁ¸°Æ®
 print();
}

////////////////////////////////////////////////////°³ÀÎ ÀÏ±âÀå ¿ÀÇÂ
function Mydiary(){
window.open('/Mydiary/Index.asp','Vi_Da','width=910,height=688,left=0,top=0,scrollbars=NO');
}
////////////////////////////////////////////////////°³ÀÎ ÀÏ±âÀå ¿ÀÇÂ

////////////////////////////////////////////////////¿µÀÚ½Å¹® »ùÇÃ¿ÀÇÂ
function TimesNewsSample(){
window.open('/TimesNews/Sample.asp','TimesNewsSample','width=980,height=700,left=0,top=0,scrollbars=NO');
}
////////////////////////////////////////////////////¿µÀÚ½Å¹® »ùÇÃ¿ÀÇÂ