var delay=6000 //set delay in miliseconds
var image_counter=0

var rotating_images=new Array()

	rotating_images[0]="/i/lmod/content/app_main.jpg"
	rotating_images[1]="/i/lmod/content/mpp_main.jpg"
	rotating_images[2]="/i/lmod/content/dacport_main.jpg"
	rotating_images[3]="/i/lmod/content/licensing_main.jpg"

var preload=new Array()

for (n=0;n<rotating_images.length;n++)
{
	preload[n]=new Image()
	preload[n].src=rotating_images[n]
}

var rotating_links=new Array()

	rotating_links[0]="/products/ap/"
	rotating_links[1]="/products/mp/"
	rotating_links[2]="/products/dacport/"
	rotating_links[3]="/licensing/"


function rotateimage()
{

if (image_counter<(rotating_images.length-1)){
image_counter++
}
else
image_counter=0

	document.images.targetimage.src=rotating_images[image_counter]
	document.getElementById('link_anchor').href=rotating_links[image_counter]
	document.getElementById('link_anchor').target="_self"
}
