function findBrowser()
{
	var i = navigator.userAgent.indexOf("Netscape");
	if(i >= 0)
	{
		return 0;
	}
	else if (window.sidebar) // firefox
	{
		return 0;
	}
	else if(window.opera && window.print)
	{ 
		return 0;
	} 
	else if(document.all)// ie
	{
		return 0;
	}
	else
	{
		return 0;
	}
}

function GetCookie(name) 
{  
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++)
		{
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
}

	  if(findBrowser() == 1)
	  {
	  	var totalitem = 0;
		var subtotal = 0;
		var shcalc = 0;
	
		totalitem = GetCookie("LD_totalitem");
		subtotal =  GetCookie("LD_subTotal");
		shcalc =  GetCookie("LD_shCalc");		
	  }
		
		function shipping_calc()
		{
			if(findBrowser() == 1)
			{
				if(totalitem == null)
				{
					document.write("Purchase additional <span>$100</span> for Free Shipping.");
				}
				else
				{
					var shc = parseFloat("shcalc");
					shc = 100 - shc;
					if(shc > 0)
						document.write("Purchase additional <span>$" + shc.toFixed(2) + "</span> for Free Shipping.");
					else
						document.write("<code style='color: #ff0000; font-family:Verdana, Arial, Helvetica, sans-serif;'>You are qualified for Free Shipping</code>");
				}
			}
		  else
		  {
		  	document.write("Loading... Please wait...");
		  }

	  }
	  
	  function cart_display()
	  {
		  if(findBrowser() == 1)
		  {
		  	if(totalitem == null)
			  document.write("(<span id='LFDCL_ShCart' style='font-size:10px; font-weight:bold; color:#ffffff; background: none;'>00</span>)");
			else
			  document.write("(<span id='LFDCL_ShCart' style='font-size:10px; font-weight:bold; color:#ffffff; background: none;'>" + totalitem + "</span>)");
		  }
		  else
		  	  document.write("(<span id='LFDCL_ShCart' style='font-size:10px; font-weight:bold; color:#ffffff; background: none;'>00</span>)");
	  }
	