// Runs when page loads 
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

/*
dv@4/9/2007 - try to obfuscate email addressses
put the follow code where you want the email:
<script type="text/javascript" language="JavaScript">gfm('info');</script>
*/
function gfm(n)
{
  var who = n + '!gazellefoundation#com';
  who = who.replace(/#/g, '.');
  who = who.replace(/!/g, '@');
	document.writeln('<a href="mai'+'lto:' + who + '">' + who + '</a>');
}

/* 
Derived from a script by Alejandro Gervasio. 
Modified to work in FireFox by Stefan Mischook for Killersites.com

How it works: just apply the CSS class of 'column' to your pages' main columns.

dv@4/9/2007 - force columns to this minimum height, if shorter than this height in pixels.
*/
(function(){
	var minHeight = 250;
     // initialize maximum height value 
     maxHeight=0; 
	var matchColumns=function()
	{ 
	 var divs,contDivs,maxHeight,divHeight,d; 
	
     // get all <div> elements in the document 
     //divs=document.getElementsByTagName('div'); 
	 divs = ['inhalt', 'seitenleiste'];
     contDivs=[]; 

     // initialize maximum height value 
     maxHeight=0; 
	 for(var i=0;i<divs.length;i++)
	 { 
		var d = document.getElementById(divs[i]);
		contDivs[contDivs.length]=d;
        if(d.offsetHeight){ 
			divHeight=d.offsetHeight; 					
        } 
        else if(d.style.pixelHeight){ 
			divHeight=d.style.pixelHeight;					 
        } 
        // calculate maximum height 
        maxHeight=Math.max(maxHeight,divHeight); 
	 }
/*
     // iterate over all <div> elements in the document 
     for(var i=0;i<divs.length;i++){ 

          // make collection with <div> elements with class attribute 'column' 
          if(/\bcolumn\b/.test(divs[i].className)){ 
                d=divs[i]; 
                contDivs[contDivs.length]=d; 
                // determine height for <div> element 
                if(d.offsetHeight){ 
                     divHeight=d.offsetHeight; 					
                } 
                else if(d.style.pixelHeight){ 
                     divHeight=d.style.pixelHeight;					 
                } 
                // calculate maximum height 
                maxHeight=Math.max(maxHeight,divHeight); 
          } 
     } 
*/
     if(maxHeight < minHeight)
     {
      maxHeight = minHeight;
     }
     // assign maximum height value to all of container <div> elements 
     for(var i=0;i<contDivs.length;i++){ 
          contDivs[i].style.height=maxHeight + "px"; 
     } 
	} 

	addLoadEvent(function(){ 
     if(document.getElementsByTagName){ 
          matchColumns();			 
     } 
    }); 
})();
/*
dv@4/4/2007 - added addLoadEvent so we can stack onload functions if necessary
*/



