
function preload()
{
  if (!document.images)
  return;

  var ar = new Array();

  var arguments = preload.arguments;

  for (var i = 0; i < arguments.length; i++)
  {
    ar = new Image();
    ar.src = arguments;
  }

}


// canManipulateImages - check if the browser we're using can do
// clever stuff with document images.

function canManipulateImages()
{
if (document.images)
return true;
else
return false;
}

// preLoadImage - pre-create and pre-load an image so that it's ready
// when we want to use it.

function preLoadImage(imageURL)
{
if (gImageCapableBrowser)
{
image = new Image();
image.src = imageURL;
return image;
}
}

// changeButtonImage - change the appearance of a button by changing
// its 'src' argument. Pass in an integer that indicates which button
// to change, and an image to use (one of the preloaded images that
// are invoked later). The array 'documentimages[]' holds all the
// images on the page (at least in some browsers), so we can get the
// image we need from that array, and simply reset its 'src' attribute
// to change its appearance.

function changeButtonImage(buttonName,sourceImage)
{
if (gImageCapableBrowser)
{
document [buttonName].src = sourceImage.src;
return true;
}
}

// gImageCapableBrowser - is this browser hip to images? Set up
// a global variable so that we don't have to keep calling a function
// (useful if the function becomes costly to compute).

gImageCapableBrowser = canManipulateImages();

// Set up all the alternative buttons we intend to use.

On   = preLoadImage("pics/morelightOn.jpg");
Off  = preLoadImage("pics/morelightOff.jpg");


function navigation(){
  document.write('<p><a href="index.html">Αρχική σελίδα</a> | ');
  document.write('<a href="frapes.html">Αφιέρωμα στο Φρ/a> | ');
  // document.write('<a href="#">My projects</a> | ');
  // document.write('<a href="links.html">Links</a></p>');
}


