/*****************************************************************************
**background.js                                                                   
**                                                                             
** Copyright 2004 by CRN Media.                                               
** Web address: http://emrickmachinery.com                                        
** Last update: March 23, 2004.                                               
**                                                                             
** Random panorama images for backgrounds.            
*******************************************************************************/

<!--//
// Indicate how many images there are.
var amount=10;

// Array Function.
function makeArray(len) {
	for (var i = 0; i < len; i++) 
		this[i] = null;
	this.length = len;
}

// Generate's the arrays.
lnk = new makeArray(amount);

// Place your image information here. Start at index number 0.
link0='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk1.jpg">';
link1='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk2.jpg">';
link2='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk3.jpg">';
link3='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk4.jpg">';
link4='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk5.jpg">';
link5='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk6.jpg">';
link6='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk7.jpg">';
link7='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk8.jpg">';
link8='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk9.jpg">';
link9='<TABLE cellpadding="0" cellspacing="0" border="0" width="90%" background="images/bk10.jpg">';
	
// Randomly pick a banner to display.
function rand(n) {
	seed = (0x015a4e35 * seed) % 0x7fffffff;
	return (seed >> 16) % n;
}

var now = new Date();
var seed = now.getTime() % 0xffffffff;
var position=rand(amount);
document.write(eval("link"+position));
//-->

