function pop_type(type,src,w,h){
	var newsrc = src.lastIndexOf(".");
	switch(type){
		case 1 :
			var scroll = "yes"
			break;
		case 2 :
			var scroll = "no"
			break;
		case 3 :
			popup = window.open(src,"new"+ h +"",'fullscreen,scrollbars,width="100%",height="100%"');
			break;
		default :
			var scroll = "yes";
			break;
	}
	var winleft = (screen.width - w) / 2;
	var wintop = (screen.height - h) / 2;
	var poptype = 'width='+w+',height='+h+',top='+wintop+',left='+winleft+',resizable=no,scrollbars='+scroll+',toolbars=no,status=no,menu=no';
	popup = window.open(src, "new"+ h +"", poptype)
	if (parseInt(navigator.appVersion) >= 4) { popup.window.focus(); }
}

function chgimg(id,url) {
	var obj=document.getElementById(id);
	obj.src=url;
}

/**faq togle**/
function initToggle(tabContainer) {
	triggers = tabContainer.getElementsByTagName("a");
	for(i = 0; i < triggers.length; i++) {
		triggers.item(i).targetEl = document.getElementById(triggers.item(i).href.split("#")[1]);
		if (!triggers.item(i).targetEl)
			continue;

		triggers.item(i).targetEl.style.display = "none";
		triggers.item(i).onclick = function () {
			if (tabContainer.current == this) {
				this.targetEl.style.display = "none";
				tabContainer.current = null;
			} else {
				if (tabContainer.current) {
					tabContainer.current.targetEl.style.display = "none";
				}
				this.targetEl.style.display = "block";
				tabContainer.current = this;
			}
			return false;
		}
	}
}

/* 임시 플래시 패치 start */
var paramInfo = new Array;
function initParam() {
	var oldSize = paramInfo.length;
	for (var i=0; i<oldSize; i++) {
		paramInfo.length--;
	}
}
function setParam(paramName, paramValue) {
	var idx = paramInfo.length;
	paramInfo[idx] = [];
	paramInfo[idx][0] = paramName;  
	paramInfo[idx][1]= paramValue;
}
//FLASH
function Flash(id,url,w,h,bg,t){
document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='always' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='always' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}
/* 임시 플래시 패치 start */

/* link target - new or current */
var movepage_url="";
function layer_newwin(id,url,onoff) {
	viewlayer(id,'on');
	movepage_url = url;
}
function movepage_layer(id) {
	if (document.getElementById("current").checked) location.href=movepage_url;
	else if (document.getElementById("new").checked) window.open(movepage_url);
	viewlayer(id,'off');
}




// ------------------------------------------- 
// 이하는 us의 javascript.js와 같도록 유지해주세요.^^
// ------------------------------------------- 


// about flash menu 
function alarmPlayerUpdate(va) {
	if(va==1) {
		//alert("1");
		document.getElementById("menu_flash").style.display="block";
		document.getElementById("menu_flash_txt").style.display="none";
	} else {
		//alert("0");
		document.getElementById("menu_flash_txt").style.display="block";
		document.getElementById("menu_flash").style.display="none";
	} 
}
function setFlashMenuArea(mode) {
	var divObj = document.getElementById("menu_flash");
	divObj.style.height = mode == 'over'? 500+'px': 96+'px';
	return true;
}

// innerWidth, innerHeight 구하기
var inx,iny;
if(self.innerHeight) { // IE 외
	inx=self.innerWidth;
	iny=self.innerHeight;
} else if(document.documentElement && document.documentElement.clientHeight) { // IE6 Strict
	inx=document.documentElement.clientWidth;
	iny=document.documentElement.clientHeight;
} else if(document.body) { // 다른 IE
	inx=document.body.clientWidth;
	iny=document.body.clientHeight;
}

