var msgs = [
	{
		from: 24,
		to: 5,
		msg1: "Welcome to Datapool (S) Pte Ltd. Do you ever sleep?",
		msg2: "What is your bedtime?",
		msg3: "You need sleep to live!"
	},
	{
		from: 6,
		to: 7,
		msg1: "A Very Good Morning to You. Welcome to Datapool (S) Pte Ltd",
		msg2: "So, we have an early riser huh?                           The early bird gets the worm.",
		msg3: "What type of worm do you like?"
	},
	{
		from: 8,
		to: 11,
		msg1: "A Very Good Morning to You. Welcome to Datapool (S) Pte Ltd",
		msg2: "How are you today ?    Mine has been great!",
		msg3: "Please note that being a Datapool member, we had introduced many new enhanced services in our website. So hurry up, why wait?"
	},
	{
		from: 12,
		to: 18,
		msg1: "Good Afternoon to You. Welcome to Datapool (S) Pte Ltd",
		msg2: "How are you today ?    Mine has been great!",
		msg3: "Please note that being a Datapool member, we had introduced many new enhanced services in our website. So hurry up, why wait?"
	},
	{
		from: 19,
		to: 23,
		msg1: "Welcome to Datapool (S) Pte Ltd. This is one great evening!",
		msg2: "It is starting to get late.",
		msg3: "Please note that being a Datapool member, we had introduced many new enhanced services in our website. So hurry up, why wait?"
	}
];
function RunStatusText(t, msg, l) {
	var hour = new Date().getHours();
	t = t ? t : 1;
	
	if (!msg || l>msg.length + 10) {
		for(var i=0; i<msgs.length; i++) {
			if(hour >= msgs[i].from && hour <= msgs[i].to) {
				msg = msgs[i]["msg" + t];
				l=1;
				break;
			}
		}
	}
	window.status = msg.substring(0, l++);
	window.setTimeout("RunStatusText(" + t + ", '" + msg + "', " + l + ")", 100);
}
RunStatusText()
