$(function(){
	$('a[href*="http://"]:not([href*="'+location.hostname+'"])').click(function(){
		window.open(this.href);
		return false;
	});
	$('#menu ul li a, #navigation a').hover(function(){
		$(this).animate({backgroundColor:'#000000',color:'#ffffff'},'fast');
	},function(){
		$(this).animate({backgroundColor:'#f8f8f8',color:'#000000'},'fast');
	});
	$('#scroll-to-top').hide();
	$(window).scroll(function(){
		if($(this).scrollTop() < $(this).height()){
			$('#scroll-to-top').fadeOut('slow');
		}else{
			$('#scroll-to-top').fadeIn('slow');
		}
	});
	$('#scroll-to-top').click(function(){
		$('html, body').animate({scrollTop:'0'},'slow');
		return false;
	});
	$('.siteheart').click(function(){
		window.open('https://siteheart.com/webconsultation/122314?s=1','siteheart_sitewindow_122314','height=400,left=30,resizable=yes,top=30,width=550');
		return false;
	});
});
