// Copyright Meerkat Technology, Inc.  All rights reserved.
// Unauthorized use prohibited

function mkSetMenus (curpath) {
   
   firststring ="";
   secondstring ="";   

   startindex=0;
   endindex=curpath.indexOf(".");
   midpoint= curpath.indexOf("/");
   if (endindex > startindex) {
     if (midpoint > 0) {
       firststring=curpath.substring(startindex,midpoint);
       secondstring = curpath.substring(midpoint+1,endindex);
     } else {
       firststring = curpath.substring(startindex,endindex);
     }
   } 

   
   if (firststring != "")  mkSetNav(firststring);
   if (secondstring !="") mkSetNav(secondstring);


   
         
// Adjust column heights
   var mkm = document.getElementById('mkmain');
   mkm.style.height = 'auto';
   var x = mkm.offsetHeight +50;
   mkm.style.height = x + "px";

  

}






function mkSetNav (curtoken) {

    
   curtokenvis = curtoken + "vis";
   if (document.getElementById(curtoken) != null) {
     document.getElementById(curtoken).className = "selected";
      
   }

   if (document.getElementById(curtokenvis) != null) {
     document.getElementById(curtokenvis).style.display="block";   
   }
}


   function mkpopup(url) {
      window.open(url, '_blank', 'height=400, width=600, resizable, scrollbars, toolbar, status, menubar');
   }
   function mkpopupAddLoc(url) {
      window.open(url, '_blank', 'height=400, width=600, resizable, scrollbars, toolbar, status, menubar, location');
   }
   function mkpopupBasic(url, name, features) {
      window.open(url, name, features);
   }
   function mkpopupStd(url) {
      window.open(url);
   }
