///////////////////////////////////////////////////////////////////
/*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 6 steps

// 1) substitute 116 and 42 with the width and height of your logo image, respectively
var BFlogowidth=200
var BFlogoheight=15
var BFstaticlogo=new Image(BFlogowidth,BFlogoheight)

// 5) set below to either "1" or "0" ("1" fades the logo into view) Note: IE 4 specific
var BFfadeintoview=1

// 6) 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 BFvisibleduration=0

var BFshowlink = BFshowlink
BFstaticlogo.src = BFimagepath
var BFlogolink=BFlogolink
var BFalttext=BFalttext

var BFshowlink2 = BFshowlink2
	BFstaticlogo.src2 = BFimagepath2
var BFlogolink2=BFlogolink2
var BFalttext2=BFalttext2

///////////////////////////Do not edit below this line/////////////////////////

var viewit = ''
var BFns4=document.layers
var BFie4=document.all
var BFns6=document.getElementById&&!document.all

function BFregenerate(){
window.location.reload()
}
function BFregenerate2(){
if (BFns4)
setTimeout("window.onresize=BFregenerate",400)
}


var BFfadeset=''
if (BFfadeintoview)
BFfadeset="filter:alpha(opacity=0)"

if (BFie4)
document.write('<span id="logo" style="'+BFfadeset+';position:absolute;top:100;width:'+BFstaticlogo.width+';height:'+BFstaticlogo.height+'"></span>')

function BFbringintoview(){
if (logo.filters.alpha.opacity<=95)
logo.filters.alpha.opacity+=5
else{
	clearInterval(viewit)
if (BFvisibleduration!=0)
setTimeout("logo.style.visibility='hidden'",BFvisibleduration*1000)
}
}

function BFcreatelogo(){
BFstaticimage=new Layer(100)
BFstaticimage.left=-300
BFstaticimage.top=120

if (BFshowlink){
	var BFthelinka='<a center" href="'+BFlogolink+'"><img src="'+BFstaticlogo.src+'" border=0 alt="'+BFalttext+'"></a>'
}else{
var BFthelinka=' '
}
if (BFshowlink2){
var BFthelinka2='<a href="'+BFlogolink2+'"><img src="'+BFstaticlogo.src2+'" border=0 alt="'+BFalttext2+'"></a>'
}else{
	var BFthelinka2=' '
}

BFstaticimage.document.write(BFthelinka + BFthelinka2)
BFstaticimage.document.close()
BFstaticimage.visibility="show"
BFregenerate2()
BFstaticitns()
}

if (BFns4)
window.onload=BFcreatelogo;
else if (BFie4)
BFcrosslogo=document.all.logo
else if (BFns6)
BFcrosslogo=document.getElementById("logons6")

if (BFie4||BFns6){
if (BFshowlink&BFshowlink2){
BFw=220
}else if (BFshowlink2){
BFw=295
}else if (BFshowlink){
BFw=220
}
BFh=BFns6? window.innerHeight-logoheight-5 : document.body.clientHeight-BFcrosslogo.style.pixelHeight-5
BFcrosslogo.style.left=BFw
BFcrosslogo.style.top=BFh
}

function BFlogoit(){
var BFw2=BFns6? BFpageXOffset+BFw : document.body.scrollLeft+BFw
var BFh2=BFns6? BFpageYOffset+BFh : document.body.scrollTop+BFh
BFcrosslogo.style.left=BFw2
BFcrosslogo.style.top=BFh2
}
function BFlogoit2(){
if (BFshowlink & BFshowlink2){
BFstaticimage.left=BFpageXOffset+window.innerWidth-BFstaticimage.document.width+2
}else if (BFshowlink){
BFstaticimage.left=BFpageXOffset+window.innerWidth-BFstaticimage.document.width+2
}else if (showlink2){
BFstaticimage.left=BFpageXOffset+window.innerWidth-BFstaticimage.document.width+2
}
BFstaticimage.top=BFpageYOffset+window.innerHeight-BFstaticimage.document.height-5
}

function BFinsertimage(){
if (BFshowlink){
	var BFthelink='<a href="'+BFlogolink+'"><img src="'+BFstaticlogo.src+'" border=0 alt="'+BFalttext+'"></a>'
}else{
	var BFthelink=' '
}
if (BFshowlink2){
	var BFthelink2='<a href="'+BFlogolink2+'"><img src="'+BFstaticlogo.src2+'" border=0 alt="'+BFalttext2+'"></a>'
}else{
	var BFthelink2=' '
}
BFcrosslogo.innerHTML=BFthelink + BFthelink2
if (BFie4){
if (BFfadeintoview)
	viewit = setInterval("BFbringintoview()",100)
else{
if (BFvisibleduration!=0)
setTimeout("BFcrosslogo.style.visibility='hidden'",BFvisibleduration*1000)
}
}
}

if (BFie4){
window.onscroll=BFlogoit
window.onresize=new Function("window.location.reload()")
window.onload=BFinsertimage
}
else if (BFns6){
BFstartstatic=setInterval("BFlogoit()",100)
window.onload=BFinsertimage
window.onresize=new Function("window.location.reload()")
if (BFvisibleduration!=0)
setTimeout("BFcrosslogo.style.visibility='hidden';clearInterval(BFstartstatic)",BFvisibleduration*1000)
}


function BFstaticitns(){
BFstartstatic=setInterval("BFlogoit2()",90)
if (BFvisibleduration!=0)
setTimeout("BFstaticimage.visibility='hide';clearInterval(BFstartstatic)",BFvisibleduration*1000)
}

