/*This file contains the static HTML called from a script tag in NetSuite's "Footer Template" field of the "Trinet" themehttps://system.netsuite.com/app/site/setup/sitethemes.nl<script type="text/javascript" language="javascript" src="https://system.netsuite.com/c." + nsCompId + "/site/includes/ns_footer.js"></script>*/var pageHeightMin = 357;var pageHeight = pageHeightMin + 148;var redisplayDivBody = true;document.write('<table width="100%" cellpadding="0" cellspacing="0" border="0"> \	<tr> \		<td valign="top"><table width="0" border="0" cellpadding="0" cellspacing="0" id="footer"> \				<tr> \					<td><table width="0" border="0" cellpadding="0" cellspacing="0" id="bottomNav"> \							<tr> \								<td><a href="http://superfocus.com/FAQs">FAQs</a> | <a href="http://superfocus.com/Policies">Policies</a> | <a href="http://superfocus.com/About-Us">About Us</a> | <a href="http://superfocus.com/privacy-statement">Privacy Statement</a> | <a href="http://superfocus.com/contact-us">Contact Us</a></td> \							</tr> \							<tr> \							<td>&nbsp;</td> \							</tr> \							<tr> \							<td>Copyright © 2010 Superfocus. All Rights Reserved.</td> \							</tr> \						</table> \					</td> \				</tr> \			</table> \		</td> \	</tr> \</table>');var myPagePath = window.location.pathname;var myPageQueryString = window.location.search.substring(1);var myMarginTop = 0;var myMarginLeft = 0;function updateDivPosition(winFirefoxTop, winFirefoxLeft, winIeTop, winIeLeft, macFirefoxTop, macFirefoxLeft, macIeTop, macIeLeft, macSafariTop, macSafariLeft) {	// Use the first 2 parameters as the default in case the others are entered as empty string.	myMarginTop = winFirefoxTop;	myMarginLeft = winFirefoxLeft;		// Windows browsers	if (browser.isWin) {		if (browser.isIE) {			if (winIeTop != '') myMarginTop = winIeTop;			if (winIeLeft != '') myMarginLeft = winIeLeft;		}	}		// Mac browsers	else if (browser.isMac) {		if (browser.isFirefox) {			if (macFirefoxTop != '') myMarginTop = macFirefoxTop;			if (macFirefoxLeft != '') myMarginLeft = macFirefoxLeft;		}		else if (browser.isIE) {			if (macIeTop != '') myMarginTop = macIeTop;			if (macIeLeft != '') myMarginLeft = macIeLeft;		}		else if (browser.isSafari) {			if (macSafariTop != '') myMarginTop = macSafariTop;			if (macSafariLeft != '') myMarginLeft = macSafariLeft;		}	}}// Moved the following block of code from ns_header.js so that elements generated by NetSuite can be accessed// after they come into existence.var hideUnnecessaryLinks = true;if (hideUnnecessaryLinks) {		// Customer profile pages: Hide shopping cart options	if (myPagePath.indexOf("custprofile.nl") != -1) {		var firstTD = '';		var myTDs = document.getElementById('div__body').getElementsByTagName('td');		for (var i = 0; i < myTDs.length; i++) {			tdWidth = myTDs[i].getAttribute("width");			if (firstTD == '' && tdWidth == '160') {				firstTD = myTDs[i].innerHTML;			}		}				// Exclude the cart options column.		document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace(firstTD, "");				// Add a close button to every page.		document.getElementById('div__body').innerHTML += '<div align="right" style="padding:0 15px 0 0;"><input type="button" class="nlbutton" name="exit_profile" value="Exit Profile" onclick="parent.close()" /></div>';				// Replace "Enter New Shipping Address" with "Update Your Profile"		document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace(/Enter New Shipping Address/g, 'Update Your Profile');				// Replace "Choose Shipping Address" with "Update Your Profile"		document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace(/Choose Shipping Address/g, 'Update Your Profile');				// Replace "Choose Billing Address" with "Update Your Profile"		document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace(/Choose Billing Address/g, 'Update Your Profile');				// Replace "Your Shipping and Billing Address" with "Your Shipping Address"		document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace(/Your Shipping and Billing Address/g, 'Your Shipping Address');				// Remove "Edit Billing Address" option.		if (document.getElementById('billingaddress')) document.getElementById('billingaddress').style.display = 'none';				// Replace "New Shipping" with "Your Profile"		document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace(/New Shipping/g, 'Your Profile');				// Replace "Shipping" with "Profile"		document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace(/Shipping/g, 'Profile');				// Update the width of the content area and center.		document.getElementById('div__body').innerHTML = '<div align="center"><br />' + document.getElementById('div__body').innerHTML.replace(/width="100%"/g, 'width="400"') + '<br /><br /></div>';				// Hide the "This address is also my billing address" checkbox		if (document.getElementById('defaultbilling_fs')) document.getElementById('defaultbilling_fs').style.display = 'none';		if (document.getElementById('defaultbilling_fs_lbl')) document.getElementById('defaultbilling_fs_lbl').style.display = 'none';				// Hide "Payment information is incomplete" and "Payment Method"		if (document.getElementById('submitter') && document.getElementById('submitter').value == "Finished") {			document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace('class="pic"', 'class="hideMe"');			document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace('class="checkoutwarning"', 'class="hideMe"');			document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace('Payment information is incomplete', '&nbsp;');			document.getElementById('div__body').innerHTML = document.getElementById('div__body').innerHTML.replace('/images/icons/store/icon_exclamation2c.gif', '/c.' + nsCompId + '/site/images/clear.gif');			if (document.getElementById('paymentmethodtable')) document.getElementById('paymentmethodtable').style.display = 'none';		}				// Hide Shipping Method note, "Your available shipping methods cannot be determined until you have placed one or more items into your cart."		if (document.getElementById('shippingmethodtable')) document.getElementById('shippingmethodtable').style.display = 'none';	}			// Account options page	else if (myPagePath.indexOf("nlvisitor.nl") != -1) {		redisplayDivBody = false;				// Redirect to main profile page.		window.location.href = '/app/common/entity/custprofile.nl?category=billing&sc=4';	}			// Login pages	else if (myPagePath.indexOf("s.nl") != -1) {		var myTargetNameValueLogin = 'login';		var myTargetNameValueResultLogin = getQueryStringValue(myTargetNameValueLogin);				var myTargetNameValuePwRet = 'passwdret';		var myTargetNameValueResultPwRet = getQueryStringValue(myTargetNameValuePwRet);				var myTargetNameValuePwRetGet = 'passretget';		var myTargetNameValueResultPwRetGet = getQueryStringValue(myTargetNameValuePwRetGet);				var myTargetNameValueTargetEmail = 'e';		var myTargetNameValueResultTargetEmail = getQueryStringValue(myTargetNameValueTargetEmail);				var myTargetNameValueNewPw = 'newpassword';		var myTargetNameValueResultNewPw = getQueryStringValue(myTargetNameValueNewPw);				// Show the password changed notice		if (myTargetNameValueResultPwRet == 'T' && myTargetNameValueResultNewPw == 'x') {			var pwChangedNotice = '<table cellspacing="0" cellpadding="2" border="0" width="400"> \					<tr> \						<td style="padding: 2px 5px;" class="bglttext"><b>Your password has been changed</b><p>Click Log In to continue</p></td> \					</tr> \					<tr> \						<td><input type="button" onclick="document.location.href=\'/s.nl?c=' + nsCompId + '&sc=4&login=T&ext=T\'; return false;" name="login" id="login" value="Log In" style="" class="bgbutton"/><br /><br /></td> \					</tr> \				</table>';						document.getElementById('div__body').innerHTML = '<div align="center">' + pwChangedNotice + '</div>';		}				// Show the password change form		else if(myTargetNameValueResultPwRet == 'T' && myTargetNameValueResultPwRetGet == 'T') {			var hiddenInputs = '';			var myDebug = '';						var myInputs = document.getElementsByTagName('input');			for (var i = 0; i < myInputs.length; i++) {				inputName = myInputs[i].getAttribute("name");				myDebug += 'name = ' + inputName;								inputValue = myInputs[i].getAttribute("value");				myDebug += ', value = ' + inputValue + ' : ';								if (inputName == 'origsc' ||					inputName == 'c' ||					inputName == 'n' ||					inputName == 'sc' ||					inputName == 'category' ||					inputName == 'id' ||					inputName == 'it' ||					inputName == 'vid' ||					inputName == 'ck' ||					inputName == 'cktime' ||					inputName == 'cart' ||					inputName == 'ext' ||					inputName == 'login' ||					inputName == 'referer' ||					inputName == 'passwdret' ||					inputName == 'cb' ||					inputName == 'dt' ||					inputName == 'e'					) 				{					hiddenInputs += '<input name="' + inputName + '" value="' + inputValue + '" type="hidden">';				}			}						var pwChangeForm = '<form method="post" name="changepassword" id="changepassword" action="/app/site/backend/passwordretrieval.nl"> \					<table cellspacing="0" cellpadding="0" border="0"> \					<tr> \						<td align="left"><br /><span style="color:#1177BC; font-size:18px; font-family:Futura,Arial,Helvetica,sans-serif; font-weight:400;">Superfocus Participating Dispenser Members</span><br /><br /></td> \					</tr> \					<tr><td class="textbold">Change Password</td></tr> \					<tr> \					<td style="padding: 2px 5px;"> \						<table cellspacing="0" cellpadding="1" border="0"> \							<tr> \								<td nowrap="" align="right" class="smalltextnolink">Email Address&nbsp;</td> \								<td class="text">' + myTargetNameValueResultTargetEmail + '</td> \							</tr> \							<tr> \								<td align="right" class="smalltextnolink">Password</td> \								<td><input type="password" value="" size="41" name="newpassword" maxlength="20" class="inputreq"/></td> \							</tr> \							<tr> \								<td align="right" class="smalltextnolink">Re-enter Password</td> \								<td> \									' + hiddenInputs + '<input type="password" value="" size="41" name="newpassword2" maxlength="20" class="inputreq"/> \								</td> \							</tr> \							<tr> \								<td align="right" class="smalltextnolink">New Password Hint&nbsp;&nbsp;&nbsp;</td> \								<td><input type="text" value="" size="41" name="newpasswordhint" maxlength="20" class="input"/></td> \							</tr> \						</table> \					</td> \					</tr> \					<tr> \					<td> \						<table cellspacing="0" cellpadding="3" border="0"> \							<tr> \								<td><input type="submit" name="submitter" id="submitter" value="Change Password" style="" class="bgbutton"/></td> \								<td><input type="button" onclick="document.location.href=\'/s.nl?c=' + nsCompId + '&sc=4&login=T&ext=T\'; return false;" name="cancel" id="cancel" value="Cancel" style="" class="nlbutton"/></td> \							</tr> \						</table> \					</td> \					</tr> \					</table></form>';						document.getElementById('div__body').innerHTML = '<div align="center">' + pwChangeForm + '</div>';		}							// Main login page only:		else if(myTargetNameValueResultLogin == 'T') {			// Updating body div directly instead of floating divs						var myTargetNameValueForgotPw = 'forgotPasswd';			var myTargetNameValueResultForgotPw = getQueryStringValue(myTargetNameValueForgotPw);						var myTargetNameValueEmail = 'forgotPasswd';			var myTargetNameValueResultEmail = getQueryStringValue(myTargetNameValueEmail);									// Show the user message that password change instructions have been emailed.			if(myTargetNameValueResultForgotPw == 'T' && myTargetNameValueResultEmail != '') {				var pwReminderSent = '<table cellspacing="0" cellpadding="2" border="0"> \						<tr> \							<td style="padding: 2px 5px;" class="bglttext"> \								<b>Please check your email</b><p>Instructions for how to change your password have been sent to your email address.  Please check your email now.</p> \							</td> \						</tr> \						<tr> \							<td><input type="button" onclick="document.location.href=\'/s.nl?c=' + nsCompId + '&sc=4&login=T&ext=T\'; return false;" name="cancel" id="cancel" value="Continue" style="" class="bgbutton"/><br/><br/></td> \						</tr> \					</table>';								document.getElementById('div__body').innerHTML = '<div align="center">' + pwReminderSent + '</div>';			}						// Show main login form by default.			else {				var hiddenInputs = '';				var myDebug = '';								var myInputs = document.getElementsByTagName('input');				for (var i = 0; i < myInputs.length; i++) {					inputName = myInputs[i].getAttribute("name");					myDebug += 'name = ' + inputName;										inputValue = myInputs[i].getAttribute("value");					myDebug += ', value = ' + inputValue + ' : ';										if (inputName == 'origsc' ||						inputName == 'c' ||						inputName == 'n' ||						inputName == 'sc' ||						inputName == 'category' ||						inputName == 'id' ||						inputName == 'it' ||						inputName == 'vid' ||						inputName == 'ck' ||						inputName == 'cktime' ||						inputName == 'cart' ||						inputName == 'ext' ||						inputName == 'login' ||						inputName == 'referer' ||						inputName == 'forgotPasswd' ||						inputName == 'viewHint'						) 					{						hiddenInputs += '<input name="' + inputName + '" value="' + inputValue + '" type="hidden">';					}										else if (inputName == 'new' || inputName == 'review') {						hiddenInputs += '<input maxlength="1" name="' + inputName + '" size="1" value="' + inputValue + '" type="hidden">';					}				}				//alert('myDebug = ' + myDebug);								var invalidLoginMsg = '';				var myTargetNameValueIt = 'it';				var myTargetNameValueResultIt = getQueryStringValue(myTargetNameValueIt);				if(myTargetNameValueResultIt == 'A') {					invalidLoginMsg = '<tr> \							<td colspan="2" class="text"><table cellspacing="0" cellpadding="5" border="0"> \									<tr> \										<td class="pic"><img height="12" border="0" width="12" src="/images/icons/store/icon_exclamation2c.gif"/></td><td valign="top" class="checkoutwarning">Incorrect email or password. Please correct your email and password, or <a href="/c.' + nsCompId + '/site/ecp/signup.html">register</a> if you are a new customer.</td> \									</tr> \								</table> \							</td> \							</tr>';				}								var newLoginForm = '<form action="/app/site/backend/customerlogin.nl" id="login" name="login" method="post"/> \						<table cellpadding="0" cellspacing="0" border="0"> \							<tr> \								<td colspan="2" align="left"><br /><span style="color:#1177BC; font-size:18px; font-family:Futura,Arial,Helvetica,sans-serif; font-weight:400;">Superfocus Participating Dispenser Members</span><br /><br /></td> \							</tr> \							' + invalidLoginMsg + '<tr> \								<td nowrap="nowrap" align="left" valign="baseline"><b>Email Address</b>&nbsp;&nbsp;</td> \								<td nowrap="nowrap" valign="baseline"><span id="retemail_fs" style="white-space: nowrap;"><input type="text" id="retemail" name="retemail" size="40" style="ime-mode: disabled;" class="inputreq" maxlength="64" value=""/></span><span valign="middle" class="smallgraytext"> * Required</span></td> \							</tr> \							<tr> \								<td nowrap="nowrap" align="left" valign="baseline"><b>Password</b>&nbsp;&nbsp;</td> \								<td nowrap="nowrap" valign="baseline"><span id="retpwd_fs" style="white-space: nowrap;"><input type="password" id="retpwd" name="retpwd" size="20" class="inputreq" maxlength="20" value=""/></span><span valign="middle" class="smallgraytext"> *</span></td> \							</tr> \							<tr> \								<td class="smalltext">&nbsp;</td> \								<td><a href="#" onclick="if(checkemailvalue(document.forms[\'login\'].elements[\'retemail\'].value, true)) { document.forms[\'login\'].elements[\'forgotPasswd\'].value=\'T\'; document.forms[\'login\'].action=\'/app/site/backend/passwordretrieval.nl\';document.forms[\'login\'].submit(); }">Forgot login/pass?</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Not a member?</b> <a href="/c.' + nsCompId + '/site/ecp/signup.html">Learn more</a></td> \							</tr> \							<tr> \								<td colspan="2"> \									<br /><input type="button" onclick="if(checkmandatoryfields()) document.forms[\'login\'].submit(); return false;return false;" name="submitter" id="submitter" value="Continue" class="bgbutton"/> \									<br /><br />\								</td> \							</tr> \						</table>' + hiddenInputs + '</form>';								document.getElementById('div__body').innerHTML = '<div align="center">' + newLoginForm + '</div>';			}					} // END else if(myTargetNameValueResultLogin == 'T')			} // END else if (myPagePath.indexOf("s.nl") != -1)	} // END if (hideUnnecessaryLinks) {// div__body is initially hidden by styles_ns.css to allow Javascript updates to be made without first displaying the original version.// So now that Javascript has had its opportunity show the div.if (redisplayDivBody && document.getElementById('div__body')) {	document.getElementById('div__body').style.display = 'block';}//if (myPagePath.indexOf("externalleadpage.nl") != -1) {	// Indicate to parent that this page has loaded.	//top.location.hash = '#' + pageHeight;//}
