jQuery.fn.createListPagings=function(){var a=this;var b=a.attr("id");var c=1;jQuery("#"+b).prepend('<li class="paging"><div id="prodPager'+b+'"></div></li>');jQuery("#"+b+' > li:not(".header"):not(".footer"):not(".paging")').each(function(){jQuery(this).addClass("not_active");jQuery(this).removeClass("active");if(c==1){className="active"}else{className=""}jQuery("#prodPager"+b).append('<a href="javascript: void(\'\');" id="a'+b+c+'" class="'+className+'" onClick="toggleActiveProduct('+c+", '"+b+"'); \"> "+(c++)+" </a>")});jQuery("#"+b+' > li:has(".first")').each(function(){jQuery(this).addClass("active");jQuery(this).removeClass("not_active")});jQuery("#"+b+" > li.paging").each(function(){jQuery(this).css("display","block")});return this};function toggleActiveProduct(a,b){var c=1;jQuery("#"+b+' > li:not(".header"):not(".footer"):not(".paging")').each(function(){if(c==a){jQuery(this).addClass("active");jQuery(this).removeClass("not_active");jQuery("#a"+b+c).addClass("active");jQuery(this).css("display","block")}else{jQuery(this).css("display","none");jQuery(this).addClass("not_active");jQuery(this).removeClass("active");jQuery("#a"+b+c).removeClass("active")}c++})}jQuery.fn.acceptOnlyFloats=function(){jQuery(this).change(function(){var b=jQuery(this).val();b=b.replace(/[^0-9.,]*/g,"");b=b.replace(/[,]/g,".");b=b.replace(".","u");b=b.replace(/[.]/g,"");b=b.replace("u",".");while(((b[0]=="0")&&(b[1]!="."))&&((b[0]=="0")&&(b[1]!=null))){b=b.substring(1,b.length)}var a=0;while(b.indexOf(".")!=-1&&b.length>0&&b[b.length-a-1]=="0"&&b[b.length-a-2]!="."){++a}if(a>0){b=b.substring(0,b.length-a)}if(b[0]=="."){b="0"+b}jQuery(this).val(b)})};
