").addClass("productAjaxLoading").css({"top":$("#productsPanel").position().top,"height":($("#mainContent").height()?$("#mainContent").length:$("#productsPanel").height())+"px","width":$("#productsPanel").width()+"px",}).appendTo("#productsPanel");$("
").addClass("productAjaxLoadingElem").css({"top":$("#productsPanel").position().top+150,"left":"35%",}).html("در حال بارگذاری ...").appendTo("#productsPanel");if(tidIntervar)clearInterval(tidIntervar);tidIntervar=setInterval(function(){if(!$(".productAjaxLoadingElem").length){clearInterval(tidIntervar);tidIntervar=0;return;}$(".productAjaxLoadingElem").toggleClass("ch");},1000);idAjaxFilterConfirm=$.ajax({url: AJAX_URL,type: "POST",cache: true,timeout: 25000,data: par,success: function(data){if(!data)return;if(tidIntervar)clearInterval(tidIntervar);$("#productsPanel").html(data);for(var i=0;i