// ÀÏ¹Ý ÇÃ·¡½Ã È£Ãâ ·¹ÀÌ¾î ¼Ó¼ºÀû¿ë
function MlangFalseViewObj(src,width,height) { 
var src
var width
var height
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">');
document.write('<param name=movie value="'+src+'">');
document.write('<param name=quality value=high>');
document.write('<param name=wmode value=transparent>');
document.write('<param name=menu value=false>');
document.write('<embed src="'+src+'" style="position:absolute;left:0;top:20;width:500;height:50;border:gray 1 solid;z-index:-10;" menu=false quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
document.write('</embed>'); 
document.write('</object>');
} 


// Ç®½ºÅ©¸°
function flashObj_fullscreen(src,w,h,id,page_num,sub_num){
	 html = '';
	 html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="'+id+'" width="'+w+'" height="'+h+'">';
	 html += '<param name="movie" value="'+src+'?page_num='+page_num+'">';
	 html += '<param name="quality" value="high">';
	 html += '<param name="wmode" value="transparent">';
	 html += '<param name="menu" value="false">';
	 html += '<embed src="'+src+'" quality=high menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="'+id+'" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	 html += '<\/object>';
	 document.write(html);
}

// ÆÄÀÏ º¯¼ö°ª Àü´ÞÇØ¼­ ¿­±â
function MlangFalseViewObj_File(src,width,height,File) { 
var src
var width
var height
var File
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">');
document.write('<param name=movie value="'+src+'"?MlangFile='+File+'');
document.write('<param name=quality value=high>');
document.write('<param name=wmode value=transparent>');
document.write('<param name=menu value=false>');
document.write('<param name="flashvars" value="MlangFile='+File+'">'); 
document.write('<embed src="'+src+'" style="position:absolute;left:0;top:20;width:500;height:50;border:gray 1 solid;z-index:-10;" menu=false quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'">');
document.write('</embed>'); 
document.write('</object>');
} 


// ³×ÀÌº£ÀÌ¼Ç ¼Ó¼º°ª Àü´ÞÇØ¼­ Ã¼Å© ÇÏ±â
// È£Ãâ¹®<script>mEmbed('src=/test/RuskMenu.swf','width=670','height=70','localMENU1=1','localMENU2=3');</script>
function mEmGET(arrayKey, arrayValue, Value) { 
    count = arrayKey.length; 
    for(i=0;i<count;i++) { 
        if(arrayKey[i]==Value) { 
            return arrayValue[i]; 
            break; 
        } 
    } 
} 
function mEmbed() { 
var emtype; 
    var key = new Array(); 
    var value = new Array(); 
    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'); 

	localMENU1 = mEmGET(key,value,'localMENU1');
	localMENU2 = mEmGET(key,value,'localMENU2');
	localMENU3 = mEmGET(key,value,'localMENU3');
	localMENU4 = mEmGET(key,value,'localMENU4');
    
if(/\.(swf)$/.test(srcdata)) { 
        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)){
        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] + '?localMENU1='+localMENU1+'&localMENU2='+localMENU2+'&localMENU3='+localMENU3+'&localMENU4='+localMENU4+'" />'; 
                } else  if(emtype=='media' && key[i]=='src') { 
                    contents += '<param name="filename" value="' + value[i] + '" />'; 
                } else { 
                    contents += '<param name="' + key[i] + '" value="' + value[i] + '" />'; 
                } 
            } 
        } 
    } 
	contents += '<param name="quality" value="high" />';
	contents += '<param name="wmode" value="transparent" />';
	contents += '<embed'; 
    for(i=0;i<count;i++) { 
        if(value[i]!='') { 
            contents += ' ' + key[i] + '="' + value[i] + '?localMENU1='+localMENU1+'&localMENU2='+localMENU2+'&localMENU4='+localMENU4+'"'; 
        } 
    } 
    contents += '>'; 
    contents += '</embed>'; 
    if(classid && codebase) { 
        contents += '</object>'; 
    } 
    document.write(contents); 
} 


//·Î½ºÅ© ¿¡¼­ ¾²ÀÎ ¸®ÇÁÆ® ¸Þ´º
//È£Ãâ¹® <script type="text/javascript">swf('/2008/img/con1/sub_img.swf','670','172');</script>
function swf(src,w,h){
 html = '';
 html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
 html += '<param name="movie" value="'+src+'">';
 html += '<param name="quality" value="high">';
 html += '<param name="bgcolor" value="#ffffff">';
 html += '<param name="menu" value="false">';
 html += '<param name=wmode value="transparent">';
 html += '<param name="swliveconnect" value="true">';
 html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
 html += '</object>';
 document.write(html);
}