        jQuery(document).ready(function(){
			jQuery(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_square'});
		});

		
		jQuery(function(){
             jQuery('.slide-out-div').tabSlideOut({
                 tabHandle: '.handle',                             
                 pathToTabImage: 'images/contact.png',        
                 imageHeight: '145px',                              
                 imageWidth: '60px',                              
                 tabLocation: 'left',                             
                 speed: 450,                                       
                 action: 'hover',                                
                 topPos: '3%',                                
                 fixedPosition: true,
                 onLoadSlideOut: false
             });
         });
		 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

 jQuery(document).ready(function() {
        // find the div.fade elements and hook the hover event
        jQuery('.fadeFirst').hover(function() {
            // on hovering over find the element we want to fade *up*
            var fade = jQuery('> .hoverFirst', 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 = jQuery('> .hoverFirst', this);
            if (fade.is(':animated')) {
                fade.stop().fadeTo(500, 0);
            } else {
                fade.fadeOut(500);
            }
        });

				    
        // get rid of the text
        jQuery('.fadeFirst > .hoverFirst').empty();
    });
 
  jQuery(document).ready(function() {
        // find the div.fade elements and hook the hover event
        jQuery('.fadeSecond').hover(function() {
            // on hovering over find the element we want to fade *up*
            var fade = jQuery('> .hoverSecond', 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 = jQuery('> .hoverSecond', this);
            if (fade.is(':animated')) {
                fade.stop().fadeTo(500, 0);
            } else {
                fade.fadeOut(500);
            }
        });

				    
        // get rid of the text
        jQuery('.fadeSecond > .hoverSecond').empty();
    });
  
    jQuery(document).ready(function() {
        // find the div.fade elements and hook the hover event
        jQuery('.fadeThird').hover(function() {
            // on hovering over find the element we want to fade *up*
            var fade = jQuery('> .hoverThird', 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 = jQuery('> .hoverThird', this);
            if (fade.is(':animated')) {
                fade.stop().fadeTo(500, 0);
            } else {
                fade.fadeOut(500);
            }
        });

				    
        // get rid of the text
        jQuery('.fadeThird > .hoverThird').empty();
    });
	
	  jQuery(document).ready(function() {
        // find the div.fade elements and hook the hover event
        jQuery('.fadeFourth').hover(function() {
            // on hovering over find the element we want to fade *up*
            var fade = jQuery('> .hoverFourth', 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 = jQuery('> .hoverFourth', this);
            if (fade.is(':animated')) {
                fade.stop().fadeTo(500, 0);
            } else {
                fade.fadeOut(500);
            }
        });

				    
        // get rid of the text
        jQuery('.fadeFourth > .hoverFourth').empty();
    });