twitpic=window.twitpic||{};
(function(g){function h(){i&&jQuery.noConflict();l(twitpic,jQuery)}function l(d,j){var c={base_url:"http://api.twitpic.com/",validate:function(a,b){j.each(b,function(k,e){if(!(e in a))throw"Missing argument "+e+" in TwitPic API call";})},query:function(a,b,k){j.ajax({type:"GET",url:this.base_url+a+".jsonp?callback=?",data:b,dataType:"jsonp",success:function(e){k(e)}})}};d.media={show:function(a,b){c.validate(a,["id"]);c.query("2/media/show",a,b)}};d.users={show:function(a,b){c.validate(a,["username"]);
c.query("2/users/show",a,b)}};d.comments={show:function(a,b){c.validate(a,["media_id","page"]);c.query("2/comments/show",a,b)}};d.place={show:function(a,b){c.validate(a,["id"]);c.query("2/place/show",a,b)}};d.places={show:function(a,b){c.validate(a,["user"]);c.query("2/places/show",a,b)}};d.events={show:function(a,b){c.validate(a,["user"]);c.query("2/events/show",a,b)}};d.event={show:function(a,b){c.validate(a,["id"]);c.query("2/event/show",a,b)}};d.tags={show:function(a,b){c.validate(a,["tag"]);
c.query("2/tags/show",a,b)}}}var i=false;if("jQuery"in g)h();else{i=true;g=document.getElementsByTagName("head")[0];var f=document.createElement("script");f.type="text/javascript";f.src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js";f.onload=h;g.appendChild(f)}})(window);
