
//This function contains code to create a homepage promo with a rotating image

function homepagePromo() {
// Create arrays to contain all the values 
// for image locations
image = new Array;
image[1]="/cms/dynamic/resources/images/webcontent/mlc_value_of_advice_01.gif";
image[2]="/cms/dynamic/resources/images/webcontent/mlc_value_of_advice_02.gif";
//image[3]="/cms/dynamic/resources/images/webcontent/mm_globe.gif";
blurb = new Array;
blurb[1]="The value of advice for Thirty somethings.";
blurb[2]="Thirty something?";
//blurb[3]="Australia\'s leading Multi-Manager brings new meaning to the word \'diversification\'";

// URL for the promo spot goes here:
promoUrl = 'javascript:openWindow(\'IBP\',\'/IBP/index.html\',728,524,\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes\',window,\'left\',\'top\',0,0,\'\'); void(0);';

// Create a random number between 1 and x... replace x in 'Math.random()*x' with the number-1
random_num = (Math.round((Math.random()*1)+1));

// Write the image tag with a random array element
document.write("<a href=\"" + promoUrl + "\"><img width=185 height=147 border=0 src=\"" + image[random_num] + "\" alt=\"" + blurb[random_num] + "\"></a>");
document.write("<br><a class=small href=\"" + promoUrl + "\">Find out more.</a>");

}


function homepagePromo2() {
//Create arrays to contain all the values 
promo2 = new Array;
promo2[1]="<span class=\"homeheading\"><a href=\"/cms/dynamic/Personal_Home_Page/Personal__Tools/1_20_30.html\"><b>Your total investment solution</b></a></span></td></tr><tr><td><IMG height=4 alt=\"spacer image\" src=\"/cms/dynamic/resources/images/spacer.gif\" width=1 border=0 ></td></tr><tr><td class=\"small\"><a href=\"/cms/dynamic/Personal_Home_Page/Personal__Tools/1_20_30.html\" class=\"small\"><img height=\"35\" alt=\"The MLC MasterKey Horizon Series\" hspace    =\"4\" src=\"/cms/dynamic/resources/images/home_teaser_horizon.gif\" width=\"40\" align=\"right\" border=\"0\" /></a>The <a href=\"/cms/dynamic/Personal_Home_Page/Personal__Tools/1_20_30.html\" class=\"small\">MLC MasterKey Horizon Series</a> provides all the diversification you need in a single portfolio.";
promo2[2]="<span class=\"homeheading\"><a href=\"javascript:openWindow(\'fundprof\',\'/fundprofiles/index.html?Version=investor&Site=mlc\',728,524,\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no\',window,\'left\',\'top\',0,0,\'\'); void(0)\"><strong>Fund Profile Selector</strong></a></span></td></tr><tr><td><img src=\"/cms/dynamic/resources/images/spacer.gif\" alt=\"spacer image\" width=\"1\" height=\"4\" border=\"0\" /></td></tr><tr><td class=\"small\"><a href=\"javascript:openWindow(\'fundprof\',\'/fundprofiles/index.html?Version=investor&Site=mlc\',728,524,\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no\',window,\'left\',\'top\',0,0,\'\'); void(0)\" class=\"small\"><img src=\"/cms/dynamic/resources/images/webcontent/fund_profile_selector_launch_tn.gif\" width=\"60\" height=\"45\" alt=\"Fund Profile Selector\" hspace=\"3\" border=\"0\" align=\"right\"></a>View and print 1 page fund profiles with the new Fund Profile Selector. <a href=\"javascript:openWindow(\'fundprof\',\'/fundprofiles/index.html?Version=investor&Site=mlc\',728,524,\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no\',window,\'left\',\'top\',0,0,\'\'); void(0)\" class=\"small\">More...</a>";

//Create a random number between 1 and x... replace x in 'Math.random()*x' with the number-1
random_num2 = (Math.round((Math.random()*1)+1));

//Write the promo code with a random array element

document.write(promo2[random_num2]);

}



//---------------------------------------------
// Reading a query sting and setting variables
//---------------------------------------------
//
// 

var qsParm = new Array();

function qs() {

	var query = unescape(window.location.search.substring(1));
	var parms = query.split('&');

	for (var i=0; i<parms.length; i++) {

	   var pos = parms[i].indexOf('=');

	   if (pos > 0) {
		  var key = parms[i].substring(0,pos);
		  var val = parms[i].substring(pos+1);
		  qsParm[key] = val;
		  }
	   }
}



qsParm['cid'] = null;
qsParm['ext1'] = null;
qsParm['ext2'] = null;

qs(); 



<!-- /script -->