
   img1 = new Image;
   img1.src = "/pix/nav_about_on.gif";
   img2 = new Image;
   img2.src = "/pix/nav_products_on.gif";
   img3 = new Image;
   img3.src = "/pix/nav_sponsorship_on.gif";
   img4 = new Image;
   img4.src = "/pix/nav_contact_on.gif";
   img5 = new Image;
   img5.src = "/pix/nav_shopOnline_on.gif";
   img6 = new Image;
   img6.src = "/pix/nav_listings_on.gif";
   img7 = new Image;
   img7.src = "/pix/nav_home_on.gif";

function rollover(target,imgName) {
   if (document.images) {
      imgchange = imgName;
      document[target].src = imgchange;
   }
}

var newwin;
function popup(y,z,j,k,n)
{
   sheight = k
   swidth = j
   
   if (document.all) {
      if (swidth > document.body.clientWidth)
         swidth = document.body.clientWidth-30
      if (sheight > document.body.clientHeight)
         sheight = document.body.clientHeight-30
      }
   else if (document.layers || document.getElementById) {
      if (swidth > window.innerWidth)
         swidth = window.innerWidth-30
      if (sheight > window.innerHeight)
         sheight = window.innerHeight-30
   }
   
   if (n)
      temp = "width=" + swidth + ",height=" + sheight + ",screenX=" + (n) + ",screenY=" + (50) + ",left=" + (n) + ",top=" + (50);
   else
      temp = "width=" + swidth + ",height=" + sheight + ",screenX=" + (50) + ",screenY=" + (50) + ",left=" + (50) + ",top=" + (50);
   
    temp2 = "toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=1,resizable=0,"
   newwin = window.open(y,z,temp2 + temp);
return false;
}


function termsPopup(core)
{
   var url = "http://doctor.webmd.com/physician_finder/popup.aspx?sponsor=" + core;
   url += "&pop=pop_appointment_services"
   wmdOpenPopup(url, 500, 500);
}

function wmdOpenPopup(theUrl, width, height)
{
   var w = 470, h = 470;
 
   if (width != undefined) w = width;
   if (height != undefined) h = height;
   
   var left = (screen.availWidth - w)/2;
   var top = (screen.availHeight - h)/2;
 
   if (w == screen.availWidth) w = w - 12;
   if (h == screen.availHeight) h = h - 24;
  
   var arg = "scrollbars,resizable" + ",width=" + w + ",height=" + h + ",top=" + top + ",left= " + left;
   var win = window.open(theUrl, 'wmdPopup', arg );
   if (win) { win.focus(); }
 
   return false;
} 


