/*
Sidebar promo rotator
Prime Alliance Solutions
*/

// Titles
var titles = new Array();
titles[0] = "PA White Papers";
titles[1] = "PA and DEXMA Merger";
titles[2] = "CU Housing RoundTable";
titles[3] = "PA Fee Integration";
titles[4] = "PA and DEXMA Merger";

// Copy
var copy = new Array();
copy[0] = "Interested in the latest strategic thoughts on housing finance? Check out Prime Alliance's White Papers.";
copy[1] = "The Companies expect their combination to be complete later this year, with operations continuing to be based in...";
copy[2] = "The CU Housing RoundTable is the credit union industry's housing think tank...";
copy[3] = "Prime Alliance Solutions has integrated Ernst Publishing’s fee database...";
copy[4] = "The Companies expect their combination to be complete later this year, with operations continuing to be based in...";

// Images (if any)
var img = new Array();
img[0] = "/templates/pas-home/i/pic_whitepapers.jpg";
img[1] = "/templates/pas-home/i/pic-merger.jpg";
img[2] = "/templates/pas-home/i/pic-cuhrt2.jpg";
img[3] = "/templates/pas-home/i/pic-feeintegration.jpg";
img[4] = "/templates/pas-home/i/pic-merger.jpg";

// Links
var href = new Array();
href[0] = "http://www.primealliancesolutions.com/white-papers";
href[1] = "http://www.primealliancesolutions.com/rc-press-releases/151-pa-dexma-merger";
href[2] = "http://www.cuhousingroundtable.com";
href[3] = "http://www.primealliancesolutions.com/prime-alliance-fee-integration-powered-by-ernst-publishing";
href[4] = "http://www.primealliancesolutions.com/rc-press-releases/151-pa-dexma-merger";

// Don't change this...
function doPromo()
{
	var theDiv = document.getElementById("promo");
	var ranNum = Math.floor(Math.random() * (titles.length));
	var thePromo = '<img src="' + img[ranNum] + '" align="left" hspace="5" style="margin-bottom: 20px;" /><h6>' + titles[ranNum] + '</h6><p>' + copy[ranNum] + '<br /><span class="link">»</span><a href="' + href[ranNum] + '" target="_blank">Learn more</a></p>';
	theDiv.innerHTML = thePromo;
}