	var Site = {
		
		init : function() {
	
		//CUFON
		
		Cufon.replace('h1,h2'); 
		Cufon.replace('#sub1');
		
		//SHADOWBOX
		

		
			//jQuery
			jQuery.noConflict();
			
			(function($) {
				$(document).ready(function(){
				
				
				Shadowbox.init({
    handleOversize:     "drag",
    displayNav:         false,
    handleUnsupported:  "remove",
    autoplayMovies:     false
});

				

				
		  			
		  			
					$('#gallery').click(function(e) {  
						if ( $(e.target).is('img') ) {  
							$('ul#details li').removeClass().addClass('hide');
							var currentimg = $('#largeimage').find('img'), //find the current image
								newimg = $(e.target).attr('src'), //grab the image src from the image clicked
								newimgtitle = $(e.target).attr('alt'), //grab the all of the image to be used as the title
								largeimage = newimg.split('-')[0] + '.jpg', //remove the -small from the end of the links to use a larger image for shadowbox
								currentLi = $(e.target).parent().parent(), // gets the index of current li clicked
								indexLi = currentLi.index('li') - 22;
								
								

								var txtStr = 'ul#details li:eq(' + indexLi + ')';
								
								
							$(txtStr).removeClass().addClass('show');

								
							$(currentimg).fadeOut('fast', function() { //fade out current image
								$('#largeimage')
									.find('img')
									.attr({
										'src' : newimg,
										'alt' : newimgtitle
									})
									.fadeIn('fast')	; //replace large image src and alt with new item clicked then fade in
								$('#largeimage')
									.css({
										'height' : '500px'
										}); //give a height to the container
								$('#largeimage')
									.find('h2')
									.text(newimgtitle); //place the image title in the h2 tag
								$('#largeimage')
									.find('a')
									.attr('href', largeimage); //add a larger image link 
								jQuery(".tooltip-test").tooltip({ effect: 'slide'}); //run the tooltip script
								Shadowbox.init({ skipSetup: true }); Shadowbox.setup();  //re-initialize shadowbox
								Cufon.refresh();
							});
							
							$('#gallery.small')
								.fadeOut('fast')
								.removeClass('small')
								.addClass('thumb')
								.delay(200)
								.fadeIn('fast'); //when an image is first clicked change gallery class from 'small' to 'thumb' so it can be stlyed differently. then fade in.
								
							return false; //remove default action of link
						} 
					});  					  
					

				
				

					
				
				}); //END JQUERY
			})(jQuery);
		}	
	}
		
	Site.init();
