


function loadbanners() { 
	loadbanners_left();
	 loadbanners_right();



} 


function loadbanners_left() { 
	index1 = 0;
	listofimages = new Array(5);
	listofimages[0] = new Image(275,65)
	listofimages[0].src = "images/banners/banner_softwareag.gif"
	listofimages[1] = new Image(275,65)
	listofimages[1].src = "images/banners/banner_techlogix.gif"
	listofimages[2] = new Image(275,65)
	listofimages[2].src = "images/banners/banner_appian.gif"
	listofimages[3] = new Image(275,65)
	listofimages[3].src = "images/banners/banner_tibco.gif"
	listofimages[4] = new Image(275,65)
	listofimages[4].src = "images/banners/banner_gartnerBPM.gif"
	

	
	thetimer = setTimeout("changeimage()", 4000);


} 

function loadbanners_right() { 
	index2 = 0;
	listofimages_right = new Array(4);

	listofimages_right[0] = new Image(275,65)
	listofimages_right[0].src = "images/banners/banner_isssp.gif"
	listofimages_right[1] = new Image(275,65)
	listofimages_right[1].src = "images/banners/banner_bu.gif"
	listofimages_right[2] = new Image(275,65)
	listofimages_right[2].src = "images/banners/banner_abpmp.jpg"
	listofimages_right[3] = new Image(275,65)
	listofimages_right[3].src = "images/banners/banner_omg.gif"


	thetimer_right = setTimeout("changeimage_right()", 4000);

} 



function changeimage() { 
	index1 = index1 + 1
	// set random number  
	// randomnumber = (Math.round((Math.random()*6)+1))
	//index1 = randomnumber
	if (index1 == "5") { 
		index1 = 0 
	} 
	imagesource = listofimages[index1].src
	window.document.banner1.src = imagesource
	thetimer = setTimeout("changeimage()", 3000);
} 

function changeimage_right(){ 
	index2 = index2 + 1
	// set random number  
	// randomnumber = (Math.round((Math.random()*6)+1))
	//index2 = randomnumber
	if (index2 == "4") { 
		index2 = 0 
	} 
	imagesource2 = listofimages_right[index2].src
	window.document.banner2.src = imagesource2
	thetimer_right = setTimeout("changeimage_right()", 2500);
} 


function changepage() { 

	if (index1 == 0) { 
	newlocation = "http://www.softwareag.com" 
	}
	else if (index1 == 1) { 
	newlocation = "http://www.techlogix.com" 
	}
	else if (index1 == 2) { 
	newlocation = "http://www.appian.com" 
	}
	else if (index1 == 3) { 
	newlocation = "http://tibco.com/software/business_process_management/default.js" 
	}
	else if (index1 == 4) { 
	newlocation = "http://www.gartnerinfo.com/tr/g/bpm9_02" 
	}

	location = newlocation 

} 

function changepage_right() { 
  
		if (index2 == 0) { 
		newlocation = "http://www.isssp.com" 
	}
	else if (index2 == 1) { 
		newlocation = "http://www.butrain.com/se/promo/BusProcess.asp?source=24058" 
	}
	else if (index2 == 2) { 
	newlocation = "http://www.abpmp.org" 
	}
	else if (index2 == 3) { 
	newlocation = "http://www.omg.org" 
	}


	location = newlocation 
} 

