/********** random-banner.js **********/
						 
/*
banner0="http://www.nano.org.uk/banners/NanoChallenge.gif"
href0="http://www.nanochallenge.com"
alt0="NanoChallenge and PolymerChallenge 2011"
width0="468"
height0="60" 
*/

/*
banner0="http://www.nano.org.uk/banners/PSA.gif"
href0="http://www.psa2011.com/"
alt0="Particulate Systems Analysis 2011, Edinburgh, UK. 5-7 Sept."
width0="468"
height0="60"
*/

/*
banner0="http://www.nano.org.uk/banners/nanoscalebioceramics.jpg"
href0="http://www.nano.org.uk/events/ion-events#nanoscale-bioceramics-in-healthcare"
alt0="Nanoscale Bioceramics in Healthcare and High Performance Ceramics - 12/13th Oct - Stoke, UK"
width0="497"
height0="60"
*/


banner0="http://www.nano.org.uk/banners/neat.png"
href0="http://www.nano.org.uk/neat/"
alt0="NEAT - Nano, Enabling and Advanced Technologies Post-Graduate Course Directory"
width0="468"
height0="60"



numofbanners=1

now=new Date()
now=now.getSeconds()
rnd=now%numofbanners

image=eval("banner"+rnd);
href=eval("href"+rnd);
alt=eval("alt"+rnd);
height=eval("height"+rnd);
width=eval("width"+rnd);
border=0;

/********** note rnd == 2 so all banners open in new window **********/
if (rnd == 2) {
document.write("<a href='" + href + "'>");
document.write("<img src='" + image + "' alt='" + alt + "' height='" + height + "' width='" + width + "'border='" + border + "'></a>");
}
else {
document.write("<a href='" + href + "' target='_blank'>");
document.write("<img src='" + image + "' alt='" + alt + "' height='" + height + "' width='" + width + "'border='" + border + "'></a>");
}
