// JavaScript Document
var hDate0 = new Date();
var hDate1 = new Date('2012/01/07');
var hDate2 = new Date('2012/01/29');

if (hDate0 >= hDate1 && hDate0 < hDate2)
{
	
	var holidayHTML = '<div style="margin:0 auto; width:990px;">';
	holidayHTML += '<div style="border:1px solid #EF3724; border-bottom:2px solid #EF3724;">';
	holidayHTML += '<div style="width:100%;">';
	
	holidayHTML += '<div style="padding:10px; display:none; background:url('+ imageDomain +'images/AnnouncementBg.jpg) bottom right no-repeat;" id="holidayInfo">';
	
		/* All Content */
		holidayHTML += '<div style="padding-left:49px; line-height:180%; background:url('+ imageDomain +'images/AnnouncementBgSmall.jpg) no-repeat;">';
		holidayHTML += '<!--<div style="padding-bottom:10px;"><b> // </b></div>-->';
		holidayHTML += 'Dear all:<br />';
		holidayHTML += 'Many thanks for your kind support of Citronid. The Chinese Lunar New Year 2012 of the Dragon is starting on Jan 23rd, All we staff wish you Happy Spring Festival! <br />';
		holidayHTML += 'To celebrate the Spring Festival, our company will close for holiday between Jan 18th to 29th. We will not be able to process any order in these days.<br />';
		holidayHTML += '<br />We apologize for any inconvenience, and we thank you ahead for your understanding. <br />';
		holidayHTML += 'Best Regards.<br /><br />';
		//holidayHTML += '<br />';
		//holidayHTML += 'With the vacations, <strong><font color="#FF0000">we will not be able to process any order between Feb 1 to Feb 11</font></strong>.<br />';
		//holidayHTML += '<br />';
		//holidayHTML += 'We apologize for any inconvenience, and we thank you ahead for your understanding.<br />';
		//holidayHTML += '<br />';
		//holidayHTML += '<strong>We very appreciate your business at BuyOnAir. Here with the latest coupons:</strong><br />';
		holidayHTML += '</div>';
		
		
		
		holidayHTML += '<div style="padding:10px 49px 0px 49px;">';
			
			// Coupon
			/*
			// holidayHTML += '<div style="border-bottom:1px dashed #EF3724; font-size:1px; line-height:1px; height:1px; margin:12px 0px;"></div>';
			holidayHTML += '<div style="border:1px dotted #666666; padding:10px;">';
            holidayHTML += 'Get <strong><font color="#FF0000">US$ 5 discount</font></strong> for any purchase over US$ 100.<br />';
            holidayHTML += 'Coupon code: D7E0-D0BE-0E4D-D330<br />';
            holidayHTML += '<br />';
            holidayHTML += 'Get <strong><font color="#FF0000">US$ 10 discount</font></strong> for any purchase over US$ 200.<br />';
            holidayHTML += 'Coupon code: 257B-C306-9482-6D0B<br />';
            holidayHTML += '<br />';
            holidayHTML += 'Get <strong><font color="#FF0000">US$ 15 discount</font></strong> for any purchase over US$ 300.<br />';
            holidayHTML += 'Coupon code: 82FD-C0DB-057F-B43B<br /><br />';
            holidayHTML += 'Note:<br />';
            holidayHTML += '<strong># Please pay  within the effective date from Feb 1st to Feb 11th.</strong><br />';
            holidayHTML += '# Enter coupon code during checkout to get the discount.<br />';
            holidayHTML += '# Order will ship out after Feb. 12th. 2011<br />';
			holidayHTML += '</div>';
			// holidayHTML += '<div style="border-bottom:1px dashed #EF3724; font-size:1px; line-height:1px; height:1px; margin:8px 0px;"></div>';
			holidayHTML += '<br />';
			*/
			holidayHTML += '<div>&raquo; <a href="javascript:void(0);" onclick="view_holiday();"><strong>Show Summary</strong></a></div>';
	
		holidayHTML += '</div>';
		
		
	holidayHTML += '</div>';
	
	
	/* Summary Content */
	holidayHTML += '<div style="padding-left:60px; height:40px; line-height:18px; display:block; background:url('+ imageDomain +'images/AnnouncementBgSmall.jpg) 10px 2px #FFF no-repeat;" id="holiday">';
	holidayHTML += '<div style="margin-right:10px; padding-right:60px; background:url('+ imageDomain +'images/AnnouncementBgSmall.jpg) right no-repeat;"><strong><font color="#000000">';
	holidayHTML += '<div style="line-height:35px;">';
	holidayHTML += 'The Chinese Lunar New Year 2012 of the Dragon is starting on Jan 23rd, All we staff wish you Happy Spring Festival! ';
	holidayHTML += ' &nbsp; &nbsp; &raquo; <a href="javascript:void(0);" onclick="view_holiday();">Show All</a>.</strong>';
	holidayHTML += '</div>';
	holidayHTML += '</div>';
	holidayHTML += '</div>';
	
	
	holidayHTML += '</div></div></div>';

	document.write(holidayHTML);
}


function view_holiday()
{
	var o = document.getElementById('holiday');
	var info = document.getElementById('holidayInfo');
	if (o.style.display == 'block')
	{
		o.style.display = 'none';
		info.style.display = 'block';
	}
	else
	{
		o.style.display = 'block';
		info.style.display = 'none';
	}
}

