/* Date specific variables - Only show text during dates specified */
/*  1: Jan-1 until Jan-15 inclusive (New Years)                     */
/*  2: Jan-16 until Feb-14 inclusive (Valentine's Day)              */
/*  3: Feb-15 until Mar-17 inclusive (St. Patrick's Day)            */
/*  4: Mar-18 until Mar-29 inclusive (Easter)                       */
/*  5: Mar-30 until May-23 inclusive (Spring)                       */
/*  6: May-24 until Jun-13 inclusive (Summer)                       */
/*  7: Jun-14 until Jul-05 inclusive (July 4)                       */
/*  8: Jul-06 until Aug-22 inclusive (Summer)                       */
/*  9: Aug-23 until Sep-05 inclusive (Labor Day)                    */
/* 10: Sep-06 until Sep-11 inclusive (9-11)                         */
/* 11: Sep-12 until Oct-31 inclusive (Halloween)                    */
/* 12: Nov-01 until Nov-11 inclusive (Veteren's Day)                */
/* 13: Nov-12 until Nov-26 inclusive (Thanksgiving)                 */
/* 14: Nov-27 until Dec-31 inclusive (Christmas)                    */

js_hp_date_found = false;
js_hp_valentinesday_date_found = false;
js_hp_stpatricksday_date_found = false;
js_hp_spring_date_found = false;
js_hp_summer_date_found = false;
js_hp_july4_date_found = false;
js_hp_laborday_date_found = false;
js_hp_halloween_date_found = false;
js_hp_christmas_date_found = false;
js_hp_day_of_month = dayOfMonth(js_today);

/**********************************************
* KEVIN: ROTATING HOME PAGE TEXT STARTS BELOW *
*                                             *
* Look for your Name (in comments) preceding  *
* each piece of text.                         *
***********************************************/

/* Case statement for displaying random text based on above random function.         */
/* Each case must be terminated (last line of case) with a "break;" statement
/* IMPORTANT: Date specific case statements must be at the end of the case statement */

/* New Years (January 1 to January 15) */
if (month(js_today) == 0) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 15) {
	   /* Kevin: Home page rotating for New Years day text below */
	   /* IMPORTANT: Text is a mix of straight text and HTML */
	   /* IMPORTANT: Single quotes MUST be escaped by a "\" */
      document.write('<p>HAPPY NEW YEAR!</p>');
      document.write('<p>We wish you and your pets the very best this coming year!!!</p>');
      document.write('<p>If you need to find something FAST, use the search field in the top left corner.</p>');
      document.write('<p>vitavet.com has products for all your pet needs.  We continue to work hard to keep your pets happy and healthy.</p>');
      document.write('<p>If you need help finding something, <a href="http://www.vitavet.com/Merchant2/merchant.mvc?Screen=CTGY&amp;Store_Code=VV&amp;Category_Code=vitavet-HomePageContactUs" title="Contact Customer Care for help finding a product">send us an e-mail</a> as we would be happy to help you.</p>');
      document.write('<p>Have a great year!</p>');
   }
}
    
/* Valentine's Day (January 16 to February 14) */
if (month(js_today) == 0) {
   if (js_hp_day_of_month >= 16 && js_hp_day_of_month <= 31) {
	    js_hp_valentinesday_date_found = true;
   }
}
if (month(js_today) == 1) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 14) {
		js_hp_valentinesday_date_found = true;
   }
}
if (js_hp_valentinesday_date_found) {
    /* Kevin: Home page rotating for Valentines day text below */
    /* IMPORTANT: Text is a mix of straight text and HTML */
    /* IMPORTANT: Single quotes MUST be escaped by a "\" */
	 document.write('<p>Happy Valentine`s Day!</p>');
	 document.write('<p>This is a special time to think of our loved ones.</p>');
	 document.write('<p>This is a time to say how much we care about our furry, feathered and other special friends.</p>');
	 document.write('<p>We hope that however you spend your time it creates good memories.</p>');
	 document.write('<p>Give the caring gift of choice this <a href="' + js_standard_url + 'Screen=CTGY&Store_Code=VV&Category_Code=vitavet-Shopping-ValentinesDay" title="Happy Valentine\'s Day!">Valentine\'s Day</a> with a <a href="' + js_standard_url + 'Screen=PROD&Product_Code=VV-GC" title="The perfect gift!">vitavet.com Gift Certificate</a><br /><br /><a href="' + js_standard_url + 'Screen=PROD&Product_Code=VV-GC" title="The perfect gift!"><img src="graphics/00000001/gift-certificate-l_vitavet-com.gif" border="0" width="300" height="150"></a></p>');
	 document.write('<pIf you need to find something FAST, use the search field in the top left corner.></p>');
}

