(function(f){f.extend({php:function(d,e){f.ajax({url:d,type:"POST",data:e,dataType:"json",beforeSend:function(){return php.beforeSend()},success:function(c,h){return php.success(c,h)},error:function(c,h,g){return php.error(c,h,g)},complete:function(c,h){return php.complete(c,h)}})}});php={beforeSend:function(){return true},success:function(d,e){for(e=0;e";g+="";f(document.body).append(h);f(document.body).append(g);f("#php-error .php-more").hover(function(){f(this).css("background-color","#fff")},function(){f(this).css("background-color", "#fee")});f("#php-error .php-more").click(function(){f("#php-error .php-content").slideToggle()});f("#php-error .php-more2").click(function(){f("#php-error .php-content").slideToggle();return false});f("#php-error .php-close").click(function(){f("#php-error").fadeOut("fast",function(){f("#php-error").remove()})});f("#php-error .php-close").hover(function(){f(this).css("background-color","#fff")},function(){f(this).css("background-color","#fee")})},complete:function(d,e){return true},addMessage:function(d){var e= d.msg||"",c=d.callback||"defaultCallBack";d=d.params||{};php.messages[c](e,d)},addError:function(d){var e=d.msg||"",c=d.callback||"defaultCallBack";d=d.params||{};php.errors[c](e,d)},addData:function(d){var e=d.callback||"defaultCallBack";php.data[e](d.k,d.v)},evalScript:function(d){d=d.foo||"";eval(d)},data:{defaultCallBack:function(d,e){alert("Server response: "+d+" = "+e)}},messages:{defaultCallBack:function(d,e){alert("Server response message: "+d)}},errors:{defaultCallBack:function(d,e){alert("Server response error: "+ d)}}}})(jQuery);