function timedBuildProperties(){
	setTimeout('buildProperties()', 3000);
}
buildProperties = function(){
if(readCookie("displayC2C")!=null && readCookie("displayC2C")=="true"){
    	if(json){
    		if(debug)$("body").append("<div id='talismaDebug' style='width:400px;margin:40px;padding:20px;background-color:#c0c0c0;border:1px dashed #000000;font-size:x-small'><p>PROPERTIES PASSED TO TALISMA:</p></div>");
   		
    		if(readCookie(uid)==null)createCookie(uid,json.ctcid,7);
    		
          	talCustProp = buildTalismaProperty(talCustProp, uid, json.ctcid);
          	
        	var count = 1;
        	
        	handsetList = "";
        	handsetIDList = "";
        	planList = "";
        	planIDList = "";
        	additionalList = "";
        	additionalIDList = "";
        	accessoryList = "";
        	accessoryIDList = "";
        	basketTodayCost = 0;
			basketMonthlyCost = 0;
        	if(json.items && json.items.length!=0){
	        	$.each(json.items, function(i,item){			
					if(item.basketItemType == "handset"){
						handsetList += item.basketItemDesc + ";";
						handsetIDList += item.basketItemId + ";";
					}else if(item.basketItemType == "plan"){
						planList += item.basketItemDesc + ";";
						planIDList += item.basketItemId + ";";					
					}else if(item.basketItemType == "additional"){
						additionalList += item.basketItemDesc + ";";
						additionalIDList += item.basketItemId + ";";					
					}else if(item.basketItemType == "accessory"){
						accessoryList += item.basketItemDesc + ";";
						accessoryIDList += item.basketItemId + ";";					
					}
					//talCustProp = buildTalismaProperty(talCustProp, "basketItemId"+count, item.basketItemId);
					//talCustProp = buildTalismaProperty(talCustProp, "basketItemType"+count, item.basketItemType);
					//talCustProp = buildTalismaProperty(talCustProp, "basketItemDesc"+count, item.basketItemDesc);
					//count++;
				});
			}
			
			if(handsetList != ""){
				talCustProp = buildTalismaProperty(talCustProp, "handsetList", handsetList);
				talCustProp = buildTalismaProperty(talCustProp, "handsetIDList", handsetIDList);
			}
			if(planList != ""){
				talCustProp = buildTalismaProperty(talCustProp, "planList", planList);
				talCustProp = buildTalismaProperty(talCustProp, "planIDList", planIDList);
			}
			if(additionalList != ""){
				talCustProp = buildTalismaProperty(talCustProp, "additionalList", additionalList);
				talCustProp = buildTalismaProperty(talCustProp, "additionalIDList", additionalIDList);
			}
			if(accessoryList != ""){
				talCustProp = buildTalismaProperty(talCustProp, "accessoryList", accessoryList);
				talCustProp = buildTalismaProperty(talCustProp, "accessoryIDList", accessoryIDList);
			}
															
			if(json.journeyType)talCustProp = buildTalismaProperty(talCustProp, "journeyType", json.journeyType);

			if(json.basketTotal != "0.0" && json.basketTotal != ""){
				if($("#totalNowCostVal")){
					basketTodayCost = parseFloat(json.basketTotal) + parseFloat($("#totalNowCostVal").html());				
				} else {
					basketTodayCost = parseFloat(json.basketTotal);				
				}
			}else{
				if($("#totalNowCostVal")){
					basketTodayCost = $("#totalNowCostVal").html();
				}
			}
			if(json.basketMonthlyTotal != "0.0" && json.basketMonthlyTotal != ""){
				if($("#monthlyCostVal")){
        			basketMonthlyCost = parseFloat(json.basketMonthlyTotal) + parseFloat($("#monthlyCostVal").html());     
				} else {
        			basketMonthlyCost = parseFloat(json.basketMonthlyTotal);     				
				}
			} else {
				if($("#monthlyCostVal")){
					basketMonthlyCost = $("#monthlyCostVal").html();
				}
			}
			
			if(basketTodayCost) talCustProp = buildTalismaProperty(talCustProp, basketTotalParam, basketTodayCost.toString());

			if(basketMonthlyCost) talCustProp = buildTalismaProperty(talCustProp, basketMonthlyParam, basketMonthlyCost.toString());
			
    	}
    	createElement();
}
}