/* St. Patricks Day (February 15 to March 17) */
if (month(js_today) == 1) {
   if (js_hp_day_of_month >= 15 && js_hp_day_of_month <= 29) {
		js_hp_stpatricksday_date_found = true;
    }
}
if (month(js_today) == 2) {
    if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 17) {
	    js_hp_stpatricksday_date_found = true;
    }
 }
 if (js_hp_stpatricksday_date_found) {
    /* Kevin: Home page rotating for Valentines day text below */
    /* IMPORTANT: Text is a mix of straight text and HTML */
    /* IMPORTANT: Single quotes MUST be escaped by a "\" */
	 document.write('<p>May the luck of the Irish be with you on this green day...that being St. Patricks Day!</p>');
	 document.write('<p>With thanks to you we have been in business ' + yearsInBusiness + '.</p>');
	 document.write('<p>If you need help finding something, <a href="http://www.vitavet.com/Merchant2/merchant.mvc?Screen=CTGY&amp;Store_Code=VV&amp;Category_Code=vitavet-HomePageContactUs" title="Contact Customer Care for help finding a product">send us an e-mail</a> as we would be happy to help you.</p>');
	 document.write('<p>Use the search field in the top left corner to find it FAST.</p>');
	 document.write('<p>Orders are now processed FASTER so that your order gets to your pet FASTER!!!</p>');
}

/* Easter (March 18 to March 29) */
if (month(js_today) == 2) {
   if (js_hp_day_of_month >= 18 && js_hp_day_of_month <= 29) {
	   /* Kevin: Home page rotating for New Years day text below */
	   /* IMPORTANT: Text is a mix of straight text and HTML */
	   /* IMPORTANT: Single quotes MUST be escaped by a "\" */
      document.write('<p>' + yearsInBusiness + ' years and growing</p>');
      document.write('<p>Happy Easter!</p>');
      document.write('<p>vitavet.com has what your pet needs to stay healthy.</p>');
      document.write('<p>means great value.</p>');
      document.write('<p><a href="http://www.vitavet.com/Merchant2/merchant.mvc?Screen=CTGY&amp;Store_Code=VV&amp;Category_Code=vitavet-CustomerCareOurGuarantee" title="You are treated fairly">Our Guarantee</a> and the <a onclick="newWindow(\'../window/auto_reorder.html\',\'\',480,320,\'yes\')" title="Never forget again" href="javascript:;">Auto-Reorder</a> option mean convenience when you shop vitavet.com.</p>');
      document.write('<p>The VitaVet Team is working hard for your pet!</p>');
   }
}

/* Spring (March 30 to May 23) */
if (month(js_today) == 2) {
   if (js_hp_day_of_month >= 30) {
		js_hp_spring_date_found = true;
   }
}
if (month(js_today) == 3) {
   js_hp_spring_date_found = true;
}
if (month(js_today) == 4) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 23) {
      js_hp_spring_date_found = true;
   }
}
if (js_hp_spring_date_found) {
   document.write('<p>Springtime is here and what a great time of year it is!</p>');
   document.write('<p>Flowers are blooming and birds are chirping...at least where we live they are.</p>');
   document.write('<p>With ' + yearsInBusiness + ' years in business, we have what your pet needs.</p>');
}

/* Summer (May 24 to June 13) (July 6 to August 22) */
if (month(js_today) == 4) {
   if (js_hp_day_of_month >= 24) {
      js_hp_summer_date_found = true;
   }
}
if (month(js_today) == 5) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 13) {
      js_hp_summer_date_found = true;
   }
}
if (month(js_today) == 6) {
   if (js_hp_day_of_month >= 6) {
      js_hp_summer_date_found = true;
   }
}
if (month(js_today) == 7) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 22) {
      js_hp_summer_date_found = true;
   }
}
if (js_hp_summer_date_found) {
   document.write('<p>Get your sun glasses on and enjoy the warm weather \'cause summertime is here!</p>');
   document.write('<p>The VitaVet Team works hard for your pet and tries to have everything you need to keep your pets happy and healthy for life!</p>');
}

