/*==========================================*/
/* SUBJECT : Default js                     */
/* AUTHOR  : ÃÖÀ¯Áø                         */
/* UP-DATE : 2009-02-25                     */
/* Copyright(C) raon. All Rights reserved.  */
/*==========================================*/

//¿ÀÅä¾ÆÀÌÇÁ·¹ÀÓ
function reSize() {
    try {
        var objBody = auto_iframe.document.body;
        var objFrame = document.all["auto_iframe"];
        ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
        objFrame.style.height = ifrmHeight;
    }
        catch(e) {}
}
function init_iframe() {
    reSize();
    setTimeout('init_iframe()',1)
}

init_iframe();



//ÇÃ·¡½¬ Á¡¼±Á¦°Å
function raon(url,width,height){
 document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
 document.write("  codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
 document.write("  width='"+width+"' height='"+height+"' align='middle'>");
 document.write(" <param name='allowScriptAccess' value='always' /> ");
 document.write(" <param name='movie'    value='"+url+"' /> ");
 document.write(" <param name='quality'   value='high' /> ");
 document.write(" <param name='wmode'    value='transparent'> ");
 document.write(" <embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
 document.write("  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
 document.write("  pluginspage='https://www.macromedia.com/go/getflashplayer' />");
 document.write("</object>");
}

//
// JScript source code
function fla(swf_file, swf_width, swf_height, swf_param)
{
	var scnt = cnt_string(swf_param,",") ;
	var split_str = swf_param.split(",") ;

	document.writeln("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+swf_width+"' height='"+swf_height+"' ID='Shockwaveflash1' VIEWASTEXT>") ;
	for (i=0;i<=scnt;i++)
	{
//		alert("<param name='"+split_str[i].split("@")[0]+"' value='"+split_str[i].split("@")[1]+"'>") ;
		document.writeln("<param name='"+split_str[i].split("@")[0]+"' value='"+split_str[i].split("@")[1]+"'>") ;
	}
	document.writeln("<embed src='"+swf_file+"' quality='high' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+swf_width+"' height='"+swf_height+"'></embed></object>") ;
}

function inserttag(tag_str)
{
 document.write(tag_str) ;
}

//	¹®ÀÚ¿­³»ÀÇ ÄÄ¸¶ ¼ö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
function cnt_string(ostring, chkstr)
{
	var lngPos = 1 ;
	var lngCount = 0 ;

	do
	{
		lngPos = ostring.indexOf(chkstr) ;

		if (lngPos>0)
		{
         lngCount = lngCount + 1 ;
         ostring = ostring.substring(lngPos+chkstr.length, ostring.length) ;
		}
	}
	while (lngPos>0)

	return lngCount ;
}