/*
 * by Petko D. Petkov; pdp (architect), based on Michael Geary JSON plugin (http://mg.to/2006/01/25/json-for-jquery).
 * http://www.gnucitizen.org
 * http://www.gnucitizen.org/projects/jquery-include/
 */
jQuery.extend({jsonCallbacks:{},jsonLoad:function(a){var b=document.createElement('script');b.type='text/javascript';b.src=a;jQuery('head',document).append(b)},json:function(b,c){var d=(new Date).getTime();var f='json_'+d;window[f]=jQuery.jsonCallbacks[d]=function(){var a=arguments;delete jQuery.jsonCallbacks[d];try{delete window[f]}catch(e){}c.apply(c,a)};return jQuery.jsonLoad(b.replace(/{callback}/,f))}});jQuery.extend(jQuery.fn,{json:function(b,c){var d=this;var f=(new Date).getTime();var g='json_'+f;window[g]=jQuery.jsonCallbacks[f]=function(){var a=arguments;delete jQuery.jsonCallbacks[f];try{delete window[g]}catch(e){}d.each(function(){c.apply(c,a)})};return jQuery.jsonLoad(b.replace(/{callback}/,g))}});