function buildarray(dividend,commentaries,managerbios,factsheet,fundname){
		alert(managerbios);

		reports = [['Annual Report', "images\annual report.pdf"], // display string, href
							['Semi Anual Report', "images\SemiAnnual _31Dec2001.pdf"]
						 ];		
		

		var manager =  buildmanager(managerbios);
		var navarr =  new Array();
		var i = 0;
		navarr[i++] =    ['Prices',"/hkchinesesite/jsp/price.jsp",[]]
		navarr[i++] =    ['Fact Sheet',factsheet+".pdf",[]]
		navarr[i++] =    ['Performance',"/hkchinesesite/jsp/price-performance.jsp",[]]
		navarr[i++] =    ['Reports',"#",reports]
		if((dividend != null) && (dividend != ""))
			navarr[i++] =   ['Dividend/Yields', dividend,[]];
		if((commentaries != null) && (commentaries != "")) 
			navarr[i++] =    ['Commentaries', commentaries,[]]
			navarr[i++] =  ['Manager Biographies', "#",manager]		
	
		return navarr;
	}


	function buildmanager(managerbios){
		alert(managerbios);
		var dimmanager = new Array();
		var managerarr = managerbios.split(",");
		//alert(managerarr[0]);
		for(i = 0; i<managerarr.length ; i++)	{
			var manbio = new Array();
			//alert(manbio);
			 manbio[0] = managerarr[i];
			 //alert(manbio[0]);
			 manbio[1] = "test";
			 //alert(manbio[1] );
			dimmanager[i] = manbio
			//alert(dimmanager[i] );
		}
		alert(dimmanager);
		return dimmanager;
	}

	function submitOption(option)
	{
		
			if(option=="Price")
				{
					
					document.forms[0].action = "/hkchinesesite/jsp/price.jsp";
					document.forms[0].submit(); 
				}
				if(option=="Performance")
				{
					
					document.forms[0].action = "/hkchinesesite/jsp/price-performance.jsp";
						document.forms[0].submit(); 
				}

				if(option=="Dividend")
				{
					
					document.forms[0].action = "/hkchinesesite/jsp/dividends.jsp";
						document.forms[0].submit(); 
				}
	}

var agt = navigator.userAgent.toLowerCase();
var is_win = agt.indexOf("win") != -1;
var is_mac = agt.indexOf("mac") != -1;


function popNew(szURL){
	if (is_mac) {
			clickpopup=window.open(szURL,"home","toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=0,left=0,width=750,height=400");
			clickpopup.focus();
	} else if (is_win) {
        if(!document.all && document.getElementById)
        {
		    window.location.href=szURL;
        }
        else
        {
			clickpopup=window.open(szURL,"home","toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=0,left=0,width=750,height=400");
			clickpopup.focus();
        }

	}
}

	function popleftnav(szURL){
	if (is_mac) {
			clickpopup=window.open(szURL,"home","toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=0,left=0,width=750,height=400");
			clickpopup.focus();
	} else if (is_win) {
        if(!document.all && document.getElementById)
        {
		    window.location.href=szURL;
        }
        else
        {
			clickpopup=window.open(szURL,"home","toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=0,left=0,width=750,height=400");
			clickpopup.focus();
        }

	}
}