

preloadImages=[];
function preloadImage(url){
	var p = preloadImages;
	var l = p.length;
	p[l] = new Image();
	p[l].src = url;
}

//JQuery init. Load when the page is ready - Using jQuery to run events
$(function(){
		//alert("document.ready");
		$('a.goToTop').click(
			function(){
				scroll2Top(0,0);
				this.blur();
				return false;
			});
		//img focus init.
		$("#menu a img,#info a img").each(function() {
				this.originalSrc=this.src;	
				this.rolloverSrc=this.originalSrc.replace(/(\.gif|\.jpg|\.png)/,"_ov"+"$1");
				preloadImage(this.rolloverSrc);
		   })
				.hover(function() {
			   this.src=this.rolloverSrc;
		   },function() {
			   this.src=this.originalSrc;
		   });
				
								
	});


