/* ---------------------------- */
/* SHOW-HIDE Layer				*/
/* ---------------------------- */
function showlayer(layer){
	var myLayer=document.getElementById(layer);
	if(myLayer.style.display=="none" || myLayer.style.display==""){
		myLayer.style.display="block";
	} else { 
		myLayer.style.display="none";
		}
}

/* ---------------------------- */
/* SEND TO A FRIEND				*/
/* ---------------------------- */
function popUp(url){
	window.open(url,"pop","width=650,height=500,toolbars=0,scrollbars=1")
}

/* ---------------------------- */
/* FEATURED RECENT TABS			*/
/* ---------------------------- */
$(document).ready(function() {
	$('#tabjobs > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
	$('#tabjobs-home > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
	$('#featuredvid > ul').tabs();
});

/* ---------------------------- */
/* LOGIN PANEL       			*/
/* ---------------------------- */
$(document).ready(function() {
	$("div.panel_button").click(function(){
		$("div#panel").animate({
			//height: "500px"				   
			height: "240px"
		})
		.animate({
			//height: "400px"	 
			height: "220px"
		}, "fast");
		$("div.panel_button").toggle();
	
	});	
	
   $("div#hide_button").click(function(){
		$("div#panel").animate({
			height: "0px"
		}, "fast");
		
	
   });	
	
});