// ¸ÞÀÎÆäÀÌÁö °øÁö»çÇ×
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}

/*
±â´É :  »õÃ¢À» °¡¿îµ¥¿¡¼­ ¿­¸®°Ô
*/		
function launchCenter(url, name, height, width) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  str += ",fullscreen=no,titlebar=no,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes"

  if (window.screen) {
    var ah = screen.availHeight - 27;
    var aw = screen.availWidth - 10;
    //var ah = screen.availHeight;
    //var aw = screen.availWidth ;
    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  return window.open(url, name, str);
}	

/*
±â´É :  »õÃ¢À» °¡¿îµ¥¿¡¼­ ¿­¸®°Ô ½ºÅ©·Ñ ¾ø°Ô
*/	
function ScrollCenter(url, name, height, width) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  str += ",fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes"

  if (window.screen) {
    var ah = screen.availHeight - 27;
    var aw = screen.availWidth - 10;
    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  return window.open(url, name, str);
}	

/*
±â´É :  »õÃ¢À» ÀüÃ¼¿¡¼­ ¿­¸®°Ô
*/
function openPage(str)
{
	
	//if(w == 0 && h == 0) {
		w = screen.availWidth;
		h = screen.availHeight;
	//}
	addStr =  "width=" + w + ",height=" + h + ",status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes";
	addStr += ",left=" + (screen.availWidth - w)/2;
	addStr += ",top="  + (screen.availHeight - h)/2;
	openWin = open(str, "win" + w + h , addStr);
}

/*
±â´É :  »õÃ¢À» °¡¿îµ¥¿¡¼­ ¿­¸®°Ô ½ºÅ©·Ñ ¾ø°Ô
*/	
function ScrollLeft(url, name, height, width) {
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  str += ",fullscreen=no,titlebar=no,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes"
  str += ",left=0,top=0";
  return window.open(url, name, str);
}

/*
±â´É :  shop_pd.swf ¼îÇÎÁß´Ü ÆË¾÷¶ç¿ì±â
*/	
function openwindows(){ 
url = "http://www.azzle.co.kr/popup/popup_100607.html" ; 
window.open(url,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=no,status=yes,width=400,height=368'); 
} 

//ÇÃ·¡½¬ °ü·Ã
function flashview (dirNswf,fwidth,fheight,params) {
 var flashobjec="";
 flashobjec+="		<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\' width=\'"+fwidth+"\' height=\'"+fheight+"\'>";
 flashobjec+="      <param name=\'movie\' value=\'"+dirNswf+"\'>";
 flashobjec+="      <param name=\'wmode\' value=\'transparent\'>";
 flashobjec+="      <param name=\'quality\' value=\'high\'>";
 flashobjec+="      <param name=\'menu\' value=\'false\'>";
 flashobjec+="      <embed src=\'"+dirNswf+"\' width=\'"+fwidth+"\' height=\'"+fheight+"\' quality=\'high\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\' type=\'application/x-shockwave-flash\' menu=\'false\'></embed>";
 flashobjec+="    </object>";

 document.write(flashobjec);
}

