function socialhover() {
	
	$("a.facebook").hover(
		function() { $("#socialtxt").html("<p>follow us on facebook</p>")},
		function() { $("#socialtxt").html("<p>social links</p>")}
	);
	
	$("a.twitter").hover(
		function() { $("#socialtxt").html("<p>follow us on twitter</p>")},
		function() { $("#socialtxt").html("<p>social links</p>")}
	);
}

function scrollto() {
	$('.scrollPage').click(function() {
		var elementClicked = $(this).attr("href");
		var destination = $(elementClicked).offset().top;
		$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination-20}, 500 );
		return false;
	});
}

/* function mainnavhover() {	

	$("#other_links_container a").hover(
		function(){
			$(this).animate({
				backgroundPosition: "(0px -150px)",
				duration: "fast"
			});
		},
		function(){
			$(this).stop().animate({
				backgroundPosition: "(0px 50px)",
				duration: "fast"
			});
		}); 
} */







		$(document).ready(function(){
			var nav= $("ul.nav > li");
			$("div",nav).hide();
			$(nav).hover(
				function(){
					$(this).children("div").slideDown(400);
				},
				function(){
					$(this).children("div").slideUp(300);					
				}
			);

		});








