   //clickable divs
$(document).ready(function(){
	$(".clickable").click(function() {
	  window.location = $(this).find("a:first").attr("href");
	});

  $(".clickable").hover(
    function() {$(this).addClass("hover");},
    function() {$(this).removeClass("hover");}
  );



});


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.title ="Link opens in a new window";
  anchor.target = "_blank"; 
    }
 } 
} 
window.onload = externalLinks;
