(function(a){a.fn.filestyle=function(d){var b={width:250};d&&a.extend(b,d);return this.each(function(){var c=this,d=a("<div>").css({width:b.imagewidth+"px",height:b.imageheight+"px",background:"url("+b.image+") 0 0 no-repeat","background-position":"right",display:"inline",position:"absolute",overflow:"hidden"}),e=a('<input class="file">').addClass(a(c).attr("class")).css({display:"inline",width:b.width+"px"});a(c).before(e);a(c).wrap(d);a(c).css({position:"relative",height:b.imageheight+"px",width:b.width+
"px",display:"inline",cursor:"pointer",opacity:"0.0"});a.browser.mozilla?/Win/.test(navigator.platform)?a(c).css("margin-left","-142px"):a(c).css("margin-left","-168px"):a(c).css("margin-left",b.imagewidth-b.width+"px");a(c).bind("change",function(){e.val(a(c).val())})})}})(jQuery);
