var ns4class=''
image0 = new Image
image0.src = "/image/myhome.gif"
image1 = new Image
image1.src = "/image/retail.gif"
image2= new Image
image2.src = "/image/shipment.gif"
image3 = new Image
image3.src = "/image/aboutus.gif"
image4= new Image
image4.src = "/image/findus.gif"
image5 = new Image
image5.src = "/image/warranty.gif"
image6 = new Image
image6.src = ""
imagebox= new Image
imagebox.src = image0.src
pageimage= new Image

function setimage(yy)
{switch(yy)
   {case 0 : document.imagebox.src = image0.src; return true; break;
    case 1 : document.imagebox.src = image1.src; return true; break;
    case 2 : document.imagebox.src = image2.src; return true; break;
    case 3 : document.imagebox.src = image3.src; return true; break;
    case 4 : document.imagebox.src = image4.src; return true; break;
    case 5 : document.imagebox.src = image5.src; return true; break;
    case 6 : document.imagebox.src = image6.src; return true; break;
	default: document.imagebox.src = image0.src; return true; break;
   }}

function defaultimage() {
document.imagebox.src = imagebox.src; return true;
}

// End of swapping image
Opacval = 90
plusval = 2
minusval = 1
speed = 30
timer = null; 

var ie5=(document.all && document.getElementById);
var ns6=(!document.all && document.getElementById);

function fadein1(navbtn)
{
 setimage(navbtn);
 //imgtbl[navbtn][1] = "Up";
 //fading();
}

function fadeou1(navbtn)
{
 defaultimage();
 //imgtbl[navbtn][1] = "Down";
 //setTimeout("fading()",80);
}

function fading()
{
 next_loop = true;
 for (i=0;i<imgtbl.length;i++)
 {
  obj = link_table.rows[0].cells[i];
  opacity = imgtbl[i][0]
  if (imgtbl[i][1] == "Up")
  {
     opacity += plusval;
     imgtbl[i][0] = opacity;
     if (imgtbl[i][0] > 105) 
      {imgtbl[i][1] = "";}
     else
     {next_loop = false;}
	 Opacval = opacity;
  }
  else
  {
  if (imgtbl[i][1] == "Down")
  {
     opacity -= minusval;
     imgtbl[i][0] = opacity;
     if (imgtbl[i][0] < 45) 
      {imgtbl[i][1] = "";}
     else
     {next_loop = false;}
	 Opacval = opacity;
  }
  }
  if(ie5){ 
	obj.style.filter="alpha(opacity="+opacity+")";
    }
  if(ns6){ 
   	obj.style.MozOpacity = opacity + '%';
   }
 }
 if (next_loop == false)
  {
   timer = setTimeout("fading()",speed);
  }
  else
  {
   clearTimeout(timer);
  }
}

//for each link option you need to make a new Array;
var imgtbl = new Array();
imgtbl[0] = new Array(45,"");
imgtbl[1] = new Array(45,"");
imgtbl[2] = new Array(45,"");
imgtbl[3] = new Array(45,"");
imgtbl[4] = new Array(45,"");
imgtbl[5] = new Array(45,"");
imgtbl[6] = new Array(45,"");
imgtbl[7] = new Array(45,"");




