
if (document.images)
{
	//create all the images to cause preloading

	img1on = new Image();      
	img1on.src = "/scotland/alba/tbh/eorpa/images/luchdnaidhs-on_157x22.jpg"; 
	img2on = new Image(); 
	img2on.src = "/scotland/alba/tbh/eorpa/images/dachaigh-on_91x22.jpg";  
	img3on = new Image();
	img3on.src = "/scotland/alba/tbh/eorpa/images/english-on_76x22.jpg";
	img4on = new Image();
	img4on.src = "/scotland/alba/tbh/eorpa/images/tasglann-on_92x22.jpg";
	img5on = new Image();
	img5on.src = "/scotland/alba/tbh/eorpa/images/fios-on_128x22.jpg";
	img6on = new Image();
	img6on.src = "/scotland/alba/tbh/eorpa/images/home-on_57x22.jpg";
	img7on = new Image();
	img7on.src = "/scotland/alba/tbh/eorpa/images/gaidhlig-on_82x22.jpg";
	img8on = new Image();
	img8on.src = "/scotland/alba/tbh/eorpa/images/reporters-on_88x22.jpg";
	img9on = new Image();
	img9on.src = "/scotland/alba/tbh/eorpa/images/archive-on_73x22.jpg";
	img10on = new Image();
	img10on.src = "/scotland/alba/tbh/eorpa/images/video-on_53x22.jpg";
	img11on = new Image();
	img11on.src = "/scotland/alba/tbh/eorpa/images/bhideo-on_63x22.jpg";
	img12on = new Image();
	img12on.src = "/scotland/alba/tbh/eorpa/images/contact-on_128x22.jpg";

	img1off = new Image(); 
	img1off.src = "/scotland/alba/tbh/eorpa/images/luchdnaidhs_157x22.jpg"; 
	img2off = new Image();          
	img2off.src = "/scotland/alba/tbh/eorpa/images/dachaigh_91x22.jpg"; 
	img3off = new Image();
	img3off.src = "/scotland/alba/tbh/eorpa/images/english_76x22.jpg";
	img4off = new Image();
	img4off.src = "/scotland/alba/tbh/eorpa/images/tasglann_92x22.jpg";
	img5off = new Image();
	img5off.src = "/scotland/alba/tbh/eorpa/images/fios_128x22.jpg";
	img6off = new Image();
	img6off.src = "/scotland/alba/tbh/eorpa/images/home_57x22.jpg";
	img7off = new Image();
	img7off.src = "/scotland/alba/tbh/eorpa/images/gaidhlig_82x22.jpg";
	img8off = new Image();
	img8off.src = "/scotland/alba/tbh/eorpa/images/reporters_88x22.jpg";
	img9off = new Image();
	img9off.src = "/scotland/alba/tbh/eorpa/images/archive_73x22.jpg";
	img10off = new Image();
	img10off.src = "/scotland/alba/tbh/eorpa/images/video_53x22.jpg";
	img11off = new Image();
	img11off.src = "/scotland/alba/tbh/eorpa/images/bhideo_63x22.jpg";
	img12off = new Image();
	img12off.src = "/scotland/alba/tbh/eorpa/images/contact_128x22.jpg";

}


// Function to 'activate' images.
function imgOn(imgName) 
{
	if (document.images)
	{
		document[imgName].src = eval(imgName + "on.src");
	}
}
         
// Function to 'deactivate' images.     
function imgOff(imgName) 
{
	if (document.images)
	{
		document[imgName].src = eval(imgName + "off.src");
	}
}