// JavaScript Document

$(document).ready(function() {
	
 
  $(".navbar").mouseenter(function() {
   $(this).attr("src", "images/navbar/" + $(this).attr("name") + "-over.jpg");
 });
 $(".navbar").mouseout(function() {
   $(this).attr("src", "images/navbar/" + $(this).attr("name") + ".jpg");
 });
 
  
  $(".navbar").mouseenter(function() {
   $(this).attr("src", "images/navbar/" + $(this).attr("name") + "-over.png");
 });
 $(".navbar").mouseout(function() {
   $(this).attr("src", "images/navbar/" + $(this).attr("name") + ".png");
 });
 
 
   $(".navbar2").mouseenter(function() {
   $(this).attr("src", "../images/navbar/" + $(this).attr("name") + "-over.jpg");
 });
 $(".navbar2").mouseout(function() {
   $(this).attr("src", "../images/navbar/" + $(this).attr("name") + ".jpg");
 });


$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});


		$("a[rel^='prettyPhoto']").prettyPhoto({
			animation_speed: 'fast', /* fast/slow/normal */
			show_title: false, /* true/false */
			default_width: 650,
			default_height: 420,
			opacity: 0.70, /* Value between 0 and 1 */
			overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
			theme: 'dark_rounded' /* light_rounded / dark_rounded / light_square / dark_square / facebook */
		});
	
 hash = self.document.location.hash;
 hash = hash.substring(1, hash.length);
 if(hash && hash.length > 0) {
    $("#" + hash + "-thumb").click();
 }
});
