	var t;

	var obj=new Array(6)
	for (i=0; i <6; i++){
	obj[i]=new Array(6);
	}
	
	obj[0][0] = 'Manulife-Canadian International School of Hong Kong Scholarships';
	obj[0][1] = '/_layouts/Manulife/en/images/banner/1.jpg';
	obj[0][2] = 'To contribute to the future of Hong Kong, Manulife has been offering the renewable Manulife-Canadian International School of Hong Kong Scholarships for the children of its customers since 1997. The Scholarships provide talented children with a chance to study in a first-class international school. <a style="text-decoration:underline;"  href="/en/about/Pages/CDNISScholarship2010.aspx" target="_blank">learn more</a>';
	obj[0][3] = 'Manulife-Canadian International School of Hong Kong Scholarships';
	
	obj[1][0] = 'Manulife Wealth Management';
	obj[1][1] = '/_layouts/Manulife/en/images/banner/2.jpg';
	obj[1][2] = 'As one of the leading providers of wealth management products, we offer you a comprehensive range of investment products from single-country portfolios to complex global multi-asset class portfolios, through Manulife Investment Solutions and our mutual fund range. <a style="text-decoration:underline;"  href="/en/wm/Pages/index.aspx">learn more</a>';
	obj[1][3] = 'Lifelong Wealth Manager with sound choices';
	
	obj[2][0] = 'Employee Benefits - MPF & ORSO';
	obj[2][1] = '/_layouts/Manulife/en/images/banner/3.gif';
	obj[2][2] = 'Manulife has been in Hong Kong for over 100 years and our experience in managing pension schemes can be traced back to 1936. With its wealth of experience and ISO 9001 certification, Manulife provides the highest quality of provident funds services to both employers and members. <a style="text-decoration:underline;"  href="/en/gp/Pages/index.aspx">learn more</a>';
	obj[2][3] = 'Employee Benefits - MPF & ORSO';
	
	obj[3][0] = 'Employee Benefits - Group Life & Health';
	obj[3][1] = '/_layouts/Manulife/en/images/banner/4.jpg';
	obj[3][2] = 'Protecting your health is always a priority. Apart from relying on the benefits offered by your employer, you can take the initiative to supplement those benefits and provide greater protection for you and your family. <a style="text-decoration:underline;"  href="/en/glh/Pages/index.aspx">learn more</a>';
	obj[3][3] = 'Exclusively for our Employee Benefits customers';
	
	obj[4][0] = 'Individual Insurance';
	obj[4][1] = '/_layouts/Manulife/en/images/banner/5.jpg';
	obj[4][2] = 'Your financial needs can be taken care of at different stages of life. Select from our life insurance, investment-linked, retirement benefits, children\'s education fund, health care and a spectrum of other targeted savings products that suit your and your family lifestyle and needs. <a style="text-decoration:underline;"  href="/en/ind/Pages/index.aspx">learn more</a>';
	obj[4][3] = 'Live long and live well with our comprehensive range of products that meets your Individual Insurance needs';
	
	obj[5][0] = 'Customer Service';
	obj[5][1] = '/_layouts/Manulife/en/images/banner/6.jpg';
	obj[5][2] = 'The new "Customer Service" section makes it convenient, quicker and more rewarding for customers to access Manulife\'s full range of services. New menus and links ensure it is easier than ever to find information at your fingertips. <a style="text-decoration:underline;"  href="/en/ccc/Pages/index.aspx">learn more</a>';
	obj[5][3] = 'Enrich your life style with the support of our Customer Service Expert';

	
	/*	function LoadIndexMenu(){
		
			var xml = $.loadXML("xml/indexbanner.xml");
			var obj = $(xml).toObject().get(0);
			return obj;
		}*/
		//var point = 0;
		var point = Math.floor(Math.random()*6);
		var ScrollBanner =  function(){
			switchMenu(point);
			if(point == 5) point = -1;
			point++;
			t = setTimeout('ScrollBanner()',10000);
		}
		

		 $(document).ready(function() {

		 	$('#IndexBannerButton').click ( function() { clearTimeout(t);});
		 	ScrollBanner();
//		 	readnews();
 //   			subnewsloader();
 		});
function subnewsloader(){
	var xml = $.loadXML("/_layouts/Manulife/en/xml/subnews.xml");
	var obj = $(xml).toObject().get(0);
	var nums=obj.nums;
	//alert(""+nums);
	
	for(var i=0; i<nums; i++){
		if (obj.item[i].linkdescript==''){
			temps='<tr><td style="padding-top: 10px">';			if(obj.item[i].dirs == 'left') { 
				temps+='<div class="subnewleftbox sntable">';
			}else { temps+='<div class="subnewrightbox sntable">';}
			
			temps+='<table border=0 cellpadding=0 cellspacing=0 style="width: 320px;"><tr>';
			temps+='<td valign=top align=left style="padding: 10px 0px 10px 10px;">';
			temps+='<a href="'+obj.item[i].link+'" class="snmore"><img class="snimg" src="'+obj.item[i].image+'" style="float: left; margin-right:10px; margin-down:10px; width: 75px; height: 50px;"/></a>';
			temps+='<font class="sntitle" > '+obj.item[i].title+'</font><br/><br/>';
			temps+='<DIV class="sndata" style="padding-right:10px;padding-top:5px;">'+obj.item[i].description+'</div><div colspan=2 align=right class="snbottom" style="padding-right:10px;padding-top:10px"><a class="snmore" href="'+obj.item[i].link+'">learn more</a></td></tr>';
//			temps+='<tr><td colspan=2 align=right class="snbottom" style="padding-right:10px"><a class="snmore" href="'+obj.item[i].link+'">learn more</a></td></tr></table>';		temps+='</div>';
			temps+='</td></tr>';	
		}else{
			temps='<tr><td style="padding-top: 10px">';			if(obj.item[i].dirs == 'left') { 
				temps+='<div class="subnewleftbox sntable">';
			}else { temps+='<div class="subnewrightbox sntable">';}
			
			temps+='<table border=0 cellpadding=0 cellspacing=0 style="width: 320px;" ><tr>';
			temps+='<td valign=top align=left style="padding: 10px 0px 10px 10px; width: 79px;"><a href="'+obj.item[i].link+'" class="snmore"><img class="snimg" src="'+obj.item[i].image+'" style="width: 75px; height: 50px;"/></a></td>';
			temps+='<td valign=top class="snheader" align=left style="padding: 10px 0px 0px 0px;width: 219px;"><div style="width: 219px; padding: 0px 0px 0px 10px;"><span class="sntitle">'+obj.item[i].title+'</span><br/><br/><a class="snhref" href="'+obj.item[i].link+'">'+obj.item[i].linkdescript+'</a></div></td>';				
			temps+='</tr><tr><td class="sndata" colspan=2 style="padding-left:10px;padding-right:10px;padding-top:5px;">'+obj.item[i].description+'</td></tr>';
			temps+='<tr><td colspan=2 align=right class="snbottom" style="padding-right:10px"><a class="snmore" href="'+obj.item[i].link+'">learn more</a></td></tr></table>';		temps+='</div>';
			temps+='</td></tr>';
		}
		if(obj.item[i].dirs=='left'){
			$("table[@name=snleft]").append(temps);
		}else{
			$("table[@name=snright]").append(temps);			
		}
		//document.write(dump(obj.item[i].description)); 
	}
}
