// JavaScript Document
/*showfirst = function() {
	//$.get('tabs/local_news.html'),'',function(){$("#variable_content").html() }
	$("#variable_content").load("tabs/local_news.html");
	$("table.news_table tr:odd").css("background", "#999");
}
var overlay = $("<div id='popup_overlay'></div>");
var popup = $("<div id='popup'></div>");

overlaySize = function () {
	$("#popup_overlay").width($(window).width());
	$("#popup_overlay").height($(window).height());
	}
popupPosition = function () {
	var popWidth = $("#popup").width()/2;
	var popHeight = $("#popup").height()/2;
	var xmargin = $(window).width()/2-popWidth;
	var ymargin = $(window).height()/2-popHeight;
	$("#popup").css('left',xmargin).css('top',ymargin);
	}

showOverlay = function () {	$("body").append(overlay.click(hideContent));	overlaySize();	}
hideOverlay = function () {	$("#popup_overlay").remove();	}
showPopup = function () { 	$("body").append(popup);	}
	

showJob = function () {
	$.get(arguments[0],'',function(){
		//alert(arguments[0]);
		$("#popup").html(arguments[0]);
		$(".close").click(hideContent);
		showOverlay();
		popupPosition();
		$("#popup").fadeIn(600);
	});
}
	
hideContent = function () {
	$("#popup").fadeOut(600);
	hideOverlay();
}

init = function () {
   // Utils
	$('.category a').click(function(){showJob($(this).attr('href'));});

}
	
$(function(){
	showJob();
	init();
});
	
$(window).resize(function() {
	overlaySize();
	popupPosition();
});*/