//------------------------------------------------------------------------------------------//
// 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="dowbanner.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.  Enjoy!                       //
//------------------------------------------------------------------------------------------//

s_date = new Date();

function writeimage() {
// Sunday Image //
if(s_date.getDay() == 0){
document.write('<a href="http://christopherkempski.myshaklee.com/us/en/products.php?sku=20960"><img src="images/ad_immune.png" /></a>');
}
// Monday Image //
if(s_date.getDay() == 1){
document.write('<a href="http://christopherkempski.myshaklee.com/us/en/products.php?sku=20681"><img src="images/ad_bone.png" /></a>');ßß
}
// Tuesday Image //
if(s_date.getDay() == 2){
document.write('<a href="http://christopherkempski.myshaklee.com/us/en/products.php?sku=20244"><img src="images/ad_heart.png" /></a>');
}
// Wednesday Image //
if(s_date.getDay() == 3){
document.write('<a href="http://christopherkempski.myshaklee.com/us/en/products.php?sku=50447"><img src="images/ad_clean.png" /></a>');
}
// Thursday Image //
if(s_date.getDay() == 4){
document.write('<a href="http://christopherkempski.myshaklee.com/us/en/category.php?main_cat=WeightManagement&sub_cat=MealBar"><img src="images/ad_cinch.png" /></a>');
}
// Friday Image //
if(s_date.getDay() == 5){
document.write('<a href="http://christopherkempski.myshaklee.com/us/en/products.php?sku=21200"><img src="images/ad_antiage.png" /></a>');
}
// Saturday Image //
if(s_date.getDay() == 6){
document.write('<a href="http://christopherkempski.myshaklee.com/us/en/category.php?main_cat=WeightManagement&sub_cat=CinchEnergyTea"><img src="images/ad_tea.png" /></a>');
}
}
