     $(document).ready(function() {
        $("#footerContent").slideBox({ width: "100%", height: "180px", position: "bottom" });
       
        var queryValue = getQuerystring('sec');
       
        if(queryValue != null && queryValue !='')
        {
            $(".tabLink").each(function(){
              $(".tabLink").removeClass("activeLink");
              $("#"+queryValue).addClass("activeLink");
              $(".tabcontent").addClass("hide");
              $("#"+queryValue+"-1").removeClass("hide")   
              return false;      
            });  
        }
       
        $(".tabLink").each(function(){
          $(this).click(function(){
            tabeId = $(this).attr('id');
            $(".tabLink").removeClass("activeLink");
            $(this).addClass("activeLink");
            $(".tabcontent").addClass("hide");
            $("#"+tabeId+"-1").removeClass("hide")   
            return false;      
          });
        });  
  });

function getQuerystring(key, default_)
{
  if (default_==null) default_="";
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
}


function hideIt() {
    $('#theBlack').fadeOut();
    $('#popUpCover').fadeOut();
    document.getElementById("rnr").style.display = "none";
    document.getElementById("error").style.display = "none";
    document.getElementById("general").style.display = "none";
    document.getElementById("thumbEnlarge").style.display = "none";
  }
  function showIt() {
    var height = $('#popUpCover').innerHeight();
    $('#theBlack').fadeIn();
    document.getElementById("theBlack").style.height = height + "px";
    $('#popUpCover').fadeIn();
  }
  
  function showIt2() {
    var height = $('#popUpCover2').innerHeight();
    $('#theBlack').fadeIn();
    document.getElementById("theBlack").style.height = height + "px";
    $('#popUpCover2').fadeIn();
  }
  
    function Close_wrap()
  {
    $('#popUpCover').fadeOut();  
    $('#theBlack').fadeOut();
    $('#popUpCover2').fadeOut();  
      
  }
