Splash={cur_slide:1,_setImg:function(){var b=Splash.cur_slide;var a=$("slide_img");setClass(a,"slide_"+b);setClass($("beta-headline"),"title_"+b);$("beta-plurkform").style.display="none";if(b==5){a.useMap="#back";$("beta-plurkform").style.display="block";$("input_nick_name").focus()}else{if(b==1){a.useMap="#next"}else{a.useMap="#next_back"}}},nextSlide:function(){Splash.cur_slide++;Splash._setImg();return false},showSlide:function(a){Splash.cur_slide=a;Splash._setImg();return false},prevSlide:function(){Splash.cur_slide--;Splash._setImg();return false},attachLastPlurks:function(b){var a=$bytc("img","pc_img");map(a,function(c){onEvent(c,"mouseout",AmiTooltip.hide);onEvent(c,"mouseover",$p(b?b:Splash._showLatestRandomPlurk,c.id))})},_showLatestRandomPlurk:function(b,a){Splash._showLatestUserPlurk($(b),RANDOM_USERS[b],a)},_showLatestUserPlurk:function(e,c,h){var f;var a=evalTxt(c.last_plurk);var b=SPAN();if(a){var i=Qualifiers.format(c,a.qualifier,a.content);var d=$gc(i[0],"span","qualifier");ACN(b,d);ACN(b,setHTML(SPAN(),a.content));Media.attach(b,a.id);b.obj=a;b.div_cnt=b}var g=DIV({c:"tool_extra_info"});ACN(g,Utils.getYears(c.date_of_birth));ACN(g,Splash._getGender(c,false));if(c.location){ACN(g,BR(),format(_("from %s"),c.location)," ")}f=DIV({c:"tooltip_cnt"},B(c.nick_name),b,g);AmiTooltip.show(e,f,h)},_getGender:function(a,b){return a.gender==1&&(b&&"m"||_("male"))||(b&&"f"||_("female"))},renderForm:function(){var a=$bytc("form","register_form")[0];a.method="post";a.action="/Users/registerUser";onEvent(a,"submit",$p(Register.validForm,a,null));ACN(a,TABLE(TBODY(TR(TH("Nickname:"),setHTML(TD(),'<input style="width: 200px;" name="nick_name" id="input_nick_name" onblur="Register.checkNickname()" value="" type="text"> <div class="nick-check"><span class="help"> http://plurk.com/<span id="nick_name_span"></span></span> <span class="user_error" id="is_name_valid"></span></div>')),TR(TH("First name:"),setHTML(TD(),'<input style="width: 200px;" name="first_name" value="" type="text">')),TR(TH("Last name:"),setHTML(TD(),'<input style="width: 200px;" name="last_name" value="" type="text">')),TR(TH("Email:"),setHTML(TD(),'<input style="width: 200px;" name="email" id="input_email" onblur="Register.checkEmail()" value="" type="text"> <span id="is_email_valid"></span>')),TR(TH("Password:"),setHTML(TD(),'<input style="width: 200px;" name="password" type="password">')),TR({s:"height: 25px"},TH("Password:"),setHTML(TD(),'<div style="margin-left: -160px; margin-top: 10px;"><input style="margin: 0;" type="radio" name="gender" value="1" /> Male &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input style="margin: 0;" type="radio" name="gender" value="0" checked="checked" /> Female</div>')),TR(TH(),setHTML(TD({c:"terms"}),'<input class="nonclassic" name="accept" type="checkbox"> I have read and agree to the <a href="/terms" target="_blank">Terms of Use</a> and <a href="/privacy" target="_blank">Privacy Policy</a>.')),TR(TH(),setHTML(TD({c:"submit_splash"}),'<input class="nonclassic" id="register_submit" src="/static/splash/splash-signup.gif" name="submit" type="image">')))))},init:function(a){Plurks.visit_timeline=false;TimeLine.init($("content"));TimeLine.showLoading();Plurks.init();Emoticons.init();KeyManager.init();InfoOverlay.init();Tracks.init();TimeLine.excludeUser=function(b){return false};TimeLine.getPlurks=function(e){var c=TimeLine;if(c.getting_plurks||c.offset==null){return false}c.getting_plurks=true;TimeLine.removeEmpty();if(c.plurks.length>0){c.showLoadingBlock()}var b=loadJSON("/TimeLine/getGlobalPlurks");if(c.plurks.length>0){b.addCallback(c.removeLoadingBlock)}b.addCallback(function(f){return TimeLine._plurksFetched(f,e)});var d=FILTER?FILTER:{};if(c.offset){d.offset=serializeJSON(c.offset)}b.sendReq(d)};TimeLine.getPlurks();$("dashboard_holder").style.display="block";if(!a){Splash.attachLastPlurks()}}};Media={showThumb:function(e,b,h,d){preventDefault(d);GB_showImage("",e);var g=getLast(GB_CURRENT);var a=b;if(a.length>40){a=a.substring(0,40)+"..."}var f=null;if(hasClass(h,"comic")){f=DIV({s:"padding-top: 3px;"},_("more comics at")," ",A({href:"/plurkcomics"},"plurkcomics"))}var c=DIV({c:"direct-l"},"URL: ",A({href:b,target:"_blank"},a),f);insertAfter(c,g.iframe);if(window.Plurks){Plurks.noExapndOnAction()}return false},attach:function(b,a){map($bytc("a","youtube",b),Media._attachVideo);map($bytc("a","vimeo",b),Media._attachVideo);map($bytc("a","pictureservices",b),function(c){Media._attachPictures(c)});map($bytc("a","ex_link",b),Media._attachExternal)},_attachExternal:function(d){var c=window.location.host;c=c.replace(/www\./,"");var b=d.href.replace(/www\./,"");if(b.indexOf("http://"+c)==-1){d.target="_blank"}if(b.indexOf(c+"/")!=-1){var e=b.match(/[^\/]\/([A-Za-z0-9_]{3,})/i);if(e){var a=SiteState.getUserByNick(e[1]);if(a&&a.display_name){setHTML(d,a.display_name)}}}if(!$gc(d,"img")){if(d.innerHTML.match(/\s/)==null&&d.innerHTML.length>30){d.innerHTML=d.innerHTML.substring(0,35)+"..."}}if(!hasClass(d,"pictureservices")&&!hasClass(d,"youtube")){if(window.Plurks){AEV(d,"click",Plurks.noExapndOnAction)}}Media._attachPaste(d)},_attachPaste:function(b){var a=b.href.match(/paste.plurk.com\/show\/(.+)/);if(!a){return}onEvent(b,"click",function(c){if(window.Plurks){Plurks.noExapndOnAction()}return GB_showCenter("Plurk paste",b.href,500,650)})},_attachVideo:function(c){var d=$gc(c,"img"),a;if(!d){return false}addClass(c,"video");var f=d.alt;d.alt="";var e=c.className.indexOf("vimeo")>0;if(e){var b=c.href.match(/vimeo.com\/(\d+)/);if(!b){return}var g=b[1];a=Media._generateFlashHolder('<object width="415" height="317"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id='+g+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id='+g+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1&amp;autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="415" height="317"></embed></object>',c.href)}else{a=Media._generateYoutubeHolder(c.href,true)}onEvent(c,"click",function(i){preventDefault(i||event);Media._showGreyBox(f,c.href,"",344,440);var h=$gc($bytc("div","iframe_holder")[0],"div");setHTML(h,a);if(!e&&c.href.indexOf("#music")!=-1){YouTubeControl.activate();YouTubeControl.showIndicator()}return false});onEvent(c,"mouseover",$p(AmiTooltip.show,c,DIV({c:"tooltip_cnt"},f)));onEvent(c,"mouseout",AmiTooltip.hide)},_generateYoutubeHolder:function(c,f){var b=c.match("v=(.+)")[1];var a=c.indexOf("&hd");if(a>-1){b=b+"&ap=%2526fmt%3D18"}b=b.replace("#music","");var e="http://www.youtube.com/swf/l.swf?video_id="+b+"&rel=0&autoplay=1&color1=0xffffff&color2=0xffffff&border=0&enablejsapi=1&playerapiid=ytplayer";var d='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="415" height="334" style="z-index: 50000; border:0; padding: 0;" id="youtube_holder_obj"><param name="allowScriptAccess" value="always" /><param name="movie" value="'+e+'"></param><embed src="'+e+'" type="application/x-shockwave-flash" width="415" height="334" autostart="true" allowScriptAccess="always" id="youtube_holder"></embed></object>';return Media._generateFlashHolder(d,c,f)},_generateFlashHolder:function(a,d,e){var c=['<div class="video_holder" style="padding: 5px 10px 0 0;">'];var b="";if(e){b='<div class="hide_window"><a href="#" onclick="setTimeout(YouTubeControl.activate, 100); return false;">'+_("Hide video and play in background")+"</a></div>"}c.push('<div class="object_holder" style="margin-left: 10px;">'+a+"</div>"+b+'<div class="direct-l yt">'+_("Direct link")+': <a href="'+d+'" target="_blank">'+d+"</a></div>");return c.join("")},_showGreyBox:function(e,c,b,a,d){if(YouTubeControl.isShown()){YouTubeControl.stop()}if(window.Plurks){Plurks.noExapndOnAction()}return GB_showHTML(e,b,a,d)},_attachFlickr:function(b){var a=$gc(b,"img");if(a){onEvent(b,"click",$p(Media.showThumb,a.alt,b.href,b))}},_attachPlurk:function(b){var a=$gc(b,"img");if(a){onEvent(b,"click",$p(Media.showThumb,a.alt,b.href,b))}},_pictureLoaded:function(a){a=a||window.event;var b=getEventElm(a);if(b){}},_attachPictures:function(c){var b=$gc(c,"img");var a=c.href;if(b){b.style.maxWidth="48px"}if(a.indexOf("flickr.com/photos/")!=-1){return Media._attachFlickr(c)}else{if(b&&b.src.indexOf("images.plurk.com")!=-1){return Media._attachPlurk(c)}else{if(a.indexOf("photobucket.com/albums/")!=-1){return Media._genericImageLoad(GenericImages.photoBucket,c)}else{if(a.indexOf("tinypic.com/")!=-1){return Media._genericImageLoad(GenericImages.tinyPic,c)}else{if(a.indexOf("imageshack.us/img")!=-1){return Media._genericImageLoad(GenericImages.imageShack,c)}else{if(a.indexOf("statics.plurk.com")!=-1){c.href="http://statics.plurk.com/261c0fe4a88417146ae0292d697a5f52.gif"}return Media._genericImageLoad(GenericImages.justImage,c)}}}}}return false},_genericImageLoad:function(c,b){var d=b.href.match(/[^\/]+?\.(jpg|jpeg|gif|png)/i);if(d){d=d[0];var a=GenericImages.loadImage(b.href,d,c);setHTML(b,a);onEvent(b,"click",$p(Media.showThumb,b.href,b.href,b))}return false}};GenericImages={loaded_images:{},big_images:{},replaceDivs:function(a,d){GenericImages.loaded_images[a.src]=true;if(a.width<50&&a.height<50){GenericImages.big_images[a.src]=false}var c=GenericImages.getImgClass(a.src);var b=GenericImages.getImagePreview(a.src);map($bytc("div",c),function(e){setHTML(e.parentNode,b)});if(d){setTimeout($p(GenericImages.replaceDivs,a,false),200)}},img_ids:{},img_counter:1,getImgClass:function(a){var b=GenericImages.img_ids[a];if(!b){b=GenericImages.img_ids[a]=GenericImages.img_counter++}return"big_image_"+b},loaded:function(a){if(TimeLine.big_media_hidden&&hasClass(a,"big_image")){addClass(a.parentNode,"big_image_border")}},getImagePreview:function(c){var a="max-height: 40px; max-width: 48px;";if(isIe()&&!isIe8()){a="width: expression(this.width > 48 ? 48: true); height: expression(this.height > 40 ? 40: true);"}var b="";if(GenericImages.big_images[c]){if(TimeLine.big_media_hidden){a+="visibility:hidden;"}b="big_image"}return'<img src="'+c+'" style="'+a+'" class="'+b+'" onload="GenericImages.loaded(this)" />'},getImageThumb:function(b,d){if(b==d&&!GenericImages.loaded_images[d]){if(!GenericImages.big_images[d]){var a=new Image();a.onload=$p(GenericImages.replaceDivs,a,true);a.src=d;GenericImages.big_images[d]=true}var c=GenericImages.getImgClass(d);return'<div class="'+c+'"><img src="http://statics.plurk.com/7f5c4282d2e9accfdae99cc6abb6c9bb.gif" /></div>'}else{return GenericImages.getImagePreview(d)}},photoBucket:function(c,a){var b=a.replace(c,"th_"+c);return b},tinyPic:function(c,a){var b=c.split(".");return a.replace(c,b[0]+"_th."+b[1])},imageShack:function(c,a){var b=c.split(".");b.splice(1,0,"th");return a.replace(c,b.join("."))},justImage:function(b,a){return a},loadImage:function(b,e,d){var a=b;var c=d(e,b);return GenericImages.getImageThumb(a,c)}};YouTubeControl={inited:false,div_player:null,indicator:null,title:"",flash_player:null,initIfNeeded:function(){if(this.inited){return}var b,a;ACN(getBody(),DIV({id:"music_player"},this.indicator=SPAN({s:"margin-right: 5px;"}),this.title=SPAN(),a=A({href:"#",s:"margin: 0 8px 0 8px"},_("Stop")),b=A({href:"#"},_("Show video"))));AEV(a,"click",$b(YouTubeControl.stop,this));AEV(b,"click",$b(YouTubeControl.deactivate,this));this.inited=true},isShown:function(){var a=$("music_player");if(!a){return false}return a.style.display!="none"},activate:function(){map($bytc("div","GB_window"),function(b){YouTubeControl.left_pos=b.style.left;b.style.left="-1500px";setVisibility(b,false)});map($bytc("div","GB_overlay"),function(b){hideElement(b)});setVisibility(getYCPlayer(),false);var a=$bytc("td","caption")[0].innerHTML;if(a.length>30){a=a.substr(0,30)+"..."}YouTubeControl.initIfNeeded();setHTML(YouTubeControl.title,a);showElement($("music_player"));window.scroll(0,0);return false},deactivate:function(){map($bytc("div","GB_overlay"),function(a){showElement(a)});map($bytc("div","GB_window"),function(a){a.style.left=YouTubeControl.left_pos;setVisibility(a,true)});setVisibility(getYCPlayer(),true);hideElement($("music_player"));return false},stop:function(){hideElement($("music_player"));GB_hide();return false},showIndicator:function(){RCN(YouTubeControl.indicator,IMG({src:"http://statics.plurk.com/7f5c4282d2e9accfdae99cc6abb6c9bb.gif"}))},hideIndicator:function(){RCN(YouTubeControl.indicator,null)}};function getYCPlayer(){if(isIe()){return $("youtube_holder_obj")}else{return $("youtube_holder")}}function youtubeChecker(){var a=getYCPlayer();if(!a){return clearTimeout(YOUTUBE_CHECKER)}if(!a.getPlayerState){return}var b=a.getPlayerState();if(b==1){YouTubeControl.hideIndicator()}else{if(b==0){YouTubeControl.stop()}}}var YOUTUBE_CHECKER=null;function onYouTubePlayerReady(a){YOUTUBE_CHECKER=setInterval(youtubeChecker,500);var b=getYCPlayer()}Emoticons={basic:[[/(?:(\s+|^)):-?\)\)/,"http://statics.plurk.com/ff124032f8cc3a9d43b99e661f8fcb4d.gif",":-))"],[/(?:(\s+|^)):-?\)/,"http://statics.plurk.com/99ef3957ef779718546752b749bdeabd.gif",":-)"],[/(?:(\s+|^)):-?D/i,"http://statics.plurk.com/3385896779bf1c13188bf92ca516878e.gif",":-D"],[/(LOL)/,"http://statics.plurk.com/615f18f7ea8abc608c4c20eaa667883b.gif","(LOL)"],[/:-?P/i,"http://statics.plurk.com/2d5e21929e752498e36d74096b1965e1.gif",":-P"],[/\(woot\)/i,"http://statics.plurk.com/13b15aa49358be8f47b58552401d7725.gif","(woot)"],[/;-?\)/i,"http://statics.plurk.com/57c69f50e40a283dcd2e7b56fc191abe.gif",";-)"],[/:-?o/i,"http://statics.plurk.com/8eb05ca7a32301ba16c9496bcad893c4.gif",":-o"],[/X-?\(/,"http://statics.plurk.com/261c0fe4a88417146ae0292d697a5f52.gif","X-("],[/:-?\(/,"http://statics.plurk.com/11eed61b41a3e935773476ac33bc00d9.gif",":-("],[/:'-?\(/,"http://statics.plurk.com/72ddf2c585fe77dd0be731b19624d8cb.gif",":'-("],[/:-?&amp;/,"http://statics.plurk.com/2884b8d0e496c06136c86e9c9599edae.gif",":-&"]],silver:[[/(?:(\s+|^))\(K\)/,"http://statics.plurk.com/9454d15bcaf411b159dcc147ebc3f0eb.gif","(K)"],["(angry)","http://statics.plurk.com/a5ae31c4185bc60cd006650dc10f8147.gif","(angry)"],["(annoyed)","http://statics.plurk.com/35b16fc25623670e41c2be6bf8ac38c7.gif","(annoyed)"],[/\(bye\)|\(wave\)/,"http://statics.plurk.com/4afd784c0df9f7a3ceacb92beca543f6.gif","(wave)"],[/(?:(\s+|^))B-?\)/,"http://statics.plurk.com/c1c9870cf653fa3cd103d2eb0f519ccb.gif","B-)"],["(cozy)","http://statics.plurk.com/d1a6f08507b126ec6a215e6a2372e8bb.gif","(cozy)"],["(sick)","http://statics.plurk.com/5495d64ccb898ca596b061168fa0374a.gif","(sick)"],["(:","http://statics.plurk.com/b82e3225c92a764d225429a6487d9f04.gif","(:"],["(goodluck)","http://statics.plurk.com/65271ac2126706bc09d31ff67c525d67.gif","(goodluck)"],["(griltongue)","http://statics.plurk.com/a709dab8ddd26bd222466d31bd549579.png","(griltongue)"],[/(mmm)/,"http://statics.plurk.com/e3baa9d0d78c35e955a6b07c39f530fa.gif","(mmm)"],["(hungry)","http://statics.plurk.com/0f96595ed7733393b93a3d67aa4f2f4f.gif","(hungry)"],["(music)","http://statics.plurk.com/919b87048fdf7bd59dae457f4284b20b.gif","(music)"],["(tears)","http://statics.plurk.com/96872d481bbfe87aad5aed976c7de4ee.gif","(tears)"],["(tongue)","http://statics.plurk.com/56336bb821c4766001816639e55e5811.gif","(tongue)"],["(unsure)","http://statics.plurk.com/6cb1dc388b9259565efedef8f336d27d.gif","(unsure)"],["(highfive)","http://statics.plurk.com/a9560787e93f4f8890e4bd38696ba537.gif","(highfive)"],["(dance)","http://statics.plurk.com/a55bdb344892676b0fea545354654a49.gif","(dance)"],["(blush)","http://statics.plurk.com/9939dd585cf0e8d39e7912a98a9ce727.gif","(blush)"]],gold:[["(doh)","http://statics.plurk.com/e8ed6c7eed76d2acd9dbf469f29fbec2.gif","(doh)"],["(brokenheart)","http://statics.plurk.com/2b3593aea68efa7a00b4ef2850f98b8a.gif","(brokenheart)"],["(drinking)","http://statics.plurk.com/ed3620ff28a02e3dc9ac4ffa8e6ae2e6.gif","(drinking)"],["(girlkiss)","http://statics.plurk.com/08a43d50691a1ed22706fc92f568fa07.gif","(girlkiss)"],["(rofl)","http://statics.plurk.com/8600839dc03e6275b53fd03a0eba09cf.gif","(rofl)"],["(money)","http://statics.plurk.com/e6bb16b6ef386c5f23900b103dbdba31.gif","(money)"],["(rock)","http://statics.plurk.com/1c890273544559b17f090d09238fa763.gif","(rock)"],["(nottalking)","http://statics.plurk.com/f053074bcce500fbd1e2327d49748a6d.gif","(nottalking)"],["(party)","http://statics.plurk.com/1f44d3984a094fceae1f1a016a730fc9.gif","(party)"],["(sleeping)","http://statics.plurk.com/2f7c90ce56fb4a70e34c04d8d7692dd0.gif","(sleeping)"],["(thinking)","http://statics.plurk.com/900f3dd0adaad9142d567caf6bfb1311.gif","(thinking)"],["(bringit)","http://statics.plurk.com/95ace5ba1097301b5206a9e0fb431624.gif","(bringit)"],["(worship)","http://statics.plurk.com/95e69aa508d4bb435706b9db0a610dad.gif","(worship)"],["(applause)","http://statics.plurk.com/a08ed27ec14b48d4703f53f7eb94834b.gif","(applause)"],[/8-?\)/,"http://statics.plurk.com/85ef5fa01a6a67a525429f8bf4279fe7.gif","8-)"],[/(gym)/,"http://statics.plurk.com/986ecf2b1ae69072e0195b0a58545900.gif","(gym)"],[/(heart)/,"http://statics.plurk.com/150e3f367a063d3baf9720719d78d778.gif","(heart)"],[/(devil)/,"http://statics.plurk.com/3fabe74e992888be701de2a9d80c180a.gif","(devil)"],[/(lmao)/,"http://statics.plurk.com/92b595a573d25dd5e39a57b5d56d4d03.gif","(lmao)"]],platinum:[["(bigeyes)","http://statics.plurk.com/8073c1716e75d32eb79f97a9f521fa01.gif","(bigeyes)"],["(funkydance)","http://statics.plurk.com/373cd2f23dab7528d4875170d13d64f7.gif","(funkydance)"],["(idiot)","http://statics.plurk.com/8863234ebea13f109c9b15ba19a4531c.gif","(idiot)"],["(lonely)","http://statics.plurk.com/8738c7a1c402f41b5319abe504ce9687.gif","(lonely)"],["(scenic)","http://statics.plurk.com/db4c4a7d141fdcaca4d4b11f8fb360db.gif","(scenic)"],["(hassle)","http://statics.plurk.com/ced6d40bebe2d424b59322b311fc04bb.gif","(hassle)"],["(panic)","http://statics.plurk.com/b62d1e55e8311af5bc7526c595ac1dbb.gif","(panic)"],["(okok)","http://statics.plurk.com/9b6f4864c822e1a97c98507c2b41a74f.gif","(okok)"],["(yahoo)","http://statics.plurk.com/e49c8ae965452550c98fc7f99741ae0d.gif","(yahoo)"],["(cry)","http://statics.plurk.com/318416eab5a856bddb1e106a21ff557a.gif","(cry)"]],platinum_2:[["(banana_cool)","http://statics.plurk.com/4f01bac8a707e5450307f97065ec0fa7.gif","(banana_cool)"],["(banana_rock)","http://statics.plurk.com/48515125401120316abb97666458d05b.gif","(banana_rock)"],["(evil_grin)","http://statics.plurk.com/aabbc82c2b0dc72bfbce2f82c97a95e8.gif","(evil_grin)"],["(headspin)","http://statics.plurk.com/b0b0596acce9ffc1f2a27548aa642eaf.gif","(headspin)"],["(heart_beat)","http://statics.plurk.com/52991d7ff65a05526454bd1170a0f14c.gif","(heart_beat)"],["(ninja)","http://statics.plurk.com/846277f0a154dc95a08594b7d32a5ccd.gif","(ninja)"],["(haha)","http://statics.plurk.com/843739a95294fd0bf4c958840b46408f.gif","(haha)"],["(evilsmirk)","http://statics.plurk.com/22416dced8b59446db8cd366cc925d09.gif","(evilsmirk)"],["(eyeroll)","http://statics.plurk.com/e3f0f67ca3af62e34f13abf1d036a010.gif","(eyeroll)"]],karma100:[["(muhaha)","http://statics.plurk.com/84f94a47fcaf1df0a5f17a1cfa52fa64.gif","(muhaha)"],[/\(rammi\)|\(taser\)/,"http://statics.plurk.com/44117848701cd748460921cfea5c3781.gif","(taser)"]],is_inited:false,init:function(){},_init:function(){if(this.is_inited){return false}var d=DIV({id:"emoticon_selecter"});var c,a;ACN(d,DIV({id:"emoticons_tabs"},UL(a=LI({c:"emoticon_selecter"},A({href:"#"},_("Extra set"))),c=LI({id:"emo_basic",c:"emoticon_selecter"},A({href:"#"},_("Basic set"))))));var b=Emoticons.selectEmoTab;c.onclick=$p(b,c,"basic");a.onclick=$p(b,a,"extra");ACN(d,DIV({id:"emoticons_show"}));hideElement(d);ACN(getBody(),d);AEV(document,"click",function(f){var g=getEventElm(f);var e=$gp(g,"div");if(e&&e.id=="emoticons_tabs"){return true}if(Emoticons.shown&&!hasClass(g,"emoticon_selecter_img")){Emoticons.forceHide()}});this.is_inited=true;Emoticons.selectEmoTab($("emo_basic"),"basic")},selectEmoTab:function(b,a){removeClass($bytc("li",null,$("emoticons_tabs")),"current");addClass(b,"current");Emoticons.showEmoticons(a);return false},generateEmoticons:function(d){var b=SiteState.getSessionUser();var e=b&&b.recruited||0;var c=b&&b.karma||0;if(d=="basic"){var a=Emoticons.basic;if(c>=25){a=a.concat(Emoticons.silver)}}else{if(d=="extra"){var a=[];if(e>=10){a=a.concat(Emoticons.platinum)}if(c>=50){a=a.concat(Emoticons.gold)}if(c>=81){a=a.concat(Emoticons.platinum_2)}if(c>=100){a=a.concat(Emoticons.karma100)}}}return a},showEmoticons:function(g){var b=SiteState.getSessionUser();var a=b&&b.karma||0;var j=Emoticons.generateEmoticons(g);var k,e;var m=TABLE(e=TBODY(k=TR()));for(var d=0;d<j.length;d++){var l=j[d];var c=A({href:"#",c:"a_emoticon"},IMG({src:l[1]}));c.emo_type=l[2];AEV(c,"click",$p(Emoticons.select,c));if(d>0&&d%8==0){k=TR();ACN(e,k)}ACN(k,TD(c))}var f=null;if(a<50){var h=A({href:"#",c:"red_link"},_("Want extra exclusive emoticons?"));AEV(h,"click",function(){return GB_showCenter(_("Exclusive emoticons"),"/Help/extraSmilies",300,440)});f=DIV({s:"padding: 5px 0 5px 10px"},h)}RCN($("emoticons_show"),DIV(m,f))},select:function(d){var c=d.emo_type;var a=$(Emoticons.cur_input);var b="";if(strip(a.value)!=""){b=" ";if(getLast(a.value)==" "){b=""}}InputUtil.insertAtCursor(a,b+c);if(window.location.toString().indexOf("/p/")==-1){window.scrollTo(0,0)}return false},forceHide:function(){hideElement($("emoticon_selecter"));Emoticons.shown=false},insertPack:function(a,b){map(a,function(c){b(IMG({src:c[1],c:"emoticon"}))})},shown:false,cur_input:null,toggle:function(a,c){Emoticons._init();Emoticons.cur_input=a;var f=getEventElm(c);var b=$("emoticon_selecter");setVisibility(b,false);showElement(b);var d={w:100,to:300};var e=absolutePosition(f);setStyle(b,{top:e.y+30,left:e.x-b.offsetWidth+d.w});if(Emoticons.shown){hideElement(b)}else{showElement(b)}setVisibility(b,true);Emoticons.shown=!Emoticons.shown;if(a=="input_big"){if(Emoticons.shown){window.scrollTo(0,d.to)}}}};
