<!-- Beginning of JavaScript time-
function clock() {
	var time = new Date()
	var hours = time.getHours()
	var minutes = time.getMinutes()
	var seconds = time.getSeconds()
	var greet = ""
	if(hours < 12)
	{
		greet = "Good Morning."
	}
	else if(hours >=12  && hours <=17) 
	{
		greet = "Good Afternoon."
	}
	else if(hours >= 18)
	{
		greet = "Good Evening."
	}
		var msg = "Commercial Property Manado City North Sulawesi Indonesia (World Ocean Summit held in Manado 2009)"
	if(seconds < 10) 
	{
		seconds = "0" + seconds
	}
	if(minutes < 10)
	{
		minutes = "0" + minutes
	}
    if(hours < 10)
	{
    	hours = "0" + hours
	}
	var display = hours + " : " + minutes + " : " + seconds + "  " + greet + "" + msg
	window.status = display
	var startover = setTimeout("clock()",1000)
}
if (1) { var action = clock() }
// - End of JavaScript - -->



<!-- Beginning of JavaScript -

function password() {
Ret = prompt('Spam is boring! type the word  --- human ---',"");
if(Ret=="human") {
location = '../guestbook/';
} else {
alert("Please try again")
} 

}

// - End of JavaScript - -->





// loads global functions
 loadGlobalFunctions=function(){
 // rotates dynamic content every 2 seconds
  rotateContent=function(){
  i++;
  if(i==hiddenDivs.length){i=0}
  container.innerHTML=hiddenDivs[i].innerHTML;
  setTimeout('rotateContent()', 6*1000); 
 }
 // gets all <div> elements
 divs=document.getElementsByTagName('div');
 hiddenDivs=[];
 // makes array of <div> elements with class name 'hidden'
 for(i=0;i<divs.length;i++) {
  if(/\bhidden\b/.test(divs[i].className)){
   hiddenDivs[hiddenDivs.length]=divs[i];
  }
 }
 var i=0;
 // puts dynamic content into cointaning <div> element
 var container=document.getElementById('container');
 // executes rotateContent function
 rotateContent();
}
// executes code once page is loaded
window.onload=loadGlobalFunctions;