// JavaScript Document

starting = '11/20/2006';
ending = '12/19/2006';

coupon = 'coupon';

site = window.location.pathname.split('/')[1];

var endDate = new Date;
endingAr = ending.split('/');
endDate.setDate(endingAr[1]);
endDate.setMonth(endingAr[0]-1);
endDate.setFullYear(endingAr[2]);

var startDate = new Date;
startingAr = starting.split('/');
startDate.setDate(startingAr[1]);
startDate.setMonth(startingAr[0]-1);
startDate.setFullYear(startingAr[2]);
var myDate = new Date;

theImage = 'http://assets.'+site+'.com/images/'+coupon+'.gif';
if (startDate < myDate && myDate < endDate) { document.write('<img src="'+theImage+'" width="800" height="40">'); }

document.write("<!--" + startDate + " " + myDate + " " + endDate + "-->");
