$(document).ready(function(){
	// hide the links - in case the box needs a 'href' but it's not possible to actually display a link use a <p> with a class of 'destination'
	$("p.destination").hide();
	$("div.clickable").hover(
      function () {
        $(this).addClass("hover");
      }, 
      function () {
        $(this).removeClass("hover");
      }
    );
	
	$("div.clickable").click(function() { 
		var newlocation = $(this).find("a").attr("href");

		if($(this).find("a").hasClass("popup")){
			var popup = window.open(newlocation,'flashsite','height=650,width=1000');
			popup.focus();
		}
		else{
			window.location = newlocation;	
		}
		return false;
	});
	
});