$(document).ready(function(){
        //  Initialize Backgound Stretcher	   
		$(document).bgStretcher({
			images: ['assets/templates/house-vancouver/images/duncan-brown-realtor-bk.jpg'],
			imageWidth: 1920, imageHeight: 1200
		});
		
		$('#toggleAnimation').click(function(){
	       if($(this).val() == "Pause Animation"){
	           $(this).val("Resume Animation");
	           $(document).bgStretcher.pause();
	       } else {
	           $(this).val("Pause Animation");
	           $(document).bgStretcher.play();
	       }
		});
	});
$(document).ready(function(){
	$('.category').mouseenter(function(){
		$('.category').removeClass('active');
		$(this).addClass('active');
		$('.category-image').hide();
		$('#category_'+this.id).fadeIn(800);
	});
	$('.category1').mouseenter(function(){
		$('.category1').removeClass('active');
		$(this).addClass('active');
		$('.category-image1').hide();
		$('#category_'+this.id).fadeIn(800);
	});
});
(function($) {
	$(function() { //on DOM ready
		$(".scroller").simplyScroll({
			className: 'vert',
			horizontal: false,
			frameRate: 20,
			speed: 5
		});
	});
})(jQuery);


