function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "out") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externalLinks;

// Annoucement close animation
    $(document).ready(function() {
		$("#announcement").delay(1000).slideDown(800);
		$('.insidefadeout').delay(250).fadeIn(800);
		
        $(".closer").click(function() {
				$('.insidefadeout')
					.delay(250)
					.fadeOut(800);
								
				$('#announcement')
					.delay(1000)
					.slideUp(800);
			});
    });
	
	// Link moving effect
	$(document).ready(function() {
			$(".col li a").hover(function() {	//On hover...
				$(this).find("span").stop().animate({ 
					marginLeft: "10" //Find the span tag and move it up 40 pixels
				}, 250);
			} , function() { //On hover out...
				$(this).find("span").stop().animate({
					marginLeft: "0" //Move the span back to its original state (0px)
				}, 250);
			});
			$("#sidebar li a").hover(function() {	//On hover...
				$(this).find("span").stop().animate({ 
					marginLeft: "10" //Find the span tag and move it up 40 pixels
				}, 250);
			} , function() { //On hover out...
				$(this).find("span").stop().animate({
					marginLeft: "0" //Move the span back to its original state (0px)
				}, 250);
			});
	});
