/*
*********************************************
* MultiOnload - v1
* (c) by Daniel Rabe - 040511 - 3raben.de
*  use
*    addHook(myFunction);
*  to call myFunction() on onload-event
*********************************************
*/
var onLoadHook=new Array(); function addHook(func){	onLoadHook[onLoadHook.length]=func; }
window.onload=multiOnload; function multiOnload(){ for(var i=0; i<onLoadHook.length; i++){ if (onLoadHook[i]) onLoadHook[i](); }}
/*
*********************************************
* Highlightscript - v1.1
* (c) by Daniel Rabe - 040528 - 3raben.de
*  hightlights all images with hsrc-attribute
*********************************************
*/
function highlightImages() {
  if (!document.getElementById) return;
  var Kolibri_highlight_PreloadImages = new Array();
  var images = document.getElementsByTagName('img');
  for (var i = 0; i < images.length; i++) {
    if (!images[i].getAttribute('hsrc')) continue;

	Kolibri_highlight_PreloadImages[i] = new Image();
    Kolibri_highlight_PreloadImages[i].src = images[i].getAttribute('hsrc');
    images[i].setAttribute('orgsrc',images[i].getAttribute('src'));
    images[i].onmouseover = function() { this.setAttribute('src',this.getAttribute('hsrc'));    }
    images[i].onmouseout  = function() { this.setAttribute('src',this.getAttribute('orgsrc'));	}
} }
addHook(highlightImages);

