// ·Î°í ÀÌ¹ÌÁö Å©±â ¼³Á¤
var nLogoWidth=46
var nLogoHeight=21
var strLogoImage=new Image(nLogoWidth,nLogoHeight)
 
// ·Î°í ÀÌ¹ÌÁö °æ·Î
strLogoImage.src="images/top.gif"
 
// ·Î°í Å¬¸¯½Ã ÀÌµ¿ÇÒ URL
var strLogoLink="#"
 
// ÀÌ¹ÌÁö ÅÂ±×ÀÇ ALT ¼Ó¼º
var strAltText="Top"
 
// ·Î°í ÀÌ¹ÌÁö°¡ ³ªÅ¸³¯ ½Ã°£ ¼³Á¤. 
// 12¸é 12ÃÊÀÓ. ¸¸ÀÏ °è¼Ó ³ªÅ¸³ª°Ô ÇÏ°í ½ÍÀ¸¸é ÀÌ °ªÀ» 0À¸·Î ¼³Á¤
var nVisibleDuration=0
 
// ¿À¸¥ÂÊ°ú ¾Æ·¡ÂÊ¿¡¼­ ¾î´À Á¤µµ ¶³¾îÁ® º¸ÀÌ°Ô ÇÒÁö ¼³Á¤
var nHoffset=10
var nVoffset=10
var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var objWatermark=ie? document.all.objWatermarkLogo : document.getElementById? document.getElementById("objWatermarkLogo") : 
document.objWatermarkLogo
function fnInsertImage(){
        if (ie||document.getElementById)
                objWatermark.innerHTML='<a href="'+strLogoLink+'"><img src="'+strLogoImage.src+'" width="'+nLogoWidth+'" height="'+nLogoHeight+'" border=0 alt="'+strAltText+'"></a>'
        else if (document.layers){
                objWatermark.document.write('<a href="'+strLogoLink+'"><img src="'+strLogoImage.src+'" width="'+nLogoWidth+'" height="'+nLogoHeight+'" border=0 alt="'+strAltText+'"></a>')
                objWatermark.document.close()
        }
}
function fnPositionIt(){
        var nLeft=ie? document.body.scrollLeft : pageXOffset
        var nTop=ie? document.body.scrollTop : pageYOffset
        var nWindowWidth=ie? document.body.clientWidth : window.innerWidth-20
        var nWindowHeight=ie? document.body.clientHeight : window.innerHeight
        
        if (ie||document.getElementById){
                objWatermark.style.left=parseInt(nLeft)+parseInt(nWindowWidth)-nLogoWidth-nHoffset
                objWatermark.style.top=parseInt(nTop)+parseInt(nWindowHeight)-nLogoHeight-nVoffset
        }
        else if (document.layers){
                objWatermark.left=nLeft+nWindowWidth-nHoffset-nLogoWidth
                objWatermark.top=nTop+nWindowHeight-nLogoHeight-nVoffset
        }
}
function fnHideWatermark(){
        if (document.layers)
                objWatermark.visibility="hide"
        else
                objWatermark.style.visibility="hidden"
        clearInterval(watermarkinterval)
}
function fnBeginWatermark(){
        watermarkinterval=setInterval("fnPositionIt()",50)
        fnInsertImage()
        if (nVisibleDuration!=0)
                setTimeout("fnHideWatermark()",nVisibleDuration*1000)
        showsub();

}
if (ie||document.getElementById||document.layers)
        window.onload=fnBeginWatermark