/* The following is used to comply with XHTML Strict ruels of now Target attributes for anchor elements */
function externalLinks() {
	jQuery('a[rel~="external"]').click(function(){
		jQuery(this).attr({
			"target":"_blank"
		});
	});
}

//When Document is Loaded and Ready
$(document).ready(function(){

	//Run to set up external links
	externalLinks();
	
	
	//Main Navigation Flyouts
	$("#menu1 ul li:not(#menu1 ul li ul li)").bind("mouseover", function(e){
			$(this).addClass('over');
	});
	
	$("#menu1 ul li:not(#menu1 ul li ul li)").bind("mouseout", function(e){
			$(this).removeClass('over');
	});	
	
			
	$("#canadaServices li a").bind("click", function(event){
		$(this).parent().find('p').slideToggle();
		event.preventDefault();
	});
	
	//Identify all the hrefs still with #, and give them the class "NeedLink"
	
	/*var $missingLinks = $('a[href~="#"]');
	$missingLinks.addClass('needLink');*/
	
	
	// Used to Spawn the following classes in new window - looks to address Outlook 2010 Bug
	/*$(".notesLink, .notesUrl, .notesDoc").bind("click", function(event){
		window.open($(this).attr("href"), '_blank');
		event.preventDefault();
	});*/	
		
});

