function change_loginStatus(sStatus){
    //clear the msg box
    response("", 0)

/*    switch (sStatus){
        case "not":
			$(".login").show();
			$(".auth").hide();

        break;
        case "auth":
			$(".login").hide();
			$(".auth").show();

        break;
        case "rem":
			$(".login").hide();
			$(".auth").hide();
        break;
    }*/
	
    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 = "inline";
            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){
//	//alert("load floorplan: " + arg);
//	//hide siteplan area
	$(".siteplan_view").hide();
	$(".floorplan_view").show();
	
	/*get_object("siteplan_area").style.visible = "hidden";
	get_object("siteplan_area").style.display = "none";
	
	//hide siteplan menu
	get_object("siteplan_menu").style.visible = "hidden";
	get_object("siteplan_menu").style.display = "none";
	
	//show floorplan area
	get_object("floorplan_area").style.visible = "visible";
	get_object("floorplan_area").style.display = "block";
	
	//show floorplan menu
	get_object("floorplan_menu").style.visible = "visible";
	get_object("floorplan_menu").style.display = "block";
	
	//show login area
	get_object("login_area").style.visible = "visible";
	get_object("login_area").style.display = "block";
	get_object("login_area").style.visible = "visible";
	get_object("login_area").style.display = "block";*/
	
	//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(){
	
	$(".siteplan_view").show();
	$(".floorplan_view").hide();
	
/*	//show siteplan area
	get_object("siteplan_area").style.visible = "visible";
	get_object("siteplan_area").style.display = "block";
	
	//show siteplan menu
	get_object("siteplan_menu").style.visible = "visible";
	get_object("siteplan_menu").style.display = "block";
	
	//hide floorplan area
	get_object("floorplan_area").style.visible = "hidden";
	get_object("floorplan_area").style.display = "none";

	//hide floorplan menu
	get_object("floorplan_menu").style.visible = "hidden";
	get_object("floorplan_menu").style.display = "none";
	
	//hide login menus
	get_object("login_area").style.visible = "hidden";
	get_object("login_area").style.display = "none";
	get_object("login_area").style.visible = "hidden";
	get_object("login_area").style.display = "none";*/
	
	window.onbeforeunload = null;
	
}

/*function set_up_menu_boxes(){
	$(".login_area, .forward_area").each(function(){
		$(this).html($(this).html() + "<div class='roundbox'><div class='roundbox_topleft'></div><div class='roundbox_topright'></div><div class='roundbox_bottomright'></div><div class='roundbox_bottomleft'></div></div>")							
	});
	
	
	
}*/

/***************************************************************************
 ****************** Sponsors logo (on hall zoom) section *******************
 								***	DISABLED ***
 ***************************************************************************/

/*function hall_sponsor(hall){
//hide all hall sponsor spans (left):
	var left_content = get_object("left_content");
	var left_content_elements = left_content.getElementsByTagName("span");
	//xGetElementsByTagName("span", left_content);
	
	for (var i = 0; i < left_content_elements.length; i++){
		left_content_elements[i].style.visible = "hidden";
		left_content_elements[i].style.display = "none";
	}
	
//hide all hall sponsor spans (right):
	var right_content = get_object("right_content");
	var right_content_elements = right_content.getElementsByTagName("span");
	//xGetElementsByTagName("span", right_content);
	for (var i = 0; i < right_content_elements.length; i++){
		right_content_elements[i].style.visible = "hidden";
		right_content_elements[i].style.display = "none";
	}
	
	//find out which hall has been zoomed into and show the correct sponsors logos
	//first check if var zoom has anything in it:
	//if (zoom != ""){hall = zoom};
	if (hall == "")
		{
			//no hall has been zoomed to so display default
			get_object("default_left").style.visible = "visible";
			get_object("default_left").style.display = "inline";
			get_object("default_right").style.visible = "visible";
			get_object("default_right").style.display = "inline";
		}
	else if(hall != "undefined")
		{
			//a hall has been zoomed
			var arrHalls = new Array("Hall 1 -", "Hall 2 -", "Hall 3 -", "Hall 4 -", "Hall 5 -", "Hall 6 -", "Hall 7 -", "Hall 8 -", "Hall 9 -", "Hall 10 -", "Hall 11 -", "Hall 12 -", "Hall 17 -", "Hall 18 -", "Hall 19 -", "Hall 20 -");
			var arrHallsNoSpace = new Array("hall1", "hall2", "hall3", "hall4", "hall5", "hall6", "hall7", "hall8", "hall9", "hall10", "hall11", "hall12", "hall17", "hall18", "hall19", "hall20");
			
			for (var o = 0; o < arrHalls.length; o++){
				if (hall.indexOf(arrHalls[o]) != -1){
					//we have zoomed into this hall.
					//now show the correct sponsors logos:
					get_object(arrHallsNoSpace[o] + "_left").style.visible = "visible";
					get_object(arrHallsNoSpace[o] + "_left").style.display = "inline";
					get_object(arrHallsNoSpace[o] + "_right").style.visible = "visible";
					get_object(arrHallsNoSpace[o] + "_right").style.display = "inline";
				}
			}
		}
	

}
*/