// JavaScript Document - Preload Navigation Images

if (document.images) {
    img1buttonup       = new Image();
    img1buttonup.src   = "images/gallery/img001_thumb_a.png" ;
    img1buttondown     = new Image() ;
    img1buttondown.src = "images/gallery/img001_thumb_b.png" ;

	img2buttonup       = new Image();
    img2buttonup.src   = "images/gallery/img002_thumb_a.png" ;
    img2buttondown     = new Image() ;
    img2buttondown.src = "images/gallery/img002_thumb_b.png" ;
	
	img3buttonup       = new Image();
    img3buttonup.src   = "images/gallery/img003_thumb_a.png" ;
    img3buttondown     = new Image() ;
    img3buttondown.src = "images/gallery/img003_thumb_b.png" ;
	
	img4buttonup       = new Image();
    img4buttonup.src   = "images/gallery/img004_thumb_a.png" ;
    img4buttondown     = new Image() ;
    img4buttondown.src = "images/gallery/img004_thumb_b.png" ;
	
	img5buttonup       = new Image();
    img5buttonup.src   = "images/gallery/img005_thumb_a.png" ;
    img5buttondown     = new Image() ;
    img5buttondown.src = "images/gallery/img005_thumb_b.png" ;
	
	img6buttonup       = new Image();
    img6buttonup.src   = "images/gallery/img006_thumb_a.png" ;
    img6buttondown     = new Image() ;
    img6buttondown.src = "images/gallery/img006_thumb_b.png" ;
	
	img7buttonup       = new Image();
    img7buttonup.src   = "images/gallery/img007_thumb_a.png" ;
    img7buttondown     = new Image() ;
    img7buttondown.src = "images/gallery/img007_thumb_b.png" ;
	
	img8buttonup       = new Image();
    img8buttonup.src   = "images/gallery/img008_thumb_a.png" ;
    img8buttondown     = new Image() ;
    img8buttondown.src = "images/gallery/img008_thumb_b.png" ;
	
	img9buttonup       = new Image();
    img9buttonup.src   = "images/gallery/img009_thumb_a.png" ;
    img9buttondown     = new Image() ;
    img9buttondown.src = "images/gallery/img009_thumb_b.png" ;
}

function buttondown( buttonname ){
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "down.src" );
    }
}

function buttonup ( buttonname ){
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
}
