// top menu action
var currentMenu;	// current shown menu (mouse over)
var focusMenu;	// current page menu
var menu = new Array();	// each menu array

// Samsung top menu
function initNavigation(seq) {
	var menuseq = 0;
	nav = document.getElementById("topmenu");
	menuEl = nav.getElementsByTagName("li");

	for(i = 0; i < menuEl.length; i++) {
		if (menuEl.item(i).getElementsByTagName("li").length > 0) {
			menu[i] = menuEl.item(i);
			menu[i].onmouseover = function navigationOver() {
//				hideSubmenu();
				currentMenu = this;
//				showSubmenu();
			}
			menu[i].onmouseout = function navigationOut() {
				this.isMenuOver = false;
//				setTimeout("hideSubmenu()", 500);
			}
	
			menu[i].submenu = menu[i].getElementsByTagName("ul").item(0);
			if (menu[i].submenu) {
				menu[i].submenu.menu = menu[i];
				menu[i].submenu.onmouseover = subOver;
				menu[i].submenu.getElementsByTagName("li").item(0).className = "first";
			}
			
			menu[i].menuimg = menu[i].getElementsByTagName("img").item(0);
			menu[i].menuimg.style.position = "relative";
			menu[i].menuimg.style.zIndex = menuEl.length - i;
			menu[i].menuimg.menunum = menuEl.length;

			menuseq++;
			if (menuseq == seq) {
				focusMenu = menu[i]
			}
		}
	}
	initFocus();
}
function initFocus() {		// current page menu focusing
	if (focusMenu) {
		currentMenu = focusMenu;
	} else {
		currentMenu = null;
	}
	showSubmenu();
}
function showSubmenu() {
	if (currentMenu && !currentMenu.isMenuOver) {
		menuimg = currentMenu.getElementsByTagName("img").item(0);
		menuimg.style.zIndex = parseInt(menuimg.style.zIndex) + menuimg.menunum;
		menuimg.src = menuimg.src.replace(".gif", "_on.gif");

		if (currentMenu.submenu) {
			currentMenu.submenu.style.display = "block";
		}
		currentMenu.isMenuOver = true;

		if (focusMenu && currentMenu != focusMenu) {
			focusMenu.submenu.style.display = "none";
		}
	}
}
function hideSubmenu() {
	if (currentMenu && !currentMenu.isMenuOver) {
		menuimg = currentMenu.getElementsByTagName("img").item(0);
		menuimg.style.zIndex = parseInt(menuimg.style.zIndex) - menuimg.menunum;
		menuimg.src = menuimg.src.replace("_on.gif", ".gif");

		if (currentMenu.submenu) {
			currentMenu.submenu.style.display = "none";
		}
		currentMenu.isMenuOver = false;

		if (focusMenu && currentMenu != focusMenu) {
			focusMenu.submenu.style.display = "block";
		}
		initFocus();
	}
}
function subOver() {
	this.menu.isMenuOver = false;
}
// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}


//»õÃ¢ ¶ç¿ì±â
function win(mypage,myname,w,h,scroll)
{
	var win= null;
	
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
		'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win= window.open(mypage,myname,settings);
	win.focus();
}

  
  
//  ÅØ½ºÆ® ÇÊµå µðÆúÆ® ¸Þ¼¼Áö »ç¶óÁö°Ô
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
        thefield.value = ""
} 



