//edit the below 5 steps
// 1) the width and height of your logo image, respectively
var logowidth=13
var logoheight=60
var logoimage=new Image(logowidth,logoheight)

// 2) change the image path to reflect the path of your logo image
logoimage.src="../img/blokje.gif"


// Optional parameters
var Hoffset=0 //Enter logo's offset from right edge of window (edit only if you don't like the default offset)
var Voffset=0 //Enter logo's offset from bottom edge of window (edit only if you don't like the default offset)

///////////////////////////Do not edit below this line/////////////////////////
var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var sf=navigator.userAgent.indexOf("Safari")>-1
var ns=navigator.userAgent.indexOf("Netscape")>-1
var ff=navigator.userAgent.indexOf("Firefox")>-1

var watermark_obj= document.getElementById("toolbar");
logoheight=watermark_obj.style.height.replace('px', '');

function insertimage(){
return;
if (ie||document.getElementById)
watermark_obj.innerHTML='<img src="'+logoimage.src+'" width="'+logowidth+'" height="'+logoheight+'">'
else if (document.layers){
watermark_obj.document.write('<img src="'+logoimage.src+'" width="'+logowidth+'" height="'+logoheight+'">')
watermark_obj.document.close()
}
}

function positionit(){
var dsocleft=ie? document.body.scrollLeft : pageXOffset
var dsoctop=ie? document.body.scrollTop : pageYOffset
var window_width=ie? document.body.clientWidth : window.innerWidth-20
if (sf){
var window_width=ie? document.body.clientWidth : window.innerWidth-0}
if (ns||ff){
var window_width=ie? document.body.clientWidth : window.innerWidth-15}
var window_height=ie? document.body.clientHeight : window.innerHeight

if (ie||document.getElementById){
watermark_obj.style.left=0;//parseInt(dsocleft)+parseInt(window_width)-logowidth-Hoffset
watermark_obj.style.top=parseInt(dsoctop)+parseInt(window_height)-logoheight-Voffset
}
else if (document.layers){
watermark_obj.left=dsocleft+window_width-Hoffset-logowidth
watermark_obj.top=dsoctop+window_height-logoheight-Voffset
}
}

function beingwatermark(){
watermarkinterval=setInterval("positionit()",100)
insertimage()
}

if (ie||document.getElementById||document.layers)
window.onload=beingwatermark

