// Bootloader
$(document).ready(function() {
	//document.getElementsBytagName("html").setAttribute("id", "background"+numRand);
	/* Since we're using the AlphaImageLoader in IE6 for transparency, the nice fade won't work.
	We need to make sure that it's IE7 or greater. For IE6, we will use a simple hover effect.*/
	if (($.browser.msie && $.browser.version.substr(0,1)>=7) || ($.browser.mozilla)) {
		
	 // Select all the images in the portals' list, default the opacity to 70%
	 $('ul.portals img').css({opacity: 0.7});

	 // The hover effects, basically saying in 1.5 secons change opacity from 70% to 100%
 	 $('ul.portals img').each(function() {
			$(this).hover(function() {
				$(this).stop().animate({ opacity: 1.0 }, 125);},
				function() {$(this).stop().animate({ opacity: 0.7 }, 150);
		});
	});
	 
	}
});