// 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 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=15

// 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=60

var sponsor=new Array()
var i_sponsor=0
var randomvalue
rotating_interval=rotating_interval*1000

// banner code for webtree.ca
sponsor[i_sponsor]='<IMG SRC="http://www.webtree.ca/tree/banner/webtree_ban.jpg" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://www.webtree.ca" TARGET="_blank"><IMG SRC="http://www.webtree.ca/tree/banner/webtree_ban.jpg" BORDER="0" WIDTH="346" HEIGHT="60" ALT="powered by webtree"></A>'
i_sponsor++ 

// banner code for newlife
sponsor[i_sponsor]='<IMG SRC="http://www.webtree.ca/tree/banner/newlife_ban.jpg" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://www.webtree.ca/newlife/" TARGET="_blank"><IMG SRC="http://www.webtree.ca/tree/banner/newlife_ban.jpg" BORDER="0" WIDTH="468" HEIGHT="60" ALT="newlife for windows"></A>'
i_sponsor++

// banner code for estevan tkd
sponsor[i_sponsor]='<IMG SRC="http://www.webtree.ca/tree/banner/etkd_ban.jpg" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://www.webtree.ca/estevantkd/" TARGET="_blank"><IMG SRC="http://www.webtree.ca/tree/banner/etkd_ban.jpg" BORDER="0" WIDTH="468" HEIGHT="70" ALT="Estevan Tae Kwon-Do Association"></A>'
i_sponsor++ 

// banner code for windows xp
sponsor[i_sponsor]='<IMG SRC="http://www.webtree.ca/tree/banner/xp_ban.jpg" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://www.webtree.ca/windowsxp/" TARGET="_blank"><IMG SRC="http://www.webtree.ca/tree/banner/xp_ban.jpg" BORDER="0" WIDTH="468" HEIGHT="60" ALT="windows XP"></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