$(function(){ 
			$.ajax({
				url: "/api/data.php",
				data: "feed=feat",
				type: "POST",
				success: function(data){
					var count = 0;									  
					$.each(data.items, function(i,item){
						var image = "";
		   				var block = count%2;
						if(!item.images) image = "http://store.pampenamotorsports.com/media/catalog/product/c/o/comingsoon_4.jpg";
						else image = item.images[0];
						if(block==0) {$('<div class="slideBlock"></div>').appendTo('#images'); }
						// Build DIV layout - Cycle plugin will treat each 'slide' id as a slide
						$('<div id="slide-'+count+'" style="clear:both;"><div class="image"></div><div class="text"></div></div>').appendTo('.slideBlock:last');
						// Attach Image object to the div with the image class within the 'slide' DOM
						$('<img/>').attr("src", image).appendTo('#slide-'+count+' div.image').wrap('<a href="'+item.link+'"></a>');
						// Insert Text Object in to the div with the text class within the 'slide' DOM
						$('<span class="name">'+item.name+'</span>').appendTo('#slide-'+count+' div.text').wrap('<a href="'+item.link+'"></a>');
						// Insert Text Object in to the div with the text class within the 'slide' DOM
						$('<span class="desc">' + item.description + '</span>').appendTo('#slide-' + count + ' div.text');
						// Determine whether item is standard or special pricing and display data accordingly
						if(item.specialprice !=  "0.00") {
							$('<span class="label">List Price:</span><span class="price slash"> $' + item.price + '</span><br />').appendTo('#slide-' + count + ' div.text');
				  $('<span class="label special">Special Price:</span><span class="price special"> $' + item.specialprice + '</span>').appendTo('#slide-' + count + ' div.text');
						}
						else{
							$('<span class="label">List Price:</span><span class="price"> $' + item.price + '</span><br />').appendTo('#slide-' + count + ' div.text');
						}
			  
						// Increment Slide number counter
						count++; 
					}); 
	  
	 
					// Initiate JQuery Cycle plugin for each child DOM of #images
					$('#images').cycle({
						fx:     'scrollDown',
						speed:    600,
						timeout: 6000,
						cleartypeNoBg: true  
					});
				}
			});
		
		});
