/*
April 2004. Javascript document for BodyCage.co.uk website
*/

// Random photograph changer in BodyCage section of website
var photos = new Array() 

/* To add more photos to collection, continue list below, keeping format. One line per photo is 
all that is rquired. Make sure photo is in the right directory (images/photos), and that dimensions of photo are
width 780px and height 302 pixels.
example: photos[4] = 'images/photos/photo5.jpg'
*/

photos[0] = 'images/fpquote1.gif' // Copyright GETTY www.getty-images.com
photos[1] = 'images/fpquote2.gif' // Copyright GETTY www.getty-images.com
photos[2] = 'images/fpquote3.gif' // Copyright GETTY www.getty-images.com

// DO NOT EDIT ANY FURTHER!

var p = photos.length;
var preloadBuffer = new Array()
for (i = 0; i < p; i++){
   preloadBuffer[i] = new Image()
   preloadBuffer[i].src = photos[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+photos[whichImage]+'">');
}
// End random photograph changer

// Opens new window for 'buy' link
function launchBuy() {
		  self.name = "main"; 
		  var windowprops = "toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=0,width=600,height=740";
		  OpenWindow = window.open("purchase.html", "Buy", windowprops);
		}
// End buy window opener