// JavaScript Document
$(document).ready(function(){
	$('.header-tags ul li a').hover(function() {
       	$(this).stop().animate({paddingTop:'63px'},{queue:false,duration:160});
			}, function() {
		$(this).stop().animate({paddingTop:'50px'},{queue:false,duration:160});
    });
	
	$('.home-slider').cycle({ 
		cleartypeNoBg: true,
	   	fx: 'scrollHorz', 
		speed: 		250,
		timeout: 	6000,
		prev: '.left-arrow a',
    	next: '.right-arrow a',
		pager:      '.controls ul',
		pagerEvent: 'click' ,
		inDelay:	250, 
		easing: 	'swing', 	
		pause:      true,
		
		pagerAnchorBuilder: function(idx, slide) {
			return '.controls ul li:eq(' + (idx) + ') a';
		}
	});
	
	$('.quotes').cycle({
		cleartypeNoBg: true,
			fx: 'fade',
		timeout: 8000
	});
	
	
	//back to top
	$('a[href=#top]').click(function(){
		//alert('clicked');
	    $('html, body').animate({scrollTop:0}, 'slow');
	    return false;
	});
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		theme: 'dark_rounded'
	});
	
});


//alert('Are you sure you want to give us the deed to your house?');

