function flash(swf,width,height) {
	var flash_tag = "";
	flash_tag = '<OBJECT id="mainFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
	flash_tag +='WIDTH="'+width+'" HEIGHT="'+height+'" >';
	flash_tag +='<param name="movie" value="'+swf+'">';
	flash_tag +='<param name="wmode" value="transparent">';
	flash_tag +='<param name="quality" value="high">';
	flash_tag +='<PARAM NAME="menu" VALUE="false">';
	flash_tag +='<embed id="mainFlash" name="mainFlash" src="'+swf+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	flash_tag +='type="application/x-shockwave-flash" WIDTH="'+width+'" HEIGHT="'+height+'"></embed></object>'

	document.write(flash_tag);
}

// catalog, webzineÀ» À§ÇÑ ÆË¾÷ ½ºÅ©¸³Æ®
function popUp2(sURL, sName, width, height) { 
	window.open(sURL, sName, "status=no,toolbar=no,resizable=no,scrollbars=no, menubar=no, width="+width+", height="+height+", left="+(screen.width-width)/2+", top="+(screen.height-height)/2); 
}


// ÇÃ·¡½Ã¿¡¼­ webzineÀ» È£Ãâ
function popWebzine(url){
	//alert(url);
	popUp2(url, 'webzine', 950, 685);
}

// ÇÃ·¡½Ã¿¡¼­ catalogÀ» È£Ãâ
function popCatalog(url){
	//alert(url);
	popUp2(url, 'catalog', 950, 685);
}



function popUp(sURL, sName, left, top) { 
	var win 
	win = window.open(sURL, sName, "status=no,toolbar=no,resizable=no,scrollbars=no, menubar=no, width=1, height=1, left="+left+", top="+top); 
}

/* popup window Resize */
function WindowReset( win /* Window Object */ ){

	window.resizeTo(10, 10);
	

	var winBody = win.document.body;
	window.document.body.scroll = "auto";

	var wid = winBody.scrollWidth;
	var hei = winBody.scrollHeight;

	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 200;

	if (wid > maxThisX) {
		wid = maxThisX;
		window.document.body.scroll = "yes";
	}else{
		window.document.body.scroll = "no";
	}

	if (hei > maxThisY) {
		hei = maxThisY
		window.document.body.scroll = "yes";
	}else{
		window.document.body.scroll = "no";
	}

	resizeBodyTo(wid, hei);

	

	function resizeBodyTo(wid, hei){
		window.resizeTo(wid, hei);
		with(document.body){
			window.resizeTo(wid * 2 - clientWidth, hei * 2 - clientHeight);
		}
		
	}

	//window.moveTo((wid-win.width)/2, (hei-win.height)/2);

	this.focus();
}
/* popup window Resize */

/* onFoucu="blur()" */
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
document.body.focus(); 
} 
document.onfocusin=bluring;
/* onFoucu="blur()" */

/* skyScrapper */
var topLimit = new Array();
var bottomLimit = new Array();
var speed = new Array();
var QuickMenu = new Array();

function initSkyScrapper(id, top, bottom) {
	if (document.getElementById) {
		topLimit[id] = top;
		bottomLimit[id] = bottom;
		speed[id] = arguments[3]?arguments[3]:10;
		QuickMenu[id] = document.getElementById(id);
		QuickMenu[id].style.top = topLimit[id];
		QuickMenu[id].style.visibility = "visible";
		moveSkyScrapper(id);
	}
}

function moveSkyScrapper(id) {
	var yMenuMax, yMenuFrom, yMenuTo, yOffset;

	yMenuMax = document.body.scrollHeight - QuickMenu[id].scrollHeight-bottomLimit[id];
	yMenuFrom   = parseInt (QuickMenu[id].style.top, 0)-topLimit[id];
	yMenuTo     = (window.pageYOffset || document.body.scrollTop);
	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / speed[id]);
		if (yMenuTo < yMenuFrom)  yOffset = -yOffset;
		QuickMenu[id].style.top = parseInt (QuickMenu[id].style.top, 0) + yOffset;
		if(yMenuMax < parseInt (QuickMenu[id].style.top, 10)) QuickMenu[id].style.top = yMenuMax;
	}
	setTimeout ("moveSkyScrapper('"+id+"')", 10);
}
/* skyScrapper */

/* png image filter */
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 '';
}
/* png image filter */

/* tr BackgroundColor Change */
function toggle(trEle){
	var rowsBg = trEle.style.backgroundColor;
	if(rowsBg != '#fef8de'){
		trEle.style.backgroundColor = "#fef8de"
	}else{
		trEle.style.backgroundColor = ""
	}
}

function toggle02(trEle){
	var rowsBg = trEle.style.backgroundColor;
	if(rowsBg != '#ffffff'){
		trEle.style.backgroundColor = "#ffffff"
	}else{
		trEle.style.backgroundColor = ""
	}
}
/* tr BackgroundColor Change */

/* img Border Color Change */
function imgBorder(imgThis){
	var imgThis = imgThis.style;
	if(imgThis.borderColor != '#ff0066'){
		imgThis.border = '2px solid #ff0066';
	}else{
		imgThis.border = '2px solid #e8e4e0';
	}
}

function imgBorder02(imgThis){
	var imgThis = imgThis.style;
	if(imgThis.borderColor != '#1c80d1'){
		imgThis.border = '2px solid #1c80d1';
	}else{
		imgThis.border = '2px solid #aca6a1';
	}
}
/* img Border Color Change */

/* Country Select */
	function countrySelect(name, imgFullName){
		document[name].src = imgFullName
	}

	function btnOver(name, imgFullName){
		if(name != sFlag){
			document[name].src = imgFullName
		}
	}

	function btnOut(name, imgFullName){
		document[name].src = imgFullName
		if(name == sFlag){
			document[name].src = "/imgs/common/btn_"+sFlag+"_son.gif";
		}
	}
/* Country Select */

/* fontMenu */
function fontMenu(idFontMenu){
	var idFontMenu = eval(idFontMenu+".style");
	idFontMenu.color = '#ef765f';
	idFontMenu.textDecoration = 'underline';
}
document.write("<link rel='SHORTCUT ICON' href='/imgs/Usergrp.ico'>");

/* fontMenu */