// JavaScript Document

$(document).ready(function ()

{
  $("#panelGallery").hover(function(){
  $("#panel").slideDown('slow');
  });
			
			
 $("#info").mouseover(function () {
	  $(this).addClass("active");
      $("#info_bubble").show(600);
    });
 $('#info').mouseout(function(){
	  $(this).removeClass("active");
      $("#info_bubble").hide(600);
							  });
////////////////////////////////////////////
////////////FOOTER SOCIAL ICONS ROLLOVER

$("#facebook").mouseover(function(){
	$(this).addClass("active");
});
$("#facebook").mouseout(function(){
	$(this).removeClass("active");
});

$("#twitter").mouseover(function(){
	$(this).addClass("active");
});
$("#twitter").mouseout(function(){
	$(this).removeClass("active");
});

$("#flickr").mouseover(function(){
	$(this).addClass("active");
});
$("#flickr").mouseout(function(){
	$(this).removeClass("active");
});

///////////////////////////////////////////
/////////NAVIGATION ROLLOVER BUBBLES

$("#contact").mouseover(function(){
	$("#contact_bubble").show(600);
});

$("#contact").mouseout(function(){
	$("#contact_bubble").hide(600);
});

$("#services").mouseover(function(){
	$("#services_bubble").show(600);
});

$("#services").mouseout(function(){
	$("#services_bubble").hide(600);
});

$("#gallery").mouseover(function(){
	$("#gallery_bubble").show(600);
});

$("#gallery").mouseout(function(){
	$("#gallery_bubble").hide(600);
});

$("#buttonGallery").mouseover(function(){
  $(this).addClass("over");
});

$("#buttonGallery").mouseout(function(){
  $(this).removeClass("over");
});

$("#buttonGallery").mousedown(function(){
  $(this).removeClass("over");
  $(this).addClass("down");
});

$(".cat").mouseover(function(){
	$(this).addClass("dog");
});

$(".cat").mouseout(function(){
	$(this).removeClass("dog");
});

$(".bubblemore").mouseover(function(){
  $(".loadmore_bubble").show(400);
								  });
$(".bubblelast").mouseover(function(){
  $(".loadlast_bubble").show(400);
								  });
$(".bubblemore").mouseout(function(){
  $(".loadmore_bubble").hide(400);
								  });
$(".bubblelast").mouseout(function(){
  $(".loadlast_bubble").hide(400);
								  });

$("#gallerybutton").click(function(){
  $("#gallery_nav").toggle("slide", { direction: "left" }, 100);
  $(".selectarrow").toggle("slide",{left:'-100px'},{queue:false,duration:100});
  $("#gallerybutton").toggleClass("active")
  return flase;
  			  });

$("#galleryarrow").click(function(){
  $("#gallery_nav").toggle("slide", { direction: "left" }, 100);
  $(".selectarrow").toggle("slide",{left:'-100px'},{queue:false,duration:200});
  $("#gallerybutton").toggleClass("active")
  return flase;
  			  });

$("#galleryclose").click(function(){
  $("#gallery_nav").toggle("slide", { direction: "left" }, 100);
  $(".selectarrow").toggle("slide",{left:'-100px'},{queue:false,duration:100});
  $("#gallerybutton").toggleClass("active")
  return flase;
  			  });

$(".nav_gal").hover(function(){
 $(".gallery_bubble_select").show(400);
 return flase;
										 });
 
 $("#bgImage, #contact, #services, .polaroid_large_container").mouseover(function(){
 $(".gallery_bubble_select").hide(400);
								  });
 
  $(".polaroid_large_container").mouseover(function(){
 $(".gallery_bubble_select").hide(400);
								  });
 

$('.boxgrid').hover(function(){
		$(".cover", this).stop().animate({top:'-90px'},{queue:false,duration:200});
	}, function() {
		$(".cover", this).stop().animate({top:'-40px'},{queue:false,duration:200});
	});


});

