// example setup
// <body onload="runRotator()" bgcolor="#000000">
// <a href="#" name="rotatelink" id="rotatelink"><img src="rotator/1.jpg" width="734" height="174" id="rotateimg" name="rotateimg" border="0"></a>

var fadeDuration = 3; // time it takes to fade between images
var Img = new Array();
var Lnk = new Array();
var LnkTargt = new Array();
var ShwTime = new Array();
var preLoad = new Array();
var useLinks = false; // set to false if you do not use href
var x = -1; // This is the number used for the array


// set all the images, links, targets, and speed
// To add images, copy a section place it where you want it
x++;
Img[x] 		= '../img_gestion_golf/jpg_gestion_golf/grf_homeFinagolf01.jpg';
Lnk[x] 		= '#';
LnkTargt[x] 	= '_self';
ShwTime[x] 	= 6000;

x++;
Img[x] 		= '../img_gestion_golf/jpg_gestion_golf/grf_homeFinagolf01.jpg';
Lnk[x] 		= '#';
LnkTargt[x] 	= '_blank';
ShwTime[x] 	= 6000;

/*x++;
Img[x] 		= '../images/rotator/bayview_resurrection_series.jpg';
Lnk[x] 		= '#';
LnkTargt[x] 	= '_blank';
ShwTime[x] 	= 6000;*/

var t;
var j = 0;
var p = Img.length;

for (i = 0; i < p; i++)
{
   preLoad[i] = new Image();
   preLoad[i].src = Img[i];
}

function runRotator()
{

	if (document.all)
	{
		document.images.rotateimg.style.filter="blendTrans(duration=fadeDuration)";
		document.images.rotateimg.filters.blendTrans.Apply();
		document.images.rotateimg.filters.blendTrans.Play();
	}

	document.images.rotateimg.src = Img[j];
	if (useLinks==true)
	{
		document.getElementById("rotatelink").href = Lnk[j];
		document.getElementById("rotatelink").target = LnkTargt[j];
	}

	j = j + 1;
	if (j > (p-1))
	{
	  j=0;
	}
	t = setTimeout('runRotator()',ShwTime[j]);

}