$(document).ready(function(){	$('a[@href$=.jpg], a[@href$=.jpeg], a[@href$=.gif], a[@href$=.png]').prettyPhoto();	$('.projects > div > h3').next().hide();	$('.projects > div > h3 > em').hide();	$('.projects > div > h3').hover(function(){ 		$(this).find("em").css("background-color","#f00");	},function() {		$(this).find("em").css("background-color","#000");	});	$('.projects > div > h3').click(function(){		$(this).next().slideToggle(500,function() {			if ($(this).is(':hidden')) {				$(this).prev().css("background-image","url(images/h3-arrow.gif)");				$(this).prev().find("em").fadeOut();			} else { 				$(this).prev().css("background-image","url(images/h3-arrow_down.gif)");				$(this).prev().find("em").fadeIn();			}		});	});/*	$('.projects > div > dl > h5 > span').click(function(){		$(this).parent().parent().slideToggle(500,function() {			if ($(this).is(':hidden')) 				$(this).prev().css("background-image","url(images/h3-arrow.gif)");			else 				$(this).prev().css("background-image","url(images/h3-arrow_down.gif)");		});	});*/		jQuery.easing.quart = function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b; };	$('.link-top a').click(function () { $('html,body').animate({ scrollTop: 0 }, 500, 'quart'); });	$('li > a[href*=#]').click(function() {		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')		&& location.hostname == this.hostname) {			var $target = $(this.hash);			$target = $target.length && $target			|| $('[name=' + this.hash.slice(1) +']');			if ($target.length) {				var targetOffset = $target.offset().top;				$('html,body')				.animate({scrollTop: targetOffset}, 500);				return false;			}		}	});});
