getAllClasses=function(){
//	alert(document.all.length);
	tagsHavingClass='';
	foundClasses='';
	d=document.all;
	
   for(var i=0;i<d.length;i++){ 
          if(d[i].className!="")
		  {
		  		if(foundClasses.indexOf(d[i].className)==-1)
				{
//				  	alert(d[i].className);
					tagsHavingClass+=d[i].tagName+'  :: '+d[i].className+'<BR>';
					foundClasses+=d[i].className+' |';
				}
          } 
     }	
//	document.writeln(tagsHavingClass);
}

matchHeight=function(){ 

     var divs,contDivs,maxHeight,divHeight,d; 

     // get all <div> elements in the document 

//     divs=document.getElementsByTagName('div');
	divs=document.getElementsByTagName('div');
    contDivs=[]; 

     // initialize maximum height value 
     maxHeight=0;

// iterate over all <div> elements in the document 
// 		alert(divs.length)
//		alert(/\bcontainer\b/.test(divs[0].className))

	tagsHavingClass="";
	

	
     for(var i=0;i<divs.length;i++){ 

  // make collection with <div> elements with class attribute 'container' 
                d=divs[i];
                contDivs[contDivs.length]=d;
                // determine height for <div> element 
//				alert(d.offsetHeight);					
                if(d.offsetHeight)
                     divHeight=parseInt(d.offsetHeight);
                else if(d.style.pixelHeight)
                     divHeight=parseInt(d.style.pixelHeight);
					
                // calculate maximum height 
				if(maxHeight<divHeight)
					maxHeight=divHeight;

     }
	 
//alert(maxHeight);	 
TopBar=document.getElementById('top');
footer=document.getElementById('Footer');
footerY=parseInt(TopBar.offsetHeight+maxHeight);
footer.style.top=footerY+50+'px';
//footer.style.left='0px';
} 

window.onresize= function()
{
	matchHeight();
}


function mOver (iName) {
	document.getElementById(iName).src='images/' +iName+ '_over.gif'
}
function mOut (iName) {
	document.getElementById(iName).src='images/' +iName+ '.gif'
}
