

var str = window.location.toString();
var isInTech = str.search(/InTechTemplate/i);
var isMicrosite = str.search(/MSTemplate.cfm/i);


if(isInTech < 0  && isMicrosite < 0){
	isISA = 1;
} else {
	isISA = -1;
}

var cartSize = 0;
var cartText = "";
if(cartSize > 0){
    cartText = " ("+cartSize+")";
}
 


	
	
	var URL="/Template.cfm?Section=General_Information&template=/security/login.cfm";
	document.write("<form action=\"" + URL + "\" method=\"post\" name=\"TopLoginForm\" style=\"display:inline;\">");
	document.write("<input type=\"hidden\" name=\"redirect\" value=\"" + window.location + "\">");
	
	if(isISA > 0){
		var hotText="Login &#9660;";
		document.write("<a href=\"javascript:ShowHideLogin()\" id=\"loginlink\" class=\"login\" style=\"padding-right:0px\">" + hotText + "</a>");
		document.write("&nbsp;&nbsp;|&nbsp;&nbsp;<a  style=\"padding-left:0px\" href=\"https://www.isa.org/Template.cfm?Section=Shop_ISA&Template=/Ecommerce/BasketDisplay.cfm\">Shopping Cart"+cartText+"</a>");
 
	} else {
		var hotText="Login";
		document.write("<a href=\"#\" onclick=\"document.TopLoginForm.submit();\" id=\"loginlink\" class=\"login\">" + hotText + "</a>");
	} 



	document.write("</form>"); 


