	$(document).ready(function() {
		$("#flickrfader").css("min-height","93px");
		$("#flickrfader").cycle({
	         timeout: 3000,
	         speed: 500});
		
		$("#twitter").getTwitter({
			userName: "pearlpictures",
			numTweets: 3,
			loaderText: "Getting tweets...",
			slideIn: false,
			showHeading: true,
			headingText: "Latest tweets",
			showProfileLink: true
		});
		
		/* hide >x cats on page load */
		$i = 0;
		$catstoshow = 8;	
		$('.categories ul li').each(function() {
		    $i++;
		    if($i > $catstoshow){ /* number of categories to show */
		        $(this).hide();
		    }
		});
		if($('.categories ul li').length > $catstoshow){
			$('.categories ul ').append("<li><a href=\"#\" id=\"cathider\">&raquo;&nbsp;more</a></li>");
		}
		
		/* categories - show whole list */	
		$('#cathider').click(function(){
			$('.categories ul li').each(function() {
			        $(this).slideDown(300);
			});
			$('#cathider').hide();		
			return false;	
		});		
	
	});