$(document).ready(function() {

/*Choose a background script*/
num=Math.floor(Math.random()*randBG.length);
document.body.style.background='url('+randBG[num]+') #000 top center no-repeat';


/*the code that slides the search form down when you hover over it*/

$("#searchform").hover(function(){
							   
		$(this).stop().animate({ top: '0px'}, 'slow', 'easeInBack');
			
}, function() {
	
		$(this).stop().animate({ top: '-46px'}, 'slow', 'easeOutBack');		
			
});

/*Adds classes to the news when you add more items*/
						   
$("#newsblock li:odd").addClass("news");
$("#newsblock li:even").addClass("dates");

/*Changes the photo as time passes. Check the help file for more info on the plugin like how to change timings*/

$("#photos div").cycle();

/*Adds a class "light" to "high" when you hover it. high+light =)*/

$(".high").hover(function() {					   
								   $(this).addClass("light");
								   
		   }, function() {				   
								   $(this).removeClass("light");
								   
		   });

/*Changes background positions, because i utilized css- sprites*/

$(".call, .send, .stalk, .twit, .rss").hover(function() {					   
								   $(this).css('background-position', 'right top');
								   
								   
								   }, function() {				   
								   $(this).css('background-position', 'left top');						   

});
  
       
/*This is the gallery. If you don't like the "boing" change the easingIn/easingOut options =)*/

 $("#gallerysingle a").fancybox(
	 {
	 'hideOnContentClick': false,
	 'zoomSpeedIn': 600, 'zoomSpeedOut': 200, 
	 'easingIn': 'easeOutElastic',
	 'easingOut': 'easeInElastic',
	 'overlayOpacity' :0.3
	  
	  }); 

});


