

if (document.images) {

	a_1 = new Image;
	a_1.src = "http://siteresources.worldbank.org/NEWS/Images/photo-burundi.jpg";

	
	a_2 = new Image;
	a_2.src = "http://siteresources.worldbank.org/NEWS/Images/photo-benin.jpg";
	
	
	a_3 = new Image;
	a_3.src = "http://siteresources.worldbank.org/NEWS/Images/photo-guinee.jpg"
	
	
	a_4 = new Image;
	a_4.src = "http://siteresources.worldbank.org/NEWS/Images/photo-mali.jpg";
	
	a_5 = new Image;
	a_5.src = "http://siteresources.worldbank.org/NEWS/Images/photo-congord.jpg";
	
	a_6 = new Image;
	a_6.src = "http://siteresources.worldbank.org/NEWS/Images/photo-senegal.jpg";

	a_7 = new Image;
	a_7.src = "http://siteresources.worldbank.org/NEWS/Images/photo-congo.jpg";
	
	a_8 = new Image;
	a_8.src = "http://siteresources.worldbank.org/NEWS/Images/photo-cote.jpg";
	
	a_9 = new Image;
	a_9.src = "http://siteresources.worldbank.org/NEWS/Images/photo-niger.jpg";
	
	a_10 = new Image;
	a_10.src = "http://siteresources.worldbank.org/NEWS/Images/photo-mauritanie.jpg";
	
	a_11 = new Image;
	a_11.src = "http://siteresources.worldbank.org/NEWS/Images/photo-chad.jpg";
	
	a_12 = new Image;
	a_12.src = "http://siteresources.worldbank.org/NEWS/Resources/photo-gabon.jpg";
	
	a_13 = new Image;
	a_13.src = "http://siteresources.worldbank.org/NEWS/Resources/photo-rwanda.jpg";
	
	
	
	
	
	b_1 = new Image;
	b_1.src = "http://www.jsmadeeasy.com/javascripts/Images/picture_rollover/b_1.gif";
	b_2 = new Image;
	b_2.src = "http://www.jsmadeeasy.com/javascripts/Images/picture_rollover/b_2.gif"
	b_3 = new Image;
	b_3.src = "http://www.jsmadeeasy.com/javascripts/Images/picture_rollover/b_3.gif";
	b_4 = new Image;
	b_4.src = "http://www.jsmadeeasy.com/javascripts/Images/picture_rollover/b_4.gif";
}

function showImg(imgname, rollname)
{
	if (document.images) {
		window.onerror = null;
		document.getElementById(rollname).src=eval(imgname + ".src");
	}
}

if (document.images) {
teston = new Image(); // Active images
teston.src = "teston.gif";

testoff = new Image(); // Inactive images
testoff.src = "testoff.gif";
}


function imgOn(imgName) {

if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}




var c1 = "test";

function writeText(txt)
{
document.getElementById("blurb").innerHTML=txt
}


function opacity(id, opacStart, opacEnd, millisec) { 
    //speed for each frame 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    //determine the direction for the blending, if start and end are the same nothing happens 
    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

//change the opacity for different browsers 
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 
