/***********************************************
* Lam's Javascript functions- By Lam http://sorimachi.myftp.org/
* Script featured on and available. Contact siukeong84@yahoo.com to get script features.
* Keep this notice intact for use.
***********************************************/
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}

function nameon()
{
document.getElementById('h3text').innerHTML="In harmony with nature!"
}
function nameout()
{
document.getElementById('h3text').innerHTML="Welcome to Sabah Forestry Department's Portal"
}

function page_enter()
{
window.location="../about/director.asp"
}

function getDigits()
{
num=new Array("time/0.jpg","time/1.jpg","time/2.jpg","time/3.jpg","time/4.jpg","time/5.jpg","time/6.jpg","time/7.jpg","time/8.jpg","time/9.jpg")
time=new Date()
hour=time.getHours()
if (hour<10)
	{
	document.getElementById('hour1').src=num[0]
	h2="'" + hour + "'"
	h2=h2.charAt(1)
	document.getElementById('hour2').src=num[h2]
	}
else
	{
	h1="'" + hour + "'"
	h1=h1.charAt(1)
	document.getElementById('hour1').src=num[h1]
	h2="'" + hour + "'"
	h2=h2.charAt(2)
	document.getElementById('hour2').src=num[h2]
	}
minute=time.getMinutes()
if (minute<10)
	{
	document.getElementById('minute1').src=num[0]
	m2="'" + minute + "'"
	m2=m2.charAt(1)
	document.getElementById('minute2').src=num[m2]
	}
else
	{
	m1="'" + minute + "'"
	m1=m1.charAt(1)
	document.getElementById('minute1').src=num[m1]
	m2="'" + minute + "'"
	m2=m2.charAt(2)
	document.getElementById('minute2').src=num[m2]
	}
second=time.getSeconds()
if (second<10)
	{
	document.getElementById('second1').src=num[0]
	s2="'" + second + "'"
	s2=s2.charAt(1)
	document.getElementById('second2').src=num[s2]
	}
else
	{
	s1="'" + second + "'"
	s1=s1.charAt(1)
	document.getElementById('second1').src=num[s1]
	s2="'" + second + "'"
	s2=s2.charAt(2)
	document.getElementById('second2').src=num[s2]
	}
}
function showTime()
{
timer=setTimeout("getDigits()",10)
interval=setInterval("getDigits()",1000)
}
function stopInterval()
{
clearTimeout(timer)
clearInterval(interval)
}

function whichButton(event)
{
if (event.button==2)
{
alert("© Copyright 2007 by Sabah Forestry Department. All rights reserved")
}
}