	function productCookies(productId){

				var productHolder;
				var count=1;
				var lastCookie=false;
				var searchCount=1;
				var match=false;
				while($.cookie('product'+searchCount)!==null)
				{
					if($.cookie('product'+searchCount)==productId)
					{
						match=true;
					}
					searchCount++;
				}
				if(match===false)
				{
					do{
						if($.cookie('product'+count)!==null)
						{
							productHolder=$.cookie('product'+count);
							$.cookie('product'+count, productId);
							productId=productHolder;
							count++;
						}
						else if(lastCookie===false)
						{
							lastCookie=true;
							$.cookie('product'+count, productId);
							count++;
						}
						else
						{
							break;
						} 
					}while(count < 13) 
				}
			};
