//레이어팝업스크립트-->
function Swf_View(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('width="'+SizeX+'" height="'+SizeY+'" id="'+LnkId+'" align="middle">');
    document.write('<param name="movie" value="'+URL+'" />');
    document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="transparent" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('<param name="wmode" value="transparent"/>');
    }
	document.write('<param name="allowScriptAccess" value="always"/> ');
	document.write('<param name="base" value="." />');
    document.write('<embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
  if ( Flag == null || Flag != 'N' )
    {
        document.write(' wmode="transparent" ');
    }
    document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />');
    document.write('</embed></object>');
 if ( Frm == 'Y' ) { // form 태그 들어가는 페이지에 적용
  eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
 }
}

function layer_view(e_id){document.getElementById(e_id).style.display='block';}
function layer_hidden(e_id){document.getElementById(e_id).style.display='none';}

<!--
    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아이콘-->

<!--
	function main_best(par){
		for(i=1;i<4;i++){
			if(i==par){
			document.getElementById("main_best"+par).style.display="block";
			}else{
			document.getElementById("main_best"+i).style.display="none";
			}
		}	
	}

	function main_theme(num){
		for(a=1;a<6;a++){
			if(a==num){
			document.getElementById("main_theme"+num).style.display="block";
			}else{
			document.getElementById("main_theme"+a).style.display="none";
			}
		}	
	}
//메인 보여 안보여 이미지-->
//RollOver
function ImageOver(imgEL){
 imgEL.src = imgEL.src.replace("off.gif", "on.gif");
}
function ImageOut(imgEL){
 imgEL.src = imgEL.src.replace("on.gif", "off.gif");
}
//RollOver
function ImageOver1(imgEL){
 imgEL.src = imgEL.src.replace("off.png", "on.png");
}
function ImageOut1(imgEL){
 imgEL.src = imgEL.src.replace("on.png", "off.png");
}


	function submenu_ov(par){par.src=(par.src).replace("sub_menu","sub_menu_on");}
	function submenu_out(par){par.src=(par.src).replace("sub_menu_on","sub_menu");}


	function subdetail_ov(par2){par2.src=(par2.src).replace("detail_menu","detail_menu_on");}
	function subdetail_out(par2){par2.src=(par2.src).replace("detail_menu_on","detail_menu");}
//서브메뉴 롤오버-->
	function pbtn_ov(a){a.src=(a.src).replace("btn_p","btn_on_p");}
	function pbtn_out(a){a.src=(a.src).replace("btn_on_p","btn_p");}





function lightBox() {
	WindowHeight = (window.innerHeight) ? window.innerHeight : (document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight : document.body.clientHeight;
	OffWidth = document.documentElement.scrollWidth;
	OffHeight = document.documentElement.scrollHeight;
	if ( OffHeight < WindowHeight ) { OffHeight = WindowHeight; 	}
	
	var spinBox = document.createElement('div');
	spinBox.style.backgroundColor = "#000000";
	spinBox.id = "ThumbnailScroll_Box";
	spinBox.style.width = OffWidth + "px";
	spinBox.style.height = OffHeight + "px";
	spinBox.style.position = "absolute";
	spinBox.style.zIndex = 50;
	spinBox.style.left = spinBox.style.top = 0 + "px";
	if ( navigator.appName.indexOf("Explorer") != -1 ) {
		spinBox.style.filter="Alpha(opacity=30)";
	} else {
		spinBox.style.opacity=0.3;
	}
	document.documentElement.getElementsByTagName("body")[0].appendChild(spinBox);
}

function lightBoxclose() {
	document.documentElement.getElementsByTagName("body")[0].removeChild(document.getElementById("ThumbnailScroll_Box"));
}

function LayerPopupClose(obj) {
	var objName = document.getElementById(obj);
	objName.style.display = "none";
	lightBoxclose();
	try{
		if(removeSelectFix) 
			{
				removeSelectFix(obj);
			}
		}
	catch(a){}	
}

// 레잉어 정중앙 팝업 사용방법 <a href="#" onclick="LayerPopupMousePoint(event,'id',w,h); return false;"> 
	function LayerPopupMousePoint(e,obj,addX,addY) {
		var objName = document.getElementById(obj);
		if ( objName.style.display == "block" ) {
		} else {
			lightBox();
			var tempX = document.body.scrollWidth;
			var tempY = document.body.scrollHeight;
			//alert("tempX :" + tempX + ",tempY :" + tempY + ",e.clientX :" + e.clientX + ",e.clientY :" + e.clientY);
			objName.style.left = ((tempX - addX )/ 2 ) + "px";
			objName.style.top = ((tempY - addY )/ 2  ) + "px";
			objName.style.display = "block";
		}
		//ie6
		try{
			if(selectFix) 
				{
					selectFix(obj);
				}
			}
		catch(a) {}	
	}
<!--[if lte IE 6.0]>
function selectFix(divID) {
	var tar = document.getElementById(divID);
	var tarWidth = tar.offsetWidth;
	var tarHeight = tar.offsetHeight;
	var tarTop = tar.offsetTop;
	var tarLeft = tar.offsetLeft;
	var coverID = divID + "_cover";
	if (document.getElementById(coverID)) return false;
		var cover = document.createElement("iframe");
			tar.parentNode.insertBefore(cover,tar);
			cover.setAttribute("id",coverID);
		
		if (!document.getElementById(coverID)) return false;
		
		var obj = document.getElementById(coverID);
			obj.setAttribute("frameborder",0);
			obj.style.position = "absolute";
			obj.style.top = tarTop + "px";
			obj.style.left = tarLeft + "px";
			obj.style.width = tarWidth + "px";
			obj.style.height = tarHeight + "px";
}

function removeSelectFix(divID) {
	var tar = document.getElementById(divID);
	var obj = document.getElementById(divID + "_cover");

	if (!obj) return false;
		tar.parentNode.removeChild(obj);  

}
//레이어팝업스크립트-->

var ApplyBox = "";
ApplyBox+= " <div style='display:none;position:absolute;z-index:100;width:994px;height:598px;margin:0 auto;' id='ApplyBox'>";
ApplyBox+= " <a href='#' onclick=LayerPopupClose('ApplyBox');return false;><img src='/barunsoncard/asset/images/sample/layer01.gif'></a>";
ApplyBox+= " </div>";
document.write(ApplyBox);

var SearchBox = "";
SearchBox+= " <div style='display:none;position:absolute;z-index:100;width:994px;height:598px;margin:0 auto;' id='SearchBox'>";
SearchBox+= " <a href='#' onclick=LayerPopupClose('SearchBox');return false;><img src='/barunsoncard/asset/images/sample/layer02.gif'></a>";
SearchBox+= " </div>";
document.write(SearchBox);

var BrandBox = "";
BrandBox+= " <div style='display:none;position:absolute;z-index:100;width:994px;height:598px;margin:0 auto;' id='BrandBox'>";
BrandBox+= " <a href='#' onclick=LayerPopupClose('BrandBox');return false;><img src='/barunsoncard/asset/images/sample/layer03.gif'></a>";
BrandBox+= " </div>";
document.write(BrandBox);


function layerShow(hid_iframe) {
	document.getElementById(hid_iframe).style.display = "block";
	
}
function layerHide(hid_iframe) {
	document.getElementById(hid_iframe).style.display = "none";
}
//퀵메뉴 커지면 보임-->

function WinPop(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




