// JavaScript Document


/*
Random-Order content script
By JavaScript Kit (http://www.javascriptkit.com)
This notice must stay intact for use
*/

//1) Specify content(s) to display and rotate
//   You can specify multiple "sets", each displayed in diff. areas of your page


var gamecontent=new Array() // BUY content
gamecontent[0]='<a href="Pirates.html">Pirates!</a> - Flash game'
gamecontent[1]='<a href="Kaboom.html">Kaboom</a> - Flash game'
gamecontent[2]='<a href="Cursed_Winds.html">Cursed Winds</a> - Flash game'
gamecontent[3]='<a href="Lego Treasure Hunt.html">Lego Treasure Hunt</a> - Flash game'
gamecontent[4]='<a href="Pirate Invasion.html">Pirate Invasion</a> - javascript game,IE,NS only'
gamecontent[5]='<a href="Cannon Battle.html">Cannon Battle</a>  - Flash game'
gamecontent[6]='<a href="jigsaws.html">Jigsaw Puzzles</a> - javascript game'
gamecontent[7]='<a href="Tic.html">Tic Tac Bones</a> - javascript game'
gamecontent[8]='<a href="Hang Pirate.html">Hang (man) Pirate</a>  - javascript game'
gamecontent[9]='<a href="Cannon Blast.html">Cannon Blast</a> - Flash game'
gamecontent[10]='<a href="concentrate.html">Pirate Concentration</a> - Java applet game'
gamecontent[11]='<a href="Treasure Hunt.html">Treasure Hunt</a> - Java applet game'
gamecontent[12]='<a href="Word Search.html">Word Search</a> - Java applet game'
gamecontent[13]='<span style="color:#ff0000">New!</span> <a href="Treasure of Cutlass Reef.html">Treasure of Cutlass Reef</a> - Flash game'
gamecontent[14]='<span style="color:#ff0000">New!</span> <a href="WhackACrab.html">Whack A Crab</a> - Flash game'
gamecontent[15]='<span style="color:#ff0000">New!</span> <a href="PiratesDice.html">Pirate&acute;s Dice</a> - Flash game'
gamecontent[16]='<span style="color:#ff0000">New!</span> <a href="Pirate Blast.html">Pirate Blast</a> - Flash game'
gamecontent[17]='<span style="color:#ff0000">New!</span> <a href="CaptainJacksAdventure.html">Captain Jack&acute;s Adventure</a> - Flash game'


function randomorder(targetarray, spacing){

var randomorder=new Array()
var the_one
var z=0
for (i=0;i<targetarray.length;i++)
randomorder[i]=i

while (z<targetarray.length){
the_one=Math.floor(Math.random()*targetarray.length)
if (targetarray[the_one]!="_selected!"){
document.write(targetarray[the_one]+spacing)
targetarray[the_one]="_selected!"
z++
}
}
}


