///////////////////////////////////////////////////////////////////
/*Site Logo Script (Geocities Watermark)
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com/ */
///////////////////////////////////////////////////////////////////

//edit the below 5 steps

// 1) substitute 116 and 42 with the width and height of your logo image, respectively
var sl_logowidth=75
var sl_logoheight=75
var sl_logoimage=new Image(sl_logowidth,sl_logoheight)

// 2) change the image path to reflect the path of your logo image
sl_logoimage.src="lusologobrief.gif"

// 3) Change url below to the target URL of the logo
var sl_logolink="https://site256.mysite4now.com/lusitania/index.aspx"

// 4) change the alttext variable to reflect the text used for the "alt" attribute of the image tag
var sl_alttext=""

// 5) Finally, below variable determines the duration the logo should be visible after loading, in seconds. If you'd like the logo to appear for 20 seconds, for example, enter 20. Entering a value of 0 causes the logo to be perpectually visible. 
var sl_visibleduration=5

// Optional parameters
var sl_Hoffset=25 //Enter logo's offset from right edge of window (edit only if you don't like the default offset)
var sl_Voffset=25 //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 sl_ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

var watermark_obj=sl_ie? document.all.watermarklogo : document.getElementById? document.getElementById("watermarklogo") : document.watermarklogo

function sl_insertimage(){
if (sl_ie||document.getElementById)
watermark_obj.innerHTML='<a href="'+sl_logolink+'"><img src="'+sl_logoimage.src+'" width="'+sl_logowidth+'" height="'+sl_logoheight+'" border=0 alt="'+sl_alttext+'"></a>'
else if (document.layers){
watermark_obj.document.write('<a href="'+sl_logolink+'"><img src="'+sl_logoimage.src+'" width="'+sl_logowidth+'" height="'+sl_logoheight+'" border=0 alt="'+sl_alttext+'"></a>')
watermark_obj.document.close()
}
}

function sl_positionit(){
var dsocleft=sl_ie? document.body.scrollLeft : pageXOffset
var dsoctop=sl_ie? document.body.scrollTop : pageYOffset
var window_width=sl_ie? document.body.clientWidth : window.innerWidth-20
var window_height=sl_ie? document.body.clientHeight : window.innerHeight

if (sl_ie||document.getElementById){
watermark_obj.style.left=parseInt(dsocleft)+parseInt(window_width)-sl_logowidth-sl_Hoffset
watermark_obj.style.top=parseInt(dsoctop)+parseInt(window_height)-sl_logoheight-sl_Voffset
}
else if (document.layers){
watermark_obj.left=dsocleft+window_width-sl_Hoffset-sl_logowidth
watermark_obj.top=dsoctop+window_height-sl_logoheight-sl_Voffset
}
}

function sl_hidewatermark(){
if (document.layers)
watermark_obj.visibility="hide"
else
watermark_obj.style.visibility="hidden"
clearInterval(watermarkinterval)
}

function sl_beingwatermark(){
watermarkinterval=setInterval("sl_positionit()",50)
sl_insertimage()
if (sl_visibleduration!=0)
setTimeout("sl_hidewatermark()",sl_visibleduration*1000)
}

if (sl_ie||document.getElementById||document.layers)
window.onload=sl_beingwatermark


