$(document).ready(function() {


   // rolling horizontal menu
   
   $(".rollingMenu li").prepend("<span></span>"); //Throws an empty span tag right before the a tag

	$(".rollingMenu li").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the a tag
		$(this).find("span").show().html(linkText); //Add the text in the span tag
	}); 
	
	$(".rollingMenu li").not(".active").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginTop: "-30" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});
   
   

   if ( $('#slider').length )
      $('#slider').nivoSlider({
         effect:'fold',
         slices:1,
         animSpeed:1000,
         pauseTime:3000,
         startSlide:0,
         directionNav:false, //Next & Prev
         directionNavHide:false, //Only show on hover
         controlNav:false, //1,2,3...
         controlNavThumbs:false, //Use thumbnails for Control Nav
         controlNavThumbsFromRel:false, //Use image rel for thumbs
         controlNavThumbsSearch: '.jpg', //Replace this with...
         controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
         keyboardNav:false, //Use left & right arrows
         pauseOnHover:false, //Stop animation while hovering
         manualAdvance:false, //Force manual transitions
         captionOpacity:0.5, //Universal caption opacity
         beforeChange: function(){},
         afterChange: function(){},
         slideshowEnd: function(){} //Triggers after all slides have been shown
      });



   if ( $('#lavaLampMenu').length )
      $('#lavaLampMenu').lavaLamp({
         fx: 'easeInOutQuad',
         homeLeft: -100,
         homeTop: -25,
         returnHome:false,
         speed: 500
      });   
   




   // set lightbox looping
   if ( $('a[rel*=lightbox]').length )
      $('a[rel*=lightbox]').slimbox({loop:true});

      
   
});

