// CREDITS:
// Worlds most simple simple banner rotating script
// by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com/fast/index.html
// info@24fun.com
// 10/4/2000

// IMPORTANT: 
// If you add this script to a script-library or script-archive 
// you have to add a link to http://www.24fun.com/fast/index.html on the webpage 
// where this script will be running.

// INSTRUCTIONS: 
// Got to http://www.24fun.com/fast/index.html, open category 'utility' 
// and download the scriptfiles with colorized instructions 
// for easy configuration


// how long shall each banner appear? rotating interval  in seconds
var rotating_interval=10

// vertical position of banner: distance to the top margin, pixels
var bannerTopPosition=10

// horizontal position of banner: distance to the left margin, pixels
var bannerLeftPosition=120

var sponsor=new Array()
var i_sponsor=0
var randomvalue
rotating_interval=rotating_interval*1000


// banner code for Chris Cary
sponsor[i_sponsor]='<a href="http://www.chriscary.com" target=_"top"><img src="banners/chriscary.gif" width="468" height="60" alt="Visit chriscary.com!" border="0"></a>'
i_sponsor++

// banner code for NEDSTAT
sponsor[i_sponsor]='<a href="http://v1.nedstatbasic.net/apply?ref=1&accountname=lazerweb" target="top"><img src="banners/nedstat.gif" width="468" height="60" alt="The best counter on planet earth." border="0"></a>'
i_sponsor++

// banner code for freespeech.org
sponsor[i_sponsor]='<a href="http://www.freespeech.org" target="_blank"><img src="banners/freespeech.gif" width="468" height="60" alt="Thankyou for hosting our site for free!" border="0"></a>'
i_sponsor++

// banner code for TR2TH Tshirt
sponsor[i_sponsor]='<a href="http://free.freespeech.org/tr2th" target=_"top"><img src="banners/nedstat.gif" width="468" height="60" alt="Be cool. Wear a tr2th tshirt." border="0"></a>'
i_sponsor++


function positionbanner() {
    if (document.all) {
        document.all.banner.style.posTop=bannerTopPosition
		document.all.banner.style.posLeft=bannerLeftPosition
    }
    if (document.layers) {
        document.banner.top=bannerTopPosition
		document.banner.left=bannerLeftPosition
    }
    showbanner()
}

function showbanner() {
    randomvalue=Math.round((sponsor.length-1)*Math.random())
	var content=sponsor[randomvalue]
    if (document.all) {
        banner.innerHTML=content
    }
    if (document.layers) {
        document.banner.document.write(content)
		document.banner.document.close()
    }
    setTimeout("showbanner()",rotating_interval)
}
document.write('<DIV id="banner" style="position:absolute">&nbsp;</DIV>')
document.close()

window.onload=positionbanner
