/*navigation show/hide*/////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function() {
			$('ul.hover_block li').hover(function(){
				$(this).animate({left:'-145px'},{queue:false,duration:1000,easing: 'easeOutQuart'});
			}, function(){
				$(this).animate({left:'36px'},{queue:false,duration:1000,easing: 'easeOutBounce'});

			});
		});

/*follow user scroll*/////////////////////////////////////////////////////////////////////////////////////////

$(document).ready(function() {
			$('div#nv').scrollFollow(  {
     			speed: 1000,
				offset: 0,
				delay: 10
    		});
		});
$(document).ready(function() {
			$('div.vcard').scrollFollow(  {
     			speed: 2000,
				offset: 0,
				delay: 10
    		});
		});

/*scroll to anchors*/////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function() {
				
	$('ul.hover_block a').click(function(){
		$.scrollTo( this.hash, 1500, { easing:'easeOutQuart' });
		
/*turn off anchor links to prevent screen jump in IE*//////		
		jQuery.each(jQuery.browser, function(i) {
  			if($.browser.msie){
     			$('ul.hover_block a').click(function(e){
				e.preventDefault();
				var link = e.target;
				link.blur();
					});
  			}else{
     				}
		});
		
	});
	
	$('a.loftlife').click(function(){
		$.scrollTo( this.hash, 1500, { easing:'easeOutQuart' });

/*turn off anchor links to prevent screen jump in IE*//////		
		jQuery.each(jQuery.browser, function(i) {
  			if($.browser.msie){
     			$('a.loftlife').click(function(e){
				e.preventDefault();
				var link = e.target;
				link.blur();
					});
  			}else{
     				}
		});
		
	});
	
});

/*fade action for images*/////////////////////////////////////////////////////////////////////////////////////////
$(document).ready(function() {
			$('div#gallery img').hover(function(){
				$(this).fadeTo(250, 0.4);
			}, function(){
				$(this).fadeTo(250, 1);
			});
		});


/*highlight form fields*/////////////////////////////////////////////////////////////////////////////////////////
$(function() {
// set opacity to nill on page load
			$('input.frmfd').css("opacity","0.4");
			$('textarea.frmfd').css("opacity","0.4");
			$('ul.hover_block li').css("left","36px");
 //the rest of the code will go here
			});
$(document).ready(function() {
			$('input.frmfd').focus(function(){
				$(this).animate({opacity: 1}, { duration: 250, queue: false});

			});
			$('textarea.frmfd').focus(function(){
				$(this).animate({opacity: 1}, { duration: 250, queue: false});

			});

			$('input.frmfd').blur(function(){
				$(this).animate({opacity: 0.4}, { duration: 750, queue: false});
			});

			$('textarea.frmfd').blur(function(){
				$(this).animate({opacity: 0.4}, { duration: 750, queue: false});
			});
		});
