function loadGame() {
    //$(".blackout").show();
    $("#game").html("");
	$("#game-container").show();
	$.ajax({
	   type: "GET",
	   url: "includes/spot-the-thing/index.php",
	   success: function(msg){
		   $("#game").html(msg);
	   }
	 });
}

function closeGame() {
	$("#game-container").hide();
	stop = true;
}

        
function mouseovercontact() {
    var element = document.getElementById("contact-box");
/*    element.style.backgroundImage = 'url("images/contactbuttonlight.png")'; */
}

function mouseoutcontact() {
    var element = document.getElementById("contact-box");
/*    element.style.backgroundImage = "url('images/contactbutton.png')"; */
}

function showcontact() {
    $(".blackout").show();
    $(".contact-area").fadeIn('fast');
}

function hidecontact() {
    $(".contact-area").fadeOut('fast', function() {
        $(".blackout").hide();
    });
}
           

var currentAcc = 1;           
function accordion(id) {
    if (currentAcc != id) {
        var element = document.getElementById("contact-header-"+currentAcc);
        element.style.background = "url('images/arrow-right.png') no-repeat 10px center #FFFFFF";
        element.style.color = "black";
        element = document.getElementById("contact-header-"+id);
        element.style.background = "url('images/arrow-down.png') no-repeat 10px center #FFFFFF";
        /*element.style.color = "white";*/
        $("#contact-panel-"+currentAcc).slideUp();
        $("#contact-panel-"+id).slideDown();
        currentAcc = id;
    }
}
 
            
$(window).load(function() {
    $(".main").fadeIn("slow");
});

$(window).unload(function() {
    $(".main").fadeOut("slow");
});




