var $j = jQuery.noConflict();

$j(document).ready(function(){

	$j(".Thumbs a:first").addClass('active'); //Add the active class (highlights the very first list item by default)
	
	$j(".Thumbs a").click(function(){
	    
	//Set Variables
    	var imgAlt = $j(this).find('img').attr("alt"); //Get Alt Tag of Image
    	var imgTitle = $j(this).attr("href"); //Get Main Image URL

    	if ($j(this).is(".active")) {  //If the list item is active/selected, then...
        return false; // Don't click through - Prevents repetitive animations on active/selected list-item
    	} else { //If not active then...
        //Animate the Description
		$j(".Gallery img").attr({ src: imgTitle , alt: imgAlt}); //Switch the main image (URL + alt tag)
	}
	
	//Show active list-item
    	$j(".Thumbs a").removeClass('active'); //Remove class of 'active' on all list-items
    
	$j(this).addClass('active');  //Add class of 'active' on the selected list
    	return false;

	}) .hover(function(){ //Hover effects on list-item
		$j(this).addClass('hover'); //Add class "hover" on hover
		}, function() {
		$j(this).removeClass('hover'); //Remove class "hover" on hover out
	});
	
	$j(".galleryLink p a").unbind('click').click( function(e) {
     	e.stopPropogation();
 	} );


}); 
