// Å¸ÀÌÆ²---------
document.title="GLAMPALM - ABSOLUTE STYLING";
// ---------Å¸ÀÌÆ²
document.write("<script type='text/javascript' src='/js/common_url.js'></script>");
// °³¹ßÂÊ¿¡¼­ »ç¿ëÇÏ´Â js ÆÄÀÏ
document.write("<script type='text/javascript' src='/js/common_user.js'></script>");
// Á¦ÀÏ ÇÏ´Ü¿¡ ·Î±×ºÐ¼® ½ºÅ©¸³Æ® »ðÀÔµÇ¾î ÀÖÀ½

/*ActiveX ÇÃ·¡½¬*/
// id: flash id
// url: source url
// w: source width
// h: source height
// t: wmode (window/transparent/opaque)
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=7,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='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" width="+w+" height="+h+" wmode="+t+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}
var hn="0",sn="0",cn="0",tn="0",globalId="0",flaFarm="0";
function Mnav(){ //»ó´Ü³×ºñ
try{
		var Depth = arguments.length;
		var DepthName = new Array("hn","sn","cn","tn");
		
		for(i=0;i<Depth;i++){
			if(i==0) hn =  arguments[i];if(i==1) sn =  arguments[i];if(i==2) cn =  arguments[i];if(i==3) tn =  arguments[i];
			if(arguments[i]!="") globalId = (i==0) ? arguments[i] : globalId+"_"+arguments[i] ;
			if(arguments[i]!="") flaFarm = (i==0) ?  DepthName[i]+"="+arguments[i] : flaFarm+"&"+DepthName[i]+"="+arguments[i] ;
		}
	
		Flash("gnb","/flash/gnb.swf?"+flaFarm,"1000","155","#ffffff","transparent")
		//document.write('<img src="/html/inc/fla/mnav.gif">');
		
	}catch(e){}
}

function link(){
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
		else if(depth==1) url = ("u"+arguments[0]+"[0]");
		else if(depth==2) url = ("u"+arguments[0]+"_"+arguments[1]+"[0]");
		else if(depth==3) url = ("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"[0]");
		else if(depth==4) url = ("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"[0]");
		else if(depth==5) url = ("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]+"[0]");
		if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù");
		else location.href = eval(url);
	}catch(e) { alert("ÁØºñÁßÀÔ´Ï´Ù.."); }
}


// PopUp---------
function pop(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=no,status=1,top=0,left=0') } //Popup(½ºÅ©·Ñ¹Ù¾øÀ½)
function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes,top=0,left=0') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)
function newwin(url){ window.open(url,'new','location=1,directories=1,resizable=1,status=1,toolbar=1,menubar=1,scrollbars=1') } //NewPopup(½ºÅ©·Ñ¹Ù¾øÀ½)
// ---------PopUp


/* image rollover */
function overRoll( obj ) {
    obj.src = obj.src.replace( 'off.gif', 'on.gif' );
}
function outRoll( obj ) {
    obj.src = obj.src.replace( 'on.gif', 'off.gif' );
}
/**/

function tabChange(obj,num,imgId,total) {
    for (i=1; i<=total; i++)    {
        var imgIds = document.getElementById(imgId+i);
        var imgSrc = imgIds.getAttribute("src");
        if (i==num)    {
            document.getElementById(obj+i).style.display = '';
            imgIds.setAttribute("src",imgSrc.replace("_off","_on"));
        }
        else {
            document.getElementById(obj+i).style.display = 'none';
            imgIds.setAttribute("src",imgSrc.replace("_on","_off"));
        }
    }
}
/* div popup */
function prdLyrView(lid,n,total) {
    var ht = document.body.clientHeight; // if DTD is xhtml, document.documentElement.clientHeight;
    var target = document.getElementById(lid+n);

    if (total != 0)    {
        for (var i=1; i<=total; i++) {
            document.getElementById(lid+i).style.display = (i==n ? 'block':'none');
        }
        target.style.left = 188 + "px";
        target.style.top = ht/2 - target.offsetHeight/2 + "px";
    } else {
        target.style.display = 'none';
    }
}
function prdLyrView2(lid,n,total) {
    var ht = document.body.clientHeight; // if DTD is xhtml, document.documentElement.clientHeight;
    var target = document.getElementById(lid+n);

    if (total != 0)    {
        for (var i=1; i<=total; i++) {
            document.getElementById(lid+i).style.display = (i==n ? 'block':'none');
        }
        target.style.left = 188 + "px";
        target.style.top = ht/2 - target.offsetHeight/2 + "px";
    } else {
        target.style.display = 'none';
    }
}
function openDiv() {
	document.getElementById("pre").style.display='block';
}
function closeDiv() {
	document.getElementById("pre").style.display='none';
}
//getFlash
function getFlash(swfName,wt,ht,id,t){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+wt+'" height="'+ht+'" id="'+id+'">');
    document.write('<param name="movie" value="'+swfName+'">');
    document.write('<param name="quality" value="high">');
    if (t != 0)    {
        document.write('<param name="wmode" value="transparent">');
    }
    document.write('<param name="allowScriptAccess" value="always">');
    document.write('<embed src="'+swfName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="'+wt+'" height="'+ht+'" allowScriptAccess="sameDomain" id="'+id+'"></embed></object>');
}
