function loadmore(){
"use strict";
var size_li=jQuery(".woosale .products li").size();
var size_li_new=jQuery(".woonew .products li").size();
var size_li_best=jQuery(".woobest .products li").size();
var size_li_feature=jQuery(".woofeature .products li").size();
var counter=parseInt(php_var.tmpmela_loadmore);
var x=10;
var y=10;
var z=10;
var a=10;
jQuery('.woosale .products li:lt(' + x + ')').css('display', 'inline-block');
jQuery('.woonew .products li:lt(' + y + ')').css('display', 'inline-block');
jQuery('.woobest .products li:lt(' + z + ')').css('display', 'inline-block');
jQuery('.woofeature .products li:lt(' + a + ')').css('display', 'inline-block');
jQuery('.woosale .woocount').on("click", function (){
if(x==size_li){
jQuery('.woosale .woocount').hide();
jQuery('.woosale .tmpmela-message').show();
}else{
x=(x + counter <=size_li) ? x + counter:size_li;
jQuery('.woosale .products li:lt(' + x + ')').css('display', 'inline-block');
}});
jQuery('.woonew .woocount').on("click", function (){
if(y==size_li_new){
jQuery('.woonew .woocount').hide();
jQuery('.woonew .tmpmela-message').show();
}else{
y=(y + counter <=size_li_new) ? y + counter:size_li_new;
jQuery('.woonew .products li:lt(' + y + ')').css('display', 'inline-block');
}});
jQuery('.woobest .woocount').on("click", function (){
if(z==size_li_best){
jQuery('.woobest .woocount').hide();
jQuery('.woobest .tmpmela-message').show();
}else{
z=(z + counter <=size_li_best) ? z + counter:size_li_best;
jQuery('.woobest .products li:lt(' + z + ')').css('display', 'inline-block');
}});
jQuery('.woofeature .woocount').on("click", function (){
if(a==size_li_feature){
jQuery('.woofeature .woocount').hide();
jQuery('.woofeature .tmpmela-message').show();
}else{
a=(a + counter <=size_li_feature) ? a + counter:size_li_feature;
jQuery('.woofeature .products li:lt(' + a + ')').css('display', 'inline-block');
}});
}
jQuery(document).ready(function (){
"use strict";
loadmore()
});
jQuery(window).resize(function (){
"use strict";
loadmore()
});