jQuery.noConflict();
     

jQuery(document).ready(function($){
// Do jQuery stuff using $
 
	//menu classes
	$('nav li:first-child').addClass('first');
	$('nav li:last-child').addClass('last');
	
	//footer tooltips
	$('footer li span').css({ opacity: 0 });
	$('footer li a').hover(function() {
			$(this).parent().find('span').stop(true, true).animate({opacity: 1, top: '-50px'});
		}, function(){
			$(this).parent().find('span').stop(true, true).animate({opacity: 0, top: '-30px'});
		});
	
	//clear search field
	var value = $('#searchform input').attr('value');

	$('#searchform input').focus (function() {
		if ($(this).attr('value') == value) {
				$(this).val("")
		}
	});
	
	$('#searchform input').blur(function() {
		if ($(this).attr('value') == "") {
				$(this).val(value)
		}
	});
	
	//zoom
	$('.category-work a.fancybox').append('<p>View larger screenshot');
	$('.category-work a.fancybox').hover(function(){
			$(this).find('p').fadeIn('slow');
		}, function(){
			$(this).find('p').fadeOut('slow');
			});
	
 
});

