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") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externalLinks;

$(document).ready(
	function(){
		$('#one').innerfade({
			speed: 1500,
			timeout: 9000,
			type: 'random_start',
			containerheight: '160px'
		});
		
		$('#two').innerfade({
			speed: 1000,
			timeout: 23000,
			type: 'random_start',
			containerheight: '160px'
		});
		
		$('#three').innerfade({
			speed: 2000,
			timeout: 19000,
			type: 'random_start',
			containerheight: '160px'
		});
		
		$('#four').innerfade({
			speed: 2500,
			timeout: 16000,
			type: 'random_start',
			containerheight: '160px'
		});
		
		$(".site-navigation")
			.superfish({
				pathClass : 'current',
				animation : {opacity:'show'},
				delay : 1000
			});

});