/*----------------------------------------------------
||Banner Ad Rotater v1.01                            ||
||                                                   ||
||Script by:                                         ||
||Anarchos                                           ||
||URL: http://www.xs.mw/anarchos                     ||
||E-mail: anarchos3@hotmail.com                      ||
||ICQ: 12007422                                      ||
||                                                   ||
||E-mail or ICQ me if you have any questions or need ||
||help setting up your banner ad rotator. Check out  ||
||my webpage every once in a while for updates to    ||
||this script.                                       ||
-----------------------------------------------------*/


//Setup Instructions:
//-0) Modify this file then copy and paste it into the <head> of the webpage to use the banner ad script

/*---------------------------
1) add into your <head>:
 
<script language="javascript" src="bannerscript.js"></script>

<style>
<!--
#bannerAd{visibility:visible;}
-->
</style>
 
-----------------------------*/

/*----------------------------
2) add this code into your webpage where you want the banner ad to be displayed:

<!-- Banner Ad code -->
<div id="bannerAd">
<script language="JavaScript">
<!-- 
document.write(myCode)
// -->
</script>
</div>
<!-- End Banner Ad-->

-----------------------------*/

//-3) time between switching the ad, in milliseconds -\\
var refreshTime = 6000; //- 5000 ms = 5 seconds -\\

//-4) number of ads to rotate -\\
var numAds = 23;

function makeAd() {
	this.width = ''
	this.height = ''
	this.src = ''
	this.href = ''
	this.mouseover = ''
	this.sponsor = ''
}

var ads = new Array()
for(var i = 1; i <= numAds; i++) { ads[i] = new makeAd() }

//- 5) Copy and paste the lines between the banner definition for 
//each banner you want to rotate and be sure to change numAds to 
//the number of banners (look about 15 lines up for numAds)
i = 1;


/*------------begin banner definition----------*/
ads[i].width = "600"                           //width of image
ads[i].height = "120"                           //height of image
ads[i].src = "/layout/VideoGameBannerNew.jpg"  			       //image url
ads[i].href = "/Swords/Video-Game-Swords.html"           	       //link url
ads[i].mouseover = "Video Game Series Weapon Replicas - Click Here"            //text to display when mouse moves over banner
ads[i].sponsor = "The King Knows What YOU Want - Step Inside and Claim YOUR Sword"                     //text to display for text link under banner
i++
/*-------------end banner definition-----------*/


ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/AnimeBannerNew.jpg"  			
ads[i].href = "/Swords/Anime-Swords.html"           	 
ads[i].mouseover = "Anime Series Weapon Replicas - Click Here"       
ads[i].sponsor = "Find the Newest Anime Series Weapon Replicas HERE- Click Above"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/StunGunBannerNew.jpg"  			
ads[i].href = "/stun.php"           	 
ads[i].mouseover = "WORLDWIDE Shipping - Non Lethal Self Defense & Stun Guns - Click Here"       
ads[i].sponsor = "WORLDWIDE Shipping - Non Lethal Self Defense & Stun Guns for You & Loved Ones"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/KnuckleBucklesBanner.jpg"  			
ads[i].href = "/Apparel/Knuckle-Buckles.html"           	 
ads[i].mouseover = "WORLDWIDE Shipping - Knuckle Buckles - Click Here"       
ads[i].sponsor = "Don't get caught empty handed with your pants down, Check out our Knuckle Buckles"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/handmadeforgedswordsbanner.gif"  			
ads[i].href = "/Swords/Handmade-Swords.html"           	 
ads[i].mouseover = "Handmade Forged Swords High Carbon Steel - Click HERE"       
ads[i].sponsor = "Handmade Forged Battle Ready Swords and Katanas from the Fires of the Earth"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/kingofswordsallswordsbanner.jpg"  			
ads[i].href = "/Swords.html"           	 
ads[i].mouseover = "All Swords, Medieval, Fantasy, Oriental, Movie, Ninja, Anime - Click Here"       
ads[i].sponsor = "All Swords, Medieval, Fantasy, Oriental, Movie, Ninja, Anime - Click Here" 
i++               

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/KnightsArmorBannerNew.jpg"  			
ads[i].href = "/Armor-Shields/Knights-Suits-of-Armor.html"           	 
ads[i].mouseover = "Medieval Suits of Armor"       
ads[i].sponsor = "Here you will find the most affordable selection of free standing suits of armor on the internet"  
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/ArsenalNewBanner.jpg"  			
ads[i].href = "/Aresenal-Replicas.html"           	 
ads[i].mouseover = "Arsenal Replicas Movie Props"       
ads[i].sponsor = "Find your favorite custom cast Movie Props from all the ages - Click Here" 
i++             

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/EverythingDragonBanner.jpg"  			
ads[i].href = "/Dragon-Stuff.html"           	 
ads[i].mouseover = "Dragon Fanatics Entere HERE for Everything Dragon"       
ads[i].sponsor = "Dragon Fanatics Entere HERE for Everything Dragon" 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/AxesMacesBanner.jpg"  			
ads[i].href = "/Axes-Mace-Balls.html"           	 
ads[i].mouseover = "Axes Maces Flails & Clubs"       
ads[i].sponsor = "Medieval & Fantasy Axes, Halberds, Maces and Flails"                
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/WeveGotKnives.jpg"  			
ads[i].href = "/Knives.html"           	 
ads[i].mouseover = "Hundreds of Knives to Choose From - Click Here"       
ads[i].sponsor = "Looking for a Knife? The King offers over 1000 choices!"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/KillBillBanner.jpg"  			
ads[i].href = "/KILL-BILL.html"           	 
ads[i].mouseover = "David Carradine Autographed Kill Bill Movie Katanas - Click Here"       
ads[i].sponsor = "Kill Bill Hatorri Hanzo Katanas - Autographed Editions by David Carradine"             
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/CanYouSayNunchaku.jpg"  			
ads[i].href = "/Nunchuck.html"           	 
ads[i].mouseover = "Over 40 Nunchaku Styles - Hard Wood, Steel, Rubber and Foam Practice"       
ads[i].sponsor = "Over 40 Nunchaku Styles - Hard Wood, Steel, Rubber and Foam Practice"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/SwordCanesBanner.jpg"  			
ads[i].href = "/Swords/Sword-Cane.html"           	 
ads[i].mouseover = "Over 100+ Sword Cane Selections - Fantasy, Magical, and Practical"       
ads[i].sponsor = "Over 100+ Sword Cane Selections - Fantasy, Magical, and Practical"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/FantasyJewelryBanner.jpg"  			
ads[i].href = "/Fantasy-Jewelry.html"           	 
ads[i].mouseover = "Fully Licensed Fantasy Jewelry - Necklaces, Rings, Bracelets, Geek Tags, Magic Items"       
ads[i].sponsor = "Full Licensed Fantasy Jewelry - Necklaces, Rings, Bracelets, Magic Items"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/ShieldBannerZelda.jpg"  			
ads[i].href = "/Armor-Shields/Shields.html"           	 
ads[i].mouseover = "Legend of Zelda Hylian Shield and Sword Replicas"       
ads[i].sponsor = "Medieval, Historic, and Fantasy Replica Shields from All the Lands"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/NeonAirsoftBanner.jpg"  			
ads[i].href = "/Airguns-Crossbows.html"           	 
ads[i].mouseover = "Airsoft Rifles, Machine Guns, Pistols, Ammo, and Gear"       
ads[i].sponsor = "Airsoft Rifles, Machine Guns, Pistols, Ammo, and Gear"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/BurtErnieThrower.jpg"  			
ads[i].href = "/Throwers.html"           	 
ads[i].mouseover = "Shuriken, Throwing Knives, Axes, Blades, Spikes, & Stars"       
ads[i].sponsor = "Shuriken, Throwing Knives, Axes, Blades, Spikes, & Stars"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/GiftsAndGadgetsRollBanner.jpg"  			
ads[i].href = "/GIFTS-GADGETS.html"           	 
ads[i].mouseover = "All of the coolest stuff from around the Internet"       
ads[i].sponsor = "All of the coolest gifts & gadgets from around the Kingdom"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/GangstasBanner.jpg"  			
ads[i].href = "/Swords.html"           	 
ads[i].mouseover = "King of Swords has what YOU need, and everything you want"       
ads[i].sponsor = "King of Swords has What YOU Want, you just need some Cashflow"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/BattleReadyBanner.jpg"  			
ads[i].href = "/Swords/Handmade-Swords.html"           	 
ads[i].mouseover = "Hand Forged Battle Ready Swords"
ads[i].sponsor = "Looking for Handmade High Carbon Forged Blades? You found them, right here!"
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/FatBastardPipesBanner.jpg"  			
ads[i].href = "/Hookahs-Pipes.html"           	 
ads[i].mouseover = "Don't be a Fat Bastard, Click Here for our Wide Assortment of Smoking Goods"       
ads[i].sponsor = "Don't be a Fat Bastard, Click Here for our Wide Assortment of Smoking Goods"                 
i++

