

var cellName=null;
var imageDir="/graphics/";

//pre-load images if "Image" is defined


if(document.images)
   {
    var item_IMG_01_off = new Image();
    item_IMG_01_off.src = imageDir+"bu_proc.off.gif"; 
    var item_IMG_01_on  = new Image();
    item_IMG_01_on.src  = imageDir+"bu_proc.on.gif";

    var item_IMG_02_off = new Image();
    item_IMG_02_off.src = imageDir+"bu_about.off.gif"; 
    var item_IMG_02_on  = new Image();
    item_IMG_02_on.src  = imageDir+"bu_about.on.gif";

    var item_IMG_03_off = new Image();
    item_IMG_03_off.src = imageDir+"bu_bios.off.gif";
    var item_IMG_03_on  = new Image();
    item_IMG_03_on.src  = imageDir+"bu_bios.on.gif";
    
     var item_IMG_04_off = new Image();
    item_IMG_04_off.src = imageDir+"bu_prod.off.gif"; 
    var item_IMG_04_on  = new Image();
    item_IMG_04_on.src  = imageDir+"bu_prod.on.gif";
    
     var item_IMG_05_off = new Image();
    item_IMG_05_off.src = imageDir+"bu_appts.off.gif"; 
    var item_IMG_05_on  = new Image();
    item_IMG_05_on.src  = imageDir+"bu_appts.on.gif";
    
     var item_IMG_06_off = new Image();
    item_IMG_06_off.src = imageDir+"bu_ins.off.gif"; 
    var item_IMG_06_on  = new Image();
    item_IMG_06_on.src  = imageDir+"bu_ins.on.gif";
    
     var item_IMG_07_off = new Image();
    item_IMG_07_off.src = imageDir+"bu_links.off.gif"; 
    var item_IMG_07_on  = new Image();
    item_IMG_07_on.src  = imageDir+"bu_links.on.gif";
 
     var item_IMG_08_off = new Image();
    item_IMG_08_off.src = imageDir+"bu_loc.off.gif"; 
    var item_IMG_08_on  = new Image();
    item_IMG_08_on.src  = imageDir+"bu_loc.on.gif";
    
    var item_IMG_09_off = new Image();
    item_IMG_09_off.src = imageDir+"bu_ct.off.gif"; 
    var item_IMG_09_on  = new Image();
    item_IMG_09_on.src  = imageDir+"bu_ct.on.gif";
    
    var item_IMG_10_off = new Image();
    item_IMG_10_off.src = imageDir+"bu_home.off.gif"; 
    var item_IMG_10_on  = new Image();
    item_IMG_10_on.src  = imageDir+"bu_home.on.gif";
    
    var item_IMG_11_off = new Image();
    item_IMG_11_off.src = imageDir+"bu_articles.off.gif"; 
    var item_IMG_11_on  = new Image();
    item_IMG_11_on.src  = imageDir+"bu_articles.on.gif";
    
    var item_IMG_12_off = new Image();
    item_IMG_12_off.src = imageDir+"bu_links.off.gif"; 
    var item_IMG_12_on  = new Image();
    item_IMG_12_on.src  = imageDir+"bu_links.on.gif";
    
    var item_IMG_13_off = new Image();
    item_IMG_13_off.src = imageDir+"bu_genderm.off.gif"; 
    var item_IMG_13_on  = new Image();
    item_IMG_13_on.src  = imageDir+"bu_genderm.on.gif";
    
    var item_IMG_14_off = new Image();
    item_IMG_14_off.src = imageDir+"bu_cosmetic.off.gif"; 
    var item_IMG_14_on  = new Image();
    item_IMG_14_on.src  = imageDir+"bu_cosmetic.on.gif";
    
    var item_IMG_15_off = new Image();
    item_IMG_15_off.src = imageDir+"bu_contact.off.gif";//graphics, please remember to call contact graphic something else
    var item_IMG_15_on  = new Image();
    item_IMG_15_on.src  = imageDir+"bu_contact.on.gif";//graphics, please remember to call contact graphic something else
    
     var item_IMG_16_off = new Image();
    item_IMG_16_off.src = imageDir+"bu_skinsurgery.off.gif"; 
    var item_IMG_16_on  = new Image();
    item_IMG_16_on.src  = imageDir+"bu_skinsurgery.on.gif";
	
	var item_IMG_17_off = new Image();
    item_IMG_17_off.src = imageDir+"bu_spa.off.gif"; 
    var item_IMG_17_on  = new Image();
    item_IMG_17_on.src  = imageDir+"bu_spa.on.gif";
	
	var item_IMG_18_off = new Image();
    item_IMG_18_off.src = imageDir+"bu_np.off.gif"; 
    var item_IMG_18_on  = new Image();
    item_IMG_18_on.src  = imageDir+"bu_np.on.gif";
	
	var item_IMG_19_off = new Image();
    item_IMG_19_off.src = imageDir+"bu_specials.off.gif"; 
    var item_IMG_19_on  = new Image();
    item_IMG_19_on.src  = imageDir+"bu_specials.on.gif";
	
	var item_IMG_20_off = new Image();
    item_IMG_20_off.src = imageDir+"bu_news.off.gif"; 
    var item_IMG_20_on  = new Image();
    item_IMG_20_on.src  = imageDir+"bu_news.on.gif";
    }

