function MakeFlash(Url,Name,Width,Height,Wmode)
{
    document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" id=\"" + Name + "\" width=\"" + Width + "\" height=\"" + Height + "\" onError=\"this.style.display='none'\" />"); 
    document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />"); 
    document.writeln("<param name=\"movie\" value=\"" + Url + "\" />"); 
    document.writeln("<param name=\"quality\" value=\"high\" />");     
    document.writeln("<param name=\"wmode\" value=\"" + Wmode + "\" />"); 
    document.writeln("<embed src=\"" + Url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" name=\"" + Name + "\" width=\"" + Width + "\"  height=\"" + Height + "\" />"); 
    document.writeln("</object>");     
}



String.prototype.toInteger = function() {
 return this.replace(/[^0-9]/g, '') * 1;
}
/////////follow_banner("¹è³Ê¾ÆÀÌµð", ¿ø·¡ÀÇ À§Ä¡, µû¶ó´Ù´Ï±â ½ÃÀÛÇÏ´Â ³ôÀÌ, È­¸é À§ÂÊ¸¶Áø,ÆäÀÌÁö ³ôÀÌ, º£³Ê ¸ØÃß´Â À§Ä¡(¾Æ·¡ÂÊ) );//////
function follow_banner(div_id, origin_top, limit_top, margin_top,body_height, max)
{
 var d, t, s, g, target_height;
 origin_top *= 1;
 limit_top *= 1;
 margin_top *= 1;
 
 d = document.getElementById(div_id);
 s = document.body.scrollTop + "";

 target_height = s.toInteger() + margin_top;
 if(target_height < limit_top) {
  target_height = origin_top;
 }
body_height=document.body.scrollHeight;
 t = d.style.top.toInteger();
 var t_bottom = (body_height-(t+260));

if(t_bottom>max||target_height<t){ 
 if(t != target_height) {
  g = Math.ceil(((t - target_height) / 5));
  //alert(t+" "+target_height+" "+(t - target_height)+" "+g);
  if(g > 50) {
   g = 50;
  } else if (g < -50) {
   g = -50;
  }
  if(g == 0 && (t - target_height) < 0){
	d.style.top = (t + 1) + "px";
  }else{
    d.style.top = (t - g) + "px";
  }
 }
}
 setTimeout("follow_banner('" + div_id + "', " + origin_top + ", " + limit_top + ", " + margin_top + ","+body_height+","+max+");", 1);
}

open_imgpop = function(table, filename, width, height)
{
	window.open("/lib/module/popup/img_popup.html?table="+table+"&filename="+filename, table, "width="+width+",height="+height);
}

function vod_patch(file, id, width, height,display){
var str='<OBJECT width="'+width+'" height="'+height+'" id="'+id+'" type="application/x-oleobject" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" style="display:'+display+'">';
str+='<PARAM NAME="Filename" VALUE="'+file+'">';
str+='<param name="autostart" value="0">'
str+='<PARAM NAME="AllowChangeDisplaySize" VALUE="0">'
str+='<PARAM NAME="CurrentPosition" VALUE="1">'
str+='<PARAM NAME="ShowControls" VALUE="0">'
str+='<PARAM NAME="Volume" VALUE="-530">'
str+='<PARAM NAME="WindowlessVideo" VALUE="-1">'
str+='</OBJECT>'
document.write(str);
}

function addFavorite(){
	if(confirm("Áñ°ÜÃ£±â¿¡ Ãß°¡ÇÏ½Ã°Ú½À´Ï±î?")){
		window.external.AddFavorite("http://www.nowbe.co.kr/","³ª¿ìºñ Å¬¸®´Ð ÀÇ¿ø");
	}
}




function addLoadEvent(func) {
	var oldOnLoad = window.onload;
	
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldOnLoad();
			func();
		}
	}
}

//<!-- LOG corp Web Analitics & Live Chat START -->
	var HTTP_MSN_MEMBER_NAME="";/*member name*/
	var _HUsrSvrAddr="http://asp3.http.or.kr",_HRndTmpGuid="r"+(new Date().getTime()*Math.random()*9*Math.random()*0.9);
	function _HLogChkHead(){
		if(document.getElementsByTagName("head")[0]){_HDwnLogSrc()}else{window.setTimeout(_HLogChkHead,30)}
	}
	function _HDwnLogSrc(){
		var h=document.getElementsByTagName("head")[0];var s=document.createElement("script");s.type="text/javascript";
		if(h){h.appendChild(s);s.src=_HUsrSvrAddr+"/HTTP_MSN/UsrConfig/dryun/js/ASP_Conf.js?s="+_HRndTmpGuid;}
	};
	document.write('<img src="'+_HUsrSvrAddr+'/[sr].gif?d='+_HRndTmpGuid+'" style="width:1px;height:1px;display:none;position:absolute;" onload="_HLogChkHead()" />');
//<!-- LOG corp Web Analitics & Live Chat END -->

