function show_tab(elem){
	var i=1;
	for (i=1;i<=4;i++) {
		if(document.getElementById("company-info-"+i)) {
			document.getElementById("company-info-"+i+"-content").style.display="none";
			document.getElementById("company-info-"+i).className="company-info-tab-off";
			document.getElementById("company-info-"+i+"-tab").className="tab-label-off";
			document.getElementById("company-info-"+i+"-tab-ur").className="company-info-tab-ur-off";
			document.getElementById("company-info-"+i+"-tab-ul").className="company-info-tab-ul-off";
		}
	}
	document.getElementById("company-info-"+elem+"-content").style.display="block";
	document.getElementById("company-info-"+elem).className="company-info-tab-on";
	document.getElementById("company-info-"+elem+"-tab").className="tab-label-on";
	document.getElementById("company-info-"+elem+"-tab-ur").className="company-info-tab-ur-on";
	document.getElementById("company-info-"+elem+"-tab-ul").className="company-info-tab-ul-on";
	
	if (ie) {
		if (elem == "2") {
		document.getElementById("company-info-"+elem+"-tab-ur").style.right="-2px";
		document.getElementById("company-info-1-tab-ur").style.right="-1px";
		} 
		if (elem == "3") {
		document.getElementById("company-info-"+elem+"-tab-ur").style.right="-2px";
		document.getElementById("company-info-1-tab-ur").style.right="-1px";
		} 
		if (elem == "4") {
		document.getElementById("company-info-"+elem+"-tab-ur").style.right="-2px";
		document.getElementById("company-info-1-tab-ur").style.right="-1px";
		} 
		
	}
}

function show_whats_this (){
	document.getElementById("whats-this-info").style.display="block";
}
function hide_whats_this (){
	document.getElementById("whats-this-info").style.display="none";
}

// o
$j(document).ready(function() {
	$j("#rec-engine-more-less").click(
		function(){		
			var i=6;
			if($j("#rec-engine-more-less-state").html() == "see more") {
				for (i=6;i<=10;i++) {
					if ($j("#rec-engine-result-"+i).html() != ""){
						$j("#rec-engine-result-"+i).css("display","block");
					}
				}
				$j("#rec-engine-more-less").css("background","url('http://www.washingtonpost.com/wp-adv/jobs4/images/rec-item-collapse.png') no-repeat scroll 0% 0%");
				$j("#rec-engine-more-less-state").html("collapse");
			} else {
				for (i=6;i<=10;i++) {
					if ($j("#rec-engine-result-"+i).html() != ""){
						$j("#rec-engine-result-"+i).css("display","none");
					}
				}	
				$j("#rec-engine-more-less").css("background","url('http://www.washingtonpost.com/wp-adv/jobs4/images/rec-item-expand.png') no-repeat scroll 0% 0%");
				$j("#rec-engine-more-less-state").html("see more");
			}
	});
}); 
