function highlight(a){a.focus();a.select()}var recorder_saved_html="";var media_type;function disableme(a){a=document.getElementById(a);a.disabled=true;a.value="uploading..."}function showoptions(c){var a=($("#c").val()=="")?false:true;var b=c.value.substr(c.value.length-3,3).toLowerCase();media_type="";switch(b){case"ico":case"jpg":case"peg":case"png":case"gif":case"bmp":case"tif":case"iff":media_type="image";case"flv":case"mp4":case"wmv":case"3gp":case"avi":case"mov":case"mkv":media_type=(media_type!="image")?"video":"image";var d=document.getElementById("upload-options-resizing");if(media_type=="video"){if(!get("toggle1").checked){get("upform").action="videoupload.php"}hide("resizeoptions");d.style.color="#BBBBBB"}else{d.style.color="#003399"}hide("filetypeerror");document.getElementById("butan").disabled=false;break;case"swf":if(a){document.getElementById("butan").disabled=true;show("filetypeerror")}else{hide("filetypeerror");document.getElementById("butan").disabled=false}break;case"pdf":hide("resizeoptions");hide("filetypeerror");document.getElementById("butan").disabled=false;break;case"":document.getElementById("butan").disabled=true;default:hide("resizeoptions");show("filetypeerror");document.getElementById("butan").disabled=true;break}}var cur_toggle=0;function showUploader(a){if(a){$("#fsUploadProgress, #uploadbox_header, #uploadbox_footer, #btnCancel").show()}else{$("#fsUploadProgress, #uploadbox_header, #uploadbox_footer, #btnCancel").hide()}}function toggleuploadmode(b){document.getElementById("butan").value="host it!";document.getElementById("butan").disabled=false;document.getElementById("toggle"+b).checked=true;cur_toggle=b;switch(b){case 0:hide("upurl");hide("upvideo");hide("swfbutan");hide("recorder");hide("snapshot");$("#SWFUpload_0").width(0).height(0);showUploader(false);show("regtags");show("butan_wrap");get("upform").action=$("#actionman").val();show("butan");show("filetypeallowed");show("upfile","block");break;case 1:hide("upfile");hide("upvideo");$("#SWFUpload_0").width(0).height(0);showUploader(false);show("upurl","block");show("regtags");show("butan_wrap");show("butan");hide("swfbutan");get("upform").action="http://post.imageshack.us/transload.php";hide("recorder");show("filetypeallowed");hide("snapshot");get("transurl").disabled=false;if(get("snapurl")){get("snapurl").disabled=true}break;case 2:hide("upfile");hide("upurl");$("#SWFUpload_0").width(0).height(0);showUploader(false);show("upvideo","block");hide("regtags");hide("butan");hide("butan_wrap");hide("swfbutan");hide("recorder");show("filetypeallowed");hide("snapshot");break;case 3:hide("upfile");hide("upurl");hide("upvideo");if(total_filesize>0){showUploader(true)}$("#fsUploadProgress").show();$("#SWFUpload_0").height("").width("");show("regtags");hide("butan");hide("butan_wrap");show("swfbutan");hide("recorder");show("filetypeallowed");hide("snapshot");break;case 4:hide("upfile","block");hide("upurl");hide("upvideo");showUploader(false);hide("regtags");hide("butan_wrap");get("upform").action=$("#actionman").val();hide("butan");hide("swfbutan");show("recorder");hide("filetypeallowed");hide("snapshot");break;case 5:hide("upfile");hide("upurl");hide("upvideo");showUploader(false);hide("regtags");show("butan_wrap");show("butan");hide("swfbutan");hide("recorder");hide("filetypeallowed");show("snapshot");get("transurl").disabled=true;get("snapurl").disabled=false;document.getElementById("upform").action="http://imageshack.us/snapshot.php";break;case 6:showUploader(false);$("#webcam_dialog").dialog("open");if(navigator.userAgent.indexOf("Mac")>0){var a=parseInt($("#webcam_dialog").parent().css("left"));if(a>150){$("#webcam_dialog").parent().css("left",(a-150)+"px")}}recorder_saved_html=$("#webcam_dialog").html();record_init();break}}function toggleuploadmode2(a){if(a){show("upfile");hide("upzip");document.getElementById("upform").action="http://imageshack.us/index.php"}else{hide("upfile");show("upzip");document.getElementById("upform").action="http://imageshack.us/ie.php"}}function focusfield(a){if(a.value=="Paste image url here"){a.value="";a.style.color="black"}}function checkemail(){var d=document.getElementById("email-optional");if(d){focusoption(d)}d=document.getElementById("tags");if(d){focusoption(d)}ex_url=document.getElementById("transurl");if(ex_url){focusoption(ex_url)}if(get("toggle5")&&get("toggle5").checked){var c=get("snapurl").value;if(c==""||c=="paste website url here"){alert("Please enter website address");return false}disableme("butan");return true}var f=document.getElementById("email-optional");if(!f){disableme("butan");return true}var b=f.value;if(b.length==0){disableme("butan");return true}var e=/^[^@]+@(([a-zA-Z0-9\-])+\.)+([a-zA-Z]{2,4})+$/;var a=e.test(b);if(!a){alert("Please enter valid email address");return false}disableme("butan");return true}function opentags(){show("addtags");hide("autoreg")}function openemail(){show("autoreg");hide("addtags")}function show(c,a){var b=document.getElementById(c);if(b){b.style.display=a||""}}function show(b){var a=document.getElementById(b);if(a){a.style.display=""}}function hide(b){var a=document.getElementById(b);if(a){a.style.display="none"}}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();var FlashDetect=new function(){var a=this;a.installed=false;a.raw="";a.major=-1;a.minor=-1;a.revision=-1;a.revisionStr="";var b=[{name:"ShockwaveFlash.ShockwaveFlash.7",version:function(h){return d(h)}},{name:"ShockwaveFlash.ShockwaveFlash.6",version:function(k){var h="6,0,21";try{k.AllowScriptAccess="always";h=d(k)}catch(j){}return h}},{name:"ShockwaveFlash.ShockwaveFlash",version:function(h){return d(h)}}];var d=function(k){var h=-1;try{h=k.GetVariable("$version")}catch(j){}return h};var g=function(h){var k=-1;try{k=new ActiveXObject(h)}catch(j){k={activeXError:true}}return k};var c=function(j){var h=j.split(",");return{raw:j,major:parseInt(h[0].split(" ")[1],10),minor:parseInt(h[1],10),revision:parseInt(h[2],10),revisionStr:h[2]}};var f=function(l){var j=l.split(/ +/);var k=j[2].split(/\./);var h=j[3];return{raw:l,major:parseInt(k[0],10),minor:parseInt(k[1],10),revisionStr:h,revision:e(h)}};var e=function(h){return parseInt(h.replace(/[a-zA-Z]/g,""),10)||a.revision};a.majorAtLeast=function(h){return a.major>=h};a.minorAtLeast=function(h){return a.minor>=h};a.revisionAtLeast=function(h){return a.revision>=h};a.versionAtLeast=function(j){var k=[a.major,a.minor,a.revision];var h=Math.min(k.length,arguments.length);for(i=0;i<h;i++){if(k[i]>=arguments[i]){if(i+1<h&&k[i]==arguments[i]){continue}else{return true}}else{return false}}};a.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var l="application/x-shockwave-flash";var k=navigator.mimeTypes;if(k&&k[l]&&k[l].enabledPlugin&&k[l].enabledPlugin.description){var h=k[l].enabledPlugin.description;var m=f(h);a.raw=m.raw;a.major=m.major;a.minor=m.minor;a.revisionStr=m.revisionStr;a.revision=m.revision;a.installed=true}}else{if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){var h=-1;for(var j=0;j<b.length&&h==-1;j++){var n=g(b[j].name);if(!n.activeXError){a.installed=true;h=b[j].version(n);if(h!=-1){var m=c(h);a.raw=m.raw;a.major=m.major;a.minor=m.minor;a.revision=m.revision;a.revisionStr=m.revisionStr}}}}}}()};FlashDetect.JS_RELEASE="1.0.4";var always_opt=get_cookie("always_opt");if(always_opt&&always_opt!="-1"&&always_opt!="resample"){show("resizeoptions")}if(cur_toggle==0&&$("#no_multi").val()!="1"){if(!FlashDetect.installed){location.href="http://imageshack.us/?no_multi=1"}if(!DetectFlashVer(10,1,0)&&BrowserDetect.OS!="Linux"){$("#oldflash_hack").css("display","block");$("#uploadform").css("margin-top","0px")}}function toggle_upload_options(){if(media_type=="video"){return}if($("#resizeoptions").css("display")=="none"){show("resizeoptions")}else{hide("resizeoptions")}}$(document).ready(function(){$("#webcam_dialog").dialog({closeOnEscape:false,beforeclose:function(b,a){$("#webcam_dialog").html('<div id="recorder"></div>');if($("#no_multi").val()=="1"){toggleuploadmode(0)}else{toggleuploadmode(3)}},draggable:false,autoOpen:false,modal:true,resizable:false,width:510,height:420,open:function(){$(".ads").hide();$(".flash").hide()},close:function(){$(".ads").show();$(".flash").show();$("#webcam_dialog").html(recorder_saved_html)}});$("#webcam_close").live("click",function(){$("#webcam_dialog").dialog("close");$("#webcam_dialog").html(recorder_saved_html)});$("#webcam_help_close").live("click",function(){$("#webcam_help_dialog").dialog("close");record_init()});$("#webcam_help_dialog").dialog({closeOnEscape:false,draggable:false,autoOpen:false,modal:true,resizable:false,scroll:true,width:580,height:490,open:function(){$("#webcam_dialog").hide()},close:function(){$("#webcam_dialog").show();record_init()}});$("#help_link").live("click",function(){if($("#webcam_help_dialog #help_text").html()==""){$.get("camera_help.html",function(a){$("#webcam_help_dialog #help_text").html(a)})}$("#webcam_help_dialog").dialog("open")});$("#SWFUpload_0,#fileupload,#tags,#email-optional,#transurl").bind("keydown",function(b){var a=(b.keyCode?b.keyCode:b.which);if(a==13){switch($(this).attr("id")){case"SWFUpload_0":$("#uploadstart").click();break;case"fileupload":case"transurl":$("#butan").click();break;case"tags":case"email-optional":if($("#upflash").css("display")!="none"){$("#uploadstart").click()}else{$("#butan").click()}break}b.stopPropagation();b.preventDefault()}});$("#butan").bind("click",function(){var a=document.getElementById("email-optional");if(a){focusoption(a)}a=document.getElementById("tags");if(a){focusoption(a)}ex_url=document.getElementById("transurl");if(ex_url){focusoption(ex_url)}check_email_submit(2)});$("#fileupload").bind("change",function(a){if($("#c").val()==""){setTimeout(function(){$("#email-optional").focus()},10);$("#email-optional").focus()}else{setTimeout(function(){$("#tags").focus()},10);$("#tags").focus()}});$("a[rel]").overlay({expose:{color:"#333",loadSpeed:200,opacity:0.7},closeOnClick:true,left:"center",top:"center",onClose:function(){$("#register-upgrade").removeClass("lightbox").css({position:"",display:"block"});$("#never-show-section").hide();$("#register-upgrade-lightbox").append($("#register-upgrade"));if($("#never-show-btn").is(":checked")){$.cookie("nevershow-home","y",{expires:3650,path:"/",domain:".imageshack.us"})}}});$("#never-show-btn").bind("click",function(a){if($(this).is(":checked")){$.cookie("nevershow-home","y",{expires:3650,path:"/",domain:".imageshack.us"})}else{$.cookie("nevershow-home","",{expires:-1,path:"/",domain:".imageshack.us"})}});$("#newuploader_ad_top").attr("src","/newuploader_ad.php?ad_tag=Imageshack_HomePage_Top");$("#Imageshack_HomePage_Bottom").attr("src","/newuploader_ad.php?ad_tag=Imageshack_HomePage_Bottom");$("#newuploader_ad_bottom").attr("src","/newuploader_ad.php?ad_tag=Imageshack_HomePage_Bottom_728x90")});function error_msg(a){if(jQuery("#error_msg")){jQuery("#ff30_hack").css("display","none");jQuery("#linux_hack").css("display","none");jQuery("#uploadform").css("margin-top","5px");jQuery("#error_msg").css("display","inline").html(a)}}check_email_submit=function(c){focusoption(document.getElementById("email-optional"));var a=jQuery.trim($("#email-optional").val());if(a!=""){if(!is_email_correct(a)){error_msg($("#errormsg3").val());return false}jQuery("#email-check-loader").css("display","inline");var b="/registration/checkemail.php";jQuery.get(b,{email:a},function(d){jQuery("#email-check-loader").css("display","none");if(d.error==0){if(c==1){swfUploadStart()}else{if(c==2){if($("#transurl").val()!=""||$("#fileupload").val()!=""){$("#upform").submit()}}}}else{if(d.error==3){error_msg($("#errormsg3").val());return false}else{if(d.error==4){var e=$("#errormsg4").val()+"   <div style='display:inline'><a href='#' id='btnlogin2'>"+$("#str_login").val()+"</a> | <a href='http://my.imageshack.us/registration/passwordrecovery.php'>"+$("#str_forgotpass").val()+"</a></div>";error_msg(e);return false}else{error_msg($("#errormsg5").val());return false}}}},"json");jQuery("#email-check-loader").css("display","none")}else{if(c==1){swfUploadStart()}else{if(c==2){if($("#transurl").val()!=""||$("#fileupload").val()!=""){$("#upform").submit()}}}}};function record_init(){var b=get_cookie("myimages");if(!b){b=""}var c={align:"middle",bgcolor:"#FFFFFF",allowScriptAccess:"always",wmode:"window",swliveconnect:true,allowNetworking:"external",flashvars:"serverURL=rtmp://render3.imageshack.us/recorder/stream"+Math.random()+"&imgURL=http://imageshack.us/stillshot.php?cookie="+b+"&localXML=http://imageshack.us/recorder.v2.xml&cookie="+b+"&openw=selfnavigate"};var a={id:"recorder",name:"recorder"};swfobject.embedSWF("recorder.v2.swf","recorder",480,320,"9.0.28.0","expressInstall.swf",{},c,a)}function track(a){new Image().src="http://img1.imageshack.us/pixel.gif?"+a}function showHelp(a,b){if(a){$("#help-text").html(b);$("#help-area").css("display","block")}else{$("#help-area").css("display","none")}}var NUM_WAYS=2;function display_uploadtools(){var a=Math.floor(Math.random()*NUM_WAYS);if(get("upload-tools"+a)){get("upload-tools"+a).style.display="block"}}display_uploadtools();function is_email_correct(b){var a=/^[^@]+@(([a-zA-Z0-9\-])+\.)+([a-zA-Z]{2,4})+$/;return a.test(b)}function setFocus_FF_MAC(a){if(navigator.userAgent.indexOf("Firefox")>0&&navigator.userAgent.indexOf("Mac")>0){a.focus();a.focus()}}function change_optsize(b){var a=get_cookie("always_opt");if(b.value&&b.value!=a){set_cookie("always_opt",b.value,365,".imageshack.us")}}function change_rembar(b){var a=get_cookie("rem_bar");if(b.value&&b.value!=a){set_cookie("rem_bar",b.value,365,".imageshack.us")}}function get_cookie(c){var b=document.cookie;var e=c+"=";var d=b.indexOf("; "+e);if(d==-1){d=b.indexOf(e);if(d!=0){return null}}else{d+=2}var a=document.cookie.indexOf(";",d);if(a==-1){a=b.length}return unescape(b.substring(d+e.length,a))}function get(a){return document.getElementById(a)}(function(d){d.tools=d.tools||{};d.tools.expose={version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};function e(){if(d.browser.msie){var a=d(document).height(),b=d(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-b<20?b:a]}return[d(window).width(),d(document).height()]}function f(c,k){var m=this,a=d(this),n=null,l=false,b=0;d.each(k,function(h,g){if(d.isFunction(g)){a.bind(h,g)}});d(window).resize(function(){m.fit()});d.extend(this,{getMask:function(){return n},getExposed:function(){return c},getConf:function(){return k},isLoaded:function(){return l},load:function(o){if(l){return m}b=c.eq(0).css("zIndex");if(k.maskId){n=d("#"+k.maskId)}if(!n||!n.length){var h=e();n=d("<div/>").css({position:"absolute",top:0,left:0,width:h[0],height:h[1],display:"none",opacity:0,zIndex:k.zIndex});if(k.maskId){n.attr("id",k.maskId)}d("body").append(n);var j=n.css("backgroundColor");if(!j||j=="transparent"||j=="rgba(0, 0, 0, 0)"){n.css("backgroundColor",k.color)}if(k.closeOnEsc){d(document).bind("keydown.unexpose",function(p){if(p.keyCode==27){m.close()}})}if(k.closeOnClick){n.bind("click.unexpose",function(p){m.close(p)})}}o=o||d.Event();o.type="onBeforeLoad";a.trigger(o);if(o.isDefaultPrevented()){return m}d.each(c,function(){var p=d(this);if(!/relative|absolute|fixed/i.test(p.css("position"))){p.css("position","relative")}});c.css({zIndex:Math.max(k.zIndex+1,b=="auto"?0:b)});var g=n.height();if(!this.isLoaded()){n.css({opacity:0,display:"block"}).fadeTo(k.loadSpeed,k.opacity,function(){if(n.height()!=g){n.css("height",g)}o.type="onLoad";a.trigger(o)})}l=true;return m},close:function(g){if(!l){return m}g=g||d.Event();g.type="onBeforeClose";a.trigger(g);if(g.isDefaultPrevented()){return m}n.fadeOut(k.closeSpeed,function(){g.type="onClose";a.trigger(g);c.css({zIndex:d.browser.msie?b:null})});l=false;return m},fit:function(){if(n){var g=e();n.css({width:g[0],height:g[1]})}},bind:function(h,g){a.bind(h,g);return m},unbind:function(g){a.unbind(g);return m}});d.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(h,g){m[g]=function(j){return m.bind(g,j)}})}d.fn.expose=function(c){var b=this.eq(typeof c=="number"?c:0).data("expose");if(b){return b}if(typeof c=="string"){c={color:c}}var a=d.extend({},d.tools.expose.conf);c=d.extend(a,c);this.each(function(){b=new f(d(this),c);d(this).data("expose",b)});return c.api?b:this}})(jQuery);(function(h){h.tools=h.tools||{};h.tools.overlay={version:"1.1.2",addEffect:function(c,b,a){e[c]=[b,a]},conf:{top:"10%",left:"center",absolute:false,speed:"normal",closeSpeed:"fast",effect:"default",close:null,oneInstance:true,closeOnClick:true,closeOnEsc:true,api:false,expose:null,target:null}};var e={};h.tools.overlay.addEffect("default",function(a){this.getOverlay().fadeIn(this.getConf().speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});var g=[];function f(t,p){var a=this,c=h(this),b=h(window),q,r,s,v=p.expose&&h.tools.expose.version;var u=p.target?p.target:"#"+t.attr("rel");r=u?h(u):null||t;if(!r.length){throw"Could not find Overlay: "+u}if(t&&t.index(r)==-1){t.click(function(j){a.load(j);return j.preventDefault()})}h.each(p,function(k,j){if(h.isFunction(j)){c.bind(k,j)}});h.extend(a,{load:function(j){if(a.isOpened()){return a}var m=e[p.effect];if(!m){throw'Overlay: cannot find effect : "'+p.effect+'"'}if(p.oneInstance){h.each(g,function(){this.close(j)})}j=j||h.Event();j.type="onBeforeLoad";c.trigger(j);if(j.isDefaultPrevented()){return a}s=true;if(v){r.expose().load(j)}var k=p.top;var l=p.left;var o=r.outerWidth({margin:true});var n=r.outerHeight({margin:true});if(typeof k=="string"){k=k=="center"?Math.max((b.height()-n)/2,0):parseInt(k,10)/100*b.height()}if(l=="center"){l=Math.max((b.width()-o)/2,0)}if(!p.absolute){k+=b.scrollTop();l+=b.scrollLeft()}r.css({top:k,left:l,position:"absolute"});j.type="onStart";c.trigger(j);m[0].call(a,function(){if(s){j.type="onLoad";c.trigger(j)}});if(p.closeOnClick){h(document).bind("click.overlay",function(x){if(!a.isOpened()){return}var y=h(x.target);if(y.parents(r).length>1){return}h.each(g,function(){this.close(x)})})}if(p.closeOnEsc){h(document).unbind("keydown.overlay").bind("keydown.overlay",function(w){if(w.keyCode==27){h.each(g,function(){this.close(w)})}})}return a},close:function(j){if(!a.isOpened()){return a}j=j||h.Event();j.type="onBeforeClose";c.trigger(j);if(j.isDefaultPrevented()){return}s=false;e[p.effect][1].call(a,function(){j.type="onClose";c.trigger(j)});var k=true;h.each(g,function(){if(this.isOpened()){k=false}});if(k){h(document).unbind("click.overlay").unbind("keydown.overlay")}return a},getContent:function(){return r},getOverlay:function(){return r},getTrigger:function(){return t},getClosers:function(){return q},isOpened:function(){return s},getConf:function(){return p},bind:function(k,j){c.bind(k,j);return a},unbind:function(j){c.unbind(j);return a}});h.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(k,j){a[j]=function(l){return a.bind(j,l)}});if(v){if(typeof p.expose=="string"){p.expose={color:p.expose}}h.extend(p.expose,{api:true,closeOnClick:p.closeOnClick,closeOnEsc:false});var d=r.expose(p.expose);d.onBeforeClose(function(j){a.close(j)});a.onClose(function(j){d.close(j)})}q=r.find(p.close||".close");if(!q.length&&!p.close){q=h('<div class="close"></div>');r.prepend(q)}q.click(function(j){a.close(j)})}h.fn.overlay=function(c){var b=this.eq(typeof c=="number"?c:0).data("overlay");if(b){return b}if(h.isFunction(c)){c={onBeforeLoad:c}}var a=h.extend({},h.tools.overlay.conf);c=h.extend(true,a,c);this.each(function(){b=new f(h(this),c);g.push(b);h(this).data("overlay",b)});return c.api?b:this}})(jQuery);
