/*****************************************************************************
**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='<a href="new-machinery.php"><img src="images/img1.jpg" border="0"></a>';
link1='<a href="new-machinery.php"><img src="images/img2.jpg" border="0"></a>';
link2='<a href="new-machinery.php"><img src="images/img3.jpg" border="0"></a>';
link3='<a href="new-machinery.php"><img src="images/img4.jpg" border="0"></a>';
link4='<a href="new-machinery.php"><img src="images/img5.jpg" border="0"></a>';
link5='<a href="new-machinery.php"><img src="images/img6.jpg" border="0"></a>';
link6='<a href="new-machinery.php"><img src="images/img7.jpg" border="0"></a>';
link7='<a href="new-machinery.php"><img src="images/img8.jpg" border="0"></a>';
link8='<a href="new-machinery.php"><img src="images/img9.jpg" border="0"></a>';
link9='<a href="new-machinery.php"><img src="images/img10.jpg" border="0"></a>';
	
// 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));
//-->

