$(function(){
	var jQueryScriptOutputted = false;
	function initJQuery() {
		if (typeof(jQuery) == 'undefined') {
			if (!jQueryScriptOutputted) {
				jQueryScriptOutputted = true;
				// Primitive way of loading scripts (no library yet)
				document.write("<scr" + "ipt src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js\"></scr" + "ipt>");
			}
			setTimeout("initJQuery()", 50);
		}else{
		    	// jQuery way of loading scripts
		    	$.getScript('js/menu/jquery.backgroundPosition.js', function() {
		            // Set CSS in Firefox (Required to use the backgroundPosition js)
					$('#shutter1').css({backgroundPosition: '0px 0px'});
					$('#shutter2').css({backgroundPosition: '0px 0px'});
					$('#shutter3').css({backgroundPosition: '0px 0px'});
					$('#shutter4').css({backgroundPosition: '0px 0px'});
					$('#shutter5').css({backgroundPosition: '0px 0px'});
					$('#shutter6').css({backgroundPosition: '0px 0px'});
					$('#shutter7').css({backgroundPosition: '0px 0px'});
					// Animate the Shutter  
					$("#garagedoor a").hover(function() {	
					      $(this).parent().stop().animate({backgroundPosition: '(0px -60px)'}, 500);
					    }, function() {
					      $(this).parent().stop().animate({backgroundPosition: '(0px 0px)'}, 500);
					});
		    	});
		    }
		}
		if (!Modernizr.csstransitions) {
			initJQuery();
		}
});
