function redir( loc ){
	if ( loc ) document.location.href = loc;
}
function redirnew( loc ){
	if ( loc ) window.open(loc);
}

var oldClass = false;
function switchClass( Obj, hoverClass ){
	if ( oldClass != false ) {
		Obj.className = oldClass;
		oldClass = false;
	} else {
		oldClass = Obj.className;
		Obj.className = hoverClass;
	}	
}

function showStatus(sMsg) {
    window.status = sMsg ;
    return true ;
}

$(document).ready(function(){
	$("#showhideIndexDirectory").click(function(){
		$(".gamblingdir").slideToggle();
	});
	
	$(".navheadercontainer").css("cursor","pointer");
	
	$(".navheadercontainer").each(function(){
		$(this).click(function(){
			$("#displaygroupnav"+$(this).attr("id")).slideToggle();
		});
	});
	
	$("#newstrackermore").click(function(){
		$("#latestcasinocontainer").slideToggle();
	});
}); // end of document