document.write('<script type="text/javascript" src="common/js/prototype.js"></script>');
document.write('<script type="text/javascript" src="common/js/effects.js"></script>');
document.write('<script type="text/javascript" src="common/js/link.js"></script>');
document.write('<script type="text/javascript" src="common/js/w2fn.js"></script>');


// Active-X  (ÇÃ·¡½¬, µ¿¿µ»ó¿¡ Àû¿ë)
/**
 *  f_uri : flash file path
 *  f_width : flash width size
 *  f_height : flash heigh size
 */
// HTML Title
document.title = 'Shanghai YEALB industry CO.,LTD';

function writeObjMain(f_uri,f_width,f_height){
    document.write('<object width="'+f_width+'" height="'+f_height+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"> ');
    document.write('<param name="movie" value="'+f_uri+'"> ');
    document.write('<param name="quality" value="high"> ');
    document.write('<param name="scale" value="noscale"> ');
    document.write('<param name="salign" value="lt"> ');
    document.write('<param name="bgcolor" value="#ffffff"> ');
    document.write('<param name="allowScriptAccess" value="sameDomain"> ');
    document.write('<param name="menu" value="false"> ');
    document.write('<param name="wmode" value="transparent"> ');
    document.write('<embed src="'+f_uri+'" width="'+f_width+'" height="'+f_height+'" quality="high" wmode="transparent" scale="noscale" align="left" bgcolor="#ffffff" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> ');
    document.write('</object> ');
}

function writeObjgnb(f_uri,f_width,f_height){
    document.write('<object width="'+f_width+'" height="'+f_height+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"> ');
    document.write('<param name="movie" value="'+f_uri+'"> ');
    document.write('<param name="quality" value="high"> ');
    document.write('<param name="scale" value="noscale"> ');
    document.write('<param name="salign" value="lt"> ');
    document.write('<param name="bgcolor" value="#ffffff"> ');
    document.write('<param name="allowScriptAccess" value="sameDomain"> ');
    document.write('<param name="menu" value="false"> ');
    document.write('<param name="wmode" value="transparent"> ');
    document.write('<embed src="'+f_uri+'" width="'+f_width+'" height="'+f_height+'" quality="high" wmode="transparent" scale="noscale" align="left" bgcolor="#ffffff" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> ');
    document.write('</object> ');
}

function writeObjlfb(f_uri,f_width,f_height){
    document.write('<object width="'+f_width+'" height="'+f_height+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"> ');
    document.write('<param name="movie" value="'+f_uri+'"> ');
    document.write('<param name="quality" value="high"> ');
    document.write('<param name="scale" value="noscale"> ');
    document.write('<param name="salign" value="lt"> ');
    document.write('<param name="bgcolor" value="#ffffff"> ');
    document.write('<param name="allowScriptAccess" value="sameDomain"> ');
    document.write('<param name="menu" value="false"> ');
    document.write('<param name="wmode" value="transparent"> ');
    document.write('<embed src="'+f_uri+'" width="'+f_width+'" height="'+f_height+'" quality="high" wmode="transparent" scale="noscale" align="left" bgcolor="#ffffff" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> ');
    document.write('</object> ');
}

// 
function right_ruler() {
    var width = 460;
    var height = 260;
    var left = (screen.width-width)/2; //
    var top = (screen.height-height)/2; //
    popWin = window.open('06utility/popup_right_ruler.jsp', '', 'width='+width+', height='+height+', left='+left+', top='+top+', scrollbars=no, toolbars=no, resizable=no');
    popWin.focus();
}

// 
function resizeHeight(fr) {
fr = typeof fr == 'string' ? document.getElementById(fr) : fr;
fr.setExpression('height',contentframe.document.body.scrollHeight);
}

function writeObjMovie(f_uri,f_width,f_height,lan){
	document.write("<object name='MediaPlayer1' id='MediaPlayer1' width='"+f_width+"' height='"+f_height+"' classid='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=6,4,7,1112' standby='loading windows media player components...' type='application/x-oleobject'>");
	document.write("<param name='filename' value='"+f_uri+"'>");
//	document.write("<param name='filename' value='http://media.hyosung.com/media/"+f_uri+"'>");
	document.write("<param name='autostart'   value='true' >");
	document.write("<param name='showcontrols' value='0'>");
	document.write("<param name='showstatusbar' value='1'>");
	document.write("<param name='enablecontextmenu' value='false'>");
	document.write("<param name='transparentatstart' value='true'>");
	document.write("<param name='transparentonstop' value='true'>");
	document.write("<EMBED TYPE='application/x-mplayer2' SRC='"+f_uri+"' NAME='mplay1' WIDTH='"+f_width+"' HEIGHT='"+f_height+"'></EMBED>");
//	document.write("<EMBED TYPE='application/x-mplayer2' SRC='http://media.hyosung.com/media/"+f_uri+"' NAME='mplay1' WIDTH='"+f_width+"' HEIGHT='"+f_height+"'></EMBED>");
	document.write("</object>");
}



// quick
function getPosition(){
	var start, end, scale, term;
	start = parseInt (document.getElementById('layout_banner').style.top, 10);
	end = document.documentElement.scrollTop + 201;
	term = 5;

	if ( start != end ) {
	scale = Math.ceil( Math.abs( end - start ) / 20 );
		if ( end < start )	scale = -scale;
		document.getElementById('layout_banner').style.top = parseInt (document.getElementById('layout_banner').style.top, 10)+ scale + "px";
		term = 1;
	}
	setTimeout ("getPosition()", term);
}
function moveBanner() {
	document.getElementById('layout_banner').style.top = document.documentElement.scrollTop + 100 + "px"; //
	getPosition();00
	return true;
}


function mMap(mapXY){
	window.open('http://www.chinhung.co.kr/kor/01company/pop_map_rubens.jsp?mapXY='+mapXY,'therubensMap','width=570, height=530, top=150,left=150,scrollbars=0');
}







