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');

//   alert(cat)

 var s=500;
 var so=200;


  //$("#"+cat+"").click;


function divMenu(x) {



    // $("#Li3").show(500,b);
  if (x) { $("#Li3").show(s,b(x))}else{$("#Li3").hide(so,b) }
 }

 function b(x){

 if (x){$("#Li2").show(s,c(x)) }else{ $("#Li2").hide(so,c) }
 }

 function c(x){

 if (x) {$("#Li1").show(s)} else{ $("#Li1").hide(so)}
 }

   function divMenuT(x) {
    if (x)  {$("#LiT1").show(s,Tb(x))} else{ $("#LiT1").hide(so,Tb) }
  }

 function Tb(x){

 if (x)  { $("#LiT2").show(s)} else{ $("#LiT2").hide(so) }
 }

  function divMenuB(x) {



   // $("#Li3").show(s,b);
 if (x) { $("#LiB3").show(s,bB(x))}else{$("#LiB3").hide(so,bB) }
}

function bB(x){

if (x){$("#LiB2").show(s,cB(x)) }else{ $("#LiB2").hide(so,cB) }
}

function cB(x){

if (x) {$("#LiB1").show(s)} else{ $("#LiB1").hide(so)}
}


    $("#lavaLampBorderOnly").hide();

    $("#lavaLampBorderOnly").fadeIn(700,go);



 function go(){
   // alert(cat)
  if(cat!="")      {
   document.getElementById(cat).click(); }
 }

     function go2(cat2){
       // alert(cat2);
         document.getElementById(cat2).click();
       }
