/*****************************************************************************
**image.js                                                                   
**                                                                             
** Copyright 2004 by CRN Media.                                               
** Web address: http://fmiclinic.com                                        
** Last update: February 6, 2004.                                               
**                                                                             
** Random panorama images for page tops.            
*******************************************************************************/

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

// 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="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FFantastic-Voyage-Live-Enough-Forever%2Fdp%2F0452286670%2F&tag=crnmediabroad-20&linkCode=ur2&camp=1789&creative=9325" target=_blank><img border="0" src="picts/promo1.jpg" width="468" height="60"></a>';
link1='<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FFantastic-Voyage-Live-Enough-Forever%2Fdp%2F0452286670%2F&tag=crnmediabroad-20&linkCode=ur2&camp=1789&creative=9325" target=_blank><img border="0" src="picts/promo2.jpg" width="468" height="60"></a>';
link2='<a href="http://www.fmiclinic.com/subscriber.php?ss=ns&list=8" target=_blank><img border="0" src="picts/promo3.jpg" width="468" height="60"></a>';
link3='<a href="http://fmiclinic.com/shop/fmi" target=_blank><img border="0" src="picts/promo5.jpg" width="468" height="60"></a>';
link4='<a href="http://fmiclinic.com/longevity/index.htm" target=_blank><img border="0" src="picts/promo6.jpg" width="468" height="60"></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));
//-->


