');PageIndex++;url=url+'?pageIndex='+PageIndex;var width=jQuery(window).width();var twoItem=false;if(width>642&&width<959){url=url+'&count=2';twoItem=true;}else{url=url+'&count=3';}
jQuery.get(url,function(data){var filtered=jQuery(data);filtered.imagesLoaded(function(){filtered.find('.isotope-alt-image').each(function(){jQuery(this).hoverdir();});jQuery('.portfolio').isotope('insert',filtered).isotope('reLayout');if(twoItem==true){if(PageIndex>=17){jQuery('#load-more').fadeOut();}}
else{if(PageIndex>=12){jQuery('#load-more').fadeOut();}}
jQuery('#load-more').html('Daha Fazla Göster');jQuery('.loadEn').html('Show More');});if(width<630){jQuery('body,html').animate({scrollTop:jQuery("#q")[0].scrollHeight+600},800);}
if(width>642&&width<767){jQuery('body,html').animate({scrollTop:jQuery("#q")[0].scrollHeight+500},800);}
if(width>770&&width<959){jQuery('body,html').animate({scrollTop:jQuery("#q")[0].scrollHeight+500},800);}
if(width>965){jQuery('body,html').animate({scrollTop:jQuery("#q")[0].scrollHeight+300},800);}});return false;});jQuery(window).trigger('resize');});