function preloadImages(btn_images_array) {

	// initialize loop to 0, if loop is < image array length (1st element is 0, length = # elements) increment loop and perform statement
	for(loop = 0; loop < btn_images_array.length; loop++)
	{
		// create a new Image object, then assign the image to image array element 
   		var btn_image = new Image();
		btn_image.src = btn_images_array[loop];
	}
}

function doPreload()
{
	// define array "btn_images" and load with images to be preloaded
	var btn_images = new Array("/imgs/en/marketdata_off.gif",
"/imgs/en/companies_off.gif",
"/imgs/en/members_off.gif",
"/imgs/en/announce_off.gif",
"/imgs/en/ase_off.gif",
"/imgs/en/newmarkets_off.gif",
"/imgs/en/submenubar_off.gif",
"/imgs/en/submenubar_right_off.gif",
"/imgs/en/marketdata_on.gif",
"/imgs/en/companies_on.gif",
"/imgs/en/members_on.gif",
"/imgs/en/announce_on.gif",
"/imgs/en/ase_on.gif",
"/imgs/en/newmarkets_on.gif",
"/imgs/en/submenubar_on.gif",
"/imgs/en/submenubar_right_on.gif");
	// call function "preloadImages" and pass array "btn_images" as a parameter
	preloadImages(btn_images);
}

//MENU
if (document.images) {

firsto=new Image
firstb=new Image
secondo=new Image
secondb=new Image
thirdo=new Image
thirdb=new Image
fourtho=new Image
fourthb=new Image
fiftho=new Image
fifthb=new Image
sixtho=new Image
sixthb=new Image
seventho=new Image
seventhb=new Image
eightho=new Image
eighthb=new Image
nineo=new Image
nineb=new Image

firsto.src="/imgs/en/marketdata_off.gif",
secondo.src="/imgs/en/indices_off.gif",
thirdo.src="/imgs/en/companies_off.gif"
fourtho.src="/imgs/en/members_off.gif"
fiftho.src="/imgs/en/announce_off.gif"
sixtho.src="/imgs/en/ase_off.gif"
seventho.src="/imgs/en/newmarkets_off.gif"
eightho.src="/imgs/en/submenubar_off.gif"
nineo.src="/imgs/en/submenubar_right_off.gif"

firstb.src="/imgs/en/marketdata_on.gif"
secondb.src="/imgs/en/indices_on.gif"
thirdb.src="/imgs/en/companies_on.gif"
fourthb.src="/imgs/en/members_on.gif"
fifthb.src="/imgs/en/announce_on.gif"
sixthb.src="/imgs/en/ase_on.gif"
seventhb.src="/imgs/en/newmarkets_on.gif"
eighthb.src="/imgs/en/submenubar_on.gif"
nineb.src="/imgs/en/submenubar_right_on.gif"
}

else {

firstb.src=""
firsto.src=""
secondb.src=""
secondo.src=""
thirdb.src=""
thirdo.src=""
fourthb.src=""
fourtho.src=""
fifthb.src=""
fiftho.src=""
sixthb.src=""
sixtho.src=""
seventb.src=""
seventho.src=""
eighthb.src=""
eightho.src=""
nineo.src=""
nineb.src=""

document.roll1=""
document.roll2=""
document.roll3=""
document.roll4=""
document.roll5=""
document.roll6=""
document.roll7=""
document.roll8=""
document.roll9=""
}


