jQuery.fn.simpleContentSorting=function(a){var b={sortingList:".sortingList",effect:"show"};var c=this;return this.each(function(){if(a){$.extend(b,a)}if($.fn.selectBox){c.selectBox({autoWidth:false}).focus(function(a){}).blur(function(a){}).change(function d(a){$(b.sortingList+" li").hide();var c=$(this).val();$(b.sortingList+" li").each(function(a){curListItem=$(this);temp=$(this).attr("filterA");temp=temp.split(",");for(var d=0,e=temp.length;d<e;++d){if(temp[d]==c){if(b.effect=="show"){curListItem.show()}else if(b.effect=="fadeIn"){curListItem.fadeIn(500)}else{curListItem.show()}}}});if(c=="all"){if(b.effect=="show"){$(b.sortingList+" li").show()}else if(b.effect=="fadeIn"){$(b.sortingList+" li").fadeIn()}else{$(b.sortingList+" li").show()}}})}else{c.change(function(){$(b.sortingList+" li").hide();var a=$(this).val();$(b.sortingList+" li").each(function(c){curListItem=$(this);temp=$(this).attr("filterA");temp=temp.split(",");for(var d=0,e=temp.length;d<e;++d){if(temp[d]==a){if(b.effect=="show"){curListItem.show()}else if(b.effect=="fadeIn"){curListItem.fadeIn(500)}else{curListItem.show()}}}});if(a=="all"){if(b.effect=="show"){$(b.sortingList+" li").show()}else if(b.effect=="fadeIn"){$(b.sortingList+" li").fadeIn()}else{$(b.sortingList+" li").show()}}})}return this})}
