/* BP Promo Banner Levels version 3.2 (March2010) */
/* Now includes the counter setup data */
/* This code was to set the level the special offer banner lands on but now enables two offers in the same banner */

/* Change the following value to the main level for the first promotion (eg. level = 0; (Which is the first entry ie, Digital Photos)) */
/* Enter -1 here to remove the banners and set the space made to the gift list */
level = 1;
/* Change the next value to the sub level for the promotion */
/* !! Please Note if you don't require a sub level enter a negative value eg, -1 */
sub_level = -1;
/* ------------------------------------------------------------------------------ */
/* The following is for double offers (set levels to -1 when only a single offer) */
/* Set for the second offer level and offer details */
doublelevel = -1;
doublesub_level = 0;
/* Set to the .htm of the second offer page */
second_file = 'newsletter_special_offer_FEBPRINT1.htm';
/* ------------------------------------------------------------------------------ */
/* The following is for the counter*/
/* Set the home page counter data here MM/DD/YYYY HH:MM */
TargetDate = "03/08/2010 00:00";
/* Offers with no end date set to true otherwise false */
LimitedOffer = true;






/* Code Follows */
var newsletter_string = '';var newsletter_string2 = '';
BackColor = "palegreen";ForeColor = "black";CountActive = true;CountStepper = -1;LeadingZero = true;
DisplayFormat = "%%D%%&nbsp;&nbsp;&nbsp;%%H%%&nbsp;&nbsp;&nbsp;%%M%%&nbsp;&nbsp;&nbsp;%%S%%";
FinishMessage = "00&nbsp;&nbsp;&nbsp;00&nbsp;&nbsp;&nbsp;00&nbsp;&nbsp;&nbsp;00";
function include_dom(script_filename) {
	var html_doc = document.getElementsByTagName('head').item(0);
	var js = document.createElement('script');
	js.setAttribute('language', 'javascript');
	js.setAttribute('type', 'text/javascript');
	js.setAttribute('src', script_filename);
	html_doc.appendChild(js);
	return false;
}
gift_list = '<table border="0" cellspacing="0" cellpadding="0"><tr>  <td colspan="4"><img src="pages/images/homePage/panels/gifts_top.gif" alt="" width="238" height="56" border="0" usemap="#Map2Map3"><map name="Map2Map3">  <area shape="rect" coords="0,16,122,45" href="pages/photo_gifts.htm?level=1" alt="Photo Gifts" title="Photo Gifts"></map></td></tr><tr>  <td width="3"></td>  <td width="1" bgcolor="#b8d8fa"></td>  <td width="233"><table border="0" cellspacing="0" cellpadding="0"><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/photo_gifts_mugs.htm?level=1" title="Photo Mugs" class="style12" style="margin-left:11px; text-decoration:none;">Photo Mugs</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/canvas-prints.htm?level=4" title="Canvas Prints" class="style12" style="margin-left:10px; text-decoration:none;">Canvas Prints</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/poster-size-prints.htm?level=1" title="Poster Size Prints" class="style12" style="margin-left:10px; text-decoration:none;">Poster Prints</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="http://www.bonusprint.co.uk/pages/acrylic-prints.htm?level=1" title="Acrylic  Prints" class="style12" style="margin-left:10px; text-decoration:none;">Acrylic  Prints</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="http://www.bonusprint.co.uk/pages/aluminium-prints.htm?level=1" title="Aluminium Prints" class="style12" style="margin-left:10px; text-decoration:none;">Aluminium Prints</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/collages.htm?level=1" title="Collages" class="style12" style="margin-left:10px; text-decoration:none;">Collages</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/photo_gifts_mats.htm?level=1" title="Mouse Mats" class="style12" style="margin-left:10px; text-decoration:none;">Mouse Mats</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/photo_gifts_keyrings.htm?level=1" title="Key Rings" class="style12" style="margin-left:10px; text-decoration:none;">Key Rings</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/photo_gifts_fridge_magnet.htm?level=1" title="Fridge Magnets" class="style12" style="margin-left:10px; text-decoration:none;">Fridge Magnets</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/photo_gifts_coaster.htm?level=1" title="Acrylic Coasters" class="style12" style="margin-left:10px; text-decoration:none;">Acrylic Coasters</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="http://www.bonusprint.co.uk/pages/photo_gifts_glass_coaster.htm?level=1" title="Glass Coasters" class="style12" style="margin-left:10px; text-decoration:none;">Glass Coasters</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="http://www.bonusprint.co.uk/pages/photo_gifts_glass_placemats.htm?level=1" title="Glass Place Mats" class="style12" style="margin-left:10px; text-decoration:none;">Glass Place Mats</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/photo_gifts_flash_keyring.htm?level=1" title="Key Ring Torches" class="style12" style="margin-left:10px; text-decoration:none;">Key Ring Torches</a></td></tr><tr>  <td height="1" bgcolor="#f2f2f2"></td></tr><tr>  <td width="233" height="19" onMouseOver="this.bgColor=\'#f0f6fd\'" onMouseOut="this.bgColor=\'#FFFFFF\'" bgcolor="#FFFFFF"><a href="pages/photo_gifts_jigsaw.htm?level=1" title="Photo Jigsaws" class="style12" style="margin-left:10px; text-decoration:none;">Photo Jigsaws</a></td></tr>  </table></td>  <td width="1" bgcolor="#B8D8FA"></td></tr><tr>  <td colspan="4"><img src="pages/images/homePage/panels/gifts_bottom.gif" alt="" width="238" height="25" border="0" usemap="#Map2Map4"><map name="Map2Map4">  <area shape="rect" coords="153,0,221,15" href="pages/photo_gifts.htm?level=1" alt="View All" title="View All"></map></td></tr></table>';
function hidediv(sel_id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(sel_id).style.visibility = 'hidden';
	} else {
		if (document.layers) { // Netscape 4
			document.hideShow.visibility = 'hidden';
		}
		else { // IE 4
			document.all.hideShow.style.visibility = 'hidden';
		}
	}
}
function showdiv(sel_id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(sel_id).style.visibility = 'visible';
	} else {
		if (document.layers) { // Netscape 4
		document.hideShow.visibility = 'visible';
		} else { // IE 4
			document.all.hideShow.style.visibility = 'visible';
		}
	}
} 
function newsletter_level()
{
	if (level>=0) {
		newsletter_string = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="newsletter_special_offer.htm';
		if (sub_level<0) {
			newsletter_string = newsletter_string + '?level=' + level;
		} else {
			newsletter_string = newsletter_string + '?level=' + level + '&sub=' + sub_level;
		};
		if (doublelevel>=0) {
			/* Display Top Half */
			newsletter_string = newsletter_string + '"><img src="images/promo/doubleoffer_top.gif" alt="Special Offer - Learn More" title="Special Offer - Learn More" border="0"></a></td></tr>'
			
			newsletter_string2 = '<tr><td><a href="' + second_file;
		
			if (doublesub_level<0) {
				newsletter_string2 = newsletter_string2 + '?level=' + doublelevel;
			} else {
				newsletter_string2 = newsletter_string2 + '?level=' + doublelevel + '&sub=' + doublesub_level;
			};
			/* Display Bottom Half */
			newsletter_string2 = newsletter_string2 + '"><img src="images/promo/doubleoffer_bottom.gif" alt="Special Offer - Learn More" title="Special Offer - Learn More" border="0"></a></td></tr>';
		} else {
			/* Display Single */
			newsletter_string = newsletter_string + '"><img src="images/promo/panel_ani.gif" alt="Special Offer - Learn More" title="Special Offer - Learn More" border="0"></a></td></tr>'
		}
		return newsletter_string + newsletter_string2 + '</table><br>';
	} else {
		return '';
	};
};
function newsletter_index_level()
{
	start_table_string = '<table border="0" cellspacing="0" cellpadding="0"><tr><td width="235" height="126">';
	show_newsletter_string = '<img src="pages/images/promo/counter/hp_counter.gif" alt="Special Offer - Learn More" title="Special Offer - Learn More" width="235" height="154"></td></tr><tr><td valign="top">';
	end_table_string = '</td></tr></table>';
	if (level>=0) {
		newsletter_string = '<a href="pages/newsletter_special_offer.htm';
		newsletter_string2 = '"><img src="pages/images/promo/hp_promo_panel1.gif" alt="Special Offer - Learn More" title="Special Offer - Learn More" width="235" height="206" border="0"></a>';
		
		if (LimitedOffer == true) {
			/* Hide the countdown */
			hidediv('promotion1')
			start_table_string = '<table border="0" cellspacing="0" cellpadding="0"><tr><td width="235" height="360">';
			show_newsletter_string = '';
			newsletter_string = '<a href="pages/newsletter_special_offer.htm';
			newsletter_string2 = '"><img src="pages/images/promo/hp_promo_panel2.gif" alt="Special Offer - Learn More" title="Special Offer - Learn More" width="235" height="360" border="0"></a>';
		};
		
		if (sub_level<0) {
			newsletter_string = newsletter_string + '?level=' + level;
		} else {
			newsletter_string = newsletter_string + '?level=' + level + '&sub=' + sub_level;
		};
		
		return start_table_string + show_newsletter_string + newsletter_string + newsletter_string2 + end_table_string;
	} else {
		/* Hide the countdown */
		hidediv('promotion1')
		/* Display the gift list */
		return gift_list;
	};
};