b_out = new Image(); 
b_out.src = "images/pixel_blue2.gif";

b_in = new Image(); 
b_in.src = "images/pixel_green1.gif";


function changeImage(imgName, imgSrc){
 document.images[imgName].src = imgSrc.src;
}


var isNS = (navigator.appName == "Netscape");
var layerRef = (isNS) ? "document.layers." : "document.all.";
var styleRef = (isNS) ? "" : ".style";
var topRef = (isNS) ? ".top" : ".pixelTop";
var leftRef = (isNS) ? ".left" : ".pixelLeft";
var isDynamic = ((document.layers || document.all));
var activeMenu = 0;


if (isDynamic)
{
 if (isNS)
 {
  document.captureEvents(Event.MOUSEMOVE);
  document.onmousemove = checkUp;
 }
 else document.onmouseover = killMenu;
}

leftPixel = 156;
topPixel = new Array();
topPixel[0] = 0;
topPixel[1] = 76;
topPixel[2] = 97;
topPixel[3] = 118;
topPixel[4] = 159;
topPixel[5] = 180;
topPixel[6] = 200;
topPixel[7] = 139;

function activateMenu(menuLayerRef){
 if (isDynamic && activeMenu != menuLayerRef)
 {
  if (activeMenu) 
   hideMenu("menu" + activeMenu);
  menuID = "menu" + menuLayerRef;
  activeMenu = menuLayerRef;	
  eval(layerRef + menuID + styleRef + topRef + ' = ' + topPixel[menuLayerRef]);
  eval(layerRef + menuID + styleRef + leftRef + ' = ' + leftPixel);
  showMenu(menuID);
 }
 if (isDynamic && !isNS) window.event.cancelBubble = true;
}

function showMenu(menuID) {
 eval(layerRef + menuID + styleRef + '.visibility = "visible"');
 eval("changeImage('b"+ activeMenu +"', b_in)");
}

function hideMenu(menuID){
 eval(layerRef + menuID + styleRef + '.visibility = "hidden"');
 eval("item" + activeMenu + ".className='outSpan1'");
 eval("changeImage('b"+ activeMenu +"', b_out)");
}

function killMenu(){
 if (activeMenu)
 {
  menuID = "menu" + activeMenu;
  hideMenu(menuID);
  activeMenu = 0;
 }  
}

function checkUp(e){
 if (isNS && (activeMenu != 0))
 {
  var x = e.pageX;
  var y = e.pageY;
  var x1 = eval(layerRef + 'menu' + activeMenu + styleRef + '.clip.width') + leftPixel;
  var y1 = topPixel[activeMenu]-19;
  var y2 = eval(layerRef + 'menu' + activeMenu + styleRef + '.clip.height') + topPixel[activeMenu];
  if ((y < y1) || (y > y2) || (x < leftPixel) || (x > x1)) killMenu();
 }
}

function spanIn1(theSpan){
 theSpan.className='overSpan1';
}

function spanOut1(theSpan, item){
 if (!activeMenu)
  theSpan.className='outSpan1';
}

function spanIn2(theSpan){
 theSpan.className='overSpan2';
 if (activeMenu)
 { 
  eval("item" + activeMenu + ".className='overSpan1'");
  eval("changeImage('b"+ activeMenu +"', b_in)");
 }
}

function spanOut2(theSpan){
 theSpan.className='outSpan2';
}


document.write("<div id=menu1 onmouseover='activateMenu(1);' class=subMenuDiv>");
document.write(" <table border=0 cellspacing=0 cellpadding=0 class=bgMenu><tr><td>");
document.write(" <table border=0 cellspacing=1 cellpadding=0 class=bgMenu>");
document.write("  <tr><td class=bgMenuTD nowrap><a href='about_company.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Company Profile&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='about_management.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Management&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='about_board_of_directors.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Board of Directors&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='about_clinical_advisory_board.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Clinical Advisory Board&nbsp;</span></a></td></tr>"); 

document.write(" </table></td></tr></table>");
document.write("</div>");


document.write("<div id=menu2 onmouseover='activateMenu(2);' class=subMenuDiv>");
document.write(" <table border=0 cellspacing=0 cellpadding=0 class=bgMenu><tr><td>");
document.write(" <table border=0 cellspacing=1 cellpadding=0 class=bgMenu>");
document.write("  <tr><td class=bgMenuTD nowrap><a href='technology_overview.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Overview&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='technology_rf.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;RF-MicroChannel Technology&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='technology_resources.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Reference & Resources&nbsp;</span></a></td></tr>"); 
document.write(" </table></td></tr></table>");
document.write("</div>");


document.write("<div id=menu3 onmouseover='activateMenu(3);' class=subMenuDiv>");
document.write(" <table border=0 cellspacing=0 cellpadding=0 class=bgMenu><tr><td>");
document.write(" <table border=0 cellspacing=1 cellpadding=0 class=bgMenu>");
document.write("  <tr><td class=bgMenuTD nowrap><a href='viaderm_system.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Overview&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='viaderm_patches.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Patch Technologies&nbsp;</span></a></td></tr>"); 
document.write(" </table></td></tr></table>");
document.write("</div>");


document.write("<div id=menu4 onmouseover='activateMenu(4);' class=subMenuDiv>");
document.write(" <table border=0 cellspacing=0 cellpadding=0 class=bgMenu><tr><td>");
document.write(" <table border=0 cellspacing=1 cellpadding=0 class=bgMenu>");
document.write("  <tr><td class=bgMenuTD nowrap><a href='product_apps.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Overview&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='ViaDerm-hGH.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;ViaDerm-hGH</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='product_apps_granisetron_hcl.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Granisetron HCl&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='product_apps_testosterone.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Testosterone&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='product_apps_diclofenac.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Diclofenac&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='product_apps_insulin.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Insulin&nbsp;</span></a></td></tr>"); 
document.write(" </table></td></tr></table>");
document.write("</div>");

document.write("<div id=menu7 onmouseover='activateMenu(7);' class=subMenuDiv>");
document.write(" <table border=0 cellspacing=0 cellpadding=0 class=bgMenu><tr><td>");
document.write(" <table border=0 cellspacing=1 cellpadding=0 class=bgMenu>");
document.write("  <tr><td class=bgMenuTD nowrap><a href='dp_overview.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Overview&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='ViaDerm-hPTH.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;ViaDerm-hPTH (1-34)</span></a></td></tr>"); 
document.write(" </table></td></tr></table>");
document.write("</div>");


document.write("<div id=menu5 onmouseover='activateMenu(5);' class=subMenuDiv>");
document.write("</div>");

document.write("<div id=menu6 onmouseover='activateMenu(6);' class=subMenuDiv>");
document.write(" <table border=0 cellspacing=0 cellpadding=0 class=bgMenu><tr><td>");
document.write(" <table border=0 cellspacing=1 cellpadding=0 class=bgMenu>");
document.write("  <tr><td class=bgMenuTD nowrap><a href='news.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;In the News&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='press.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Press Releases&nbsp;</span></a></td></tr>"); 
document.write("  <tr><td class=bgMenuTD nowrap><a href='events.html'><span onmouseover='spanIn2(this)' onmouseout='spanOut2(this)' class=outSpan2>&nbsp;Events&nbsp;</span></a></td></tr>"); 
document.write(" </table></td></tr></table>");
document.write("</div>");