// ÅÜ - News Left
function History_View(name,line){
	for (var i = 1; i <= line; i++) {
		var History_ViewDiv="History_"+i;
		console = document.getElementById(History_ViewDiv);
		console.style.display='none'
	}
	History_ViewDiv="History_"+name;
	console = document.getElementById(History_ViewDiv);
	console.style.display='block';
}
// ÅÜ - News Left
function Tab_View(name,line){
	for (var i = 1; i <= line; i++) {
		var Tab_ViewDiv="Tab_ViewDiv_"+i;
		console = document.getElementById(Tab_ViewDiv);
		console.style.display='none'
	}
	Tab_ViewDiv="Tab_ViewDiv_"+name;
	console = document.getElementById(Tab_ViewDiv);
	console.style.display='block';
}
// ÅÜ - »ï¼ºÅ×±×
function Samsung_Tag(name,line){
	for (var i = 1; i <= line; i++) {
		var Tag_Div="Tag_Div_"+i;
		console = document.getElementById(Tag_Div);
		console.style.display='none'
	}
	Tag_Div="Tag_Div_"+name;
	console = document.getElementById(Tag_Div);
	console.style.display='block';
}
// ÅÜ - »ï¼ºTV ¸ÞÀÎ
function Samsung_TV(name,line){
	for (var i = 1; i <= line; i++) {
		var TV_Div="TV_Div_"+i;
		console = document.getElementById(TV_Div);
		console.style.display='none'
	}
	TV_Div="TV_Div_"+name;
	console = document.getElementById(TV_Div);
	console.style.display='block';
}
// ÅÜ - °ü°è»ç ¸ÞÀÎ
function Partner_Over(name,line){
	for (var i = 1; i <= line; i++) {
		var Partner_Div="Partner_Div_"+i;
		console = document.getElementById(Partner_Div);
		console.style.display='none'
	}
	Partner_Div="Partner_Div_"+name;
	console = document.getElementById(Partner_Div);
	console.style.display='block';
}


// ¸®½ºÆ® °Ë»ö ·¹ÀÌ¾î 
function Calendar_show() {
	document.getElementById('calendar').style.visibility="visible";
	} 
function Calendar_hide() {
	document.getElementById('calendar').style.visibility="hidden";
	}
	
function Partner_show() {
	document.getElementById('partner').style.visibility="visible";
} 
function Partner_hide() {
	document.getElementById('partner').style.visibility="hidden";
}



// »ï¼º¼Ò½Ä  ¸ÞÀÎ µ¿¿µ»ó Æ÷Åä ·Ñ¸µ 
var MainBanner_1_mouseEvent = 1;
// MainBanner_roll("divÅÂ±× id", ¹è³Ê1°³³ôÀÌ, µô·¹ÀÌ, 1Ä­ÀÌµ¿¼Óµµ, 0);
function MainBanner_roll(div_id, MainBanner_height, MainBanner_delay, MainBanner_speed, this_height){
	if(eval(div_id + "_mouseEvent")){
		var div_tag = document.getElementById(div_id);
		var a_tag, i;
			this_height++;
		if(this_height < MainBanner_height){
			div_tag.style.top = -this_height;
			setTimeout("MainBanner_roll('" + div_id + "', " + MainBanner_height + ", " + MainBanner_delay + ", " + MainBanner_speed + ", " + this_height + ");", MainBanner_speed);
			}
		else{
			a_tag = div_tag.getElementsByTagName("TABLE");
			div_tag.appendChild(a_tag[0]);
			div_tag.style.top = 0;
			setTimeout("MainBanner_roll('" + div_id + "', " + MainBanner_height + ", " + MainBanner_delay + ", " + MainBanner_speed + ", 0);", MainBanner_delay);
			}
		}
	else{
		setTimeout("MainBanner_roll('" + div_id + "', " + MainBanner_height + ", " + MainBanner_delay + ", " + MainBanner_speed + ", " + this_height + ");", MainBanner_speed);
		}
	return true;
}

// µ¿¿µ»ó 
function TVnews(id, name, url){
	var objmediaP = "<object id='"+id+"' name='"+name+"' width=207 height=116  classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>" ;
	objmediaP = objmediaP + "<param name='FileName' value='"+url+"'>";
	objmediaP = objmediaP + "<param name='AutoStart' value='false'>";
	objmediaP = objmediaP + "<param name='AnimationAtStart' value='0'>";
	objmediaP = objmediaP + "<param name='fullScreen' value='0'>";
	objmediaP = objmediaP + "<param name='DisplayMode' value='4'>";
	objmediaP = objmediaP + "<param name='Enabled' value='0'>";
	objmediaP = objmediaP + "<param name='ShowControls' value='0'>";
	objmediaP = objmediaP + "<param name='ShowAudioControls' value='0'>";
	objmediaP = objmediaP + "<param name='ShowDisplay' value='0'>";
	objmediaP = objmediaP + "<param name='ShowGotoBar' value='0'>";
	objmediaP = objmediaP + "<param name='ShowPositionControls' value='0'>";
	objmediaP = objmediaP + "<param name='ShowStatusBar' value='0'>";
	
	objmediaP = objmediaP + "<param name='Volume' value='0'> ";
	objmediaP = objmediaP + "<param name='ShowCaptioning' value='0'> ";
	objmediaP = objmediaP + "<param name='TransparentAtStart' value='1'> "  ;
	objmediaP = objmediaP + "<EMBED id='"+id+"' name='"+name+"' width=207 height=116 DisplaySize='4' AutoSize='0' invokeURLs='false' type='application/x-mpPlayerOnPlayBtn_div' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/' ShowControls='0' ShowDisplay='0' ShowStatusBar='0' autostart='0'></EMBED>";
	
	objmediaP = objmediaP + "</object>";
	document.write(objmediaP);
}