ads[i].width = "600"    
ads[i].height = "120"                  
ads[i].src = "/layout/LockPicksBanner.jpg"  			
ads[i].href = "/Lock-Picks.html"           	 
ads[i].mouseover = "Professional Series Lock Picks and Kits"       
ads[i].sponsor = "King of Swords has what YOU need, To get you INSIDE"                 
i++

var myCode = '';
do {
var n= Math.floor(Math.random() * (numAds + 1) + 1);
} while(n > numAds);
var current_ad = n;
myCode = getCode(n);

function getCode(adNumber){
	var tempCode = ""
	tempCode += ('<a href="'+ ads[adNumber].href +'" \n')
	tempCode += ('onMouseOver="status=\''+ ads[adNumber].mouseover +'\';return true" \n')
	tempCode += ('onMouseOut="status=\'\'"> \n')
	tempCode += ('<img src="' + ads[adNumber].src + '" width=' + ads[adNumber].width)
	tempCode += (' onLoad="setTimeout(\'newAd();\',' + refreshTime + ');"')
	tempCode += ('\n height=' + ads[adNumber].height + ' border=0 >')
	tempCode += ('<br><b>' + ads[adNumber].sponsor + '</b>') //delete this line if you don't want any text to be displayed under your banner
	tempCode += ('</a>')
	return tempCode;
	}

function newAd(){
	current_ad++;
	if (current_ad > numAds)
		current_ad = 1;
	   write(getCode(current_ad));
}

function write(text){
	var ie4 = document.all && !document.getElementById;

	if (document.layers) {
		if (ie4) {
			document.bannerAd.document.write(text);
			document.bannerAd.document.close();
		} else {
			document.getElementById('bannerAd').document.write(text);
			document.getElementById('bannerAd').document.close();

		}
		
		}
	else
		if (ie4)
		{
			document.all.bannerAd.innerHTML = text;
		} 
		else
		{
			document.getElementById('bannerAd').innerHTML = text;
		}
	
}