// =====================================================================================================
// embed swf
// =====================================================================================================

function jfN_swf(p_url, p_width, p_height, p_vars, p_id, p_mode, p_access, p_quality, p_color) {
	var start_idx = p_url.lastIndexOf("/");
	var end_idx = p_url.lastIndexOf(".");
	var start_idx = (start_idx == -1) ? 0 : start_idx+1;

	var id_str = p_id ? p_id : p_url.substring(start_idx, end_idx);
	var mode_str = p_mode ? p_mode : "window";							// window | opaque | transparent
	var access_str = p_access ? p_access : "always";					// always | never | samedomain
	var quality_str = p_quality ? p_quality : "high";							// low | medium | high | best
	var color_str = p_color ? p_color : "#ffffff";

	var jsTag_str = 
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/eng/pub/shockwave/eng/cabs/flash/swflash.cab#version=9,0,0,0' width='"+p_width+"' height='"+p_height+"' id='"+id_str+"' align='middle'>"+ 
	"<param name='allowScriptAccess' value='always' />"+ 
	"<param name='allowFullScreen' value='true' />"+ 
	"<param name='movie' value='"+p_url+"' />"+ 
	"<param name='FlashVars' value='"+p_vars+"' />"+ 
	"<param name='wmode' value='"+mode_str+"' />"+ 
	"<param name='menu' value='false' />"+
	"<param name='scaleMode' value='noScale' />"+
	"<param name='showMenu' value='false' />"+
	"<param name='align' value='CT' />"+ 
	"<param name='quality' value='"+quality_str+"' />"+ 
	"<param name='bgcolor' value='"+color_str+"' />"+ 
	"<embed src='"+p_url+"' FlashVars='"+p_vars+"' wmode='"+mode_str+"' menu='false' quality='high' bgcolor='"+color_str+"' width='"+p_width+"' height='"+p_height+"' name='"+id_str+"' align='middle' allowFullScreen='true' allowScriptAccess='"+access_str+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/eng/go/getflashplayer' />"+ 
	"</object>"; 

	document.write(jsTag_str); 
}

function jfN_quickLink(p_idx) {
	if(p_idx == "1") window.open('/eng/cyberpr/story.asp','story','width=910,height=580');					// Æ÷½ºÄÚÆÄ¿ö ½ºÅä¸®
	if(p_idx == "2") window.open('/eng/cyberpr/tour.asp','tour','width=850,height=550');					// »çÀÌ¹ö¹ßÀü¼Ò Åõ¾î
	if(p_idx == "3") window.open('/ebook/ecatalog.asp?Dir=2','ebook','width=1024,height=781');	// Æ÷½ºÄÚÆÄ¿ö E-ºê·Î¼Å
	if(p_idx == "4") window.open('http://poscofuelcell.com/english/');													// Æ÷½ºÄÚ Ç»¿¤¼¿
	if(p_idx == "5") window.location.href = "/contribution/shinsuk.asp";										// ½Å¼®Ã¼À°°ø¿ø
}