// cp shop coupons for teesed.com and family

// leave this be
	var coupons = new Array();
	var details = new Array();
	var today = new Date();
	var month = today.getMonth();
	var day = today.getDate();
	var year = today.getFullYear();
	var thisDate = new Date(year,month,day);
	thisDate = thisDate.getTime();
	var couponStartDate=new Date();
	var couponEndDate=new Date();
	today = today.toDateString();
	var i = 0;
	var showallcoupons;
	var x;
// leave this be



// first coupon - soonest to expire
var startmonth = "11";
var startday = "26";
var startyear = "2010";

var endmonth = "12";
var endday = "05";
var endyear = "2010";

var thediscount = "Strikethough pricing - Up to $3 markdowns throughout the site! Hurry - Ends Dec. 5!";
var thedetails = '*All items subject to availability. $1 off only applies to framed tile, ornaments, regular mug, large mug, gym bag and mouse pad. $2 off only applies to keepsake box, food thermos, thermos bottle, large thermos bottle, ceramic travel mug, pet bowls, kids’ hoodies, aprons and regular cap. $3 off only applies to yoga mats, sweatshirts and hoodies, adult performance jackets, stadium blankets, modern wall clocks and stackable mug sets. All orders must be added to cart from CafePress Basic or Premium Shops only. Excludes CafePress marketplace purchases (e.g. all products added to cart from URLs beginning with the following (i) http://shop.cafepress, (ii) http://t-shirts.cafepress and/or (iii) http://www.cafepress.com/sk/), CafePress Make, Groups, and bulk orders. Discounted prices are set forth on the website, no coupon code required. Promotion starts on November 30, at 12:00 a.m. (PST) and ends on December 5, 2010, at 11:59 p.m. (PST). Offer valid online only, can be combined with other coupons or promotions and may change, be modified or cancelled at anytime without notice.';
//thedetails += '<i>Products in the shopping cart must begin with an 030- prefix to qualify for shop discounts and offers.';
var couponStartDate=new Date(startyear,startmonth,startday);
couponStartDate.setMonth(couponStartDate.getMonth()-1);
couponStartDate= couponStartDate.getTime();

var couponEndDate=new Date(endyear,endmonth,endday);
couponEndDate.setMonth(couponEndDate.getMonth()-1);
couponEndDate= couponEndDate.getTime();

if (couponStartDate<=thisDate && couponEndDate>=thisDate) {
	coupons[i] = thediscount;
	details[i] = thedetails;
	i++;
}



if (showallcoupons == "true") {
	
	for (x in coupons)
	{
	document.write ('<h3>' + coupons[x] + '</h3>');
	document.write ('<p class="details">' + details[x] + '</p>');
	}

} else {
	if (i>0) {
		document.write ('<div class="globalpromo"><div id="ribbonbanner"><span>');
		document.write(coupons[0]);
		document.write ('</span><div class="ribbondetails"><a href="javascript:launchHelp(\'http://www.teesed.com/teesedcoupon.php\',\'height=400,width=410,scrollbars=1\')">*Details</a></div></div></div>');
	}
}




