var dc=document;
var sAm = '<a href="http://www.amazon.com/exec/obidos/ASIN/';

function showTop() {
document.write('<iframe marginwidth="0" marginheight="0" width="1" height="1" scrolling="no" frameborder="0" src="http://www.sffworld.com/ads/inter.html"></iframe>');

//var random = Math.floor(Math.random() * 1000000000);
//document.write('<iframe marginwidth="0" marginheight="0" width="728" height="90" scrolling="no" frameborder="0" src="http://www.sffworld.com/ads/top.html?'+random+'"></iframe>');

var ranNum= Math.round(Math.random()*12);
if(ranNum == 7) {
document.write('<iframe marginwidth="0" marginheight="0" width="728" height="90" scrolling="no" frameborder="0" src="http://www.sffworld.com/ads/top_bradbaron.html"></iframe>');
}
else {
document.write('<iframe marginwidth="0" marginheight="0" width="728" height="90" scrolling="no" frameborder="0" src="http://www.sffworld.com/ads/top.html"></iframe>');
}


}

function showLeft() {
t = new Date();
s = t.getSeconds();
m = t.getMinutes();
dc.write('<table width=100% border=0 cellspacing=0 cellpadding=2>');

dc.write('<tr><td class=rh><b>Advertisements</b></td></tr><tr><td>');
dc.write('<br><a href="http://www.scifiwebhost.com" target="_blank"><b>SciFiWebHost.com</b></a><br>Web hosting for authors, artists and genre websites. Current Special, <b>FREE</b> Web Design. <a href="http://www.scifiwebhost.com" target="_blank"><b>More...</b></a><p>');
dc.write('<a href="http://www.equilibriumbooks.com" target="_blank"><b>Equilibrium Books</b></a><br>An exciting new POD publishing service. <a href="http://www.equilibriumbooks.com" target="_blank"><b>More...</b></a><p></td></tr>');

dc.write('<tr><td class=rh><b>sffworld.com Staff</b></td></tr>');
dc.write('<tr><td>Meet the people behind sffworld.com <a href="http://www.sffworld.net/members/sff/home.nsf/frmWebProfiles!readform">here</a>.<br>');
dc.write('<br><div align=center><a href=http://www.sffworld.org/pads/adclick.php?n=s' + s + m + '><img src=http://www.sffworld.org/pads/adview.php?clientid=2&n=s' + s + m + ' width=120 height=90 border=0></a></div><br>');
dc.write('</td></tr>');

dc.write('<tr><td class=rh><b>Submit content</b></td></tr>');
dc.write('<tr><td>');
dc.write('<a href="http://www.sffworld.net/members/sff/home.nsf/frmInputBookReview!openform">Book Reviews</a>');
dc.write('<br><a href="http://www.sffworld.net/members/sff/home.nsf/frmInputFiction!openform">Short Stories</a>');
dc.write('<br><a href="http://www.sffworld.net/members/sff/home.nsf/frmInputPoem!openform">Poems</a>');
dc.write('<br><a href="http://www.sffworld.net/members/sff/home.nsf/frmInputArticle!openform">Articles</a>');
dc.write('<br><a href="http://www.sffworld.net/members/sff/home.nsf/frmInputTVMovieReview!openform">TVMovie Reviews</a>');
dc.write('<br><a href="http://www.sffworld.net/members/sff/home.nsf/frmInputGameReview!openform">Game Reviews</a>');
dc.write('<p></td></tr></table>');
}

function sR() {
dc.write('<table width=95% bgcolor=#ffffff align=center><tr><td>');
dc.write('<b>Website Design Contest</b>');
dc.write('<br>Maybe you can help us revamp the sffworld website with a new logo and design.');
dc.write('<br><a href="http://www.sffworld.com/adm/contest.html"><b>Read more</b></a>')
dc.write('<br></td></tr></table>');
}

function showRight() {

dc.write('<table width=100% border=0 cellspacing=0 cellpadding=2><tr><td class=r><div align="center">');
dc.write('<br><a href="http://www.sffworld.com/adm/advertise.php"><font color=ffee88 size=2><b>ADVERTISE<br>on sffworld.com</b></font></a><p>');
dc.write('<a href="http://www.sffworld.com/adm/linktous/"><font color=ff8844 size=2><b>sffworld.com feeds on Your website</b></font></a><p>');

dc.write('<div align=center>');

var random = Math.floor(Math.random() * 1000000000);

document.write('<iframe marginwidth="0" marginheight="0" width="160" height="600" scrolling="no" frameborder="0" src="http://www.sffworld.com/ads/gortower.html?'+random+'"></iframe>');

//document.write('<iframe marginwidth="0" marginheight="0" width="160" height="600" scrolling="no" frameborder="0" src="http://www.sffworld.com/tower.html?'+random+'"></iframe>');


dc.write('</div><br>');
}
