// prettyPhoto
   $(document).ready(function(){
		$("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal', /* fast/slow/normal */
			padding: 40, /* padding for each side of the picture */
			opacity: 0.5, /* Value betwee 0 and 1 */
			showTitle: true, /* true/false */
			allowresize: true, /* true/false */
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'dark_square' /* light_rounded / dark_rounded / light_square / dark_square */
		});
	});


// prettyGallery
$(document).ready(function(){
		$("ul.gallery").prettyGallery({
			itemsPerPage : 5,
			animationSpeed : 'slow', /* fast/normal/slow */
			navigation : 'bottom',  /* top/bottom/both */
			of_label: ' of ', /* The content in the page "1 of 2" */
			previous_title_label: 'Previous page', /* The title of the previous link */
			next_title_label: 'Next page', /* The title of the next link */
			previous_label: 'Previous', /* The content of the previous link */
			next_label: 'Next' /* The content of the next link */
		});
	});


$(function () {
        // find the div.fade elements and hook the hover event
        $('div.fade').hover(function() {
            // on hovering over find the element we want to fade *up*
            var fade = $('> div', this);

            // if the element is currently being animated (to fadeOut)...
            if (fade.is(':animated')) {
                // ...stop the current animation, and fade it to 1 from current position
                fade.stop().fadeTo(500, 1);
            } else {
                fade.fadeIn(500);
            }
        }, function () {
            var fade = $('> div', this);
            if (fade.is(':animated')) {
                fade.stop().fadeTo(1000, 0);
            } else {
                fade.fadeOut(1000);
            }
        });
    });
    
// scroll to
      $(document).ready(function(){

        $('a[href*=#]').click(function() {
   
          if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
   
          && location.hostname == this.hostname) {
  
            var $target = $(this.hash);
   
            $target = $target.length && $target
   
            || $('[name=' + this.hash.slice(1) +']');
   
            if ($target.length) {
   
              var targetOffset = $target.offset().top;
  
              $('html,body')
  
              .animate({scrollTop: targetOffset}, 1000);
  
             return false;
  
            }
  
          }
  
        });
  	
      });
	  




  