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

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

function showLeft() {
t = new Date();
s = t.getSeconds();
m = t.getMinutes();

dc.write('<div align="center">');
dc.write('<br><a href="http://www.sffworld.com/adm/advertise.php"><b>ADVERTISE<br>on sffworld.com</b></a><p>');

//dc.write('<table width=100% border=0 cellspacing=0 cellpadding=2>');
//dc.write('<tr><td class=rh><b>Support sffworld.com</b></td></tr>');
//dc.write('<tr><td>You can support sffworld.com by making a donation through PayPal.<br><div align=center>');
//dc.write('<iframe marginwidth="0" marginheight="0" width="62" height="32" scrolling="no" frameborder="0" src="http://sffworld.com/ads/support.html"></iframe>');
//dc.write('<br><br></div></td></tr>');

dc.write('<table width=100% border=0 cellspacing=0 cellpadding=2>');
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.com/about.html">here</a>.<br>');
dc.write('</td></tr>');

dc.write('<tr><td class=rh><b>Submit content</b></td></tr>');
dc.write('<tr><td>');
dc.write('<font color=#ff0000><b>NEW:</b></font> Post your Stories and Poetry in our brand new <a href="http://www.sffworld.com/community"><b>Community Section</b></a><br><br>');
dc.write('Read more about submitting other content <a href="http://www.sffworld.com/submit"><b>here</b>.');
dc.write('<p></td></tr></table>');
}

function showAds() {
dc.write('<table width=95% bgcolor=#ffffff align=center><tr><td>');

dc.write('<p><b>SciFiWebHost.com</b>');
dc.write('<br>Web hosting for authors, artists and websites within the science fiction, fantasy and horror genres. Current special, FREE web design!');
dc.write('<br><a href="http://www.scifiwebhost.com"><b>Read more</b></a>')

dc.write('<p><div align=center><a href="http://www.sffworld.com/adm/advertise.php"><font color=#ff0000 size=4><b>Advertise here</b></font></a></div><br>')

document.write('<iframe marginwidth="0" marginheight="0" width="100%" height="560" scrolling="no" frameborder="0" src="http://www.sffworld.com/ads/last.html"></iframe>');

dc.write('<hr noshade><b>Seven Threads</b>');
dc.write('<br>...learning to believe ... learning to trust ...it is all about honesty and the passion of writing.');
dc.write('<br><a href="http://www.equilibriumbooks.com/seventhreads.htm"><b>Read more</b></a>');

dc.write('<p><b>GemQuest by Gary Wassner</b>');
dc.write('<br>"This is fantasy at its best, Gary Wassner weaves the different plot-lines and characters together as a true master.');
dc.write('<br><a href="http://www.garywassner.com"><b>Read more</b></a>')

dc.write('<p><b>Equilibrium Books</b>');
dc.write('<br>An exciting new POD publishing service, designed especially for (but not limited to) new and yet-to-be-discovered authors.');
dc.write('<br><a href="http://www.equilibriumbooks.com"><b>Read more</b></a>')

dc.write('<br></td></tr></table>');
}

function showRight() {
dc.write('<br><div align=center><font color=#ff0000><b>INTERESTED IN HELPING OUT?</b></font><br><a href="http://www.sffworld.com/apply.php"><b>Read More</b></a><br>');

var random = Math.floor(Math.random() * 1000000000);
var ranNum= Math.round(Math.random()*3);
//if(ranNum == 2) {
//sUrl = 'http://www.sffworld.com/ads/tower_black.html';
//}
//else {
sUrl = 'http://www.sffworld.com/ads/gortower.html';
//}
document.write('<iframe marginwidth="0" marginheight="0" width="160" height="600" scrolling="no" frameborder="0" src="'+sUrl+'"></iframe>');

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

}


function menuCreate() {

}

