$(function(){
		var tmbArray = shuffle([1, 2, 3, 4]);
		$( ".tmb" ).each(
				function( intIndex ){
					$( this ).css("background-image", "url(Content/images/tmb" + tmbArray[intIndex] + ".jpg)");  
				}
		);
		
		
		$( "div#menu ul li").click(function() {
			clearmenu();
			$(this).addClass("current");
        });

});

shuffle = function(o){ //v1.0
	for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
	return o;
};


clearmenu = function(){
	$( "div#menu ul li").each(
				function( intIndex ){
					$( this ).removeClass("current");  
				}
	);
};
