//------------------------------------------------------------------------------------------//
// Exceedingly Simple Day-Of-The-Week Banner Rotator                                        //
// (c) 2009 - Randy Huddleston                                                              //
// http://www.spunkvilleweeklyobserver.com/                                                 //
// All Rights Reserved                                                                      //
// You may use this code as you wish as long as this header remains intact.                 //
// Of course, a link to: http://www.spunkvilleweeklyobserver.com/ would be appreciated.     //
//------------------------------------------------------------------------------------------//
// Implementation:                                                                          //
// 1) Add: <script type="text/javascript" src="dowbanner2.js"></script>                      //
//    Between the <head> and </head> tags of the desired pages                              //
// 2) Place: <script type="text/javascript">writeimage()</script> where you want the image. //
// 3) Edit the html tags in each 'document.write' line below - change to your graphic       //
// 4) Copy this file, changed web pages and 7 graphics to your server                       //
// Your done!                                                                               //
// BE SURE your html tags are suitable for your doctype statement!                          //
// I wrote this to rotate graphics - but as you can see in the writedate function below, it //
// will accomodate about anything you can put into html tags... ie. style tags, etc.. Enjoy!//
//------------------------------------------------------------------------------------------//

s_date = new Date();

function writeimage() {
// Sunday Image //
if(s_date.getDay() == 0){
document.write('<a href="http://scripts.affiliatefuture.com/AFClick.asp?affiliateID=134660&merchantID=3680&programmeID=9340&mediaID=0&tracking=&url=" target="_blank"><img src="images/sun_pic.gif" border="0" alt="Whats Hot Sunday" title="Whats Hot Sunday" /></a>');
}
// Monday Image //
if(s_date.getDay() == 1){
document.write('<a href="http://www.awin1.com/awclick.php?mid=2891&id=80469" target="_blank"><img src="images/mon_pic.gif" border="0" alt="Whats Hot Monday" title="Whats Hot Monday" /></a>');
}
// Tuesday Image //
if(s_date.getDay() == 2){
document.write('<a href="http://clkuk.tradedoubler.com/click?p=118779&a=1736832&g=18083700" target="_blank"><img src="images/tue_pic.gif" border="0" alt="Whats Hot Tuesday" title="Whats Hot Tuesday" /></a>');
}
// Wednesday Image //
if(s_date.getDay() == 3){
document.write('<a href="http://www.paidonresults.net/c/20089/15/193/0" target="_blank"><img src="images/wed_pic.gif" border="0" alt="Whats Hot Wednesday" title="Whats Hot Wednesday" /></a>');
}
// Thursday Image //
if(s_date.getDay() == 4){
document.write('<a href="http://click.linksynergy.com/fs-bin/click?id=O5l23T8hg8k&offerid=185794.10000008&type=4&subid=0" target="_blank"><img src="images/thu_pic.gif" border="0" alt="Whats Hot Thursday" title="Whats Hot Thursday" /></a>');
}
// Friday Image //
if(s_date.getDay() == 5){
document.write('<a href="http://www.awin1.com/cread.php?s=205984&v=2918&q=106306&r=80469" target="_blank"><img src="images/fri_pic.gif" border="0" alt="Whats Hot Friday" title="Whats Hot Friday" /></a>');
}
// Saturday Image //
if(s_date.getDay() == 6){
document.write('<a href="http://track.webgains.com/click.html?wglinkid=80246&wgcampaignid=67569" target="_blank"><img src="images/sat_pic.gif" border="0" alt="Whats Hot Saturday" title="Whats Hot Saturday" /></a>');
}
}
