var logolink=""
var alttext=""
var visibleduration=0
var Hoffset=10 
var Voffset=0 
var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var watermark_obj=ie? document.all.randomimage : document.getElementById? document.getElementById("randomimage") : document.randomimage

function insertimage()
{
	if (ie||document.getElementById)
	watermark_obj.innerHTML='<img src="'+logoimage.src+'" width="'+logowidth+'" height="'+logoheight+'" border=0 alt="'+alttext+'">'
	else if (document.layers)
	{
	watermark_obj.document.write('<img src="'+logoimage.src+'" width="'+logowidth+'" height="'+logoheight+'" border=0 alt="'+alttext+'">')
	watermark_obj.document.close()
	}
}

function positionit()
{
var dsoctop=ie? document.body.scrollTop : pageYOffset
	var window_height=ie? document.body.clientHeight : window.innerHeight
	
	if (ie||document.getElementById)
	{
		watermark_obj.style.top=parseInt(dsoctop)+parseInt(window_height)-logoheight-Voffset
	}
	else if (document.layers)
	{
		watermark_obj.top=dsoctop+window_height-logoheight-Voffset
	}
}

function hidewatermark()
{
	if (document.layers)
	watermark_obj.visibility="hide"
	else
	watermark_obj.style.visibility="hidden"
	clearInterval(watermarkinterval)
}

function beingwatermark()
{
	watermarkinterval=setInterval("positionit()",50)
	insertimage()
	if (visibleduration!=0)
	setTimeout("hidewatermark()",visibleduration*1000)
}

if (ie||document.getElementById||document.layers)
window.onload=beingwatermark
