

function ParseQuery(Query)
{
    Query = Query.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
    var regexS = "[\\?&]" + Query + "=([^&#]*)";
    var regex = new RegExp(regexS);
    var results = regex.exec(window.location.href);

    if (results == null)
    {
        return '';
    }
    else
    {
        return results[1];
    }
}


 //  var cat = ParseQuery('cat');
  //$("#"+cat+"").click;



 function close(){

     divMenu(false);
divMenuT(false);
 }


    function divMenu(x) {



       // $("#Li3").show(500,b);
     if (x) { $("#Li3").show(500,b(x))}else{$("#Li3").hide(500,b) }
    }

    function b(x){

    if (x){$("#Li2").show(500,c(x)) }else{ $("#Li2").hide(500,c) }
    }

    function c(x){

    if (x) {$("#Li1").show(500)} else{ $("#Li1").hide(500)}
    }

  function divMenuT(x) {
       if (x)  {$("#LiT1").show(500,Tb(x))} else{ $("#LiT1").hide(500,Tb) }
 }

    function Tb(x){

    if (x)  { $("#LiT2").show(500)} else{ $("#LiT2").hide(500) }
    }

 function divMenuB(x) {



      // $("#Li3").show(500,b);
    if (x) { $("#LiB3").show(500,bB(x))}else{$("#LiB3").hide(500,bB) }
   }

   function bB(x){

   if (x){$("#LiB2").show(500,cB(x)) }else{ $("#LiB2").hide(500,cB) }
   }

   function cB(x){

   if (x) {$("#LiB1").show(500)} else{ $("#LiB1").hide(500)}
   }


    $("#lavaLampBorderOnly").hide();

    $("#lavaLampBorderOnly").fadeIn(2000);



 function go(){
  //alert(cat);
  if(cat!="")      {
   document.getElementById(cat).click(); }
 }

     function go2(cat2){
       // alert(cat2);
         document.getElementById(cat2).click();
       }
 
