// Flash RIA TEST//document.write('<div style="position:absolute;left:0px;top:0px;z-index:3000;" />');//document.write('<input type="button" value="Open Flash RIA." onClick="openFlashRIA(\'xmlPath=&movieNum=1\', \'popFlash\');" />');//document.write('<input type="button" value="Close Flash RIA." onClick="closeFlashRIA();" />');//document.write('</div>');/*** browser °´Ã¼* browser ¹öÀü µîÀ» Ã¼Å©ÇÑ´Ù.*/var browser = {	isIE : (navigator.userAgent.toUpperCase().indexOf('MSIE')>-1),	isIE6 : (navigator.userAgent.toUpperCase().indexOf('MSIE 6')>-1&&navigator.userAgent.toUpperCase().indexOf('MSIE 7')==-1&&navigator.userAgent.toUpperCase().indexOf('MSIE 8')==-1),	isIE7 : (navigator.userAgent.toUpperCase().indexOf('MSIE 7')>-1&&navigator.userAgent.toUpperCase().indexOf('MSIE 8')==-1),	isIE8 : (navigator.userAgent.toUpperCase().indexOf('MSIE 8')>-1),	isFF : (navigator.userAgent.toUpperCase().indexOf('FIREFOX')>-1),	isSF : (navigator.userAgent.toUpperCase().indexOf('SAFARI')>-1&&navigator.userAgent.toUpperCase().indexOf('CHROME')==-1),	isOP : (navigator.userAgent.toUpperCase().indexOf('OPERA')>-1),	isCR : (navigator.userAgent.toUpperCase().indexOf('CHROME')>-1),	getW : function() {		return document.documentElement.clientWidth;	},	getH : function() {		return document.documentElement.clientHeight;	}};/*** flashRIA °´Ã¼* Flash RIA¸¦ ÀüÃ¼ Ã¢ ¸ðµå·Î ¿­°í ´Ý´Â µîÀÇ ±â´ÉÀ» ÇÑ´Ù.*/var flashRIA = {	instanceName : "flashRIA",	vars : {		zIndex : 2000,		contentsFrameCoverZIndex : 1999,		contentsFrameCoverOpacity : 1,		isOpenMode : false	},	resetRiaSize : function() {		var riaLayoutArea = document.getElementById(this.ids.riaLayoutArea);		if (riaLayoutArea) {			var riaLayoutAreaW = (document.documentElement.clientWidth + document.documentElement.scrollLeft) + "px";			riaLayoutArea.style.width = riaLayoutAreaW;			if ( browser.isIE6) {				var contentsFrameCover = document.getElementById(this.ids.contentsFrameCover);				if (contentsFrameCover) {					contentsFrameCover.style.width = riaLayoutAreaW;				}			}			setTimeout(this.instanceName+"._resetRiaSize()", 1);		}	},	_resetRiaSize : function() {		var riaLayoutArea = document.getElementById(this.ids.riaLayoutArea);		if (riaLayoutArea) {			var riaLayoutAreaW = this.getRiaWidth();			var riaLayoutAreaH = this.getRiaHeight();			riaLayoutArea.style.width = riaLayoutAreaW;			riaLayoutArea.style.height = riaLayoutAreaH;			if ( browser.isIE6) {				var contentsFrameCover = document.getElementById(this.ids.contentsFrameCover);				if (contentsFrameCover) {					contentsFrameCover.style.width = riaLayoutAreaW;					contentsFrameCover.style.height = riaLayoutAreaH;				}			}		}	},	getRiaWidth : function() {		var browserWidth = document.documentElement.clientWidth;		var documentWidth = document.documentElement.scrollWidth;		var windowWidth = (documentWidth>browserWidth) ? documentWidth : browserWidth;		return windowWidth + "px";	},	getRiaHeight : function() {		var browserHeight = document.documentElement.clientHeight;		var documentHeight = document.documentElement.scrollHeight;		var windowHeight = (documentHeight>browserHeight) ? documentHeight : browserHeight;		return windowHeight + "px";	},	getContentsCoverHTML : function() {		var s = '';		s += '<iframe';		s += ' name="'+this.ids.contentsFrameCover+'"';		s += ' src="about:blank"';		s += ' style="';			s += ' position:absolute;';			s += ' z-index:999;';			s += ' left:0px;';			s += ' top:0px;';			s += ' width:'+this.getRiaWidth()+';';			s += ' height:'+this.getRiaHeight()+';';			s += ' filter:alpha(opacity='+this.vars.contentsFrameCoverOpacity+');';		s += ' "';		s += ' frameborder="0"';		s += ' scrolling="no"';		s += ' marginheight="0"';		s += ' marginwidth="0"';		s += '></iframe>';		return s;	},	getRiaHTML : function(_riaSrc, _id) {		//alert(_riaSrc);		if (_id!=undefined&&_id!="") {			this.ids.ria = _id;		}		var s = '';		if ( browser.isIE6) {			s += this.getContentsCoverHTML();		}		s += '<div id="'+this.ids.riaLayoutArea+'"';		s += ' style="';		s += ' position:absolute;';		s += ' left:0px;';		s += ' top:0px;';		s += ' width:'+this.getRiaWidth()+';';		s += ' height:'+this.getRiaHeight()+';';		s += ' z-index:'+this.vars.zIndex+';';		s += ' display:block;wmode:window;"';		s += '>\n';		s += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="'+this.ids.ria+'" align="middle">\n';		s += '<param name="allowScriptAccess" value="always" />\n';		s += '<param name="movie" value="'+_riaSrc+'" />\n';		s += '<param name="wmode" value="transparent" />\n';		s += '<param name="swLiveConnect" value="true" />\n';		s += '<param name="menu" value="false" />\n';		s += '<param name="quality" value="high" />\n';		s += '<param name="bgcolor" value="#FFFFFF" />\n';		s += '<embed src="'+_riaSrc+'" wmode="transparent" menu="false" swLiveConnect="true" quality="high" bgcolor="#FFFFFF" width="100%" height="100%" name="'+this.ids.ria+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />\n';		s += '</object>\n';		s += '</div>\n';		return s;	},	writeRiaHTML : function(_s) {		var obj = document.getElementById(this.ids.riaArea);		if (obj) obj.innerHTML = _s;		obj = null;	},	onResize : function(_event) {		if ( this.vars.isOpenMode) {			try {				this.resetRiaSize();			} catch (e) { }		}	},	open : function(_url, _id) {		window.scrollTo(0,0);		this.writeRiaHTML(this.getRiaHTML(_url, _id));		this.vars.isOpenMode = true;	},	close : function() {		this.vars.isOpenMode = false;		this.writeRiaHTML("");	},	writeRiaArea : function() {		document.write('<span id="'+this.ids.riaArea+'"></span>');	},	initialize : function() {		this.ids = {			  ria : this.instanceName + "-Flash"			, riaArea : this.instanceName + "-Area"			, riaLayoutArea : this.instanceName + "-LayoutArea"			, contentsFrameCover : this.instanceName + "-ContentsFrameCover"		};		this.writeRiaArea();	}};flashRIA.initialize();/*** Flash RIA ½ÇÇàÇÑ´Ù.* @param _parameter : FlashRIAÀÇ Path µÚ¿¡ Ãß°¡µÉ ÆÄ¶ó¹ÌÅÍ* @param _id : ÀÓÀÇ·Î FlashRIAÀÇ ID¸¦ ÁöÁ¤ÇÏ°íÀÚ ÇÒ ¶§ »ç¿ëÇÑ´Ù.* @return void*/function openFlashRIA(_parameter, _id){	var baseSwfPath = "/flash/com_VRestimate.swf";	var fullSwfPath = (_parameter==undefined||_parameter=="") ? baseSwfPath : baseSwfPath + "?" + _parameter;	flashRIA.open(fullSwfPath, _id);}//### ¿¡½º¿ø ÇÁ¸®ºäfunction openFlash_preview(_parameter, _id){	var baseSwfPath = "/eng/flash/com_preview.swf";	var fullSwfPath = (_parameter==undefined||_parameter=="") ? baseSwfPath : baseSwfPath + "?" + _parameter;	flashRIA.open(fullSwfPath, _id);}/*** Flash RIA¸¦ Á¾·áÇÑ´Ù.* @return void*/function closeFlashRIA(){	flashRIA.close();}/*** window.onresize event¿¡ ÇÃ·¡½Ã RIAÀÇ resize¸¦ µî·ÏÇÑ´Ù.* ÀÍ¸í Function* @return void*/(	function (_eventType, _function) {		_eventType = _eventType.toLowerCase();   		if (window.attachEvent) {			window.attachEvent("on"+_eventType, _function);		} else if(window.addEventListener) {			window.addEventListener(_eventType, _function, true);		} else {			window["on"+_eventType] = _function;		}	}) ("resize", function(_event){flashRIA.onResize(_event);});/********************************************************************************************************	ÆË¾÷********************************************************************************************************/function pop(url, width, height, scroll) {	//var positionX = (screen.width-490)/2;	window.open(url,"","left=30,top=0,width=" +width+ ",height=" +height+ ",toolbar=no,scrollbars="+scroll+ "" );}/********************************************************************************************************	ÀÌº¥Æ® ¹× ÀÌ¹ÌÁö °ü·Ã ½ºÆ®¸³Æ®********************************************************************************************************///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 ''; }//ÀÌ¹ÌÁö ¿À¹ö/¾Æ¿ôfunction setOver(thisImg, sMode) {	var sPath = thisImg.src;	var sCommonPath = sPath.substring(0, sPath.lastIndexOf("_") + 1);	var sType = sPath.substring(sPath.lastIndexOf("."), sPath.length);	thisImg.src = sCommonPath + sMode + sType;}// ¼¼ÄÞ¼­ºñ½º ¸»Ç³¼± SHOW/HIDEfunction showBalloon(num) {	document.getElementById("des_feature" + num).style.display="block";}function hideBalloon(num) {	document.getElementById("des_feature" + num).style.display="none";}/********************************************************************************************************	ÇÃ·¡½¬********************************************************************************************************/function Flash_display(sFName, nWidth, nHeight, flashvars, sVName, BGColor, Wmode ){		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https:// fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ nWidth + '" height="'+ nHeight + '" id="'+ sVName +'" align="middle">');	document.write('<param name="allowScriptAccess" value="sameDomain" />');	document.write('<param name="quality" value="high" />');	document.write('<param name="movie" value="'+ sFName + '" />');	document.write('<param name="flashvars" value="' + flashvars + '">');	document.write('<param name="bgcolor" value="' + BGColor + '" />');	document.write('<param name="wmode" value="' + Wmode + '" />');	document.write('<embed src="'+ sFName + '" quality="high" bgcolor="#ffffff" width="'+ nWidth + '" height="'+ nHeight + '" name="'+ sVName +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https:// www.macromedia.com/go/getflashplayer" /> ');	document.write('</object>');	}//<![CDATA[//###############################################//		ÇÃ·¡½Ã »ðÀÔ//###############################################function FNflash_insert(Tobj,flashvars){	var tot_url =document.URL;		var flashPath="";		if(tot_url.substr(0,4)=="http") flashPath="/eng/flash/";//¼­¹ö»ó¿¡¼­ÀÇ ÇÃ·¡½Ã °æ·Î	else flashPath="./";//·ÎÄÃÅ×½ºÆ®»ó ÇÃ·¡½Ã°æ·Î		var Fswf="";			var Fwidth="";		var Fheight="";						var Fid="";			var Fwmode="";	var Falign="";	var Fbgcolor="";	var Fquality="";		var FallowScriptAccess="";	var seperate1=",";	var seperate2="=";	var ARobj=Tobj.split(seperate1);	for(var i=0; i<=ARobj.length-1; i++){		var prop=this["Ftag"+i]=ARobj[i].split(seperate2);		if(prop[0].search("swf") !=-1) Fswf=prop[1];		if(prop[0].search("width") !=-1) Fwidth=prop[1];		if(prop[0].search("height") !=-1) Fheight=prop[1];		if(prop[0].search("flashID") !=-1) Fid=prop[1];		if(prop[0].search("wmode") !=-1) Fwmode=prop[1];		if(prop[0].search("align") !=-1) Falign=prop[1];		if(prop[0].search("bgcolor") !=-1) Fbgcolor=prop[1];		if(prop[0].search("quality") !=-1) Fquality=prop[1];		if(prop[0].search("allowScriptAccess") !=-1) FallowScriptAccess=prop[1];	}  	//if(Fswf == "") alert("Flash_insert Err: ÆÄÀÏ¸í");	Fswf=flashPath+Fswf;	if(Fwidth == "") Fwidth="100%";	if(Fheight == "") Fheight="100%";	if(Fid == ""){var Tid=Fswf.split("."); Fid=Tid[0];}	if(Fwmode == "") Fwmode="";	if(Falign == "") Falign="LT";	if(Fbgcolor == "") Fbgcolor="#FFFFFF";	if(Fquality=="") Fquality="best";	if(FallowScriptAccess=="") FallowScriptAccess="always";		var Tvars=""	if(flashvars == "") Tvars="Rpath="+flashPath+"&";	else Tvars=flashvars+"&Rpath="+flashPath+"&";	var str=new String();		if (navigator.appName.indexOf("Microsoft") != -1){		str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';		str+='codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';		//str+='codeBase="https://sem.samsung.co.kr/swflash.cab#version=9,0,0,0"';		str+='width="'+Fwidth+'" height="'+Fheight+'"id="'+Fid+'">';				str+='<param name="movie" value="'+Fswf+'"/>';				str+='<param name="flashvars" value="'+Tvars+'">';				str+='<param name="quality" value="'+Fquality+'"/>';				str+='<param name="bgcolor" value="'+Fbgcolor+'"/>';				str+='<param name="wmode" value="'+Fwmode+'"/>';				str+='<param name="allowScriptAccess" value="always"/>';				str+='<param name="allowNetworking" value="all"/>';		str+= '</object>';	}else{			str+='<embed src="'+Fswf+'" ';				str+='quality="'+Fquality+'" ';				str+='bgcolor="'+Fbgcolor+'" ';				str+='width="'+Fwidth+'" ';				str+='height="'+Fheight+'" ';				str+='name="'+Fid+'" ';				str+='wmode="'+Fwmode+'" ';				str+='allowScriptAccess="always"';				str+='allowNetworking="all"';				str+='flashvars="'+Tvars+'"';				str+='type="application/x-shockwave-flash" ';				str+='pluginspage="https://www.macromedia.com/go/getflashplayer">';		str+='</embed>';		}	document.write(str);}//###############################################//		ÇÃ·¡½Ã ·ÎÄÉÀÌ¼Ç »ðÀÔ//###############################################function FNgetURL(){		//·Î±×ÀÎ °ü·Ã (1: À¥ 2:°è¾à, 0:·Î±×¾Æ¿ô);	loginFlag="2";	var tot_url =document.URL;		var get_host=tot_url.split("?");	var url=get_host[0];	var query=get_host[1];	var glen = get_host.length;	Depth1=0;Depth2=0;Depth3=0;		//@@@@@@@@@@@@@@@@@@@@@@@@ 1 COMPANY	if(url.search("/company/") !=-1){			Depth1=1;		if(url.search("/overview") !=-1){//			Depth2=1;							}else if(url.search("/history") !=-1){//			Depth2=2;					}else if(url.search("/news_") !=-1){//			Depth2=3;				}			}	//@@@@@@@@@@@@@@@@@@@@@@@@ 2 »ç¾÷¿µ¿ª	else if(url.search("/ir/") !=-1){			Depth1=2;				if(url.search("/irTotal_list") !=-1){//			Depth2=1;					}else if(url.search("/irTotal_detail") != -1){					Depth2 = 1;				}else if(url.search("/irNews_list") != -1){					Depth2 = 1;		}else if(url.search("/irPub_list") != -1){					Depth2 = 1;		}else if(url.search("/irEvent_list") !=-1){//			Depth2=2;		}else if(url.search("/irEvent_detail") != -1){			Depth2 = 2;		}else if(url.search("/stocks") !=-1){//			Depth2=3;		}else if(url.search("/financial") !=-1){//			Depth2=4;		}else if(url.search("/annual") !=-1){//			Depth2=5;		}	}	//@@@@@@@@@@@@@@@@@@@@@@@@ 3 BUSINESS	else if(url.search("/biz/") !=-1){			Depth1=3;				if(url.search("/sys/") !=-1){//»çÈ¸ºÀ»ç´Ü ¼Ò°³			Depth2=1;			if(url.search("/Operation") !=-1){				Depth3=2;			}else if(url.search("/service") !=-1){				Depth3=3;			}						else if(url.search("/sys") !=-1){				Depth3=1;			} 		}		else if(url.search("/smartcard/") !=-1){//			Depth2=2;						if(url.search("/outline") !=-1){				Depth3=1;			}else if(url.search("/article_") !=-1){				Depth3=2;			}else if(url.search("/reference") !=-1){				Depth3=3;			}					}		else if(url.search("/tscm/") !=-1){//			Depth2=3;		}		else if(url.search("/safe/") !=-1){//			Depth2=4;			if(url.search("/image") !=-1){				Depth3=1;			}else if(url.search("/outer") !=-1){				Depth3=2;			}		}	}	//@@@@@@@@@@@@@@@@@@@@@@@@ 4 PRODUCT&SERVICE	else if(url.search("/secomservice/") !=-1){			Depth1=4;		if(url.search("/info") !=-1){//			Depth2=1;					}else if(url.search("/secomV") !=-1){//			Depth2=1;					}		else if(url.search("/home/") !=-1){//			Depth2=2;			if(url.search("/smart") !=-1){				Depth3=1;			}else if(url.search("/free") !=-1){				Depth3=2;			}		}		else if(url.search("/commerce/") !=-1){//			Depth2=3;			if(url.search("/smart") !=-1){				Depth3=1;			}else if(url.search("/free") !=-1){				Depth3=2;			}		}		else if(url.search("/building/") !=-1){//			Depth2=4;		}		else if(url.search("/office/") !=-1){//			Depth2=5;		}		else if(url.search("/bank/") !=-1){//			Depth2=6;		}		else if(url.search("/add/") !=-1){//			Depth2=7;			if(url.search("/add_entrance") !=-1){				Depth3=1;			}else if(url.search("/add_attendance") !=-1){				Depth3=2;			}else if(url.search("/add_facility") !=-1){				Depth3=3;			}			else if(url.search("/add_other") !=-1){				Depth3=4;			}		}		else if(url.search("/cctv/") !=-1){//			Depth2=8;		}	}	//@@@@@@@@@@@@@@@@@@@@@@@@ 5 SOCIETAL CONTRIBUTION	else if(url.search("/welfare/") !=-1){			Depth1=5;		if(url.search("/activity/") !=-1){//			Depth2=1;			if(url.search("01") !=-1){				Depth3=1;			}else if(url.search("02") !=-1){				Depth3=2;			}else if(url.search("03") !=-1){				Depth3=3;			}else if(url.search("04") !=-1){				Depth3=4;			}else if(url.search("05") !=-1){				Depth3=5;			}else if(url.search("06") !=-1){				Depth3=6;			}else if(url.search("07") !=-1){				Depth3=7;			}else if(url.search("08") !=-1){				Depth3=8;			}else if(url.search("09") !=-1){				Depth3=9;			}		}		else if(url.search("/3119/") !=-1){//			Depth2=2;			if(url.search("/activity_country_") !=-1){				Depth3=1;			}else if(url.search("/activity_overseas_") !=-1){				Depth3=2;			}else if(url.search("/activity_volunteer_") !=-1){				Depth3=3;			}else if(url.search("/activity_training_") !=-1){				Depth3=4;			}				}			}	//@@@@@@@@@@@@@@@@@@@@@@@@ 6 CUSTOMER CENTER	else if(url.search("/help/") !=-1){			Depth1=6;		if(url.search("/counsel") !=-1){//			Depth2=2;		}		else if(url.search("/contactus") !=-1){//			Depth2=3;		}			}else if(url.search("/faq/") != -1){		Depth1 = 6;		if(url.search("/faq_list") != -1){			Depth2 = 1;		}			}	//@@@@@@@@@@@@@@@@@@@@@@@@ ETC	else if(url.search("/secomguide/") !=-1){		Depth1 = 7;		 if(url.search("/subscribe") != -1){			Depth2 = 1;			Depth3 = 2;		}		else if(url.search("/secomworld") != -1){			Depth2 = 1;			Depth3 = 3;		}		else if(url.search("/secomguide") != -1){			Depth2 = 1;			Depth3 = 1;		}			}		else if(url.search("/etc/") !=-1){		Depth1 = 7;		if(url.search("/sitemap") != -1){			Depth2 = 2;		}else if(url.search("/privacy") != -1){			Depth2 = 3;		}else if(url.search("/legal") != -1){			Depth2 = 4;		}	}}function FNpop_flv(path){	var url = "/common/flv/flv_pop.jsp?flvPath="+path;//popUP ÆäÀÌÁö °æ·Î 	window.open(url, 'flvPlayer', "width=653, height=453,resizable=no,scrollbars=no,status=0");}FNgetURL();//]]>