// 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=12

// 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=400

var sponsor=new Array()
var i_sponsor=0
var randomvalue
rotating_interval=rotating_interval*1000

// banner code for lilka
sponsor[i_sponsor]='<a href="http://www.benenatus.cso.net.pl" target="_blank"><img src="\anner/benenatus.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for myhounds.com
sponsor[i_sponsor]='<a href="http://www.myhounds.ro" target="_blank"><img src="\anner/animation1.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for krist wil
sponsor[i_sponsor]='<a href="http://www.przychodnia.konin.pl" target="_blank"><img src="\anner/animation3.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for aviva
sponsor[i_sponsor]='<a href="http://www.avivaafghans.com" target="_blank"><img src="\anner/animation4.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for krist wil
sponsor[i_sponsor]='<a href="http://www.psy.mtg.pl/psy" target="_blank"><img src="\anner/animation5.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for lidka
sponsor[i_sponsor]='<a href="http://www.lidiachart.com" target="_blank"><img src="\anner/animation6.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for free gif
sponsor[i_sponsor]='<a href="mailto:marek@imardeghar.org.pl" target="_blank"><img src="\anner/free.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for oz
sponsor[i_sponsor]='<a href="http://www.ozshowdogs.com/" target="_blank"><img src="\anner/oz.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for doveny
sponsor[i_sponsor]='<a href="http://www.doveny.com/" target="_blank"><img src="\anner/doveny.jpg" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for mahimmar
sponsor[i_sponsor]='<a href="http://mahimmar.afghanbreeders.net/" target="_blank"><img src="\anner/mahimmar.jpg" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for El Gang
sponsor[i_sponsor]='<a href="http://www.afgan-ellgang.narod.ru/" target="_blank"><img src="\anner/elgang.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for stripduke
sponsor[i_sponsor]='<a href="http://stripduke.web-log.nl/" target="_blank"><img src="\anner/stripduke.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++

// banner code for Pustynny Wiatr
sponsor[i_sponsor]='<a href="http://www.pustynnywiatr.republika.pl/" target="_blank"><img src="\anner/pw.gif" width="400" height="50" alt="Click her for free interactive content" border="0"></a>'
i_sponsor++
// banner code for Eurobreeders
sponsor[i_sponsor]='<a href="http://www.eurobreeder.com" target="_blank"><img src="http://www.eurobreeder.com/eurobreeder_02.gif" title="Dog Breeders in Europe" 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
