 function showDetails(div_id)
 {
   var i;
   var this_id_name;
   var numDays = 5;

   for (i=1; i<=numDays; i++)
   {
     this_id_name = 'details'+i;
	 if(document.getElementById(this_id_name)!=null)
	     document.getElementById(this_id_name).style.display='none';
     this_id_name = 'day'+i;
	 if(document.getElementById(this_id_name)!=null)	
    	 document.getElementById(this_id_name).className='off';
   }

   this_id_name = 'details'+div_id;
   document.getElementById(this_id_name).style.display='block';
   this_id_name = 'day'+div_id;
   document.getElementById(this_id_name).className='on';

   return;
}

function switchDetailsToSummary()
{
	var numDays = 5;
	for (var i=1; i<=numDays; i++)
	{
		document.getElementById('detailsLabel'+i).className='inactive';
		document.getElementById('iframe'+i).style.display='none';
		document.getElementById('summaryLabel'+i).className='active';
		document.getElementById('summary'+i).style.display='block';
	}
	return;
}
function switchSummaryToDetails()
{
	var numDays = 5;
	for (var i=1; i<=numDays; i++)
	{
		document.getElementById('detailsLabel'+i).className='active';
		document.getElementById('iframe'+i).style.display='block';
		document.getElementById('summaryLabel'+i).className='inactive';
		document.getElementById('summary'+i).style.display='none';
	}
	return;
}
