function setTall() {


	if (document.getElementById) {
	   var footerHeight = 160;
		// the divs array contains references to each column's div element.  
		// Replace 'center' 'right' and 'left' with your own.  
		// Or remove the last one entirely if you've got 2 columns.  Or add another if you've got 4!
		
		// Let's determine the maximum height out of all columns specified
		var maxHeight = 0;
		var headHeight = 283
		 maxHeight = document.getElementById('contentHolder').offsetHeight+headHeight;
		 
		var siteCenter = document.getElementById('siteCenter');
		var footer = document.getElementById('footer');
		
		
		var theWidth, theHeight;
		// Window dimensions: 
		if (window.innerWidth) {
		theWidth=window.innerWidth;
		}
		else if (document.documentElement && document.documentElement.clientWidth) {
		theWidth=document.documentElement.clientWidth;
		}
		else if (document.body) {
		theWidth=document.body.clientWidth;
		}
		if (window.innerHeight) {
		theHeight=window.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight) {
		theHeight=document.documentElement.clientHeight;
		}
		else if (document.body) {
		theHeight=document.body.clientHeight;
		}
		
		
		if ((theHeight + footerHeight) > (maxHeight)){
		
			if((theHeight - maxHeight < footerHeight)){
			    theHeight = theHeight - (theHeight - maxHeight);
				siteCenter.style.height=theHeight +'px';
			}else{
			theHeight = theHeight - footerHeight ;
			
			siteCenter.style.height=theHeight +'px';
			}
			
		}else {
		
		siteCenter.style.height=maxHeight +'px';
		
		}
	}
	
}


n = 2; // number of hidden layers
function show(a, graphic){
  for(i=1;i<=n;i++){
    document.getElementById('t'+i).style.display = 'none';
  }
    document.getElementById('events_special').style.backgroundImage = 'url(images/but_events_special_off.gif)';
    document.getElementById('events_nightly').style.backgroundImage = 'url(images/but_events_nightly_off.gif)';
    
    
    document.getElementById(graphic).style.backgroundImage = 'url(images/but_'+graphic+'_on.gif)';
  
    document.getElementById('t'+a).style.display = 'inline';
  }
  
  
window.onresize = function(){
		setTall();	
}



//event functions
function doSubmit()
{

    
	var theDate = document.searchdate.year.value + "-" + document.searchdate.month.value + "-" + document.searchdate.day.value
	var show = document.searchdate.show.value;
	
	
	if(detect.indexOf("msie")>-1){
				 javascript:document.getElementById('ajaxnav').setAttribute('src', 'mock-page.php?hash=music/'+show+'/date/'+theDate);
				}else{
				  
				  var theLocation = "#music/"+show+"/date/"+theDate;
				  window.location = theLocation;
				}
}
