// JavaScript Document

var theImages = new Array()

//random-loading images
theImages[0]='images/roll_image/1zone.gif'
theImages[1]='images/roll_image/tivest.gif'
theImages[2]='images/roll_image/guidestrides.gif'
theImages[3]='images/roll_image/softcore.gif'
theImages[4]='images/roll_image/assassin.gif'
theImages[5]='images/roll_image/camo.gif'
theImages[6]='images/roll_image/absolute.gif'

var j= 0
var p =theImages.length;
var preBuffer = new Array()

for (i=0;i<p; i++){
	preBuffer[i] = new Image()
	preBuffer[i].src =theImages[i]
}
var whichImage =Math.round(Math.random()*(p-1));
function showImage(){
	if(whichImage==0){
		document.write('<a href="http://www.nookie.co.uk/zone"><img src="'+theImages[whichImage]+'" border=0 width=600 height=400></a>');
	}
	else if(whichImage==1){
		document.write('<a href="http://www.nookie.co.uk/tivest"><img src="'+theImages[whichImage]+'" border=0 width=600 height=400></a>');
	}
	else if(whichImage==2){
		document.write('<a href="http://www.nookie.co.uk/guidestrides"><img src="'+theImages[whichImage]+'" border=0 width=600 height=400></a>');
	}
	else if(whichImage==3){
		document.write('<a href="http://www.nookie.co.uk/softcore"><img src="'+theImages[whichImage]+'" border=0 width=600 height=400></a>');
	}
	else if(whichImage==4){
		document.write('<a href="http://www.nookie.co.uk/assassin"><img src="'+theImages[whichImage]+'" border=0 width=600 height=400></a>');
	}
	else if(whichImage==5){
		document.write('<a href="http://www.nookie.co.uk/products/index.htm"><img src="'+theImages[whichImage]+'" border=0 width=600 height=400></a>');
	}
	else if(whichImage==6){
		document.write('<a href="http://www.nookie.co.uk/absolutedeck"><img src="'+theImages[whichImage]+'" border=0 width=600 height=400></a>');
	}
}
