
	function liveTrack()
	{
		// URL string builder
		function stB(A,B)
		{
			(B!="")?(lt_tagURL+="&"+A+"="+(B)):lt_tagURL;  
		} 
		
		// unique reference for image so image doesnt get cached 
		function uID()
		{
			var d			= new Date()
			var rnumA		= Math.random();
			var rnumB		= Math.random();
			var numA		= Math.round(rnumA * 10000000000000/(rnumA+rnumB));
			var numB		= d.getHours();
			var numC		= d.getSeconds();
			return numA+""+numB+""+numC
		}
		
		var lt_referrer		= "" //document.referrer;
		var lt_nowURL		= document.URL;
		var lt_title		= document.title.replace(/ /g,"+");
		// tag information		
		var lt_SiteID		= (typeof(siteID)=="string"?siteID:"").replace(/ /g,"+");			//"flybmi.com (UK)";
		var lt_ver			= "1";
		
		var lt_tagURL = "http"+(lt_nowURL.indexOf('https:')>-1?'s':'')+"://www.flybmi.com/liveTrack/image.aspx?" ;
		stB("rui", typeof(refPage)== "string"?refPage:lt_referrer);
		stB("pri", typeof(price)== "string"?price:"");
		stB("ccy", typeof(currency)== "string"?currency:"");
		stB("pro", typeof(product)== "string"?product:"");
		stB("qty", typeof(quantity)== "string"?quantity:"");
		stB("dt", typeof(dates)== "string"?dates:"");
		stB("cam", typeof(campaign)== "string"?campaign:"");
		stB("cla", typeof(prodClass)== "string"?prodClass:"");		
		stB("ti", typeof(title)== "string"?title:lt_title);	
		stB("rui",lt_referrer);
		stB("uid",uID());
		stB("sid",lt_SiteID.replace(/ /g,"+"));
		stB("vn",lt_ver);
		stB("js","yes");
		stB("ui",lt_nowURL.replace(/ /g,"+"));
	
		var img = new Image();
		//alert(refPage);
		document.write("<img id='LiveTrackImage' src='"+lt_tagURL+"' alt='&nbsp;&nbsp;' height='1' width='1' />");
	}