var globalImages = new Array(
	'gfx/menu_contacts.gif',
	'gfx/menu_facts.gif',
	'gfx/menu_helsinki.gif',
	'gfx/menu_home.gif',
	'gfx/menu_home_fin.gif',
	'gfx/menu_information.gif',
	'gfx/menu_news.gif',
	'gfx/menu_news_fin.gif',
	'gfx/menu_open_background.gif',
	'gfx/menu_naytteilleasettaja_fin.gif',
	'gfx/menu_verkostoitumis_fin.gif',

	'gfx/menu_contacts_r.gif',
	'gfx/menu_facts_r.gif',
	'gfx/menu_helsinki_r.gif',
	'gfx/menu_home_fin_r.gif',
	'gfx/menu_home_r.gif',
	'gfx/menu_information_r.gif',
	'gfx/menu_news_fin_r.gif',
	'gfx/menu_news_r.gif',
	'gfx/menu_naytteilleasettaja_fin_r.gif',
	'gfx/menu_verkostoitumis_fin_r.gif',

	'gfx/menu_open_background_top.gif',
	'gfx/menu_contacts_o.gif',
	'gfx/menu_facts_o.gif',
	'gfx/menu_helsinki_o.gif',
	'gfx/menu_home_fin_o.gif',
	'gfx/menu_home_o.gif',
	'gfx/menu_information_o.gif',
	'gfx/menu_naytteilleasettaja_fin_o.gif',
	'gfx/menu_news_fin_o.gif',
	'gfx/menu_news_o.gif',
	'gfx/menu_verkostoitumis_fin_o.gif',

	'gfx/inenglish_r.gif',
	'gfx/infinnish_r.gif'
);

var localImages; 

var imageObjects = new Array();

function preloadImages() {
	var allImages = (localImages == undefined) ? globalImages : globalImages.concat(localImages);

	for(var index in allImages) {
		imageObjects[index] = new Image();
		imageObjects[index].src = allImages[index];		
	}
}