$(document).ready(function(){

	$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square'});

	$('.t250').hover(function(){
		$(".slider").css('visibility', 'visible');
		$(".slider", this).stop().animate({top:'120px'},{queue:false,duration:160});
		}, function() {
		$(".slider", this).stop().animate({top:'150px'},{queue:false,duration:160});
		});	
	
	$('.t300').hover(function(){
		$(".slider").css('visibility', 'visible');
		$(".slider", this).stop().animate({top:'170px'},{queue:false,duration:160});
		}, function() {
		$(".slider", this).stop().animate({top:'200px'},{queue:false,duration:160});
		});	    

	$(".t300web, .t300gfx").hover(function(){
		$(".slider").css('visibility', 'visible');
		$(".slider", this).stop().animate({top:'40px'},{queue:false,duration:160});
		}, function() {
		$(".slider", this).stop().animate({top:'203px'},{queue:false,duration:160});
		});	    

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("fast");
		$(this).toggleClass("close"); 
		return false;
	});
	
    $('#nav li').append('<div class="hover" />');  
    $('#nav li').hover(  
        function() {  
            $(this).children('div').stop(true, true).fadeIn('500');   
            $(this).children('span').stop(true, true).fadeIn('500');   
        },   
        function() {  
            $(this).children('div').stop(true, true).fadeOut('500');      
            $(this).children('span').stop(true, true).fadeOut('500');      
    }).click (function () {  
        $(this).addClass('selected');  
    }); 
	
   $('p a[title]').qtip({
      position: {
         corner: {
            target: 'topMiddle',
            tooltip: 'bottomMiddle'
         }
      },
      style: {
         name: 'light',
         padding: '7px 10px',
		 textAlign: 'center',
		 background: '#f5f5f5',
         width: {
            max: 150,
            min: 0
         },
         tip: true
      }
   });	
   $('footer p a[title]').qtip({
      position: {
         corner: {
            target: 'topMiddle',
            tooltip: 'bottomMiddle'
         }
      },
      style: {
         name: 'light',
         padding: '7px 10px',
		 textAlign: 'center',
		 background: '#f5f5f5',
         width: {
            max: 150,
            min: 0
         },
         tip: true
      }
   });	
	
	$('#floatMenu').localScroll({
		queue:true,
		duration:500,
		hash:true,
		offset: {top: -60},
		onBefore:function( e, anchor, $target ){
		},
		onAfter:function( anchor, settings ){
		}
	});
	

});



$(window).load(function() {

	$('#content').masonry({ 
		columnWidth: '70'
	});
	
});


