// JavaScript Document
jQuery(document).ready(function($) {
						   
var clearMePrevious = '';
// clear input on focus
jQuery('.clearMeFocus').focus(function()
{
if(jQuery(this).val()==jQuery(this).attr('title'))
{
clearMePrevious = jQuery(this).val();
jQuery(this).val('');
}
});
// if field is empty afterward, add text again
jQuery('.clearMeFocus').blur(function()
{
if(jQuery(this).val()=='')
{
jQuery(this).val(clearMePrevious);
}
});

//scroll to animation
jQuery.localScroll();

//portfolio sliding text	
	$('.boxgrid.peek').hover(function(){
		$(".cover", this).stop().animate({top:'100px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'300px'},{queue:false,duration:160});
	});
	
	//picture page sliding text	
	$('.boxgridSmall.peek').hover(function(){
		$(".cover", this).stop().animate({top:'100px'},{queue:false,duration:160});
	}, function() {
		$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
	});
	
//link to .fancybox()
$("a.fancybox").fancybox({'showNavArrows': false});

});
