function getNigeriaTime()
{

	// get the current time as milliseconds since 'the beginning'
	   
	var time = new Date();
	var HereTime = time.getTime();
	
	var gmt_now = new Date();			   // get current date and time
	var gmt_date = gmt_now.getDate();	// get current day of month
	var gmt_day = gmt_now.getDay();		// get day of week
	var gmt_month = gmt_now.getMonth(); // get month (1 will have to be added)
	
	var GMTOffset = 0; 						// GMT offset
	var adjust = 0;							// amount by which we will adjust
	
	// get the last Saturday of the month
	var lastSat = gmt_date - (gmt_day + 1);
	while (lastSat < 32)
		lastSat += 7;
	
	if (lastSat > 31)  lastSat -= 7;			// make sure we didn't go past end of month
	
	// get the first Saturday of the month
	var firstSat = gmt_date -(gmt_day + 1);
	while (firstSat > 0)
	{
		firstSat -= 7;
	}
	if (firstSat < 1)  firstSat += 7;
	
	// adjust for daylight savings time changes
//	if (
//			(((gmt_month==4) && (gmt_date >= firstSat)) || gmt_month > 4)  && 
//			  (gmt_month < 11 || ((gmt_month==10) && gmt_day <= lastSat)))
//	{
//	  adjust += 60;
//	}

	// getTimezoneOffset should already adjust for daylight savings time	
	GMTOffset=(new Date()).getTimezoneOffset() * 60 * 1000 + adjust;

   // Nigeria is one hour ahead of the GMT 
   
   var NigOffset = GMTOffset + (60 * 60 * 1000);
   
   // get the nigerian time as an offset from the 'here time'
   
   var NigTime = HereTime + NigOffset;
      
   // make a new date variable and set it to the Nigeria time
     
   var new_time = new Date()
	new_time.setTime(NigTime);
   
   // get the various components of the time
   
   var month = new_time.getMonth();
   var date = new_time.getDate();
   var year = new_time.getYear();
   var hour = new_time.getHours();
   var mins = new_time.getMinutes();
   var day = new_time.getDay();
   
   var ap;

	// determine whether or not to add 1900 to the year based on the current value
	//		because some browsers count from 0 and others count from 1900.
   // ASSUMES that the current year can not be less than 1900

	if (year < 1900)
	   year += 1900;

   if (hour < 12)			// between 0 and 11 is AM
   	ap = "AM"
   else						// it is PM & we need to subtract 12
   {  
   	ap = "PM";			
 	hour -= 12;			
   }

   if (hour == 0) hour = 12;   // midnight should come up as 12.
   
   // write the results out

   var MonthChar = new Array("January", "February", "March", "April", "May", 
   "June", "July", "August", "September", "October", "November", "December");
   
   var weekday = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", 
   "Friday", "Saturday");
   
   if (mins < 10)
      mins = "0" + mins;
   
  
  document.clock.face.value= "In Nigeria, it is now " +hour+ ":" +mins+ " " +ap+ 
                  " on " +weekday[day]+ " "+MonthChar[month]+ " " +date+ ", " +year;

  setTimeout("getNigeriaTime()", 999);
}
