$(function(){
    // Accordion
    $("#accordion").accordion({ header: "h3" });
    
    //hover states on the static widgets
    $('#dialog_link, ul#icons li').hover(
        function() { $(this).addClass('ui-state-hover'); }, 
        function() { $(this).removeClass('ui-state-hover'); }
    );
                                
    $("#button_msearch").click(function() {
        $("#accordion").accordion('activate' , 0 );
    });    
                        
    $("#button_psearch").click(function() {
        $("#accordion").accordion('activate' , 1 );
    });        
    
	/*
    $("#hideButton").click(function() {
        $(".next").fadeOut("slow");
        $(".maincontent").fadeOut("slow", function() {
            $(".GameDesc").fadeIn("slow");
            $(".MainGameDiv").fadeIn("slow");
        });
    });

    $("#showButton").click(function() {
        $(".ui-layout-content").fadeIn("slow");
        $(".next").fadeIn("slow");
        $(".scorediv").fadeIn("slow");
        $(".MainGameDiv").fadeOut("slow");
    });
  
    $("#besniped_start").click(function() {
        $(".GameDesc").fadeOut("slow");
        $(".scorepic").fadeIn("slow");
        $(".scorediv").fadeIn("slow");
        $(".countdown_text").fadeIn("slow");
        InitGame();
    });*/

});
 

