/* ICON ROLLOVER FADE */
	function iconFade (fadeTrigger, fadeTarget) {
        $(function (){      
            $(fadeTrigger).mouseenter(function(){       
                $(this).children(fadeTarget).stop().fadeTo(200, 1);
            });
            $(fadeTrigger).mouseleave(function(){       
                $(this).children(fadeTarget).stop().fadeTo(100, 0);
            });
        }); 
    };  
	
	iconFade('.header1 .social a', 'img');
	
	function pageSlideTo(targetDiv) {
		$(function(){
			$('html, body').stop().animate({
				scrollTop: $(targetDiv).offset('').top - 95
			}, 700,'easeInOutExpo');	
		});
	};
	
	$(function (e){ 
		$(".profile2 .company a").click(function(){    
			$('html, body').stop().animate({
				scrollTop: $('#map_canvas').offset('').top - 113
			}, 700,'easeInOutExpo');
			return false;
			e.preventDefault();			
		}); 
	});	
	/*
	$(function (e){ 
		$(".header1 .nav .last").click(function(){    
			$('html, body').stop().animate({
				scrollTop: $('.footer form').offset('').top - 464
			}, 700,'easeInOutExpo');
			return false;
			e.preventDefault();			
		}); 
	});		

	$(function (e){ 
		$(".profile2 .email a").click(function(){    
			$('html, body').stop().animate({
				scrollTop: $('#contact-us-form').offset('').top - 1122
			}, 700,'easeInOutExpo');
			return false;
			e.preventDefault();			
		}); 
	});	
	*/
$(document).ready(function(){
	$(".header1 .nav .last, .scroll-to-bottom a, ul.social li a.email").click(function(){
		$('html, body').animate({scrollTop: $(document).height()-$(window).height()}, 700,'easeInOutExpo');
		return false;
	});
});

$(document).ready(function(){	
	$('.contact-social-links .email a').click(function(){
		/*													   
		$.scrollTo( $('#message_form'), 700, {easing:'easeInOutExpo'} );
		return false;
		*/
		$('html, body').stop().animate({
			scrollTop: $('#message_form').offset('').top - 70
		}, 700,'easeInOutExpo');
		return false;
		e.preventDefault();	
	});
});
/*
$(function (e){ 
	$("ul.profile1 li.item1 span a").click(function(){  
		$('html, body').animate({scrollTop: $(document).height()-$(window).height()}, 700,'easeInOutExpo');
		return false;
	});
});

$(function (e){ 
	$("a.frame1 img").click(function(){  
		$('html, body').animate({scrollTop: $(document).height()-$(window).height()}, 700,'easeInOutExpo');
		return false;
	});
});
*/
