function CF_Generic() { this.name = "CF_Generic" this.sizes = undefined; this.initialize(); } CF_Generic.prototype.initialize = function() { this.imageList = new Array("jpeg", "gif", "png", "jpg", "tif"); this.movieList = new Array("mov", "avi", "mpg", "mpeg","mp4", "wmv"); } CF_Generic.prototype.filterImages = function(name) { return ($.inArray(name.toLowerCase(), this.imageList)>-1); } CF_Generic.prototype.filterVideos = function(name) { return ($.inArray(name.toLowerCase(), this.movieList)>-1); } CF_Generic.prototype.filter = function(name) { return true; }