/* author: chrismojo@cox.net */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 00/9/2003 */
 
home1 = new Image(194,43);
home1.src = "images/nhome_blue.gif"; 
home0 = new Image(194,43);
home0.src = "images/nhome_black.gif";

portfolio1 = new Image(194,43);
portfolio1.src = "images/nportfolio_blue.gif"; 
portfolio0 = new Image(194,43);
portfolio0.src = "images/nportfolio_black.gif";

testimonials1 = new Image(194,43);
testimonials1.src = "images/ntestimonials_blue.gif"; 
testimonials0 = new Image(194,43);
testimonials0.src = "images/ntestimonials_black.gif";

services1 = new Image(194,43);
services1.src = "images/nservices_blue.gif"; 
services0 = new Image(194,43);
services0.src = "images/nservices_black.gif";

about_us1 = new Image(194,43);
about_us1.src = "images/nabout_us_blue.gif"; 
about_us0 = new Image(194,43);
about_us0.src = "images/nabout_us_black.gif";

contact_us1 = new Image(194,43);
contact_us1.src = "images/ncontact_us_blue.gif"; 
contact_us0 = new Image(194,43);
contact_us0.src = "images/ncontact_us_black.gif";

why_a_website1 = new Image(194,43);
why_a_website1.src = "images/nwhy_a_website_yellow.gif"; 
why_a_website0 = new Image(194,43);
why_a_website0.src = "images/nwhy_a_website_blue.gif";

 
function mouseon(n){
   
          imageON = eval(n + "1.src");
          document [n].src = imageON;
         
}
function mouseoff(n){
   
	imageOFF = eval(n + "0.src");
     document [n].src = imageOFF;
        
}
//Fade script
rgb_beg=[0,82,158]
rgb_end=[253,185,40]
over_spd=25
out_spd=25

document.onmouseover = domouseover;
document.onmouseout  = domouseout;
document.onclick     = doclick;

dualhex = new Array()
hex = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]
for(i = 0; i < 256; i++) dualhex[i] = hex[parseInt(i / 16)] + hex[i % 16]

function domouseover() {
  if (document.all && window.event.srcElement.tagName == "A")
    fade(window.event.srcElement.sourceIndex, 1)
}

function domouseout() {
  if (document.all && window.event.srcElement.tagName == "A")
    setTimeout("fade('" + window.event.srcElement.sourceIndex + "', 0)", over_spd * over_spd * 2)
}

function doclick() {
  if (document.all && window.event.srcElement.tagName == "A")
    window.event.srcElement.blur();
}

function fade(element, over) {
  if(over) {
    beg = rgb_beg;
    end = rgb_end;
    spd = over_spd;
  }
  else {
    beg = rgb_end;
    end = rgb_beg;
    spd = out_spd;
  }
  for(i = 0; i <= spd; i++)
    setTimeout("document.all[" + element + "].style.color = '#"
     + dualhex[Math.floor(beg[0] * ((spd - i) / spd) + end[0] * (i / spd))]
     + dualhex[Math.floor(beg[1] * ((spd - i) / spd) + end[1] * (i / spd))]
     + dualhex[Math.floor(beg[2] * ((spd - i) / spd) + end[2] * (i / spd))] + "';",  i * spd);
}