var movepage_url="";
function view_visitlayer(e,url,onoff,dir) {
	//control layer's position
	var posx=0;
	var posy=0;
	if(navigator.appVersion.indexOf("MSIE 6")==-1 || navigator.appVersion.indexOf("MSIE 7")==-1 || navigator.appVersion.indexOf("MSIE 5")==-1) isIE=true;
	else isIE=false;
	if(!e) e=window.event;
	if(e.pageX||e.pageY) { // pageX/Y 
		posx=e.pageX;
		posy=e.pageY;
	} else if(e.clientX||e.clientY) { // clientX/Y
		posx=e.clientX;
		posy=e.clientY;
		if(isIE) {
			posx = posx + document.documentElement.scrollLeft ;
			posy = posy + document.documentElement.scrollTop ;
		}
	}
	//posx = posx - 100;
	posy = posy + 20;
	//alert(posx+'/'+posy);
	var obj=document.getElementById("visit_layer");
	if(dir=="left") {
		posx=posx+50;
		obj.style.left=posx + "px";
		obj.style.top=posy + "px";
		obj.style.display="block";
	} else if (dir=="right") {
		posx=posx-200;
		obj.style.left=posx + "px";
		obj.style.top=posy + "px";
		obj.style.display="block";
	} else {
		obj.style.left=posx + "px";
		obj.style.top=posy + "px";
		obj.style.display="block";
	}
	//control url
	viewlayer('visit_layer','on');
	movepage_url = url;
}

/* link target - new or current */
function layer_newwin(id,url,onoff) {
	viewlayer(id,'on');
	movepage_url = url;
}
function movepage_layer(id) {
	if (document.getElementById("visit_current").checked) document.location.href=movepage_url;
	else if (document.getElementById("visit_new").checked) window.open(movepage_url);
	viewlayer(id,'off');
}


// menu 
function chg_leftmenu(id) {
	obj=document.getElementById(id);
	obj.className="on";
}

// layer onoff script
function viewlayer(va,onoff) {
	obj=document.getElementById(va);
	if(onoff=="on") obj.style.display="block";
	else if (onoff=="in") obj.style.display="inline";
	else obj.style.display="none";
}

//images rollover
function menuOn(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function menuOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}
function menuOnjpg(imgEl) {
	imgEl.src = imgEl.src.replace(".jpg", "_on.jpg");
}
function menuOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}
function menuOutjpg(imgEl) {
	imgEl.src = imgEl.src.replace("_on.jpg", ".jpg");
}

// toggle layer
function toggle_layer(ob) {
	obj=document.getElementById(ob);
	if(obj.style.display=="none") {
		obj.style.display="block";
	} else {
		obj.style.display="none";
	}
}

function viewlayermenu(va,onoff) {
	obj=document.getElementById(va);
	if(onoff=="on") obj.style.display="block";
	else obj.style.display="none";
}

//작은이미지 오버 헀을떄 큰이미지 변경
function bigImageOn(num){
	document.getElementById("bigIMage").src = "/temp/about_pro0"+num+"B.gif";	
}

/* swap Layer */
/*
function layerSwap(sw) {
	for (i = 1; i < 3; i++) {
		if (sw == i) {		
			document.getElementById('layer01_0'+i+'contents').style.display='';
		} else {
			document.getElementById('layer01_0'+i+'contents').style.display='none';
		}
	}
}*/


/* accessory layer */
function Show_OneLayer(GroupName, Total, LayerID)	// (이름, 총레이어 갯수, 보여주려는 레이어)
{
	var targetId;

	targetId = GroupName + LayerID;
	document.getElementById(targetId).style.display = 'block';

	for (var i=0; i<Total; i++) {
		if (i != LayerID)
		{
			targetId = GroupName + i;
			document.getElementById(targetId).style.display = 'none';
		}
	}
}

/* select box - page 이동 */
function movePage(obj){
	obj=document.getElementById(obj);
	location.href=obj.options[obj.selectedIndex].value;
}


