// Open all external links in a new window

$(document).ready(function(){  
	$("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");  
});  


//	Telephone ToolTip Hover State

$(document).ready(function()	{
	$("#telephone-tooltip").hover(function() {
		$(this).find("div").stop()
		.animate({top: "40", opacity:1}, "slow")
		.css("display","block")
	}, function() {
		$(this).find("div").stop()
		.animate({top: "-40", opacity: 0}, "slow")
	});
});


// Frequently Asked Questions Toggle

$(document).ready(function(){
	
	// Hide all "answer" divs.
	$(".answer").hide();	
	// Toggle the answer component
	$(".question").click(function()	{
		$(this).next(".answer").slideToggle("normal");
	});
	
	
	// Add hover class to FAQ questions 
	$(".question").hover(function()	{
		$(this).addClass("hover");
	},
	function()	{
		$(this).removeClass("hover");
	});
	
});


// Show and Hide the footer sitemap

$(document).ready(function() {
	// Hide Sitemap
	$("#sitemap-wrapper").hide();
	// Show the sitemap on click
	$("a#sitemap-toggle").click(function() {
		$("#sitemap-wrapper").slideDown('normal');
		return false;
	});
	// Hides the sitemap when the closed link is clicked
	$("#close").click(function() {
		$("#sitemap-wrapper").slideUp('normal');
		return false;
	});
	
});
