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];}}
}

var ext = '.jpg'; //extension of all the images...  could pass as param...
var downimage = ''; //holds name of current 'on' button
var downpath = '';  //hold path of current 'on' button

function showMousedown(path, image){
   document.images[image].src = path + "Sel" + image + "2" + ext;
}

//function showClicked(path, image){
   //if(downimage && (downimage != image)){
   //   document.images[downimage].src = downpath + downimage + ext;
   //}
   //downimage = image;
   //downpath = path;
//}

function showClicked(img_name, src_img_path, src_img_file){
   document.images[img_name].src = src_img_path + src_img_file + ext;
}

function showMouseup(path, image){
   if(downimage == image){
      document.images[image].src = path + "Sel" + image + "2" + ext;
   }
   else{
      document.images[image].src = path + "Sel" + image + ext;
   }
}

function showMouseover(path, image){
   //if(downimage == image){
   //   document.images[image].src = path + "Sel"+image+"2" + ext;
   //}
   //else{
   //   document.images[image].src = path+"Sel" + image + ext;
   //}
   document.images[image].src = path + image + ext;
}
function showMouseout(path, image){
   //if(downimage == image){
   //   document.images[image].src = path + image + "2" + ext;
   //}
   //else{
   //   document.images[image].src = path + image + ext;
   //}
   document.images[image].src = path + image + "btn" + ext;
}

function doNothing() {
}

