/*Partner logo's rotation*/

var dimages=new Array();
dimages[0]=new Image();
dimages[0].src="images/sponsors/80w/CEL_logo.jpg";
dimages[0].link="http://www.cableeurope.eu/index.php?page=technology";
dimages[1]=new Image();
dimages[1].src="images/sponsors/80w/ctam_130x70.jpg";
dimages[1].link="http://www.ctameurope.com";
dimages[2]=new Image();
dimages[2].src="images/sponsors/80w/SCTE.jpg";
dimages[2].link="http://www.scte.org.uk/";
dimages[3]=new Image();
dimages[3].src="images/sponsors/80w/act.png";
dimages[3].link="http://www.acte.be/EPUB/easnet.dll/execreq/page?eas:dat_im=025AE1&eas:template_im=025AC4";
dimages[4]=new Image();
dimages[4].src="images/sponsors/80w/mpa.jpg";
dimages[4].link="http://www.mpaa.org/";
dimages[5]=new Image();
dimages[5].src="images/sponsors/logo_new/tmforum_home.jpg";
dimages[5].link="http://www.tmforum.org";
var numImages=dimages.length;
var curImage=0;

function image_rotation()
{
	if(document.images)
	{
		var nextImage=curImage+1;

		if(nextImage>=numImages){
			nextImage=0;
		}
		if(dimages[nextImage] && dimages[nextImage].complete)
		{
			var target=0;
			var target2=0;

			if(document.images.sponsorImage)
			{
				target=document.images.sponsorImage;
				target2=document.anchors.sponsorLink;
			}

			if(document.all && document.getElementById("sponsorImage"))
			{
				target=document.getElementById("sponsorImage");
				target2=document.getElementById("sponsorLink");
			}

			if(target)
			{
				target.src=dimages[nextImage].src;
				target2.href=dimages[nextImage].link;
				curImage=nextImage;
			}

			setTimeout("image_rotation()", 1500);

		}
		else
		{
			setTimeout("image_rotation()", 1500);
		}
	}
}

setTimeout("image_rotation()", 1500);