$(document).ready(function(){
	
	/// setup the superfish menu
	
	
	$("ul.sf-menu").superfish(); 
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Vertical Sliding
	/*
	$('.boxgrid').hover(function(){
		$(".cover", this).stop().animate({top:'180px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({top:'240px'},{queue:false,duration:150});
	});
	*/
	
	Shadowbox.init({
	//overlayColor: "#0f6491",
	overlayOpacity: .8,
	flashParams: {
		wmode:"transparent",
		allowFullScreen: 'true'
	},
	flashVars: {
		autostart: 'true',
		controlbar: 'over'
	}
	}); 
	
	/*
	var randomImages = ['headerbg0','headerbg1','headerbg2' ];
  	var rndNum = Math.floor(Math.random() * randomImages.length);
  	$("#header").css({ background: "url(/images/" + randomImages[rndNum] + ".gif) 100% 100% no-repeat" });
	*/

	
});

$(function(){
	
	var $container = $('#theads');

	$container.imagesLoaded( function(){
  	$container.masonry({
    	itemSelector : '.item'
 	 });
	});
	
	var $container2 = $('#board');

	$container2.imagesLoaded( function(){
  	$container2.masonry({
    	itemSelector : '.boxme'
 	 });
	});
  
});
