$.fn.customSelect0 = function() {
  // define defaults and override with options, if available
  // by extending the default settings, we don't modify the argument
 return this.each(function() {  
 obj = $(this);  
obj.after("<div id=\"selectoptions0\"> </div>");
obj.find('option').each(function(i){ 
  $("#selectoptions0").append("<div id=\"" + $(this).attr("value") + "\" class=\"selectitems0\"><img src=\"" + this.title + "\" /><span>" + $(this).html() + "</span></div>");
});
obj.before("<input type=\"hidden\" value =\"\" name=\"" + this.name + "\" class=\"customselect0\"/><div id=\"iconselect0\">" + this.title + "</div><div id=\"iconselectholder0\"> </div>")
.remove();
$("#iconselect0").click(function(){
$("#iconselectholder0").toggle("slow");});
	$("#iconselectholder0").append( $("#selectoptions0")[0] );
$(".selectitems0").mouseover(function(){
	$(this).addClass("hoverclass0");
});
	$(".selectitems0").mouseout(function(){
	$(this).removeClass("hoverclass0");
	});
	$(".selectitems0").click(function(){
	$(".selectedclass").removeClass("selectedclass0");
	$(this).addClass("selectedclass0");
	var thisselection = $(this).html();
$(".customselect0").val(this.id);
	$("#iconselect0").html(thisselection);
	$("#iconselectholder0").toggle("slow")
	});
    });  
  // do the rest of the plugin, using url and settings
}
