var rI = {
	init:function(o,t) {rI.obj=o;rI.rT=t;},
	addImg:function() {
		var a=arguments;rI.imgList.push(a[0]);rI.altList.push((a[1]?a[1]:''));rI.titleList.push((a[2]?a[2]:''));
		rI.linkList.push((a[3]?a[3]:''));rI.tgtList.push((a[4]?a[4]:''));},
	showImg:function() {
		if (rI.rT==0){var j=parseInt(Math.random()*rI.imgList.length);
		j=(isNaN(j))?0:j;}else{var oneDay=60*60*24*1000, d=new Date();
		jk=d.getTimezoneOffset()*60*1000;
		j=(parseInt((d.getTime()-jk)/oneDay))%rI.imgList.length;}
		d=document;	newImg=d.createElement("img");
		newImg.src=rI.imgList[j];newImg.alt=rI.altList[j];newImg.title=rI.titleList[j];
		tO=d.getElementById(rI.obj);if (tO) {if (rI.linkList[j]!='') {
		newLink=d.createElement("a");newLink.href=rI.linkList[j];
		newLink.target=rI.tgtList[j];newLink.appendChild(newImg);
		tO.appendChild(newLink);} else {tO.appendChild(newImg);}}},
	addEvent: function(o,evt, fn) {
		if (o.addEventListener) {o.addEventListener(evt, fn, false);
		} else if (o.attachEvent) {o.attachEvent('on'+evt, fn);
		} else {o['on'+evt]=fn;}},
	imgList:[],altList:[],titleList:[],linkList:[],tgtList:[],obj:"",rT:0
}
rI.init("randomImage",0);
rI.addImg("/img/randomiser/bridge.jpg","Image of a bridge - bridging the gap","Bridging the gap - financial training courses from Financial Training Associates","http://www.ftassociates.co.uk/financialtrainingcourses.htm", "");
rI.addImg("/img/randomiser/climber.jpg","Image of a climber - reaching for the top","Reach for the top - financial training courses from Financial Training Associates","http://www.ftassociates.co.uk/financialtrainingcourses.htm", "");
rI.addImg("/img/randomiser/clouds.jpg","Image of clouds - soaring above","Above the clouds - financial training courses from Financial Training Associates","http://www.ftassociates.co.uk/financialtrainingcourses.htm", "");
rI.addImg("/img/randomiser/lighthouse.jpg","Image of a lighthouse - lighting the way","Lighting the way - financial training courses from Financial Training Associates","http://www.ftassociates.co.uk/financialtrainingcourses.htm", "");
rI.addImg("/img/randomiser/sails.jpg","Image of sails - soaring on the wind","Soaring with the wind - financial training courses from Financial Training Associates","http://www.ftassociates.co.uk/financialtrainingcourses.htm", "");
rI.addEvent(window,'load',rI.showImg);