/* July 4 (June 14 to July 5) */
if (month(js_today) == 5) {
   if (js_hp_day_of_month >= 14) {
      js_hp_july4_date_found = true;
   }
}
if (month(js_today) == 6) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 5) {
      js_hp_july4_date_found = true;
   }
}
if (js_hp_july4_date_found) {
   document.write('<p>' + yearsInBusiness + ' years and growing</p>');
   document.write('<p>This is a great time of year with lots of celebrations going on.</p>');
   document.write('<p>Use the search field in the top left corner to find it fast.</p>');
}

/* Labor day (August 23 to September 5) */
if (month(js_today) == 7) {
   if (js_hp_day_of_month >= 23) {
      js_hp_laborday_date_found = true;
   }
}
if (month(js_today) == 8) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 5) {
      js_hp_laborday_date_found = true;
   }
}
if (js_hp_laborday_date_found) {
   document.write('<p>Use the search field in the top left corner to find it fast.</p>');
   document.write('<p>' + yearsInBusiness + ' years and growing</p>');
   document.write('<p>If you need help finding something, <a href="http://www.vitavet.com/Merchant2/merchant.mvc?Screen=CTGY&amp;Store_Code=VV&amp;Category_Code=vitavet-HomePageContactUs" title="Contact Customer Care for help finding a product">send us an e-mail</a> as we would be happy to help you.</p>');
}

/* 9-11 (September 6 to September 11) */
if (month(js_today) == 8) {
   if (js_hp_day_of_month >= 6 && js_hp_day_of_month <= 11) {
	   /* Kevin: Home page rotating for New Years day text below */
	   /* IMPORTANT: Text is a mix of straight text and HTML */
	   /* IMPORTANT: Single quotes MUST be escaped by a "\" */
      document.write('<p>' + yearsInBusiness + ' years and growing</p>');
      document.write('<p>Thanks for shopping vitavet.com - a place where great value is combined with an easy shopping experience.</p>');
      document.write('<p>If you need help finding something, <a href="http://www.vitavet.com/Merchant2/merchant.mvc?Screen=CTGY&amp;Store_Code=VV&amp;Category_Code=vitavet-HomePageContactUs" title="Contact Customer Care for help finding a product">send us an e-mail</a> as we would be happy to help you.</p>');
   }
}

/* Halloween (September 12 to October 31) */
if (month(js_today) == 8) {
   if (js_hp_day_of_month >= 12) {
      js_hp_halloween_date_found = true;
   }
}
if (month(js_today) == 9) {
   js_hp_halloween_date_found = true;
}
if (js_hp_halloween_date_found) {
    document.write('<p style="font-size: 40pt;">BOO!</p>');
}

/* Veteran's day (November 1 to November 11) */
if (month(js_today) == 10) {
   if (js_hp_day_of_month >= 1 && js_hp_day_of_month <= 11) {
      document.write('<p>Veteran\'s Day</p>');
      document.write('<p>We remember and are honoured by the sacrifices of others.</p>');
      document.write('<p>Use the search field in the top left corner to find it fast.</p>');
   }
}


/* Thanksgiving (November 12 to November 26) */
if (month(js_today) == 10) {
   if (js_hp_day_of_month >= 12 && js_hp_day_of_month <= 26) {
      document.write('<p style="font-size: 30pt;">HAPPY THANKSGIVING!</p>');
   }
}

/* Christmas (November 27 to December 31) */
if (month(js_today) == 10) {
   if (js_hp_day_of_month >= 27) {
      js_hp_christmas_date_found = true;
   }
}
if (month(js_today) == 11) {
   js_hp_christmas_date_found = true;
}
if (js_hp_christmas_date_found) {
   document.write('<p>Happy Holidays!</p>');
   document.write('<p>We wish you the very best this holiday season.</p>');
   document.write('<p>Have a safe and wonderful season with your family and loved ones.</p>');
   document.write('<p>See you next year!</p>');
   document.write('<p>' + yearsInBusiness + ' years and growing</p>');
}
