nction (a) { a.fn.webwidget_rating_simple = function (p) { var p = p || {}; var b = p && p.rating_star_length ? p.rating_star_length : "5"; var c = p && p.rating_function_name ? p.rating_function_name : ""; var e = p && p.rating_initial_value ? p.rating_initial_value : ""; var d = p && p.directory ? p.directory : "/Shared"; var f = ""; var g = a(this); b = parseInt(b); init(); g.next("ul").children("li").hover(function () { $(this).parent().children("li").css({backgroundImage: 'url(' + d + ')',backgroundPosition: '-7px -29px'}); var a = $(this).parent().children("li").index($(this)); $(this).parent().children("li").slice(0, a + 1).css({backgroundImage: 'url(' + d + ')',backgroundPosition: '-7px -55px'}); }, function () {}); g.next("ul").children("li").click(function () { var a = $(this).parent().children("li").index($(this)); f = a + 1; g.val(f); if (c != "") { eval(c + "(" + g.val() + ")") } }); g.next("ul").hover(function () {}, function () { if (f == "") { $(this).children("li").css({backgroundImage: 'url(' + d + ')',backgroundPosition: '-7px -29px'}); } else { $(this).children("li").css({backgroundImage: 'url(' + d + ')',backgroundPosition: '-7px -29px'}); $(this).children("li").slice(0, f).css({backgroundImage: 'url(' + d + ')',backgroundPosition: '-7px -55px'}); } }); function init() { $('
').insertAfter(g); g.css("float", "left"); var a = $("