function rollNav(obj, num, stat, col) {
	if(stat=='on'){
		obj.style.backgroundImage ='url(img/sh/buttons/'+num+'_on.gif)';

	}else{
		obj.style.backgroundImage ='url(img/sh/buttons/'+num+'_off.gif)';
	}
	obj.style.color =col;
/*	if(stat=='on' && col=='#ffffff') {
		obj.style.backgroundColor = '#003366';

	}*/
	changeColor('link_'+num, col);
}


function changeContent(id,shtml) {
   if (document.getElementById || document.all) {
      var el = document.getElementById? document.getElementById(id): document.all[id];
      if (el && typeof el.innerHTML != "undefined") el.innerHTML = shtml;
   }
}

function changeColor(id, col) {
   if (document.getElementById || document.all) {
      var el = document.getElementById? document.getElementById(id): document.all[id];
      if (el && typeof el.style.color != "undefined"){
	  	el.style.color = col;
		el.fontcolor =col;
		
	}
	  
   }
}

function pad0(string, newlength) {
  var pad = "";
  var len = newlength-String(string).length;
  var i;
  for (i = 0; i<len; i++) {
    pad += "0";
  }
  return pad+string;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

MM_preloadImages('img/sh/buttons/1_on.gif','img/sh/buttons/2_on.gif','img/sh/buttons/3_on.gif','img/sh/buttons/4_on.gif','img/sh/buttons/faq_on.gif','img/sh/buttons/dealers_on.gif','img/sh/buttons/download_on.gif','img/sh/buttons/countrysite_on.gif','img/sh/buttons/tect_on.gif')
