this.screenshotPreview = function(){	
	// CSS Positioning Offsets
	var xOffset = 250;
	var yOffset = 30;
	// Show the SS
	$(".screenshot").hover(function(e){
		$("body")
		.append("<p id='screenshot'><img src='images/"+ this.id +".jpg' alt='url preview' /><br/>" + this.title +"</p>");								 
		$("#screenshot")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px")
		.fadeIn("fast");						
    },
    // Hide the SS
	function(){
		$("#screenshot").remove();
    });	
    // Move the SS in response to the mouse
	$(".screenshot").mousemove(function(e){
		$("#screenshot")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px");
	});			
};

this.hiddenDivs = function(){				
	// Friedly hide of all content divs
	$(".wrapperPadding").children('div').hide();
	// Toggle 
	$(".wrapperPadding h2").toggle(function() {
	  $(this).next().slideDown("slow");
	}, function() {
	  $(this).next().slideUp("slow");
	});
};

$(function(){
	hiddenDivs();
	screenshotPreview();
});