window.onload = function() {
	var hThur; var hFri; var hSat; var hSun; var totalCount; var totalHide; var totelResults;
	var point = document.location.href.lastIndexOf("confer=");
	var confer = document.location.href.substring(point+7,document.location.href.length);
	if(confer == ''){
		hThur='Thu'; hFri='Fri'; hSat='Sat'; hSun='Sun';
	} 		
	else if(confer == '1'){
		hThur='show'; hFri='Fri'; hSat='Sat'; hSun='Sun';
	} 	
	else if(confer == '2'){
		hThur='Thu'; hFri='show'; hSat='show'; hSun='Sun';
	} 	
	else if(confer == '3'){
		hThur='Thu'; hFri='Fri'; hSat='Sat'; hSun='show';
	} 					
	else if(confer == '12'){
		hThur='show'; hFri='show'; hSat='show'; hSun='Sun';
	} 	
	else if(confer == '13'){
		hThur='show'; hFri='Fri'; hSat='Sat'; hSun='show';
	} 	
	else if(confer == '23'){
		hThur='Thu'; hFri='show'; hSat='show'; hSun='show';
	} 	
	else if(confer == '123') {
		hThur='show'; hFri='show'; hSat='show'; hSun='show';
	} 		
	else {
		hThur='Thu'; hFri='Fri'; hSat='Sat'; hSun='Sun';	
	}		
	
	totalCount = 0; totalHide = 0;
	var div = document.getElementsByTagName('div');
	for (var i=0;i<div.length;i++){
		if ((div[i].className == 'Thu')||(div[i].className == 'Fri')||(div[i].className == 'Sat')||(div[i].className == 'Sun')){
			totalCount = totalCount + 1;
		}
		if ((div[i].className == hThur)||(div[i].className == hFri)||(div[i].className == hSat)||(div[i].className == hSun)){
			div[i].className = 'hide';
			totalHide = totalHide + 1;
		}
	}
	totalResults = totalCount - totalHide;

	document.getElementById("jshide").style.display = 'none';
	document.getElementById("resultsCount").innerHTML = totalResults;
	if(totalResults == '0'){
		document.getElementById("noResults").style.display = 'block';	
		document.getElementById("noResults").innerHTML = "Sorry, no results found. Please try again.";
	}
	return true;
}