function Play() {
      document.MPlayer.Play();
}
function Play_1() {
      document.MPlayer_1.Play();
}

  
  // »ï¼º¼Ò½Ä  ¸ÞÀÎ µ¿¿µ»ó Æ÷Åä ·Ñ¸µ 
var Tag_1_mouseEvent = 1;
var Tag_2_mouseEvent = 2;
var Tag_3_mouseEvent = 3;
var Tag_4_mouseEvent = 4;
// MainBanner_roll("divÅÂ±× id", ¹è³Ê1°³³ôÀÌ, µô·¹ÀÌ, 1Ä­ÀÌµ¿¼Óµµ, 0);
function Tag_roll(div_id, Tag_height, Tag_delay, Tag_speed, this_height){
	if(eval(div_id + "_mouseEvent")){
		var div_tag = document.getElementById(div_id);
		var a_tag, i;
			this_height++;
		if(this_height < Tag_height){
			div_tag.style.top = -this_height;
			setTimeout("Tag_roll('" + div_id + "', " + Tag_height + ", " + Tag_delay + ", " + Tag_speed + ", " + this_height + ");", Tag_speed);
			}
		else{
			a_tag = div_tag.getElementsByTagName("TABLE");
			div_tag.appendChild(a_tag[0]);
			div_tag.style.top = 0;
			setTimeout("Tag_roll('" + div_id + "', " + Tag_height + ", " + Tag_delay + ", " + Tag_speed + ", 0);", Tag_delay);
			}
		}
	else{
		setTimeout("Tag_roll('" + div_id + "', " + Tag_height + ", " + Tag_delay + ", " + Tag_speed + ", " + this_height + ");", Tag_speed);
		}
	return true;
}

/**
 * ±â»ç¸ñ·ÏÆäÀÌÁö¿¡¼­ °Ë»öÃ¼Å©¸¦ ÇÏ±â À§ÇØ¼­ ¸¸µë
 *
 */
function checkSearchForm(){
	if(document.all.partner.style.visibility=="visible"){
		if(parseInt(myform.eyear.value) < parseInt(myform.syear.value) ) {
			alert("½ÃÀÛ³âÀÌ Á¾·á³âº¸´Ù Å¬ ¼ö ¾ø½À´Ï´Ù.");
			return false;
		} else if(parseInt(myform.eyear.value) == parseInt(myform.syear.value)) {
			if(parseInt(myform.emonth.value) < parseInt(myform.smonth.value)) {
				alert("½ÃÀÛ¿ùÀÌ Á¾·á¿ùº¸´Ù Å¬ ¼ö ¾ø½À´Ï´Ù.");
				return false;
			}
		} else {
		}
	} else {
		myform.companyid.value = "";
		myform.emonth.value = "";
		myform.smonth.value = "";
		myform.eyear.value = "";
		myform.syear.value = "";
	}
	return true;
}




