var page=1;var order=0;var isQuestion=false;var max_days_back=-1;var inSite="";var g_Sync=0;var gStreamPos=0;var gStreamTimeoutID=0;var gStreamQuery="";var documentTitle="";var blogSearcher=new google.search.BlogSearch();blogSearcher.setResultSetSize(GSearch.LARGE_RESULTSET);blogSearcher.setNoHtmlGeneration();blogSearcher.setResultOrder(google.search.Search.ORDER_BY_RELEVANCE);blogSearcher.setSearchCompleteCallback(null,onBlogsResultsReady);$(function(){g_DomDone=true;$("span.bmark").toggleClass("highlight");$("#advancedSearchDialog").dialog({autoOpen:false,bgiframe:true,width:950,height:500,buttons:{Ok:doAdvancedOK}});$("#advancedSearchDialog").load("/advancedSearchTemplate.html",function(){initQueryBox()});updatePagingDisplay();var googleQuery=query.replace(/^about:/i,"link:");blogSearcher.execute(googleQuery);omgiliRTH.rth.getTweets();if($("#notesWrapper").length>0){if(parseInt($("#notesWrapper").height())<250){$("#notesContainer").animate({height:$("#notesWrapper").height()+10},"slow")}}$("#orderDateToggle").click(function(){page=1;if(order){order=0}else{order=1}updateSearchResults()});$("#noteTextareaImage").click(function(){$("#leaveNoteWrapper").show();$("#leaveNoteDialog").dialog("open");resetUserPassText()});$("#questionToggle").click(function(){page=1;if(isQuestion){isQuestion=0}else{isQuestion=1}updateSearchResults()});$("#morelessReviews").click(function(){if($("#morelessReviews").text()=="[+] More"){$("#morelessReviews").text("[-] Less");$("#reviewsContainer").animate({height:$("#reviewsTable").height()},"slow")}else{$("#morelessReviews").text("[+] More");$("#reviewsContainer").animate({height:170},"slow")}});if($("#morelessReviews").length==0){$("#reviewsContainer").animate({height:$("#reviewsTable").height()},"slow")}$("#timeFrameslider").slider({min:0,max:4,animate:false,value:4,change:function(event,ui){page=1;updateSearchResults()},slide:function(event,ui){updateTimeFrameSliderDesc(ui.value)}});$("#minUserSlider").slider({min:0,max:10,animate:false,change:function(event,ui){$("#usersNumTxt").text(ui.value);updateSearchResults()},slide:function(event,ui){$("#usersNumTxt").text(ui.value)}});$("#minReplySlider").slider({min:2,max:10,animate:false,change:function(event,ui){$("#replyNumTxt").text(ui.value);updateSearchResults()},slide:function(event,ui){$("#replyNumTxt").text(ui.value)}});if(visibleGraph==null){visibleGraph=true;updateGraphStatus(false)}else{visibleGraph=eval(visibleGraph);updateGraphStatus(false)}$("#toggleGraph").click(function(){visibleGraph=!visibleGraph;$.cookie("visibleGraph",visibleGraph);updateGraphStatus(true)});historyLoad();setTimeout(testReviewImages,3000)});function prettyDate(b){var d=Date.parse(b);var c=new Date().getTime();var e=parseInt((c-d)/1000);if(e<60){return"less than a minute ago"}else{if(e<120){return"about a minute ago"}else{if(e<3600){var a=new Array();a.push((parseInt(e/60)).toString());a.push(" minutes ago");return a.join("")}else{if(e<7200){return"about an hour ago"}else{if(e<86400){var a=new Array();a.push("about ");a.push((parseInt(e/3600)).toString());a.push(" hours ago");return a.join("")}else{if(e<172800){return"1 day ago"}else{return(parseInt(e/86400)).toString()+" days ago"}}}}}}}function onBlogsResultsReady(){var c=new Array();c.push("<div id='blogsHTML'>");for(var a=0;a<blogSearcher.results.length;a++){var e=blogSearcher.results[a];c.push('<div style="line-height:17px;padding-bottom:15px;">');c.push('<a href="');c.push(e.postUrl);c.push('" style="color:#339900;font-size:14px;">');c.push(e.title);c.push("</a>");c.push('<div style="font-size:12px;color:#555555;">');c.push(prettyDate(e.publishedDate));c.push(" by ");c.push(e.author);c.push(" | <a href='");c.push(e.blogUrl);c.push("' style='color:#555555;font-size:10px;' >");var b=80;var d=e.blogUrl.substring(0,b);c.push(unescape(d));if(d.length>b){c.push("...")}c.push("</a>");c.push("</div>");c.push('<div style="font-size:13px;">');c.push(e.content);c.push("</div>");c.push("</div>")}c.push("</div>");if(blogSearcher.results.length>0){$("#blogContainer").show();$("#blogsContent").html(c.join(""));if($("#blogsHTML").height()<300){$("#blogsContent").animate({height:$("#blogsHTML").height()},"slow")}}}function doAdvancedOK(){$("#QueryID").val($("#wizardquery").text());if(jQuery.trim($("#wizardquery").text()).length>0){$("#omgiliForm")[0].submit()}$(this).dialog("close")}function isImageOk(a){if(!a.complete){return false}return !(typeof a.naturalWidth!="undefined"&&a.naturalWidth==0)}function testReviewImages(){$(".amzImg").each(function(){if(!isImageOk($(this)[0])){$(this)[0].src="/images/reviewnoimage.png"}});if($("#morelessReviews").text()=="Less"){$("#reviewsContainer").animate({height:$("#reviewsTable").height()},"slow")}}function updateGraphStatus(a){if($("#toggleGraph").length>0){if(visibleGraph){$("#toggleGraph")[0].src="/images/min_graph.gif";if(a){$("#graphFrame").slideDown()}else{$("#graphFrame").show()}}else{$("#toggleGraph")[0].src="/images/max_graph.gif";if(a){$("#graphFrame").slideUp()}else{$("#graphFrame").hide()}}}}var emptyMessage="";function initQueryBox(){$("#wizardquery").html(emptyMessage);$("#all").keyup(function(a){updateAdvancedQuery()});$("#exact").keyup(function(a){updateAdvancedQuery()});$("#or1").keyup(function(a){updateAdvancedQuery()});$("#or2").keyup(function(a){updateAdvancedQuery()});$("#or3").keyup(function(a){updateAdvancedQuery()});$("#or4").keyup(function(a){updateAdvancedQuery()});$("#without").keyup(function(a){updateAdvancedQuery()});$("#intitle").keyup(function(a){updateAdvancedQuery()});$("#intopic").keyup(function(a){updateAdvancedQuery()});$("#inreply").keyup(function(a){updateAdvancedQuery()});$("#inforum").keyup(function(a){updateAdvancedQuery()});$("#forumname").keyup(function(a){updateAdvancedQuery()});$("#stem").click(function(a){updateAdvancedQuery()});$("#language").change(function(a){updateAdvancedQuery()})}function handleOr(){var b="";var a=0;if(jQuery.trim($("#or1")[0].value).length>0||jQuery.trim($("#or2")[0].value).length>0||jQuery.trim($("#or3")[0].value).length>0||jQuery.trim($("#or4")[0].value).length>0){b="(";if(jQuery.trim($("#or1")[0].value).length>0){b+=$("#or1")[0].value;++a}if(jQuery.trim($("#or2")[0].value).length>0){if(a>0){b+=" OR "}b+=$("#or2")[0].value;++a}if(jQuery.trim($("#or3")[0].value).length>0){if(a>0){b+=" OR "}b+=$("#or3")[0].value;++a}if(jQuery.trim($("#or4")[0].value).length>0){if(a>0){b+=" OR "}b+=$("#or4")[0].value;++a}b+=")"}return b}function handleNot(){var b="";var a=jQuery.trim($("#without")[0].value);if(a.length>0){b=a.replace(/(\"[^"]*\"|[\S\w]+)/ig,"-$1")}return b}function updatePagingDisplay(){$(".pageNumLink").each(function(){if(page==parseInt($(this).text())){$(this).removeClass("blackLink");$(this).css("font-weight","bold")}else{$(this).addClass("blackLink");$(this).css("font-weight","normal")}})}function updateAdvancedQuery(){var a="";if(jQuery.trim($("#all")[0].value).length>0){a+=jQuery.trim($("#all")[0].value)+" "}if(jQuery.trim($("#exact")[0].value).length>0){a+='"'+jQuery.trim($("#exact")[0].value)+'" '}a+=jQuery.trim(handleOr())+" ";a+=jQuery.trim(handleNot())+" ";if($("#language")[0].value.length>1){a+="language:"+$("#language")[0].value+" "}if(jQuery.trim($("#inforum")[0].value).length>0){a+="site:"+jQuery.trim($("#inforum")[0].value)+" "}a+=jQuery.trim(handleForumName())+" ";a+=jQuery.trim(handleInDiscussionParts(jQuery.trim($("#intitle")[0].value),"intitle"))+" ";a+=jQuery.trim(handleInDiscussionParts(jQuery.trim($("#intopic")[0].value),"intopic"))+" ";a+=jQuery.trim(handleInDiscussionParts(jQuery.trim($("#inreply")[0].value),"inreply"))+" ";if($("#stem")[0].checked){a+="stemming:no "}a=jQuery.trim(a);if(a.length>0){$("#wizardquery").html(a)}else{$("#wizardquery").html(emptyMessage)}}function handleForumName(){var a="";var b=jQuery.trim($("#forumname")[0].value);if(b.length>0){a=b.replace(/(\"[^"]*\"|[\S\w]+)/ig,"forum:$1")}return a}function handleInDiscussionParts(c,b){var a="";if(c.length>0){a=c.replace(/(\"[^"]*\"|[\S\w]+)/ig,b+":$1")}return a}function updateSearchInfo(){var b=new Array();var a=false;b.push(" (<i>");if(isQuestion){a=true;b.push("Showing only questions");$("#questionToggle").text("Show All")}else{$("#questionToggle").text("Show Questions")}if(inSite.length>0){if(a){b.push(", ")}a=true;b.push("Limited to ");b.push(inSite)}if(order){if(a){b.push(", ")}a=true;b.push("Ordered by date");$("#orderDateToggle").text("Order by Relevancy")}else{$("#orderDateToggle").text("Order by Date")}b.push("</i>)");if(a){$("#additionalInfo").html(b.join(""))}}function showPleaseWait(){$("#additionalInfo").html("<img src='/google/images/loading.gif'> Please wait...");$("#pleaseWait").html(" <img src='/google/images/loading.gif'> ")}function hidePleaseWait(){$("#additionalInfo").html("");$("#pleaseWait").html("")}function searchStream(){clearTimeout(gStreamTimeoutID);gStreamTimeoutID=0;showPleaseWait();hidePagingInfo();if($("#timeFrameslider").slider("value")!=0){return}var a=gStreamPos>0?1:0;$.ajax({url:"/stream.search",data:{q:gStreamQuery,pos:gStreamPos,update:1,cb:Math.random()},type:"GET",dataType:"json",error:errorMessage,success:function(d){hidePleaseWait();gStreamPos=d.lastIndexDate;var c=new Array();var b=0;$.each(d.results,function(){if(++b>=20){return}var j=this.indexDate.substr(0,4);var k=this.indexDate.substr(4,2);var g=this.indexDate.substr(6,2);var e=this.indexDate.substr(8,2);var h=this.indexDate.substr(10,2);var l=new Date();l.setDate(g);l.setFullYear(j);l.setMonth(k-1);l.setHours(e);l.setMinutes(h);var f=prettyDate(l.toString());if(a){f=" a few seconds ago"}c.push({title:this.title,link:this.link,discussionSource:this.trimLink.replace("http://",""),snippet:this.snippet.replace("<br />"," "),discussionDate:"Discovered "+f,numOfReplies:this.numOfReplies,numOfUsers:this.numOfAuthors})});drawResults(c,1,a);if(c.length>0||a){if(gStreamTimeoutID==0){gStreamTimeoutID=setTimeout(searchStream,10000)}$("#realTimedescription").show()}}})}function hidePagingInfo(){$("#pagingContainerBottom").hide();$("#pagingContainerTop").hide()}function showPagingInfo(){$("#pagingContainerBottom").show();$("#pagingContainerTop").show()}function decodeHTMLEscape(a){return a.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'").replace(/&#092;/g,"\\").replace(/&#40;/g,"(").replace(/&#41;/g,")").replace(/&#35;/g,"#").replace(/&#38;/g,"&")}function updateTimeFrameSliderDesc(a){switch(a){case 0:$("#timeFrameTxt").html("<span style='color:#CC0000'>Near real-time</span>");break;case 1:$("#timeFrameTxt").text("Past week");break;case 2:$("#timeFrameTxt").text("Past month");break;case 3:$("#timeFrameTxt").text("Past 3 month");break;case 4:$("#timeFrameTxt").text("Any time");break}}function updateSearchResults(){var a=queryPlain;gStreamQuery=queryPlain;if(isQuestion){a+=" is_question:1"}if(inSite.length>0){a+=" site:"+inSite}if(parseInt($("#minReplySlider").slider("value"))>2){a+=" min_replies:"+$("#minReplySlider").slider("value");gStreamQuery+=" min_replies:"+$("#minReplySlider").slider("value")}if(parseInt($("#minUserSlider").slider("value"))>0){a+=" min_users:"+$("#minUserSlider").slider("value");gStreamQuery+=" min_users:"+$("#minUserSlider").slider("value")}updateTimeFrameSliderDesc($("#timeFrameslider").slider("value"));switch($("#timeFrameslider").slider("value")){case 0:setHistoryHash();gStreamPos=0;searchStream(a);return;case 1:a+=" max_days_back:"+7;break;case 2:a+=" max_days_back:"+31;break;case 3:a+=" max_days_back:"+90;break;case 4:break}clearTimeout(gStreamTimeoutID);$("#realTimedescription").hide();setHistoryHash();showPleaseWait();g_Sync=1+Math.random();$.ajax({url:"/api.search",data:{p:page,obd:order,q:a,sync:g_Sync},type:"GET",dataType:"xml",error:errorMessage,success:function(f){page=parseInt($("CurPage:first",f).text());var d=$("sync:first",f).text();if(g_Sync!=d||$("#timeFrameslider").slider("value")==0){return}showPagingInfo();var c=$("Item",f).length;var b=parseInt($("TotalResults:first",f).text());updatePaging(b);$("#totalResults").text(Comma(b));$("#currentResPos").text(1+(page-1)*10+" - "+((page-1)*10+parseInt(c)));hidePleaseWait();updateSearchInfo();var e=new Array();$("Item",f).each(function(){e.push({title:$("Title:first",$(this)).text().replace(/<B>([^<]+)<\/B>/ig,"<span class='bmark'>$1</span>"),link:$("Link:first",$(this)).text(),discussionSource:$("DiscussionSource:first",$(this)).text().replace("http://",""),snippet:$("Snippet:first",$(this)).text().replace(/<B>([^<]+)<\/B>/ig,"<span class='bmark'>$1</span>"),discussionDate:$("DiscussionDate:first",$(this)).text(),numOfReplies:$("NumOfReplies:first",$(this)).text(),numOfUsers:$("NumOfUsers:first",$(this)).text()})});drawResults(e,0,0)}})}function updatePaging(b){var d=new Array();for(var c=0;c<b;c+=10){var a=(c/10)+1;if(c>=100){break}d.push('<span class="blackLink pageNumLink"  onclick="changePage(');d.push(a);d.push(')">');d.push(a);d.push("</span> &nbsp; ")}if(d.length>0){$(".pagingPlace").each(function(){$(this).html(d.join(""))})}else{hidePagingInfo()}updatePagingDisplay()}function getDomain(a){var b=a.indexOf("/");if(b>-1){return a.substring(0,b)}else{return a}}function drawResults(g,c,e){var k=new Array();if(c){k.push("<div class=rtBatch id='rt");k.push(gStreamPos);k.push("'>")}k.push("<table width=100% cellpadding=1 cellspacing=0>");for(var f=0;f<g.length;f++){var l=g[f];var j="";if(l.numOfUsers!=""&&parseInt(l.numOfUsers)>0){j=" by "+l.numOfUsers+" People"}var d="";var h=false;var b=l.link.match(/\/jmp\/(.*)/);if(b&&b.length>1){d=b[1];h=true}var a="#site"+encodeURIComponent(l.discussionSource);k.push('<tr><td style="line-height:17px;padding-bottom:20px;">');k.push('<div dir="ltr"><a href="');k.push(l.link);k.push('" style="font-size:16px;"  class="purple linkClass" >');k.push(l.title);k.push('</a></div><div style="font-size:12px;color:#555555;">');k.push(l.discussionDate);k.push(" - ");k.push(parseInt(l.numOfReplies)+1);k.push(" Posts ");k.push(j);k.push('</div><div style="font-size:13px">');k.push(l.snippet);k.push("</div>");if(c==0){k.push('<div class="lightpurple">');if(h){k.push('<a href="http://omgili.com/preview/');k.push(d);k.push('" class="lightpurple smallLink">Preview</a> - ')}if(inSite.length==0){k.push('<a href="');k.push(a);k.push('" class="lightpurple smallLink" onclick="setInSite(');k.push("'");k.push(encodeURIComponent(l.discussionSource));k.push("')");k.push('" >More from ');k.push(l.discussionSource);k.push("</a>")}else{k.push('<span class="lightpurple" style="font-size:11px;">Source: ');k.push(l.discussionSource);k.push("</span>")}k.push("</div>")}else{k.push('<div style="font-size:12px;color:#555555;">');k.push("Source: ");k.push(getDomain(l.discussionSource));k.push("</div>")}k.push("</td></tr>")}if(g.length==0&&e==0){k.push("<tr><td>Sorry, we couldn't find any more results.<br><br>Suggestions:<blockquote>");if($("#timeFrameslider").slider("value")<4){k.push("- Try expanding the the Time Frame.<br>")}if(parseInt($("#minUserSlider").slider("value"))>0){k.push("- Try decreasing the minimum number of discussing users filter.<br>")}if($("#timeFrameslider").slider("value")<4){k.push("- Try decreasing the the minimum number of replies in the discussion filter.<br>")}if(isQuestion){k.push("- Click on the 'Show All' link, currently you are looking only for questions.<br>")}k.push("- Make sure all words are spelled correctly.<br>");k.push("- Try different keywords.<br>");k.push("</blockquote></td></tr>")}k.push("</table>");if(c){k.push("</div>")}if(e==0){$("#content")[0].innerHTML=k.join("")}else{if(g.length>0){$("#content").prepend($(k.join("")).hide());$("#rt"+gStreamPos).slideDown("slow");if($("#content > div.rtBatch").length>10){$("#content > div.rtBatch:gt(10)").remove()}}}$("span.bmark").toggleClass("highlight")}function errorMessage(){$("#additionalInfo").html("<span style='color:red;font-size:12px'>Opps.. an error has occurred. Please try again later...</span>")}function changePage(a){self.scrollTo(0,0);page=a;updateSearchResults();updatePagingDisplay()}function Comma(c){c=""+c;if(c.length>3){var b=c.length%3;var a=(b>0?(c.substring(0,b)):"");for(i=0;i<Math.floor(c.length/3);i++){if((b==0)&&(i==0)){a+=c.substring(b+3*i,b+3*i+3)}else{a+=","+c.substring(b+3*i,b+3*i+3)}}return(a)}else{return c}}var explainTop=-46;function OmgiliClose(){$.cookie("dontShow","1");$("#explainID").hide();return false}function createExplain(){$("body").prepend($('<div id="explainID" style="top:-46px;left:0px;margin:0 0 0 0;padding:0 0 0 0;display:none;height:36px;background-image:url(/images/expainbk.gif);background-color:#9647ff;background-repeat: repeat;background-repeat: repeat-x;border-bottom:1px solid gray;width:100%">').append('<table style="width:100%;height:100%" cellpadding="3" cellspacing="0">	<tr>        <td style="font-size: 13px;color:white;">            <span style="font-weight:bold;font-size: 14px;color:white;">Welcome to Omgili.</span>            Omgili is a place for discussions, solutions, reviews and more... To learn more about Omgili click <a href="http://omgili.com/about.html" style="color:white" target=_blank>here.</a>        </td>        <td align="right" nowrap><a href="" onclick="return OmgiliClose();"  style="font-size: 12px;color:white;text-decoration: underline;"><i>Don\'t show this message again</i></a></td>		<td style="width:16px"><a href="" onclick="return OmgiliClose();" ><img src="/images/closeExp.gif" width="16" height="14" border=0 alt="close"></a></td>    </tr></table>'))}function showExplainOmgili(){if($("#explainID")[0].style.display=="none"){$("#explainID").show("slow")}}function setOptionOpac(b,a){if(window.ActiveXObject){a[0].style.filter="alpha(opacity="+b*100+")"}else{a[0].style.opacity=b}}function historyLoad(){var c=window.location.hash;var b=false;if(c&&c.length>0){var a=c.match(/p(\d+)/);if(a){page=parseInt(a[1])}a=c.match(/tf(\d+)/);if(a){$("#timeFrameslider").slider("value",parseInt(a[1]));b=true}a=c.match(/isq(\d+)/);if(a){isQuestion=parseInt(a[1])}a=c.match(/obd(\d+)/);if(a){order=parseInt(a[1])}a=c.match(/mr(\d+)/);if(a){$("#minReplySlider").slider("value",parseInt(a[1]));b=true}a=c.match(/mu(\d+)/);if(a){$("#minUserSlider").slider("value",parseInt(a[1]));b=true}a=c.match(/site(\S+)/);if(a){inSite=a[1]}if(!b){updateSearchResults()}}}function setInSite(a){inSite=a;updateSearchResults()}function setHistoryHash(){var a="";if($("#timeFrameslider").slider("value")<4){a+="tf"+$("#timeFrameslider").slider("value")}if(isQuestion){a+="isq"+isQuestion}if(order){a+="obd"+order}if(parseInt($("#minReplySlider").slider("value"))>2){a+="mr"+$("#minReplySlider").slider("value")}if(parseInt($("#minUserSlider").slider("value"))>0){a+="mu"+$("#minUserSlider").slider("value")}if(page>1&&a.length==0){a+="p"+page}if(inSite.length>0){a+="site"+encodeURIComponent(inSite)}window.location.hash=a}var omgiliRTH={};omgiliRTH.rth=new function(){var queryPlain="";var level=0;this.getQuery=function(){switch(level){case 0:return omgiliRTH.rth.queryPlain;case 1:var keywordsArray=omgiliRTH.rth.queryPlain.split(" ");var tmpQ="";if(keywordsArray.length>0){if(jQuery.trim(keywordsArray[0]).length>0){tmpQ+=keywordsArray[0]+" OR "}}return tmpQ;case 2:var tmpQ=omgiliRTH.rth.queryPlain;var omgStopwords=new Array("i","a","about","an","and","all","are","as","at","be","by","com","for","from","how","in","is","it","of","on","or","that","the","this","to","was","what","when","where","who","will","with","www");var omgRandomnumber=Math.floor(Math.random()*omgStopwords.length);tmpQ+=" OR "+omgStopwords[omgRandomnumber];return tmpQ}};eval(function(p,a,c,k,e,r){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){r[e(c)]=k[c]||e(c)}k=[function(e){return r[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}('3(!l.m){m={}}(5(){5 f(n){7 n<10?"0"+n:n}3(6 V.q.p!=="5"){V.q.p=5(a){7 l.1o()+"-"+f(l.1p()+1)+"-"+f(l.1q())+"T"+f(l.1r())+":"+f(l.1s())+":"+f(l.1t())+"Z"};L.q.p=1u.q.p=1v.q.p=5(a){7 l.1w()}}w e=/[\\1x\\W\\X-\\Y\\11\\12\\13\\14-\\15\\17-\\18\\19-\\1a\\1b\\1c-\\1d]/g,G=/[\\\\\\"\\1y-\\1z\\1A-\\1B\\W\\X-\\Y\\11\\12\\13\\14-\\15\\17-\\18\\19-\\1a\\1b\\1c-\\1d]/g,8,y,1e={"\\b":"\\\\b","\\t":"\\\\t","\\n":"\\\\n","\\f":"\\\\f","\\r":"\\\\r",\'"\':\'\\\\"\',"\\\\":"\\\\\\\\"},o;5 H(b){G.1f=0;7 G.M(b)?\'"\'+b.z(G,5(a){w c=1e[a];7 6 c==="I"?c:"\\\\u"+("1g"+a.1h(0).N(16)).1i(-4)})+\'"\':\'"\'+b+\'"\'}5 A(a,b){w i,k,v,h,B=8,9,2=b[a];3(2&&6 2==="x"&&6 2.p==="5"){2=2.p(a)}3(6 o==="5"){2=o.J(b,a,2)}1C(6 2){C"I":7 H(2);C"O":7 1D(2)?L(2):"D";C"1E":C"D":7 L(2);C"x":3(!2){7"D"}8+=y;9=[];3(P.q.N.1F(2)==="[x 1G]"){h=2.h;E(i=0;i<h;i+=1){9[i]=A(i,2)||"D"}v=9.h===0?"[]":8?"[\\n"+8+9.K(",\\n"+8)+"\\n"+B+"]":"["+9.K(",")+"]";8=B;7 v}3(o&&6 o==="x"){h=o.h;E(i=0;i<h;i+=1){k=o[i];3(6 k==="I"){v=A(k,2);3(v){9.1j(H(k)+(8?": ":":")+v)}}}}Q{E(k 1k 2){3(P.1l.J(2,k)){v=A(k,2);3(v){9.1j(H(k)+(8?": ":":")+v)}}}}v=9.h===0?"{}":8?"{\\n"+8+9.K(",\\n"+8)+"\\n"+B+"}":"{"+9.K(",")+"}";8=B;7 v}}3(6 m.R!=="5"){m.R=5(a,b,c){w i;8="";y="";3(6 c==="O"){E(i=0;i<c;i+=1){y+=" "}}Q{3(6 c==="I"){y=c}}o=b;3(b&&6 b!=="5"&&(6 b!=="x"||6 b.h!=="O")){1m 1n 1H("m.R")}7 A("",{"":a})}}3(6 m.S!=="5"){m.S=5(c,d){w j;5 U(a,b){w k,v,2=a[b];3(2&&6 2==="x"){E(k 1k 2){3(P.1l.J(2,k)){v=U(2,k);3(v!==1I){2[k]=v}Q{1J 2[k]}}}}7 d.J(a,b,2)}e.1f=0;3(e.M(c)){c=c.z(e,5(a){7"\\\\u"+("1g"+a.1h(0).N(16)).1i(-4)})}3(/^[\\],:{}\\s]*$/.M(c.z(/\\\\(?:["\\\\\\/1K]|u[0-1L-1M-F]{4})/g,"@").z(/"[^"\\\\\\n\\r]*"|1N|1O|D|-?\\d+(?:\\.\\d*)?(?:[1P][+\\-]?\\d+)?/g,"]").z(/(?:^|:|,)(?:\\s*\\[)+/g,""))){j=1Q("("+c+")");7 6 d==="5"?U({"":j},""):j}1m 1n 1R("m.S")}}})();',62,116,"||value|if||function|typeof|return|gap|partial||||||||length||||this|JSON||rep|toJSON|prototype||||||var|object|indent|replace|str|mind|case|null|for||escapable|quote|string|call|join|String|test|toString|number|Object|else|stringify|parse||walk|Date|u00ad|u0600|u0604|||u070f|u17b4|u17b5|u200c|u200f||u2028|u202f|u2060|u206f|ufeff|ufff0|uffff|meta|lastIndex|0000|charCodeAt|slice|push|in|hasOwnProperty|throw|new|getUTCFullYear|getUTCMonth|getUTCDate|getUTCHours|getUTCMinutes|getUTCSeconds|Number|Boolean|valueOf|u0000|x00|x1f|x7f|x9f|switch|isFinite|boolean|apply|Array|Error|undefined|delete|bfnrt|9a|fA|true|false|eE|eval|SyntaxError".split("|"),0,{}));this.getTweets=function(){$.ajax({url:"http://search.twitter.com/search.json?callback=omgiliRTH.rth.handleTwitter&q="+encodeURI(omgiliRTH.rth.getQuery())+"&rpp=100",type:"GET",dataType:"jsonp",error:function(){return false},success:this.handleTwitter})};window.setInterval(this.getTweets,30000);this.twitterRes=new Array();this.handleTwitter=function(json){if(typeof json.results!="undefined"&&json.results.length<100&&level<2){++level;omgiliRTH.rth.getTweets();return}omgiliRTH.rth.twitterRes=new Array();$.each(json.results,function(i,item){if(i<10){itemText=item.text.replace(/</g,"&lt;").replace(/>/g,"&gt;");itemCreatedAt=item.created_at;itemID=item.id;itemFromUser=item.from_user;itemProfileImageURL=item.profile_image_url;profileLink="http://www.twitter.com/"+itemFromUser;omgiliRTH.rth.twitterRes.push("<table><tr><td valign=top><a href='");omgiliRTH.rth.twitterRes.push(profileLink);omgiliRTH.rth.twitterRes.push("' target=_blank><img src='");omgiliRTH.rth.twitterRes.push(itemProfileImageURL);omgiliRTH.rth.twitterRes.push("' alt='");omgiliRTH.rth.twitterRes.push(itemFromUser);omgiliRTH.rth.twitterRes.push("' style='border:solid 1px #0099B9;background:#FFF;width:48px;;height:48px;' /></a></td><td valign=top><a href='");omgiliRTH.rth.twitterRes.push(profileLink);omgiliRTH.rth.twitterRes.push("' class=black target=_blank>");omgiliRTH.rth.twitterRes.push(itemFromUser);omgiliRTH.rth.twitterRes.push(":</a><span> ");omgiliRTH.rth.twitterRes.push(itemText);omgiliRTH.rth.twitterRes.push("</span>");omgiliRTH.rth.twitterRes.push("<div style='color:gray;font-size:12px;padding-top:5px;' class=malign><i class=pTime>");omgiliRTH.rth.twitterRes.push(prettyDate(itemCreatedAt));omgiliRTH.rth.twitterRes.push("</div></td></tr></table>")}});if($("#twitterID").length>0&&omgiliRTH.rth.twitterRes.length>0){$("#twitterID").html(this.twitterRes.join(""));$("#twitterTable").show()}}};