/*toggle*/
function open_toggle(obj){
	
	var El_img=obj.childNodes.item(0);		
	var El_sub = obj.nextSibling;		
	var El_all = document.getElementById("ss2_bottom_line");
	var El_allsub = El_all.getElementsByTagName('div');
	var El_allimg = El_all.getElementsByTagName('img');
	
	if((navigator.appName=="Netscape")||(navigator.appName=="Opera")){
		El_sub = El_sub.nextSibling;
	}	

	/* 이미지 교체 */
	if(El_img.src.indexOf("btn_add2")>-1){
		// 모두 마이너스 
		
		for(i=0;i<El_allimg.length;i++){				
			if(El_allimg[i].src.indexOf("btn_subtract2")>-1){						
				El_allimg[i].src=El_allimg[i].src.replace("btn_subtract2","btn_add2");
			}
		}
		El_img.src=El_img.src.replace("btn_add2","btn_subtract2");
	}
	else{		
		El_img.src=El_img.src.replace("btn_subtract2","btn_add2");
	}	
	
	if(El_sub.style.display=="block"){
		El_sub.style.display="none";
	}
	else{		
		//모두 감춤
		for(i=0;i<El_allsub.length;i++){
			if(El_allsub[i].className=='answer'){					
				El_allsub[i].style.display="none";	
			}
		}
		El_sub.style.display="block";
	}	
}


/*popup*/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
	var LeftPosition=0;
	var TopPosition=0;
	if(pos=="random"){
		LeftPosition=(screen.width) ? Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height) ? Math.floor(Math.random()*((screen.height-h)-75)):100;
	} else if(pos=="center"){
		LeftPosition=(screen.width) ? (screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
	} else {
		LeftPosition=0;
		TopPosition=20;
	}
	LeftPosition=parseInt(LeftPosition);
	TopPosition=parseInt(TopPosition);
	// for IE
	if((navigator.appVersion.indexOf("MSIE") != -1) ? true : false){
		//h=h+35;
		h=Number(h)+35;
	}
	var settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
	if (win==null)
	{ 
		if (navigator.appVersion.indexOf("MSIE") != -1)
		{
			viewlayer('winalert_layer','on')
			//alert("Please cancel the popup interception");
		}		
	}
}
//사이즈 변함없을때.
var win2=null;
function NewWindow2(mypage,myname,w,h,scroll,pos){
	var LeftPosition=0;
	var TopPosition=0;
	if(pos=="random"){
		LeftPosition=(screen.width) ? Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height) ? Math.floor(Math.random()*((screen.height-h)-75)):100;
	} else if(pos=="center"){
		LeftPosition=(screen.width) ? (screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
	} else {
		LeftPosition=0;
		TopPosition=20;
	}
	LeftPosition=parseInt(LeftPosition);
	TopPosition=parseInt(TopPosition);	
		h=Number(h);
	var settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win2=window.open(mypage,myname,settings);
	if (win2==null)
	{ 
		if (navigator.appVersion.indexOf("MSIE") != -1)
		{
			viewlayer('winalert_layer','on')			
			//alert("Please cancel the popup interception");
		}		
	}
}


/* link target - new or current */
var movepage_url="";
function layer_newwin(id,url,onoff) {
	var obj=document.getElementById(id);
	obj.style.display="block";
	movepage_url = url;
}
function movepage_layer(id) {
	if (document.getElementById("current").checked) location.href=movepage_url;
	else if (document.getElementById("new").checked) window.open(movepage_url);
	var obj=document.getElementById(id);
	obj.style.display="none";
}

/* feedback */
var vstr_rate_qst_typ_cd="";
var vstr_rate_qst_level_cd="";

function setFeedbackParam(type,level){	
	vstr_rate_qst_typ_cd = type;
	vstr_rate_qst_level_cd = level;
	
	document.getElementById("feedback_button1").style.display="block";
	document.getElementById("feedback_button2").style.display="block";
}
function feedbackPopup(scroll,width,height){
	var url="/us/function/feedback/feedbackPopup.do?";
	var param = "vstr_rate_qst_typ_cd="+vstr_rate_qst_typ_cd+"&vstr_rate_qst_level_cd="+vstr_rate_qst_level_cd;
	window.open(url+param,'','scrollbars='+scroll+',width='+width+',height='+height+'');
}

