		function findimg()
		{
			var i,imgs;
		// loop through all images of the document
			imgs=document.getElementById('global_markets_nav').getElementsByTagName('img');

			for(i=0;i<imgs.length;i++)
			{
		// test if the class 'roll' exists
				if(/_active/.test(imgs[i].src) == false)
				{
				if(/roll/.test(imgs[i].className))
				{
		// add the function roll to the image onmouseover and onmouseout and send
		// the image itself as an object
					imgs[i].onmouseover=function(){roll(this);};
					imgs[i].onmouseout=function(){roll(this);};
				}
				}
			}
		}
		function roll(o)
		{
		// get the src of the image, and find out the file extension
			var src = o.src;
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
		// check if the src already has an _on and delete it, if that is the case 
			if(/_active/.test(src))
			{
				var newsrc = src.replace('_active','');
			}else{
		// else, add the _on to the src 
				var newsrc = src.replace(ftype, '_active'+ftype);
			}
			o.src=newsrc;
		}
		findimg();