var vFooter="";
vFooter+='<table border="0" cellspacing="0" cellpadding="0" width="100%" >';
vFooter+='	<tr>';
vFooter+='		<td style="text-align:left; background-color:#EEEEEE; padding: 5px 0;">';
vFooter+='			<table border="0" cellpadding="0" cellspacing="0" width="100%">';
vFooter+='				<tr style="text-align:center; height:30px;">';
vFooter+='					<td>';
vFooter+='						<table border="0" cellpadding="0" cellspacing="0" align="left">';
vFooter+='							<tr style="height:15px;">';
vFooter+='					<td style="padding-right: 7px;"><a href="http://www.teacollection.com/live/static/InfoPgs/help/help.htm" style="font:9px Verdana, Arial, Helvetica, sans-serif; color:#636467; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#636467\'">&nbsp;&nbsp;HELP</a></td>';
vFooter+='					<td nowrap="nowrap"  style="color:#4d2615; padding: 0px 10px;"><a href="http://www.teacollection.com/live/static/InfoPgs/help/sizeChart.htm" style="font:9px Verdana, Arial, Helvetica, sans-serif; color:#636467; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#636467\'">SIZE CHART </a></td>';
vFooter+='					<td nowrap="nowrap" style="color:#4d2615; padding: 0px 10px;"><a href="http://www.teacollection.com/help/returns_exchanges.htm" style="font:9px Verdana, Arial, Helvetica, sans-serif; color:#636467; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#636467\'">RETURNS/EXCHANGES</a></td>';
vFooter+='					<td nowrap="nowrap"  style="color:#4d2615; padding: 0px 10px;"><a href="http://www.teacollection.com/live/static/InfoPgs/help/shipping.htm" style="font:9px Verdana, Arial, Helvetica, sans-serif; color:#636467; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#636467\'">SHIPPING INFO </a></td>';
vFooter+='					<td nowrap="nowrap" style="color:#4d2615; padding: 0px 10px;"><a href="http://www.teacollection.com/live/static/InfoPgs/help/trackOrder.htm" style="font:9px Verdana, Arial, Helvetica, sans-serif; color:#636467; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#636467\'">TRACK ORDER </a></td>';
vFooter+='					<td nowrap="nowrap" style="color:#4d2615; padding: 0px 0px 0px 75px; text-align:right;" colspan="5">';
vFooter+='                   	<table border="0" cellpadding="0" cellspacing="0">';
vFooter+='                   		<form action="http://www.elabs6.com/functions/mailing_list.html" method="post" name="UPTml21121" onSubmit="return (!(UPTvalidateform(document.UPTml21121)));"><input type="hidden" name="mlid" value="21121"><input type="hidden" name="siteid" value="12345920"><input type="hidden" name="tagtype" value="q2"><input type="hidden" name="demographics" value="-1,57530"><input type="hidden" name="redirection" value="http://www.teacollection.com/live/thank-you-details.htm?email=<EMAIL_ADDRESS>"><input type="hidden" name="uredirection" value="http://"><input type="hidden" name="welcome" value="on"><input type="hidden" name="double_optin" value=""><input type="hidden" name="append" value=""><input type="hidden" name="update" value=""><input type="hidden" name="val_57530" value="quickform"><input type="hidden" name="activity" value="submit">';
vFooter+='<tr>';
vFooter+='<td><input id="emailField" name="email" onFocus="prefillClear(this);" onBlur="prefillClear(this);" type="text" value="Sign up to stay in touch" size="10" style="width:137px; font:10px Helvetica, Arial, sans-serif; color:#999999;"></td>';
vFooter+='<td style="padding-left:5px;"><input src="/live/images/buttons/btn_subscribe.gif" type="image" /></td>';
vFooter+='</tr>';
// form input prefill clear on focus, and reset on blur (if empty)
function prefillClear(field) {
 if (field.defaultValue==field.value) {field.value = '';}
 else if (field.value == '') {field.value = field.defaultValue;}  
 }