/* mostPopular */
function goUrl(url){
	parent.document.location.href=url;
}



function navi_addaccessibility() {
	flashVersionChecker1.addSpecialTag("<div class='noscript_pos'><a href='http://www.adobe.com/go/getflash/' target='_blank'><img src='/us/images/common/txt_getflash.gif' alt='This content requires the latest Adobe Flash player.' class='txt_getflash' /></a><br /></div>");
}

/**
 Class Name : 	ShaFlashTag
 Builder : 		An.sehan (Sha/birdhoney/Tinja/plandas) :: plandas@naver.com / ansehan@dstrict.com
 Build Day : 		2007.02.22
 Last Modify : 	2007.06.05
 Version : 		1.15


 @marks |
	- 플래시버젼업에 따른 포함속성이 많아지는데 대한 사용상의 어려움과 또 추가로 발생하는 여러 속성들을 효율적으로 관리하고
	좀더 직관적으로 태그생성을 도모하기 위해서 제작
	------------------------------------------------------------------------------------------------------------------

	*공개메소드
	- ShaFlashTag //생성자
	- addParam // 속성추가및 변경
	- setFlashVars // 플래시변수 셋팅전용
	- createTag // 페이지플래시코드 임베딩처리
	- debugTag // 코드디버깅

	- getInstanceFlashObject // 플래시오브젝트 인스턴스구하기(html페이지내에서 액세스가능한)
	- externalInterfaceAddCallback // 플래시함수호출을 위한 전용
	- toString

	- 2007.06.05 추가사항
	- addSpecialTag //사용자 정의태그 포함시키기(특수한경우에 사용될수 있슴)


	*공개 static 메소드
	- getInstanceFlashObjectById // 파라미터 인자 id로 flashObject 인스턴스 구하기
	- availableBrowser // 브라우져 지원상황을 불린값으로 저장하고 있는 객체반환




 @usage |
	
	ex1)
	<script src='ShaFlashTag.js'></script>
	<script>
		// flash 임베딩을 위한 인스턴스 생성 (반드시 파리미터 순서대로 '파일경로','폭','넓이' 값을 전달해주어야함)
		var theFlash = new ShaFlashTag('test.swf',200,200);

		// 페이지에 임베딩 시키기
		theFlash.createTag();
	</script>

	ex2)
	<script src='ShaFlashTag.js'></script>
	<script>
		var theFlash = new ShaFlashTag('test.swf',200,200);

		// name 속성을 'hehe'로 변경
		theFlash.addParam('name','hehe');

		// 버젼코드를 디폴트(9.0)에서 8.0으로변경
		theFlash.addParam('version','8,0,0,0');

		// swLiveConnect를 사용하기 위해 기본은 없던 속성인 swLiveConnect를 추가하고 값을 true로 셋팅 (단, 때에따라 allowScriptAcess는 always로 별도로 셋팅이 필요함)
		theFlash.addParam('swLiveConnect','true');

		// 플래시에게 sendvalue변수로 test라는 값을 전달
		theFlash.setFlashVars('sendvalue=test');

		// 페이지에 임베딩 시키기
		theFlash.createTag();

		// 코드디버깅
		theFlash.debugTag();
	</script>

*/
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