function over(cellName) 
    {
     if(document.images) 
       {
        if(cellName == 'button1') {document[cellName].src = item_IMG_01_on.src;}
        if(cellName == 'button2') {document[cellName].src = item_IMG_02_on.src;}
        if(cellName == 'button3') {document[cellName].src = item_IMG_03_on.src;}
        if(cellName == 'button4') {document[cellName].src = item_IMG_04_on.src;}
        if(cellName == 'button5') {document[cellName].src = item_IMG_05_on.src;}
        if(cellName == 'button6') {document[cellName].src = item_IMG_06_on.src;}
        if(cellName == 'button7') {document[cellName].src = item_IMG_07_on.src;}
        if(cellName == 'button8') {document[cellName].src = item_IMG_08_on.src;}
        if(cellName == 'button9') {document[cellName].src = item_IMG_09_on.src;}
        if(cellName == 'button10') {document[cellName].src = item_IMG_10_on.src;}
        if(cellName == 'button11') {document[cellName].src = item_IMG_11_on.src;}
		if(cellName == 'button12') {document[cellName].src = item_IMG_12_on.src;}
        if(cellName == 'button13') {document[cellName].src = item_IMG_13_on.src;}
        if(cellName == 'button14') {document[cellName].src = item_IMG_14_on.src;}
        if(cellName == 'button15') {document[cellName].src = item_IMG_15_on.src;}
          if(cellName == 'button16') {document[cellName].src = item_IMG_16_on.src;}
		  if(cellName == 'button17') {document[cellName].src = item_IMG_17_on.src;}
		  if(cellName == 'button18') {document[cellName].src = item_IMG_18_on.src;}
		  if(cellName == 'button19') {document[cellName].src = item_IMG_19_on.src;}
		  if(cellName == 'button20') {document[cellName].src = item_IMG_20_on.src;}
       }
}

function out(cellName) 
    {
     if(document.images) 
       {
        if(cellName == 'button1') {document[cellName].src = item_IMG_01_off.src;}
        if(cellName == 'button2') {document[cellName].src = item_IMG_02_off.src;}
        if(cellName == 'button3') {document[cellName].src = item_IMG_03_off.src;}
        if(cellName == 'button4') {document[cellName].src = item_IMG_04_off.src;}
        if(cellName == 'button5') {document[cellName].src = item_IMG_05_off.src;}
        if(cellName == 'button6') {document[cellName].src = item_IMG_06_off.src;}
        if(cellName == 'button7') {document[cellName].src = item_IMG_07_off.src;}
        if(cellName == 'button8') {document[cellName].src = item_IMG_08_off.src;}
        if(cellName == 'button9') {document[cellName].src = item_IMG_09_off.src;}
        if(cellName == 'button10') {document[cellName].src = item_IMG_10_off.src;}
        if(cellName == 'button11') {document[cellName].src = item_IMG_11_off.src;}
        if(cellName == 'button12') {document[cellName].src = item_IMG_12_off.src;}
        if(cellName == 'button13') {document[cellName].src = item_IMG_13_off.src;}
        if(cellName == 'button14') {document[cellName].src = item_IMG_14_off.src;}		
         if(cellName == 'button15') {document[cellName].src = item_IMG_15_off.src;}		
          if(cellName == 'button16') {document[cellName].src = item_IMG_16_off.src;}	
		  if(cellName == 'button17') {document[cellName].src = item_IMG_17_off.src;}
		  if(cellName == 'button18') {document[cellName].src = item_IMG_18_off.src;}
		  if(cellName == 'button19') {document[cellName].src = item_IMG_19_off.src;}
		  if(cellName == 'button20') {document[cellName].src = item_IMG_20_off.src;}
      }
}



if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuShove = 0;
HM_PG_FontFamily = "arial,sans-serif";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "15336d";
HM_PG_FontColorOver = "#15336d";
HM_PG_BGColor = "e5f7fb";
HM_PG_BGColorOver = "d6f6fd";
HM_PG_ItemPadding = 5;

HM_PG_BorderWidth = 0;
HM_PG_BorderColor = "ffffff";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#ffffff";
HM_PG_ImageSrc = "/graphics/tri.gif";
HM_PG_ImageSrcLeft = "/graphics/triL.gif";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .25;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

//HM_a_TreesToBuild = [2];

var isNS4=document.layers?true:false;
var isIE=document.all?true:false;
var isIE6=isIE&&document.getElementById?true:false;
var isIE4=isIE&&!isIE6?true:false;
var isNS6=!isIE6&&document.getElementById?true:false;
var isNS=isNS4||isNS6;

// JavaScript Document
//Works

function newWindow(location, wid, hei) {
	newWindow = window.open(""+location+"", "newWin", "toolbar=no, location=no, scrollbars=yes, width="+wid+", height="+hei+" ")
}

function iDownload(iframeSrc) {
if (document.images) {
 document.getElementById('iframeimg').src = iframeSrc
 }
}

function submitIt(assetForm) {
 assetOption = -1
 for (i=0; i<assetForm.assetCt.length; i++){
  if (assetForm.assetCt[i].checked) {
   assetOption = i
   fname = document.getElementById('iframeimg').src
   iframeimg.document.execCommand('saveas', null ,fname)
  }
 }
 if (assetOption == -1) {
  alert("Please select an asset for download")
  return false
 }
return true
}






