//********** DON'T forget to set the last number at below *******
var numberOfLastImage =5;
//***************************************************************

var numberOfFirstImage = 0;
var delayIn100thSeconds = 300;

//we must have the logo hosted in www.informatm.com/itmlogos/
var logo_site = "http://www.informatm.com/itmlogos/";

var destination = new Array();
var slide = new Array();

// initialize logo array
// initialize the destination to default;
for (var i=numberOfFirstImage; i<=numberOfLastImage;i++){
destination[i] = "/newt/l/gsm/events/eafrica/sponsors.html";
}
//**************************************************************
slide[0] = "Ericsson_120x50px.gif";
slide[1] = "microsoft.gif";
slide[2] = "alcatel.gif";
slide[3] = "nokia_siemens_network.gif";
slide[4] = "huawei_80.gif";
slide[5] = "safaricom_logo_120.gif";

// in case you have a special logo pointing to a specific place then in here
// set destination[x] = "destination url"
//**************************************************************************
var slideNumber = 0;



function goTo()
{
	window.location.href = destination[slideNumber];
}



function showNextSlide()
{
	slideNumber++
	if(slideNumber > numberOfLastImage )	// if past last slide
		{
			slideNumber = numberOfFirstImage ;
		}

	document.screen.src = logo_site+slide[slideNumber]; 	// send slide to screen

	setTimeout("showNextSlide()",delayIn100thSeconds * 12);

}


function popup(url) {
	newwindow=window.open(url,'name','height=300,width=700, left=400, top=400');
	if (window.focus) {newwindow.focus()}
	return false;


/*function popup(){
window.open('PopupName','toolbar=0,location=0,
status=0,menubar=0,scrollbars=0,resizable=0,width=345,height=400');*/
}