/**
* @[Class Constructor]
*
*parameters |
	- src:String // 파일경로(.swf)포함된 상대및 절대경로
	- width:String or Number // 가로사이즈 ('100%'같은경우 문자열로)
	- height:String or Number // 세로사이즈

*marks |
	- 추가로 필요한 속성들은 addParam을 이용해서추가로 사용하도록함
*/
var ShaFlashTag = function(src, width, height)
{
	var addProperty = function(obj1,obj2, none)
	{
		var chknone = function(_p){try{for(var i in none) if(none[i]==_p) return false;}catch(e){return true;}return true;};
		for(var p in obj1){if(chknone(p)) obj2[p] = obj1[p];};
		return obj2;
	};

	var args = arguments; // 향후 디폴트로 셋팅되어야 할 속성을 감안해서 arguments로 처리
	var attrObject = {}, params = {};
	var attrEmbed= {width:args[1], height:args[2]};

	attrObject.classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";
	attrObject.version = "9,0,0,0";
	attrObject.codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+attrObject.version;


	var _src = src.split("/");
	_src = _src[_src.length-1];
	attrEmbed.id = attrEmbed.name = _src.indexOf('.swf')!=-1? (_src.split('.swf'))[0]: "";
	attrEmbed.align = "middle";
	this.attrObject = addProperty(attrEmbed,attrObject);

	attrEmbed.src = args[0];
	attrEmbed.bgcolor = args[3]? args[3]: "#ffffff";
	attrEmbed.quality = "high";
	attrEmbed.allowScriptAccess = "sameDomain";
	attrEmbed.allowFullScreen = "false";
	attrEmbed.base = ""; // 기본베이스를 사용치않음

	params.movie = attrEmbed.src;
	this.params = addProperty(attrEmbed,params,['id','name','align','src','width','height']);

	attrEmbed.type="application/x-shockwave-flash";
	attrEmbed.pluginspage="http://www.macromedia.com/go/getflashplayer";
	this.attrEmbed = attrEmbed;

	this.specialTag = '';
};var member = ShaFlashTag.prototype;


/**
* @Get flashObj (static public method) :: for ExternalInterface.addCallback
* 2007.05.18 addtion
* parameters |
	- idname:String // id name
* usage |
	ShaFlashTag.getInstanceFlashObject('myflash').sendToFlashFunction('test');
*/
ShaFlashTag.getInstanceFlashObjectById = function(idname)
{
	return navigator.appName.indexOf("Microsoft") != -1?
	window[idname]: document[idname];
}

