/* behaviours.js  */

/* Zusaetzlich fuer  Mac IE5 */

/*  if(navigator.platform=="MacPPC" && navigator.appName=="Microsoft Internet Explorer"){
 document.write('<link rel="stylesheet" type="text/css" href="css/ie_mac5.css">');
 } */


 /* image preloading - noetig? */


 /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + +  */
 /* MSC 08.03.2006 */
 /* JS-Print-Button nur rendern, wenn JS aktiviert ist: */
function makePrintButton(){
/* Checken, ob das DIV #contentFooter ueberhaupt existiert: */
if (!document.getElementById("contentFooter")) return false;
/* Die Variable footer: */
var footer = document.getElementById("contentFooter");
/* was steht auf HTML Ebene schon in #contentFooter: */
var whatsThere = footer.innerHTML;
/* Print Link anhaengen: */
footer.innerHTML = whatsThere + ('<a href="#" class="iconPrint" onClick="javascript:window.print();return false;">drucken<\/a>');
}
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + +  */






/* alle onload functions hier eintragen */
window.onload = function(){
makePrintButton();
}

function addLoadEvent(func_name) {
  var lastonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func_name;
  } else {
    window.onload = function() {
      lastonload();
      func_name();
    }
  }
}
