function change_loginStatus(sStatus){
    //clear the msg box
    response("", 0)
    var divLogin = get_object("login");
    var divAuth = get_object("auth");
    var divLogin1 = get_object("login1");
    //var divAuth1 = get_object("auth1");

    switch (sStatus){
        case "not":
            divLogin.style.visibility = "visible";
            divLogin.style.display = "inline";
            divAuth.style.visibility = "hidden";
            divAuth.style.display = "none";
            divLogin1.style.visibility = "visible";
            divLogin1.style.display = "inline";
            //divAuth1.style.visibility = "hidden";
            //divAuth1.style.display = "none";

            break;
        case "auth":
            divLogin.style.visibility = "hidden";
            divLogin.style.display = "none";
            divAuth.style.visibility = "visible";
            divAuth.style.display = "block";
            divLogin1.style.visibility = "hidden";
            divLogin1.style.display = "none";
            //divAuth1.style.visibility = "visible";
            //divAuth1.style.display = "inline";

            break;
        case "rem":
            divLogin.style.visibility = "hidden";
            divLogin.style.display = "none";
            divAuth.style.visibility = "hidden";
            divAuth.style.display = "none";
            divLogin1.style.visibility = "hidden";
            divLogin1.style.display = "none";
            //divAuth1.style.visibility = "hidden";
            //divAuth1.style.display = "none";
            break;

    }
}

function response(Msg, type){

    if(type == 0){
        //hide both loading bar and msg
        $(".loading").hide();
    }else if(type == 1){
        //show loading bar
        $(".loading").show();
    }else if(type == 2){
        //show message to user
        $(".loading").hide();
        clearResponseTimer = setTimeout(response_timer_handler,5000);
    }else if(type == 3){
        //show message to user AND show loading bar
        $(".lLoading").show();
        clearResponseTimer = setTimeout(response_timer_handler,5000);
    }

}


function response_timer_handler(){

    response('',0);
    clearTimeout(clearResponseTimer);
}



/************************************************************
 ********************* Load Floorplan **********************
 ***********************************************************
 When the user clicks on a hall the following things must be done:
 1)Hide the siteplan
 2)Show the floorplan
 3)Reduce the size of the center_content item
 4)Show left and right logo blocks
 5)Show correct hall logos
 6)
 */

function load_floorplan(arg){
	
	//set up expanding menus:
	$("#login_area").hide();
	$("#forward_area").hide();
	$("#login_area1").hide();
    $("#forward_area1").hide();
	
	//hide siteplan area
	$(".siteplan_view").hide();
	$(".floorplan_view").show();

	
	//load stands. This must be done now because otherwise ff throws an error and doesnt load stands...
	load_stands();
	
	window.setTimeout(function(){zoomHall(arg);},500);
	
	//enable the exit confirmation dialog
	window.onbeforeunload = confirmExit;
	
}
/************************************************************
 ********************* Load Siteplan **********************
 ***********************************************************/
function load_siteplan(){
	
	//set up expanding menus:
	$("#login_area").hide();
	$("#forward_area").hide();
	$("#login_area1").hide();
	
	$(".siteplan_view").show();
	$(".floorplan_view").hide();
	
	window.onbeforeunload = null;
	
}