function emailCheck (emailStr) {
var emailPat=/^(.+)@(.+)$/;
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
var validChars="\[^\\s" + specialChars + "\]";
var quotedUser="(\"[^\"]*\")";
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
var atom=validChars + '+';
var word="(" + atom + "|" + quotedUser + ")";
var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
var matchArray=emailStr.match(emailPat);
if (matchArray==null) {
    alert("Email address seems incorrect (check @ and .'s)");
    return false;
}
var user=matchArray[1];
var domain=matchArray[2];
if (user.match(userPat)==null) {
    alert("The username doesn't seem to be valid.");
    return false;
}
var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {
      for (var i=1;i<=4;i++) {
        if (IPArray[i]>255) {
            alert("Destination IP address is invalid!");
        return false;
        }
    }
    return true;
}
var domainArray=domain.match(domainPat);
if (domainArray==null) {
    alert("The domain name doesn't seem to be valid.");
    return false;
}
var atomPat=new RegExp(atom,"g");
var domArr=domain.match(atomPat);
var len=domArr.length;
if ((domArr[domArr.length-1] != "info") &&
    (domArr[domArr.length-1] != "name") &&
    (domArr[domArr.length-1] != "arpa") &&
    (domArr[domArr.length-1] != "coop") &&
    (domArr[domArr.length-1] != "aero")) {
        if (domArr[domArr.length-1].length<2 ||
            domArr[domArr.length-1].length>3) {
                alert("The address must end in a three-letter domain, or two letter country.");
                return false;
        }
}
if (len<2) {
   var errStr="This address is missing a hostname!";
   alert(errStr);
   return false;
}
return true;
}
function UPTvalidateform(thisform)
{
	
	if (emailCheck(thisform.email.value)) 
	{	

        if (document.getElementById('unsubscribe') 
            && !document.getElementById('unsubscribe').checked) {
		    
        } else {
            
        }
		return false;
	}
	else
	{
		return true;
	}
}
vFooter+='</form></table>';
vFooter+='</td>';
vFooter+='</tr>';
vFooter+='				<tr style="height:15px;">';
vFooter+='					<td align="left" nowrap="nowrap" style="color:#4d2615; padding: 0px 5px;" colspan="7"><a href="http://www.teacollection.com/live/static/InfoPgs/help/contactUs.htm" style="font:9px Verdana, Arial, Helvetica, sans-serif; color:#636467; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#636467\'">CONTACT US</a> &nbsp;&nbsp;&nbsp;<span style="font:9px Verdana, Arial, Helvetica, sans-serif; color:#636467; padding: 0px 5px;">M-F, 7am-6pm PST: 866.374.8747</span></td>';
vFooter+='							</tr>';
vFooter+='						</table>';
vFooter+='					</td>';
vFooter+='					<td>';
vFooter+='						<table border="0" cellpadding="0" cellspacing="0" width="20%" align="right">';
vFooter+='							<tr>';
vFooter+='							</tr>';
vFooter+='						</table>';
vFooter+='					</td>';
vFooter+='				</tr>';
vFooter+='			</table>';
vFooter+='		</td>';
vFooter+='	</tr>';
vFooter+='</table>';

