function selectall(s)
{var doc=document.body.createTextRange();doc.moveToElementText(document.all(s));doc.select();doc.execCommand('copy');alert('TRACKBACK URL이 클립보드에 저장되었습니다.');}
function gotoCategory(index){document.categories.submit();}
var stmnLEFT=0;var stmnGAP1=-4975;var stmnGAP2=-4975;var stmnBASE=-5010;var stmnActivateSpeed=10;var stmnScrollSpeed=0.1;var stmnTimer;function RefreshStaticMenu()
{var stmnStartPoint,stmnEndPoint,stmnRefreshTimer;stmnStartPoint=parseInt(document.getElementById("STATICMENU").style.top,10);stmnEndPoint=stmnGAP2;if(stmnEndPoint<stmnGAP1)stmnEndPoint=stmnGAP1;stmnRefreshTimer=stmnActivateSpeed;if(stmnStartPoint!=stmnEndPoint){stmnScrollAmount=Math.ceil(Math.abs(stmnEndPoint-stmnStartPoint)/15);document.getElementById("STATICMENU").style.top=parseInt(document.getElementById("STATICMENU").style.top,10)+((stmnEndPoint<stmnStartPoint)?-stmnScrollAmount:stmnScrollAmount);stmnRefreshTimer=stmnScrollSpeed;}
stmnTimer=setTimeout("RefreshStaticMenu();",stmnRefreshTimer);}
function InitializeStaticMenu()
{document.getElementById("STATICMENU").style.top=document.getElementById("scrollTop")+stmnBASE;RefreshStaticMenu();document.getElementById("STATICMENU").style.left=stmnLEFT;}
function wideMenu(){stmnGAP1=-4775;stmnGAP2=-4775;stmnBASE=-4810;}
function resetMenu(){stmnGAP1=-4975;stmnGAP2=-4975;stmnBASE=-5010;}
function toggleMenu(currMenu){if(document.all){thisMenu=eval("document.all."+currMenu+".style")
if(thisMenu.visibility=="visible"){thisMenu.visibility="hidden"}
else{thisMenu.visibility="visible"}
return false}
else{return true}}
function showZSelectBox(id){document.all[id].style.visibility='visible';}
function hideZSelectBox(id){document.all[id].style.visibility='hidden';}
function gogo(){IAMTHETOP.scrollIntoView(true);}
function toForm(mm){if(document.all){thisMenu=eval("document.all."+mm+".style")
if(thisMenu.visibility=="visible"){document.all.search.focus();}
return false}
else{return true}}
function NewWindow(mypage,myname,w,h,scroll){var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;winprops='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win=window.open(mypage,myname,winprops)
if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
window.onerror=ErrorSetting
var e_msg="";var e_file="";var e_line="";function ErrorSetting(msg,file_loc,line_no){e_msg=msg;e_file=file_loc;e_line=line_no;return true;}
function miranda_open(url){window.open(url,'miranda');}
function menuV(iName)
{divUpdate.innerHTML="";var start=new Date();var str="";str+=document.all[iName].value;divUpdate.innerHTML=str;}
function layer_toggle(obj){if(obj.style.display=='none')obj.style.display='block';else if(obj.style.display=='block')obj.style.display='none';}
function setEmbed()
{var obj=new String;var parameter=new String;var embed=new String;var html=new String;var allParameter=new String;var clsid=new String;var codebase=new String;var pluginspace=new String;var embedType=new String;var src=new String;var width=new String;var height=new String;this.init=function(getType,s,w,h,oId){if(getType=="flash")
{clsid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0";pluginspage="http://www.macromedia.com/go/getflashplayer";embedType="application/x-shockwave-flash";}
else if(getType=="movie")
{clsid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95";codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715";embedType="application/x-oleobject";pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp"}
parameter+="<param name='movie' value='"+s+"'>\n";parameter+="<param name='quality' value='high'>\n";src=s;width=w;height=h;objId=oId;}
this.parameter=function(parm,value){parameter+="<param name='"+parm+"' value='"+value+"'>\n";allParameter+=" "+parm+"='"+value+"'";}
this.show=function(){if(clsid)
{obj="<object id="+objId+" classid=\"clsid:"+clsid+"\" codebase=\""+codebase+"\" width='"+width+"' height='"+height+"' value='"+objId+"'>\n";}
embed="<embed src='"+src+"' pluginspage='"+pluginspage+"' type='"+embedType+"' width='"+width+"' height='"+height+"'"+allParameter+" ></embed>\n";if(obj)
{embed+="</object>\n";}
html=obj+parameter+embed;document.write(html);if(objId)
{var Objv=document.getElementById(objId);if(Objv.value==objId){eval("document."+objId+".focus();");}}}}
function swf(src,width,height){object='';object+='<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';object+='<param name="movie" value="'+src+'">';object+='<embed src="'+src+'" quality="high" wmode="transparent" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';object+='<\/object>';document.write(object);}