var featuretext = new Array(4)
featuretext[0]="BNY Mellon Asset Servicing's  Global Securities Lending, one of the world's premier providers of securities lending programs, lends the stocks and bonds of 25 countries." ;
featuretext[1]="Outsourcing services from BNY Mellon Asset Servicing reduce overhead and risk for financial services companies.";
featuretext[2]="Our complete range of Plan Services offers solutions for all types of plans, including defined benefit and contribution, nonqualified, and multinational plans.";
featuretext[3]="Our Hedge Fund Services are designed to solve all your administrative needs and improve your operational efficiency.";

var featuretextlink = new Array(4)  
featuretextlink[0]="/assetservicing/productsservices/securitieslending.html";
featuretextlink[1]="/assetservicing/productsservices/outsourcingservices.html";
featuretextlink[2]="/assetservicing/productsservices/planservices.html";
featuretextlink[3]="/assetservicing/productsservices/hedgefundadministration.html";

var featurephoto = new Array(2)
featurephoto[0]="/assetservicing/img/cibcmellonbanner.jpg";
featurephoto[1]="/assetservicing/img/gslbanner.jpg";

var featurephotolink = new Array(2)
featurephotolink[0]="http://www.cibcmellon.com";
featurephotolink[1]="/assetservicing/productsservices/securitieslending.html";

var arrayindex = Math.floor(Math.random()*featuretext.length);
myRandomObj = new Object;  
myRandomObj.thefeaturetext = featuretext[arrayindex];  
myRandomObj.thefeaturetextlink = featuretextlink[arrayindex];  

var arrayindex2 = Math.floor(Math.random()*featurephoto.length);
myRandomObj2 = new Object;  
myRandomObj2.thefeaturephoto = featurephoto[arrayindex2];  
myRandomObj2.thefeaturephotolink = featurephotolink[arrayindex2];



function getfeaturetext(){
	document.writeln("<a href='" + myRandomObj.thefeaturetextlink + "'>" + myRandomObj.thefeaturetext + "</a>");
}

function getfeaturephoto(){
	document.writeln("<a href='" + myRandomObj2.thefeaturephotolink + "'><img src='" + myRandomObj2.thefeaturephoto + "' width='160' height='117' border='0' alt='Learn more ...' /></a>");
}