// ÇÃ·¡½¬
function flash_wf(flash_name,flash_width,flash_height,wmode){
	document.write(" \
		<Object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+flash_width+"' HEIGHT='"+flash_height+"' id='"+flash_name+"' ALIGN=''> \
		<PARAM NAME=movie VALUE='"+flash_name+"'> \
		<PARAM NAME=quality VALUE=high> \
	");
	if(wmode == "1"){
		document.write("<PARAM NAME=wmode VALUE=transparent>");
	}
	document.write(" \
		<EMBED src='"+flash_name+"' quality=high  WIDTH='"+flash_width+"' HEIGHT='"+flash_height+"' NAME='"+flash_name+"' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> \
		</EMBED> \
		</OBJECT> \
	");
}
// about ÀÌ¹ÌÁö Ã¼ÀÎÁö
function MM_swapImage() {
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){
			document.MM_sr[j++]=x;
			if(!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
}
function MM_findObj(n, d) { //v4.0
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImgRestore() {
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}

function imgSize(which){
/*
    var width = eval("document.all."+which+".width");
    var height = eval("document.all."+which+".height");
    var temp = 0; 
    var max_width= 550;   // ÀÌ¹ÌÁöÀÇ ÃÖ´ë Å©±â     
    
    if ( width > max_width ) {  // ÀÌ¹ÌÁö°¡ 600º¸´Ù Å©´Ù¸é ³Êºñ¸¦ 600À¸·Î ¸Â¿ì°í ºñÀ²¿¡ ¸ÂÃç ¼¼·Î°ªÀ» º¯°æÇÑ´Ù.      
       height = height/(width / max_width);
       eval("document.all."+which+".width = max_width");     
       eval("document.all."+which+".height = height");
    }  
*/

	var width = eval('document.getElementById("'+which+'").width');
    var height = eval('document.getElementById("'+which+'").height');
    var temp = 0; 
    var max_width= 550;   // ÀÌ¹ÌÁöÀÇ ÃÖ´ë Å©±â     
    
    if ( width > max_width ) {  // ÀÌ¹ÌÁö°¡ 600º¸´Ù Å©´Ù¸é ³Êºñ¸¦ 600À¸·Î ¸Â¿ì°í ºñÀ²¿¡ ¸ÂÃç ¼¼·Î°ªÀ» º¯°æÇÑ´Ù.      
       height = height/(width / max_width);
       eval('document.getElementById("'+which+'").width = max_width');
       eval('document.getElementById("'+which+'").height = height');
    }  
	
}
// about ÇÁ¸°Æ®ÇÏ±â 
function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}


function encodeforFlash(str)
{
   var SAFECHARS = "0123456789" +
                 "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
                 "abcdefghijklmnopqrstuvwxyz" +
                 "-_.!~*'()";

   var HEX = "0123456789ABCDEF";

   var plaintext = str;
   var encoded = "";
   for (var i = 0; i < plaintext.length; i++ ) {
       var ch = plaintext.charAt(i);
       if (ch == " ") {
           encoded += "+";
       } else if (SAFECHARS.indexOf(ch) != -1) {
           encoded += ch;
       } else {
           var charCode = ch.charCodeAt(0);
           if (charCode > 255) {
               encoded += ch;
           } else {
               encoded += "%";
               encoded += HEX.charAt((charCode >> 4) & 0xF);
               encoded += HEX.charAt(charCode & 0xF);
           }
       }
   }
   return encoded;
}

function tagcopy(movurl){

   if(window.clipboardData) {
       window.clipboardData.setData('Text', "<embed src='"+movurl+"' width='281' Height='230' autoplay=true type=video/x-ms-asf-plugin></embed>");
	   alert("HTML ÅÂ±×°¡ º¹»ç µÇ¾ú½À´Ï´Ù.\nº¹»çÇÑ HTMLÀ» ºÙ¿©³Ö±â ÇÏ¼¼¿ä.");
   } else {
       url = encodeforFlash(movurl);
       var flashcopier = 'flashcopier';
       if(!document.getElementById(flashcopier))
       {
           var divholder = document.createElement('div');
           divholder.id = flashcopier;
           document.body.appendChild(divholder);
       }
       document.getElementById(flashcopier).innerHTML = '';
       var divinfo = '<embed src="/images/_clipboard.swf" FlashVars="clipboard=<embed src='+url+' width=281 Height=230 autoplay=true type=video/x-ms-asf-plugin></embed>" width="1" height="1"type="application/x-shockwave-flash"></embed>';
       document.getElementById(flashcopier).innerHTML = divinfo;
       window.alert("HTML ÅÂ±×°¡ º¹»ç µÇ¾ú½À´Ï´Ù.\nº¹»çÇÑ HTMLÀ» ºÙ¿©³Ö±â ÇÏ¼¼¿ä.");
   }
   return;
}

function taglinkcopy(movurl){
	
   if(window.clipboardData) {
       window.clipboardData.setData('Text', movurl);
	   alert("µ¿¿µ»ó ¸µÅ©ÁÖ¼Ò°¡ º¹»ç µÇ¾ú½À´Ï´Ù.\nº¹»çÇÑ ¸µÅ©ÁÖ¼Ò¸¦ ºÙ¿©³Ö±â ÇÏ¼¼¿ä.");
   } else {
       url = encodeforFlash(movurl);
       var flashcopier = 'flashcopier';
       if(!document.getElementById(flashcopier))
       {
           var divholder = document.createElement('div');
           divholder.id = flashcopier;
           document.body.appendChild(divholder);
       }
       document.getElementById(flashcopier).innerHTML = '';
       var divinfo = '<embed src="/images/_clipboard.swf" FlashVars="clipboard='+url+'" width="1" height="1"type="application/x-shockwave-flash"></embed>';
       document.getElementById(flashcopier).innerHTML = divinfo;
       alert("µ¿¿µ»ó ¸µÅ©ÁÖ¼Ò°¡ º¹»ç µÇ¾ú½À´Ï´Ù.\nº¹»çÇÑ ¸µÅ©ÁÖ¼Ò¸¦ ºÙ¿©³Ö±â ÇÏ¼¼¿ä.");
   }
   return;
}


function go_chair_new(form) {
 var myindex=form.aboutChairNew.selectedIndex 
	  if (myindex != null) {
			document.location.href = form.aboutChairNew.options[myindex].value;
    } 
}


function SamSungActiveX(obj,div){
	// generate html code
	// for ie obejct
	var html = '<object ';
	if (!obj.id && !obj.name){
		var r = Math.round(Math.random()*100);
		html += 'id="SamSungActiveXObject'+r+'" name="SamSungActiveXObject'+r+'" ';
	} else {
		if (obj.id) html += 'id="'+obj.id+'" ';
		else html += 'id="'+obj.name+'" ';
		if (obj.name) html += 'name="'+obj.name+'" ';
		else html += 'name="'+obj.id+'" ';
	}
	if (obj.type) html += 'type="'+obj.type+'" ';
	if (obj.classid) html += 'classid="'+obj.classid+'" ';
	if (obj.width) html += 'width="'+obj.width+'" ';
	if (obj.height) html += 'height="'+obj.height+'" ';
	if (obj.codebase) html += 'codebase="'+obj.codebase+'" ';
	html += '>\n';
	// append params
	for (var i in obj.param){
		html += '<param name="'+obj.param[i][0]+'" value="'+obj.param[i][1]+'"/>\n';
	}

	// for ns embed
	html += '<embed ';
	if (!obj.id && !obj.name){
		var r = Math.round(Math.random()*100);
		html += 'id="SamSungActiveXObject'+r+'" name="SamSungActiveXObject'+r+'" ';
	} else {
		if (obj.id) html += 'id="'+obj.id+'" ';
		if (obj.name) html += 'name="'+obj.name+'" ';
	}
	if (obj.type) html += 'type="'+obj.type+'" ';
	if (obj.width) html += 'width="'+obj.width+'" ';
	if (obj.height) html += 'height="'+obj.height+'" ';
	// append params
	for (var i in obj.param){
		if (obj.param[i]){
			if (obj.param[i][0]=='movie' || obj.param[i][0]=='src'){
				var _src = obj.param[i][1];
			}
			if (obj.param[i][0].toLowerCase()=='flashvars'){
				if (_src){
					var tmpArr = html.split('src="'+_src+'"');
					html = tmpArr[0]+' src="'+_src+'?'+obj.param[i][1]+'" '+tmpArr[1];
				} else {
					obj.param[obj.param.length] = obj.param[i];
				}
			} else {
				html += obj.param[i][0]+'="'+obj.param[i][1]+'" ';
			}
		}
	}
	html += '/>\n';
	html += '</object>';

	var isIE = (document.all)?true:false;
	if (isIE){
		document.getElementById(div).innerHTML = html;
	} else if (obj.type=='application/x-shockwave-flash' || obj.classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'){
		// ie¿ÜÀÇ ºê¶ó¿ìÀú¿¡¼­ activex°¡ flashÀÎ °æ¿ì¸¸ ³ëÃâ
		document.getElementById(div).innerHTML = html;
	}
}

// ÇÑÆäÀÌÁö¿¡ ÇÑÁ¾·ùÀÇ activeX°¡ º¹¼ö°³ »ðÀÔµÇ´Â °æ¿ì ÇÏ´Ü°ú °°ÀÌ functionÀ» ¸¸µé¾î¼­ »ç¿ë
function SamSungFlash(src,width,height,div,id){
	var obj = new Object();
	obj.type = 'application/x-shockwave-flash';
	obj.classid = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
	obj.codebase = 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0';
	obj.wmode = 'transparent';
	obj.allowScriptAccess = 'always';
	obj.id = id;
	obj.width = width;
	obj.height = height;
	

	var param = [
		['movie',src],
		['src',src],
		['quality','high'],
		['wmode','transparent'],
		['allowScriptAccess','always'],
		['bgcolor','#FFFFFF'],
		['pluginspage','http://www.macromedia.com/go/getflashplayer'],
	];
	obj.param = param;
	SamSungActiveX(obj,div);
}
function SamSungActiveX(obj,div){
	// generate html code
	// for ie obejct
	var html = '<object ';
	if (!obj.id && !obj.name){
		var r = Math.round(Math.random()*100);
		html += 'id="SamSungActiveXObject'+r+'" name="SamSungActiveXObject'+r+'" ';
	} else {
		if (obj.id) html += 'id="'+obj.id+'" ';
		else html += 'id="'+obj.name+'" ';
		if (obj.name) html += 'name="'+obj.name+'" ';
		else html += 'name="'+obj.id+'" ';
	}
	if (obj.type) html += 'type="'+obj.type+'" ';
	if (obj.classid) html += 'classid="'+obj.classid+'" ';
	if (obj.width) html += 'width="'+obj.width+'" ';
	if (obj.height) html += 'height="'+obj.height+'" ';
	if (obj.codebase) html += 'codebase="'+obj.codebase+'" ';
	html += '>\n';
	// append params
	for (var i in obj.param){
		html += '<param name="'+obj.param[i][0]+'" value="'+obj.param[i][1]+'"/>\n';
	}

	// for ns embed
	html += '<embed ';
	if (!obj.id && !obj.name){
		var r = Math.round(Math.random()*100);
		html += 'id="SamSungActiveXObject'+r+'" name="SamSungActiveXObject'+r+'" ';
	} else {
		if (obj.id) html += 'id="'+obj.id+'" ';
		if (obj.name) html += 'name="'+obj.name+'" ';
	}
	if (obj.type) html += 'type="'+obj.type+'" ';
	if (obj.width) html += 'width="'+obj.width+'" ';
	if (obj.height) html += 'height="'+obj.height+'" ';
	// append params
	for (var i in obj.param){
		if (obj.param[i]){
			if (obj.param[i][0]=='movie' || obj.param[i][0]=='src'){
				var _src = obj.param[i][1];
			}
			if (obj.param[i][0].toLowerCase()=='flashvars'){
				if (_src){
					var tmpArr = html.split('src="'+_src+'"');
					html = tmpArr[0]+' src="'+_src+'?'+obj.param[i][1]+'" '+tmpArr[1];
				} else {
					obj.param[obj.param.length] = obj.param[i];
				}
			} else {
				html += obj.param[i][0]+'="'+obj.param[i][1]+'" ';
			}
		}
	}
	html += '/>\n';
	html += '</object>';

	var isIE = (document.all)?true:false;
	if (isIE){
		document.getElementById(div).innerHTML = html;
	} else if (obj.type=='application/x-shockwave-flash' || obj.classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'){
		// ie¿ÜÀÇ ºê¶ó¿ìÀú¿¡¼­ activex°¡ flashÀÎ °æ¿ì¸¸ ³ëÃâ
		document.getElementById(div).innerHTML = html;
	}
}

// ÇÑÆäÀÌÁö¿¡ ÇÑÁ¾·ùÀÇ activeX°¡ º¹¼ö°³ »ðÀÔµÇ´Â °æ¿ì ÇÏ´Ü°ú °°ÀÌ functionÀ» ¸¸µé¾î¼­ »ç¿ë
function SamSungFlashNone(src,width,height,div,id){
	var obj = new Object();
	obj.type = 'application/x-shockwave-flash';
	obj.classid = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
	obj.codebase = 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0';
	obj.allowScriptAccess = 'always';
	obj.id = id;
	obj.width = width;
	obj.height = height;
	

	var param = [
		['movie',src],
		['src',src],
		['quality','high'],
		['allowScriptAccess','always'],
		['pluginspage','http://www.macromedia.com/go/getflashplayer'],
	];
	obj.param = param;
	SamSungActiveX(obj,div);
}