//   _                          _             _ _       
//  | |_ _____   _____ _ __ ___| |_ _   _  __| (_) ___  
//  | __/ _ \ \ / / _ \ '__/ __| __| | | |/ _` | |/ _ \ 
//  | || (_) \ V /  __/ |  \__ \ |_| |_| | (_| | | (_) |
//   \__\___/ \_/ \___|_|  |___/\__|\__,_|\__,_|_|\___/ 
//                                             (C)2007
//   Date  : 2007-10-22
//	 Author: loek@toverstudio:nl
//
function Equalize2Columns(c1,c2)
{
	var oBox1 = document.getElementById(c1);
	var oBox2 = document.getElementById(c2);
	
	// get column heights
	var h1=oBox1.scrollHeight;
	var h2=oBox2.scrollHeight;
	var tallestheight=0;
	
	if (h1>h2)
		tallestheight=h1;
	else
		tallestheight=h2;
	
	oBox1.style.height = tallestheight +"px";
	oBox2.style.height = tallestheight +"px";
	
}

function Equalize3Columns(c1,c2,c3)
{
return;
	var oBox1 = document.getElementById(c1);
	var oBox2 = document.getElementById(c2);
	var oBox3 = document.getElementById(c3);
	
	// get column heights
	var h1=oBox1.scrollHeight;
	var h2=oBox2.scrollHeight;
	var h3=oBox3.scrollHeight;
	var tallestheight=0;
	
	if (h1>h2 && h1>h3)
		tallestheight=h1;
	if (h2>h1 && h2>h3)
		tallestheight=h2;
	if (h3>h1 && h3>h2)
		tallestheight=h3;
		
    tallestheight-=50;
		
	oBox1.style.height = tallestheight;
	oBox2.style.height = tallestheight;
	oBox3.style.height = tallestheight;
	
	oBox1.style.height = tallestheight+"px";
	oBox2.style.height = tallestheight+"px";
	oBox3.style.height = tallestheight+"px";
}

function PositionFooterToBottom()
{
    var viewportheight;
    if (typeof window.innerWidth != 'undefined')
    {
         viewportheight = window.innerHeight // standards complient
    }
    else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0)
    {
        viewportheight = document.documentElement.clientHeight // IE6
    }
 
    var footer = document.getElementById("footer");
    var contents = document.getElementById("contents");
    var footerbottom=footer.offsetTop+footer.scrollHeight;
    var verschil=viewportheight-footerbottom;
    
    if (verschil>0)
    {
	    verschil+=20; // bestaande padding compenseren;
	    contents.style.paddingBottom=verschil;
	    contents.style.paddingBottom=verschil+'px';
	}
}


