767) {
if (photoCount%4==0) {
$('
').insertAfter(this);
}
} else {
if (photoCount%2==0) {
$('
').insertAfter(this);
}
}
photoCount++;
});
$(window).resize(function() {
$(".findClear").remove();
photoCount = 1;
$(".photoGalleryPhoto").each(function() {
screenWidth = $(window).width();
if (screenWidth > 767) {
if (photoCount%4==0) {
$('
').insertAfter(this);
}
} else {
if (photoCount%2==0) {
$('
').insertAfter(this);
}
}
photoCount++;
});
});
});