var CurrentMsg = 'hello ';
function update(msg) {
	var pad_str="";
	n = msg.length;
	if(n<72) {
		pad = (73-n)/2;
		for(var i=0; i<pad; i++) {
			pad_str+=" ";
		  }
	}
	CurrentMsg = pad_str + msg;
	document.messages.field.value = CurrentMsg;
	clearTimeout(timer);
	timer = setTimeout("idleMsg()",4000);
}
function MakeArray(n) {
	this.length=n;
	for(var i = 1; i<= n; i++) {
	this[i] = "";
	}
	return(this);
}
var index = 1;
var notice_num = 16;
var notices = new MakeArray(notice_num);
notices[1] = "Within Canada... * Vancouver (31.30%) and Toronto (37.41%) constitute close to... ";
notices[2] = "...70% of the entire Chinese population in Canada, which is over 750,000!...";
notices[3] = "...and 75% are immigrants from Hong Kong, Greater China, and Taiwan.";
notices[4] = "6% of this Chinese population has over $60,000 income, compared to...";
notices[5] = "...only 2.7% of all Canadian who have similar income level.";
notices[6] = "Biggest increase of internet usage from 2001 --->";
notices[7] = "...Access Online Banking/Financial Services (57% from the past 44%).";
notices[8] = "Within  US... San Francisco has the 2nd largest Chinese population in the US ...";
notices[9] = "...Chinese population surpass 1 million!";
notices[10] = "Asian has the highest household income of $69,973... ";
notices[11] = "...18% higher than the national average and 14% higher than the 2nd highest group!";
notices[12] = "Asians are the largest group to trade online, bank online...";
notices[13] = "...and manage household finance online. ";
notices[14] = "*Source: Canada Census 2001 (Most recent Census)";
notices[15] = "*Source: Household Internet Use Survey (HUIS) 2003 - Statistics Canada";
notices[16] = "*Source: US Census 2000 & US Census Bureau Internet Survey - October 2003";
var timer = setTimeout('idleMsg()',0);
function nochange() {
document.messages.field.value = CurrentMsg;
}
function idleMsg() {
update(notices[index++]);
if(index>notice_num) {
index=1;
   }
}

//½â¾öÍ¼Æ¬ÑÓ³ÙÎÊÌâ
MM_preloadImages('http://web-hosting.nai360.com/files/naiinteractive.com/images/homepage_c.gif','http://web-hosting.nai360.com/files/naiinteractive.com/images/AboutUs_c.gif','http://web-hosting.nai360.com/files/naiinteractive.com/images/OurServices_c.gif','http://web-hosting.nai360.com/files/naiinteractive.com/images/OurClients_c.gif','http://web-hosting.nai360.com/files/naiinteractive.com/images/CaseStudies_c.gif','http://web-hosting.nai360.com/files/naiinteractive.com/images/UpcomingActivities_c.gif');
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
