//<!-- א -->
var ba = new Array();
ba[0] = '<div style="position: relative; float: left; z-index: 0; height: 92px; width: 110px; padding-left: 10px; text-align: right;"><a href="http://www.redcross.int/" target="_blank" title="International Red Cross and Red Crescent"><img src="http://www.brianmoylan.info/media/banners/irc/logoanim.gif" alt="International Red Cross and Red Crescent" border="0" /></a></div><div style="position: relative; float: left; width: 442px; height: 92px; text-align: right;"><a href="http://www.ifrc.org/helpnow/" target="_blank" title="Help Now"><img src="http://www.brianmoylan.info/media/banners/helpnow.gif" alt="Help Now" border="0" /></a><a href="http://www.redcross.int/" target="_blank" title="International Red Cross and Red Crescent"><img src="http://www.brianmoylan.info/media/banners/irc/header.gif" alt="International Red Cross" border="0" /></a></div>';
ba[1] = '<div style="position: relative; float: left; z-index: 0; background: url(\'http://www.brianmoylan.info/media/banners/bhfBanner.gif\') 0px 1px; height: 92px; width: 567px;"><div style="position: relative; float: left; width: 480px; background-color: transparent;"><a href="http://www.bhf.org.uk/" target="_blank" title="Visit the British Heart Foundation website"><img src="http://www.brianmoylan.info/media/clear.gif" alt="" border="0" width="440" height="88" /></div><div style="position: absolute; right: 10px; width: 75px; height: 54px; padding-top: 20px;"><a href="http://www.bhf.org.uk/donate/default.aspx" target="_blank" title="Donate Now"><img src="http://www.brianmoylan.info/media/banners/donatenowbhf.gif" alt="Donate Now" border="0" /></a></div></div>';
ba[2] = '<div style="position: relative; float: left; z-index: 0; background: url(\'http://www.brianmoylan.info/media/banners/headway/headwayfull.gif\') no-repeat; height: 82px; background-color: #ffffff; width: 100%;"><div style="position: relative; float: left; width: 203px;"><a href="http://www.headway.org.uk/" target="_blank" title="Visit the Headway website"><img src="http://www.brianmoylan.info/media/clear.gif" alt="Headway, the brain injury association" border="0" width="203" height="88" /></div><div style="position: absolute; right: 20px; width: 353px; padding-left: 14px;"><a href="http://www.headway.org.uk/" target="_blank" title="Visit the Headway website"><img src="http://www.brianmoylan.info/media/clear.gif" alt="Headway, the brain injury association" border="0" width="345" height="43" /></div><div style="position: absolute; right: 20px;  width: 158px; height: 35px; padding-left: 20px; top: 56px;"><a href="http://www.headway.org.uk/donate.aspx" target="_blank" title="Donate Now"><img src="http://www.brianmoylan.info/media/banners/headway/donatenow.gif" alt="Donate Now" border="0" /></a></div></div>';
ba[3] = '<div style="position: relative; float: left; z-index: 0; background: url(\'http://www.stroke.org.uk/display_images/bg_gradient_top.gif\'); height: 92px; background-color: #1c6196; width: 567px;"><div style="position: relative; float: left; width: 203px; padding-top: 10px;"><a href="http://www.stroke.org.uk/" target="_blank" title="Visit the Stroke Association website"><img src="http://www.stroke.org.uk/display_images/logo_tsa.gif" alt="The Stroke Association" border="0" width="162" height="70" /></div><div style="position: relative; float: left; width: 333px; text-align: right; padding-left: 14px;"><a href="http://www.stroke.org.uk/" target="_blank" title="Visit The Stroke Association website"><img src="http://www.brianmoylan.info/media/banners/strokeassociation/makingadifference.gif" alt="Visit The Stroke Association: Making a difference" border="0" width="330" height="53" /></div><div style="position: absolute; right: 20px; width: 200px; height: 30px; bottom: 10px;"><a href="http://www.stroke.org.uk/donate/" target="_blank" title="Donate Now"><img src="http://www.brianmoylan.info/media/banners/sadonatenow.gif" alt="Donate Now" border="0" /></a></div></div>';
ba[4] = '<div style="position: relative; float: left; z-index: 0; height: 92px;"><a href="http://www.thesmallprint-book.com/" target="_blank" title="TheSmallPrint"><img src="http://www.brianmoylan.info/media/banners/thesmallprint/thesmallprintanim.gif" alt="TheSmallPrint" border="0" width="565" height="92" /></a></div>';
d = rand(ba.length);
function rand( n )
{
	return ( Math.floor ( Math.random ( ) * n ) );
}
function blankAd(){
	var baDiv = document.getElementById("bannerAds");
	baDiv.innerHTML = '&nbsp';
	setTimeout("doBannerAd()",1000);
}
function doBannerAd(){
	d = d + 1;
	if (d == ba.length){
		d = 0;
	}
	var baDiv = document.getElementById("bannerAds");
	baDiv.innerHTML = ba[d];
	setTimeout("blankAd()",15000);
}
function onLoadResize(){
	var bannerAds = document.getElementById("bannerAds");
	if (bannerAds.offsetHeight != '104'){
		bannerAds.style.height = '104px';
	}
}
//if (window.addEventListener) // W3C standard
//{
//  window.addEventListener('load', onLoadResize, false); // NB **not** 'onload'
//}
if (window.attachEvent) // Microsoft
{
  window.attachEvent('onload', onLoadResize);
}

