$("document").ready(function(){
	$("#careerDesc").hide();
	$(".jobListings a").click(function(){
		var posting = $(this).attr("href");
		var postionCont = $("#"+posting).html();
		newWindow(600, 600, "popup", postionCont);
		return false
	});
});

function newWindow(w,h,name,content){
	newWindow2 = window.open('',name,'width='+w+',height='+h+', scrollbars=yes, statusbar=yes, toolbar=no');
	var tmp = newWindow2.document;
	tmp.write('<html><head><title>Facilities Solutions, Inc.</title>');
	tmp.write('<link rel="stylesheet" href="/_includes/css/popup.css">');
	tmp.write('</head><body>');
	tmp.write('<div class="actions"><a href="javascript:self.close()" class="close">close</a>');
	tmp.write('<a href="javascript:self.print()">print</a></div>');
	tmp.write('<div class="contentHolder"><table cellspacing=0 cellpadding=0 border=0>'+content+'</table></div>');
	tmp.write('<div class="actions"><a href="javascript:self.close()" class="close">close</a><a href="mailto:HR@CorValGroup.com">Apply for Position</a></div>');
	tmp.write('</body></html>');
	tmp.close();
}
