// JavaScript Document

//플래시 swf 삽입

	function viewSwf(swf_id, swf_path, w, h, isTrans) {

		var strObj;
		var strWmode;

		strObj =  "<object id='"+swf_id+"' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'>";
		strObj += "<param name='movie' value='"+swf_path+"'>";
		strObj += "<param name='quality' value='high'>";
		strObj += "<param name='menu' value='false'>";
		strObj += "<param name='wmode' value='transparent'>";

		if ( isTrans ) {
			strObj += "<param name='wmode' value='transparent'>";
			strWmode = " wmode='transparent' ";
		}

		strObj += "<embed id='"+swf_id+"' src='"+swf_path+"' quality='high' "+strWmode+" menu='false' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed>";
		strObj += "</object>";

		document.write(strObj);
	}

	function swf(src,w,h) {
	 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=7,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);
	}




// png 투염하게 하기

    function setPng24(obj) {
        obj.width=obj.height=1;
        obj.className=obj.className.replace(/\bpng24\b/i,'');
        obj.style.filter =
        "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
        obj.src=''; 
        return '';
    }


// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}

    var mobilewords = new Array("Windows CE","iPhone","Android","iPod","PSP"); 
    for (var word in mobilewords) { 
        if (navigator.userAgent.match(mobilewords[word]) != null ) { 
            location.href = "http://m.choongang.or.kr/"; 
            break; 
        } 
    } 


