﻿function showwin(p,n,w,h,scroll){
                var s='';
                var width=w;
                var height=h;
                s=s+'left='+(screen.availWidth-width)/2+',';
                s=s+'top='+(screen.availHeight-height)/2+',';
                s=s+'width='+width+',height='+height+',toolbar=0,location=0,status=0,menubar=0,scrollbars='+1+',resizable=1';
                w=window.open(p,n,s);
                w.focus();
}

function setActive() {
     anavs = document.getElementById('nav_services');
     anavt = document.getElementById('nav_studies');
     if (anavs)
     {
      aObj = anavs.getElementsByTagName('a');
       for(i=0;i<aObj.length;i++) {
        if(document.location.href.indexOf(aObj[i].href)>=0) {
        aObj[i].style.color="#C75B12";
        }
       }
     }
     if (anavt)
     {
      aObj2 = anavt.getElementsByTagName('a');
       for(i=0;i<aObj2.length;i++) {
        if(document.location.href.indexOf(aObj2[i].href)>=0) {
        aObj2[i].style.color="#C75B12";
        }
       }
     }
    }
    
    
function Init()
{
  setActive();
  setupZoom();
}
    

window.onload = Init;

