/* Author: Darren Lee White

*/

  $(document).ready(function() {	

			$('a.enlarge').fancybox({
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});	
			$('a.enlarge').attr('rel', 'gallery');
							 
  $("#overlay").fadeOut(4000, 0.0);
  
  $(".menu a.4-legs").click(function () {
    $('a.4-legs img').fadeTo("slow", 1);
	$('a.2-legs img').fadeTo("slow", 0.1);
	$('a.wings img').fadeTo("slow", 0.1);
	$('a.commercial img').fadeTo("slow", 0.1);	
	$('a.enlarge').removeAttr("rel");	
	$('a.4-legs').attr('rel', 'gallery');
  });
  
  $(".menu a.2-legs").click(function () {
    $('a.4-legs img').fadeTo("slow", 0.1);
	$('a.2-legs img').fadeTo("slow", 1);
	$('a.wings img').fadeTo("slow", 0.1);
	$('a.commercial img').fadeTo("slow", 0.1);	
	$('a.enlarge').removeAttr("rel");	
	$('a.2-legs').attr('rel', 'gallery');
  });
  
  $(".menu a.wings").click(function () {
    $('a.4-legs img').fadeTo("slow", 0.1);
	$('a.2-legs img').fadeTo("slow", 0.1);
	$('a.wings img').fadeTo("slow", 1);
	$('a.commercial img').fadeTo("slow", 0.1);	
	$('a.enlarge').removeAttr("rel");	
	$('a.wings').attr('rel', 'gallery');
  });
  
  $(".menu a.commercial").click(function () {
    $('a.4-legs img').fadeTo("slow", 0.1);
	$('a.2-legs img').fadeTo("slow", 0.1);
	$('a.wings img').fadeTo("slow", 0.1);
	$('a.commercial img').fadeTo("slow", 1);	
	$('a.enlarge').removeAttr("rel");	
	$('a.commercial').attr('rel', 'gallery');
  });           

  $("#logo a").click(function () {
    $('a.4-legs img').fadeTo("slow", 1);
	$('a.2-legs img').fadeTo("slow", 1);
	$('a.wings img').fadeTo("slow", 1);
	$('a.commercial img').fadeTo("slow", 1);
	$('a.enlarge').removeAttr("rel");	
	$('a.enlarge').attr('rel', 'gallery');	
  });

 
   $('img').bind('contextmenu', function(e){
    return false;
	});    
   
});
























