/* EXTERNAL LINKS - Keeps W3C Happy */
/* Script to launch link whilst still being strict compliant */
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;


/* Add href to entire li so all is clickable */

$(document).ready(function(){

	$("#nav li").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});
	
});


//Cool Stuff
$(document).ready(function(){

	   	
		$("#popupBook").animate({opacity: 1.0}, 4000).fadeOut();

	
});