/*
 * Justastic Java v1 using: JavaScript Library v1.3.2
 * http://justastic.com/ 
 * http://jquery.com/
 *
 * Copyright (c) 2009 Justin James
 *
 * Date: 2009-07-16 17:34:21
 */
 
 

 
$(document).ready(function() {
	/* If javascript is working, hide the extra content */
	$(".sitefull").hide();
	/* Now stuff is hidden, insert links to toggle it on or off. A "more" and "less for the upper */
	$(".upper").prepend("<a class='more' href='#'>more</a><a class='morer' href='#'>v</a><a class='less' href='#'>less</a><a class='lessr' href='#'>^</a>");
	/* hiding the "less" link on the upper for now */
	$(".less, .lessr").hide();
	/* Only a "less" link is needed on the lower */
	$(".lower").prepend("<a class='less' href='#'>less</a><a class='lessr' href='#'>^</a>");
});
	
$(document).ready(function() {
	/* The click function to display "more" */
	$(".more, .morer").click(function(event){
		/* Prevent normal link action */
		event.preventDefault();
		/* Show the extra content. Animated */
		$(this).parents(".showbox").children(".sitefull").animate({ height: 'show', opacity: 'show' }, 'slow');
		/* Hide the "more" link and show the "less" link in the upper section */
		$(this).parent(".upper").children("a").toggle();
	});
});

$(document).ready(function() {
	/* The click function to display "less" */
	$(".less, .lessr").click(function(event){
		/* Prevent normal link action */
		event.preventDefault();
		/* Hide the extra content. Animated */
		$(this).parents(".showbox").children(".sitefull").animate({ height: 'hide', opacity: 'hide' }, 'slow');
		/* Hide the "less" link and show the "more" link in the upper section */
		/* Requires going to a higher parent to search down if clicked on the lower link */
		$(this).parents(".showbox").find(".upper a").toggle();
	});
});

$(document).ready(function() {
	$('.siteimages a').lightBox(); // Select all links within the "siteimages" class
});

