function index_items_parser(){
	$.ajax({type: "GET",
			url:"http://www.ttcjmall.com/xml/indexItems.htm",
			dataType:"html",
			success:function(xml){
				var reg = /__br__/g;

				//新品
				var newItemSwitchI=1;
				$(xml).find("newItems>switch>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemDate = $(this).attr('date');
					$('#new_item_main'+newItemSwitchI+'_img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemDate.substr(0,6)+'/new_item_main'+newItemSwitchI+'_'+itemDate+'.jpg');
					$('#new_item_main'+newItemSwitchI+'_img').unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					newItemSwitchI++;
				});

				var newItemStaticI=1;
				$(xml).find("newItems>static>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#newItemStatic'+newItemStaticI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#newItemStatic'+newItemStaticI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#newItemStatic'+newItemStaticI+'Name').html(itemName);
					$('#newItemStatic'+newItemStaticI+'Price').html(itemPrice);
					newItemStaticI++;
				});

				//生活家居
				$(xml).find("lifeItems>main>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemSrc = $(this).text();
					$('#lifeItemMain1Img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemSrc);
					$('#lifeItemMain1').unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
				});	
				
				var lifeItemI=1;
				$(xml).find("lifeItems>ordinary>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#lifeItem'+lifeItemI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#lifeItem'+lifeItemI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#lifeItem'+lifeItemI+'Name').html(itemName);
					$('#lifeItem'+lifeItemI+'Price').html(itemPrice);
					lifeItemI++;
				});

				//美容服饰
				$(xml).find("makeupItems>main>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemSrc = $(this).text();
					$('#makeupItemMain1Img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemSrc);
					$('#makeupItemMain1').unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
				});	
				
				var lifeItemI=1;
				$(xml).find("makeupItems>ordinary>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#makeupItem'+lifeItemI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#makeupItem'+lifeItemI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#makeupItem'+lifeItemI+'Name').html(itemName);
					$('#makeupItem'+lifeItemI+'Price').html(itemPrice);
					lifeItemI++;
				});
      
      			//珠宝饰品
				$(xml).find("jewelryItems>main>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemSrc = $(this).text();
					$('#jewelryItemMain1Img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemSrc);
					$('#jewelryItemMain1').unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
				});	
				
				var jewelryI=1;
				$(xml).find("jewelryItems>ordinary>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#jewelryItem'+jewelryI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#jewelryItem'+jewelryI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#jewelryItem'+jewelryI+'Name').html(itemName);
					$('#jewelryItem'+jewelryI+'Price').html(itemPrice);
					jewelryI++;
				});
      
      			//电脑数码
				$(xml).find("digitalItems>main>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemSrc = $(this).text();
					$('#digitalItemMain1Img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemSrc);
					$('#digitalItemMain1').unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
				});	
				
				var digitalI=1;
				$(xml).find("digitalItems>ordinary>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#digitalItem'+digitalI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#digitalItem'+digitalI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#digitalItem'+digitalI+'Name').html(itemName);
					$('#digitalItem'+digitalI+'Price').html(itemPrice);
					digitalI++;
				});
      
      			//通讯家电
				$(xml).find("communicationItems>main>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemSrc = $(this).text();
					$('#communicationItemMain1Img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemSrc);
					$('#communicationItemMain1').unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
				});	
				
				var communicationI=1;
				$(xml).find("communicationItems>ordinary>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#communicationItem'+communicationI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#communicationItem'+communicationI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#communicationItem'+communicationI+'Name').html(itemName);
					$('#communicationItem'+communicationI+'Price').html(itemPrice);
					communicationI++;
				});
      
      			//健康文化
				$(xml).find("healthItems>main>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemSrc = $(this).text();
					$('#healthItemMain1Img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemSrc);
					$('#healthItemMain1').unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
				});	
				
				var healthI=1;
				$(xml).find("healthItems>ordinary>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#healthItem'+healthI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#healthItem'+healthI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#healthItem'+healthI+'Name').html(itemName);
					$('#healthItem'+healthI+'Price').html(itemPrice);
					healthI++;
				});

				//健康文化
				var popMainI=1;
				$(xml).find("popItems>main>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemSrc = $(this).text();
					$('#popItemMain'+popMainI+'Img').attr('src','http://image.ttcjmall.com/images/zh/main/'+itemSrc);
					$('#popItemMain'+popMainI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					popMainI++;
				});	
				
				var popI=1;
				$(xml).find("popItems>ordinary>item").each(function(){
					var itemCode = $(this).attr('itemCode');
					var itemName = $(this).text().replace(reg,'<br/>');
					var itemPrice = $(this).attr('price')+' 元';
					$('#popItem'+popI).unbind('click').removeAttr('onclick').click(function(){goItemDetail(itemCode);});
					$('#popItem'+popI+'Img').attr('src','http://image.ttcjmall.com/item_images/'+itemCode.substr(4,6)+'/'+itemCode+'S1.jpg');
					$('#popItem'+popI+'Name').html(itemName);
					$('#popItem'+popI+'Price').html(itemPrice);
					popI++;
				});
			}
	});
}

