


function loadbanners() { 
	loadbanners_left();
	 loadbanners_right();



} 


function loadbanners_left() { 
	index1 = 0;
	listofimages = new Array(3);
	listofimages[0] = new Image(275,65)
	listofimages[0].src = "images/banners/banner_omg.gif"
	listofimages[1] = new Image(275,65)
	listofimages[1].src = "images/banners/banner_ceg.gif"
	listofimages[2] = new Image(275,65)
	listofimages[2].src = "images/banners/banner_abpmp.jpg"
	
	thetimer = setTimeout("changeimage()", 4000);


} 

function loadbanners_right() { 
	index2 = 0;
	listofimages_right = new Array(2);

	listofimages_right[0] = new Image(275,65)
	listofimages_right[0].src = "images/banners/banner_progress.gif"
	listofimages_right[1] = new Image(275,65)
	listofimages_right[1].src = "images/banners/banner_techlogix.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 == "3") { 
		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 == "2") { 
		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.omg.org" 
	}
	else if (index1 == 1) { 
	newlocation = "http://www.corpedgroup.com/certificate-programs/bpm-certificate-programs.asp?source=25225" 
	}
	else if (index1 == 2) { 
	newlocation = "http://www.abpmp.org" 
	}
	
	location = newlocation 

} 

function changepage_right() { 
  
		if (index2 == 0) { 
		newlocation = "http://web.progress.com/en/savvion/index.html" 
	}
	else if (index2 == 1) { 
		newlocation = "http://www.techlogix.com" 
	}



	location = newlocation 
} 