vFooter+='	<table border="0" width="800px" cellpadding="0" cellspacing="0">';
vFooter+='			<tr>';
vFooter+='				<td colspan="3" align="center" valign="top">';
vFooter+='					<table border="0" cellspacing="0" cellpadding="0">';
vFooter+='						<tr>';
vFooter+='							<td>';
vFooter+='                   			<!-- Start Main Footer Table -->';
vFooter+='								<table class="mainFooter" align="center" border="0" cellspacing="0" cellpadding="0" width="100%">';
vFooter+='									<tr>';
vFooter+='										<td style="text-align:left; width:400px; padding: 3px 0 25px 0;">';
vFooter+='											<table border="0" cellspacing="0" cellpadding="0">';
vFooter+='												<tr>';
vFooter+='													<td nowrap="nowrap" class="mainFooter" style="padding-right:10px;font:10px Verdana, Arial, Helvetica, sans-serif; color:#DDDDDD;">&copy;2010 teacollection.com</td>';
vFooter+='					                                <td nowrap="nowrap" style="padding:0px 10px;"><a href="http://www.teacollection.com/live/static/InfoPgs/help/privacy.htm" style="font:10px Verdana, Arial, Helvetica, sans-serif; color:#DDDDDD; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#DDDDDD\'">privacy</a></td>';
vFooter+='					                                <td nowrap="nowrap" style="padding:0px 10px;"><a href="http://www.teacollection.com/sitemap.htm" style="font:10px Verdana, Arial, Helvetica, sans-serif; color:#DDDDDD; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#DDDDDD\'">sitemap</a></td>';
vFooter+='					<td nowrap="nowrap" style="padding:0px 10px;"><a href="http://www.teacollection.com/live/static/InfoPgs/aboutUs/about.htm" style="font:bold 10px Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#FFFFFF\'">about us</a></td>';
vFooter+='					<td nowrap="nowrap" style="padding:0px 10px;"><a href="http://www.teacollection.com/live/static/InfoPgs/aboutUs/press.htm" style="font:bold 10px Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#FFFFFF\'">press</a></td>';
vFooter+='					<td nowrap="nowrap" style="padding:0px 10px;"><a href="http://www.teacollection.com/affiliates/affiliate-program.htm" style="font:bold 10px Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#FFFFFF\'">affiliates</a></td>';
vFooter+='					<td nowrap="nowrap" style="padding:0px 10px;"><a href="http://blog.teacollection.com" style="font:bold 10px Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#FFFFFF\'" target="_blank">blog</a></td>';
vFooter+='												</tr>';
vFooter+='											</table>';
vFooter+='									</td>';
vFooter+='									<td style="text-align:right; width:400px; padding: 3px 0 25px 0;"><a href="http://www.teashowroom.com" target="_blank" style="font:10px Verdana, Arial, Helvetica, sans-serif; color:#FFFFFF; text-decoration:none;" onMouseOver="this.style.color=\'#C80000\'" onMouseOut="this.style.color=\'#FFFFFF\'" rel="nofollow">retailer showroom</a></td>';
vFooter+='									</tr>';
if (getParam("location") == "b2c/retail-thankyou.w") {             
vFooter+='									<tr>';
vFooter+='										<td nowrap="nowrap" class="mainFooter" style="text-align:left; padding-right:10px; padding-bottom:10px; color:#DDDDDD;">';
vFooter+='<!-- START SCANALERT CODE -->';
vFooter+='<a target="_blank" href="https://www.mcafeesecure.com/RatingVerify?ref=www.teacollection.com"><img width="65" height="37" border="0" src="//images.scanalert.com/meter/survey/www.teacollection.com/31.gif?recsale=Y" alt="McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams" oncontextmenu="alert(\'Copying Prohibited by Law - McAfee Secure is a Trademark of McAfee, Inc.\'); return false;"></a>';
vFooter+='<!-- END SCANALERT CODE -->'; 
vFooter+='										</td><td>&nbsp;</td><td>&nbsp;</td>';
vFooter+='									</tr>';   
} 
else {
vFooter+='									<tr>';
vFooter+='										<td nowrap="nowrap" class="mainFooter" style="text-align:left; padding-right:10px; padding-bottom:10px; color:#DDDDDD;">';
vFooter+='<!-- START SCANALERT CODE -->';
vFooter+='<a target="_blank" href="https://www.mcafeesecure.com/RatingVerify?ref=www.teacollection.com" rel="nofollow"><img width="65" height="37" border="0" src="//images.scanalert.com/meter/survey/www.teacollection.com/31.gif" alt="McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams" oncontextmenu="alert(\'Copying Prohibited by Law - McAfee Secure is a Trademark of McAfee, Inc.\'); return false;"></a>';
vFooter+='<!-- END SCANALERT CODE -->'; 
vFooter+='										</td><td>&nbsp;</td><td>&nbsp;</td>';
vFooter+='									</tr>';
};
vFooter+='								</table>';
vFooter+='							<!-- End Main Footer Table -->';
vFooter+='       					</td>';
vFooter+='            			</tr>';
vFooter+='					</table>';
vFooter+='				</td>';
vFooter+='			</tr>';
vFooter+='		</table>';
document.write(vFooter);

$(document).ready(function(){
  cartInitialize();
});




