/*
  Written by: Martin Hello, A.O.B.M. Automatisering B.V.
  Website:    Elco Tweewielers Zuiddam
  URL:        http://www.elco.nl/default.js
*/

var Bedrijf = "Elco Tweewielers";
var ie4up = (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion) >= 4);
var ns4up = (navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4);

function FlipImage(img,obj,msg) {          // img as string, obj as object, msg as string
  if (document.images) {                   // Image object supported ?
    document.images[img].src = obj.src;    // Give it a new source
    SetStatus(msg);                        // Set message on statusbar
    document.images[img].blur();           // Throw focus away from Image
  }
}

function SetStatus(msg) {
  window.status = msg;
}

function CancelError() {
  return true;
}

window.onerror = CancelError;

if (ie4up) {
  document.styleSheets[0].addRule("BODY","background : url(images/background.jpg) #FFFFFF no-repeat fixed bottom right;")
}

