$(document).ready(function() {
	// Make Things Clickable
	$(".clickable").click(function(){
		var linkURL = $(this).children("a").attr("href");
		if(!linkURL) linkURL = $(this).children("div").children("a").attr("href");
			window.location.href = linkURL;
			return false;
	});
	
	$('.submenu > li').hover(
		function(){
			$(this).addClass('over2');		
		},
		function(){
			$(this).removeClass('over2');
		}
	);
	
	$('li').hover(
		function(){
			$(this).addClass('over');		
		},
		function(){
			$(this).removeClass('over');
		}
	);
	
	$('div.clickable > h2').css({'text-indent': '-9999px',
	'overflow': 'hidden'});

});

// popup
function popWindow(src, width, height) {
	var w = 800;
	var h = 600;
	if (screen.width || screen.height) {
		w = screen.width;
		h = screen.height;
	}
	var leftPos = (w-width)/2;
	var topPos = (h-height)/2;
	window.open(''+src+'','','width='+width+',height='+height+',toolbar=no,status=no,menubar=no,scrollbars=yes,resizeable=no,top=' + topPos + ',left=' + leftPos);
	void(0);
}