ShaFlashTag.availableBrowser = function()
{
	var availbleObj = {
	isIE: ((navigator.appVersion.indexOf("MSIE") != -1) ? true : false),
	isWin: ((navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false),
	isOpera: ( (navigator.userAgent.indexOf("Opera") != -1) ? true : false)};
	return availbleObj;
}


/**
* @[속성을 추가하거나 기존속성을 변경하고자 할때 사용]
*
*parameters |
	- attribute:String // 속성이름
	- value:String // 속성값

* param lists
	- name or id
	- src
	- width
	- height
	- bgcolor
	- quality
	- wmode
	- align
	- version // 반드시 전체 버젼이름을 입력해야함 (ex:8.0.0 / 9.0.0...)
	- allowScriptAccess
	- swLiveConnect
	- flashVars // flash에 변수를 던져주는 속성
	- allowFullScreen // 9.0에 추가된 속성
	- base // 플래시의 디폴트 디렉토리 경로를 변경하여 직접 잡아줄때 사용

*marks |
	- 반드시 createTag이전에 사용하여야함.
*/
member.addParam = function(attribute, value)
{
	if(attribute=='id' || attribute=='name')
		this.attrObject['name'] = this.attrObject['id'] = this.attrEmbed['name'] = this.attrEmbed['id'] = value;

	else if(attribute=='width' || attribute=='height' || attribute=='align')
		 this.attrObject[attribute] = this.attrEmbed[attribute] = value;

	else if(attribute=='bgcolor' || attribute=='quality' || attribute=='allowScriptAccess' || 
		attribute=='allowFullScreen' || attribute=='flashVars' || attribute=='wmode' || attribute=='base')
		this.params[attribute] = this.attrEmbed[attribute] = value;

	else if(attribute=='src') this.params['movie'] = this.attrEmbed['src'] = value;
	else if(attribute=='version') this.attrObject[attribute] = value;
	else this.attrEmbed[attribute] = value;
}





/**
*@Flash에 변수추가를 위한 전용메서드
*marks |
	- addParam을 이용해도 됨.
*parameters |
	- value:String // 속성값
*/
member.setFlashVars = function(value)
{
	this.addParam('flashVars',value);
}




/**
*@페이지에 플래시코드 임베딩 처리
*marks |
	- 만약 추가할속성이 있거나 변경할 값이 존재한다면 반드시 본 메소드를 호출하기전에 addParam메소드를 먼저사용한 후
	본메소들 실행해야한다.
*/
member.createTag = function()
{
	var availobj = ShaFlashTag.availableBrowser();

	var swliveconTag = "", tag;
	if(this.attrEmbed.swLiveConnect)
	{
		swliveconTag += '<script language="JavaScript">\n';
		swliveconTag += 'function '+this.attrEmbed.id+'_DoFSCommand(command, args)\n';
		swliveconTag += '{\n';
		swliveconTag += '	if (command=="javascript") eval(args);\n';
		swliveconTag += '};\n';
		swliveconTag += '</script>\n';

		swliveconTag += '<script language="VBScript">\n';
		swliveconTag += 'On Error Resume Next\n';
		swliveconTag += 'Sub '+this.attrEmbed.id+'_FSCommand(ByVal command, ByVal args)\n';
		swliveconTag += '	Call '+this.attrEmbed.id+'_DoFSCommand(command, args)\n';
		swliveconTag += 'End Sub\n';
		swliveconTag += '</script>\n';
		document.write(swliveconTag);
	}

	if (availobj.isIE && availobj.isWin && !availobj.isOpera)
	{
		tag = "<object "; for(var p in this.attrObject){if(p!='version') tag += (p+"='"+this.attrObject[p]+"' ");}; tag += ">\n";
		for(var p in this.params){tag += ("<param name='"+p+"' value='"+this.params[p]+"' />\n");};
		tag += "<embed "; for(var p in this.attrEmbed){tag += (p+"='"+this.attrEmbed[p]+"' ");}; tag += "</embed>\n\n"+this.specialTag+"\n</object>";
	}
	else
	{
		tag = "<embed "; for(var p in this.attrEmbed){tag += (p+"='"+this.attrEmbed[p]+"' ");}; tag += "</embed>";
	}

	document.write(tag);
	this.tag = swliveconTag+tag;
}


/**
* @ Debug current flash embeded tag
*/
member.debugTag = function()
{
	try{window.alert(this.tag);}catch(e){};
}

/**
* @ Get flashobject instances(accessble)
*/
member.getInstanceFlashObject = function()
{
	return this.attrObject? ShaFlashTag.getInstanceFlashObjectById(this.attrObject['id']): null;
}

/*
* @ ExternalInterface.addCallback:: for swf
* flash player version : 9.0 late
*
* parameters |
	- functionName:String // the defined functionName in swf
	- value // value to send..
*/
member.externalInterfaceAddCallback = function(functionName, value)
{
	var flashobj = this.getInstanceFlashObject();
	flashobj[functionName](value);
}

/**
* @ To string
*/
member.toString = function()
{
	var availobj = ShaFlashTag.availableBrowser();
	var addstr = "";
	for(var i in availobj) addstr += i+":"+availobj[i]+"\n";
	return this.tag + "\n\n"+addstr;
}

/**
* @ Add Special tag(from <object> to </object>)
*/
member.addSpecialTag = function(tag)
{
	this.specialTag += tag;
}

// ------------------------------------------- 
// 밑으로는 함수를 추가하지 마세요^^  ShaFlashTag 위쪽으로 추가하세요.
// ------------------------------------------- 


//popup 2007.05.29 //

function popup(Fn, X, Y, Scroll){
l = (screen.width) ?	(screen.width-550) / 2	: 0;
	t = (screen.height) ?	(screen.height-500) / 2 : 0;	
	NewWindow=window.open(Fn,'newwindow','width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}

function setimgsize (img) { 
if (img.width > 400 ) {img.width = 400;} 
}



//popup 2009.05.07 Semiconductor ESH //

function open_popup1()
	{
		window.open('http://c-dance2.samsungsemi.com:443/EcologinCheck.jsp','','width=520,height=250,toolbars=no,status=no,menu=no,scroller=no');
	}



/*************************************************************

 *    DYNIFS - Dynamic IFrame Auto Size v1.0.0

 *

 *    Copyright (C) 2006, Markus (phpMiX)

 *    This script is released under GPL License.

 *    Feel free to use this script (or part of it) wherever you need

 *    it ...but please, give credit to original author. Thank you. :-)

 *    We will also appreciate any links you could give us.

 *    http://www.phpmix.org

 *

 *    Enjoy! ;-)

*************************************************************/

var DYNIFS = {

	// Storage for known IFrames.

	iframes: {},

	// Here we save any previously installed onresize handler.

	oldresize: null,

	// Flag that tell us if we have already installed our onresize handler.

	ready: false,

	// The document dimensions last time onresize was executed.

	dim: [-1,-1],

	// Timer ID used to defer the actual resize action.

	timerID: 0,

	// Obtain the dimensions (width,height) of the given document.

	getDim: function(d) {

		var w=200, h=200, scr_h, off_h;

		if( d.height ) { return [d.width,d.height]; }

		with( d.body ) {

			if( scrollHeight ) { h=scr_h=scrollHeight; w=scrollWidth;}

			if( offsetHeight ) { h=off_h=offsetHeight; w=offsetWidth;}

			if( scr_h && off_h ) h=Math.max(scr_h, off_h);

		}

		return [w,h];

	},

	// This is our window.onresize handler.

	onresize: function() {

		// Invoke any previously installed onresize handler.

		if( typeof this.oldresize == 'function' ) { this.oldresize(); }

		// Check if the document dimensions really changed.

		var dim = this.getDim(document);

		if( this.dim[0] == dim[0] && this.dim[1] == dim[1] ) return;

		// Defer the resize action to prevent endless loop in quirksmode.

		if( this.timerID ) return;

		this.timerID = setTimeout('DYNIFS.deferred_resize();', 10);

	},

	// This is where the actual IFrame resize is invoked.

	deferred_resize: function() {

		// Walk the list of known IFrames to see if they need to be resized.

		for( var id in this.iframes ) this.resize(id);

		// Store resulting document dimensions.

		this.dim = this.getDim(document);

		// Clear the timer flag.

		this.timerID = 0;

	},

	// This is invoked when the IFrame is loaded or when the main window is resized.

	resize: function(id) {

		// Browser compatibility check.

		if( !window.frames || !window.frames[id] || !document.getElementById || !document.body )

			return;

		// Get references to the IFrame window and layer.

		var iframe = window.frames[id];

		var div = document.getElementById(id);

		if( !div ) return;

		// Save the IFrame id for later use in our onresize handler.

		if( !this.iframes[id] ) {

			this.iframes[id] = true;

		}

		// Should we inject our onresize event handler?

		if( !this.ready ) {

			this.ready = true;

			this.oldresize = window.onresize;

			window.onresize = new Function('DYNIFS.onresize();');

		}

		// This appears to be necessary in MSIE to compute the height

		// when the IFrame'd document is in quirksmode.

		// OTOH, it doesn't seem to break anything in standards mode, so...

		if( document.all ) div.style.height = '0px';

		// Resize the IFrame container.

		var dim = this.getDim(iframe.document);

		var extendHeight = 30;

		if( navigator.userAgent.indexOf("Opera") != -1 ) extendHeight = 10;

		if( navigator.userAgent.indexOf("Safari") != -1 ) extendHeight = 0;

		div.style.height = (dim[1]+extendHeight) + 'px';

	}

}