/* Declare a namespace for the site */
var Site = window.Site || {};

/* Create a closure to maintain scope of the '$'
   and remain compatible with other frameworks.  */
(function($) {
	
	//same as $(document).ready();
	$(function() {
		
		

	});


	$(window).bind("load", function() {
		
		
	
	});
	
})(jQuery);





jQuery(function($) {
 
	var Engine = {
		enhancements : {
		    actions : function(){

                function getElementId(element) {
                    var thisId = $(element).attr("id");
                    var thisElementId = thisId.split("_").pop();
                    return thisElementId;
                };


                $('a.image-link').click(function(){
                    var imageId = getElementId(this);
                    
                    $('.image-container').each(function() {
                        $(this).hide();
                    });

                    $('a.image-link').each(function(){
                        $(this).removeClass('active');
                    });
                    
                    $('#image-container-' + imageId).show();
                    $(this).addClass('active');

                    return false;
                });

		    },

		}
	};

	Engine.enhancements.actions();
});

