function emoticon(e){var t;if(e=" "+e+" ",!document.getElementById("comment")||"textarea"!=document.getElementById("comment").type)return!1;if(t=document.getElementById("comment"),document.selection)t.focus(),sel=document.selection.createRange(),sel.text=e,t.focus();else if(t.selectionStart||"0"==t.selectionStart){var n=t.selectionStart,o=t.selectionEnd,i=o;t.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),i+=e.length,t.focus(),t.selectionStart=i,t.selectionEnd=i}else t.value+=e,t.focus()}function ctrlEnter(e){var t=e||window.event;t.ctrlKey&&13==t.keyCode&&(document.getElementById("submitCommentButtonReply")?document.getElementById("submitCommentButtonReply").click():document.getElementById("submitCommentButton").click())}!function($){function clickHandler(e){var t=this.form;if("image"==(t.clk=this).type)if(null!=e.offsetX)t.clk_x=e.offsetX,t.clk_y=e.offsetY;else if("function"==typeof $.fn.offset){var n=$(this).offset();t.clk_x=e.pageX-n.left,t.clk_y=e.pageY-n.top}else t.clk_x=e.pageX-this.offsetLeft,t.clk_y=e.pageY-this.offsetTop;setTimeout(function(){t.clk=t.clk_x=t.clk_y=null},10)}function submitHandler(){var e=this.formPluginId,t=$.fn.ajaxForm.optionHash[e];return $(this).ajaxSubmit(t),!1}$.fn.ajaxSubmit=function(o){"function"==typeof o&&(o={success:o}),o=$.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},o||{});var p={};if($.event.trigger("form.pre.serialize",[this,o,p]),p.veto)return this;var a=this.formToArray(o.semantic);if(o.data)for(var n in o.data)a.push({name:n,value:o.data[n]});if(o.beforeSubmit&&!1===o.beforeSubmit(a,this,o))return this;if($.event.trigger("form.submit.validate",[a,this,o,p]),p.veto)return this;var q=$.param(a);"GET"==o.type.toUpperCase()?(o.url+=(0<=o.url.indexOf("?")?"&":"?")+q,o.data=null):o.data=q;var r=this,callbacks=[];if(o.resetForm&&callbacks.push(function(){r.resetForm()}),o.clearForm&&callbacks.push(function(){r.clearForm()}),!o.dataType&&o.target){var u=o.success||function(){};callbacks.push(function(e){this.evalScripts?$(o.target).attr("innerHTML",e).evalScripts().each(u,arguments):$(o.target).html(e).each(u,arguments)})}else o.success&&callbacks.push(o.success);o.success=function(e,t){for(var n=0,o=callbacks.length;n'),j=i[0],k=$.browser.opera&&window.opera.version()<9;($.browser.msie||k)&&(j.src='javascript:false;document.write("");'),i.css({position:"absolute",top:"-1000px",left:"-1000px"});var l={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}},g=f.global;g&&!$.active++&&$.event.trigger("ajaxStart"),g&&$.event.trigger("ajaxSend",[l,f]);var m=0,n=0;function cb(){if(!m++){j.detachEvent?j.detachEvent("onload",cb):j.removeEventListener("load",cb,!1);var a=!0;try{if(n)throw"timeout";var b,doc;if(doc=j.contentWindow?j.contentWindow.document:j.contentDocument?j.contentDocument:j.document,l.responseText=doc.body?doc.body.innerHTML:null,l.responseXML=doc.XMLDocument?doc.XMLDocument:doc,"json"==f.dataType||"script"==f.dataType){var c=doc.getElementsByTagName("textarea")[0];b=c?c.value:l.responseText,"json"==f.dataType?eval("data = "+b):$.globalEval(b)}else"xml"==f.dataType?(b=l.responseXML,b||null==l.responseText||(b=toXml(l.responseText))):b=l.responseText}catch(e){a=!1,$.handleError(f,l,"error",e)}a&&(f.success(b,"success"),g&&$.event.trigger("ajaxSuccess",[l,f])),g&&$.event.trigger("ajaxComplete",[l,f]),g&&!--$.active&&$.event.trigger("ajaxStop"),f.complete&&f.complete(l,a?"success":"error"),setTimeout(function(){i.remove(),l.responseXML=null},100)}}function toXml(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.tagName?t:null}setTimeout(function(){var e=d.encoding?"encoding":"enctype",t=r.attr("target");r.attr({target:h,method:"POST",action:f.url}),d[e]="multipart/form-data",f.timeout&&setTimeout(function(){n=!0,cb()},f.timeout),i.appendTo("body"),j.attachEvent?j.attachEvent("onload",cb):j.addEventListener("load",cb,!1),d.submit(),r.attr("target",t)},10)}},$.fn.ajaxSubmit.counter=0,$.fn.ajaxForm=function(e){return this.ajaxFormUnbind().submit(submitHandler).each(function(){this.formPluginId=$.fn.ajaxForm.counter++,$.fn.ajaxForm.optionHash[this.formPluginId]=e,$(":submit,input:image",this).click(clickHandler)})},$.fn.ajaxForm.counter=1,$.fn.ajaxForm.optionHash={},$.fn.ajaxFormUnbind=function(){return this.unbind("submit",submitHandler),this.each(function(){$(":submit,input:image",this).unbind("click",clickHandler)})},$.fn.formToArray=function(e){var t=[];if(0==this.length)return t;var n=this[0],o=e?n.getElementsByTagName("*"):n.elements;if(!o)return t;for(var i=0,a=o.length;i ").addClass(u.className).appendTo(n).css(o));var c={left:i.left-a.left-(r.outerWidth()-r.width())/2,top:i.top-a.top-(r.outerHeight()-r.height())/2};if(s)r.css(c).css(f).animate(o,{queue:!1,duration:u.toggleSpeed,easing:u.easing});else{var l=d.extend({},o,c);r.animate(l,{queue:!1,duration:u.moveSpeed,easing:u.easing})}d.isFunction(u.hoverEffect)&&r.queue(u.hoverEffect)},function(e){d("div."+u.className).animate(f,{queue:!1,duration:u.toggleSpeed,easing:u.easing,complete:function(){d(this).remove()}})})}})}(jQuery),$(".post #postail,.reply #submit").css({"-moz-border-radius":"7px","-webkit-border-radius":"7px","border-radius":"7px"}),$(".nav li").css({"-moz-border-radius-topright":"8px","-moz-border-radius-topleft":"8px"}),$(".entry p.code").css("word-break","break-all"),$(document).ready(function(){$("div.timeta,.rssfeed img,.twitter").hover(function(){$(this).fadeTo("fast","1")},function(){$(this).fadeTo("fast","0.7")}).fadeTo("normal","0.7");var e=$("#sidebar ul li ul li");$.browser.msie||e.hover(function(){$(this).fadeTo("fast","1")},function(){$(this).fadeTo("fast","0.7")}).fadeTo("normal","0.7"),(n=$("#footer .g2b,#footer .b2t")).hover(function(){$(this).fadeTo("fast","1")},function(){$(this).fadeTo("fast","0.2")}).fadeTo("normal","0.2"),$("a[rel!='nofollow']a[rel!='external'][target!='_blank']a[class!='nopopup']").click(function(){$("#loading").slideDown(),setTimeout(function(){$("#loading").fadeOut()},4e3)}),$("a[href*='#'],a[rel='external nofollow'],a[href='javascript:void(0)'],a[href='javascript:reset_captcha('')']").click(function(){$("#loading").fadeOut("slow")}),$(".post .entry p a:has(img)").css({background:"transparent",border:"none"}),$(".post .entry p:has(img[src*='yupoo'])").css({"text-indent":"0px","text-align":"center"}),$(".post .entry p:has(object)").css({"text-indent":"0px","text-align":"center",height:"344px",background:"url(/skins/Shawn/images/videobg.png) no-repeat center center",padding:"15px 0 19px"}),$("#sidebar ul:nth-child(even)").css("background","url(/skins/Shawn/images/sidelines.gif) no-repeat"),$("#sidebar ul li ul").css("background","none"),$(".contact a").click(function(){$(this).countdown({seconds:9}).css({border:"none","font-size":"16px",color:"red"}).unbind("click");var e=$(this).parent();setTimeout(function(){e.append("shawnrx@gmail.com"),$(".contact a").hide()},1e4)});var t=/^@/,n=/^#comment-/,o=$.browser.msie&&"6.0"==$.browser.version;$(".commentlist li .list p a").each(function(){$(this).text().match(t)&&$(this).attr("href").match(n)&&$(this).addClass("replybox").removeAttr("rel","nofollow")}),$(".replybox").hover(function(){$($(this).attr("href")).clone().hide().attr("id","").insertAfter($(this).parents("li")).addClass("backward").css({display:"block",opacity:"0"}).animate({marginTop:"-50px",opacity:"1"},500)},function(){$(".backward").animate({marginTop:"40px",opacity:"0"},500).hide(100,function(){$(this).remove()})}).mousemove(function(e){var t=$(".commentlist").offset();o?$(".backward").css({left:e.pageX-t.left-150,top:e.pageY-t.top+60}):$(".backward").css({left:e.pageX-t.left-60,top:e.pageY-t.top+60,"-moz-border-radius":"10px","-webkit-border-radius":"10px"})}),$(".reply input,.reply textarea").focus(function(){$(this).next("span").fadeIn("fast")}),$(".reply input,.reply textarea").blur(function(){$(this).next("span").fadeOut("fast")}),$("a[rel='nofollow'],a[rel='external'],a[rel='external nofollow']").click(function(){return window.open(this.href),!1}),$(".commentlist li").hover(function(){$(this).find(".atreply").css("display","block")},function(){$(this).find(".atreply").css("display","none")}),$.getScript("http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en-us"),$("#share").hover(function(){$("#share ul").css("display","block").animate({top:"-205px",opacity:"0.8"},500)},function(){$("#share ul").animate({top:"-225px",opacity:"0.1"},300),setTimeout(function(){$("#share ul").css("display","none")},310)}),$("#loading").fadeOut(1e3)}),$(function(e){e.easing.elasout=function(e,t,n,o,i){var a=1.70158,r=0,s=o;if(0==t)return n;if(1==(t/=i))return n+o;if(r||(r=.3*i),s.aflow{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}.post .index p a:hover{text-decoration:underline}"),$.cookie=function(e,t,n){if(void 0===t){var o=null;if(document.cookie&&""!=document.cookie)for(var i=document.cookie.split(";"),a=0;a");return x.each(e.split(" "),function(){a.append(function(e,t,n,o,i,a){var r,s,c,l,u,f,d="position:absolute;";e?(r=-1.57,l=n,f=0,d+="top:-"+o+"px;"):(r=1.57,l=0,f=n,d+="bottom:-"+o+"px;"),t?(s=3.14,c=n,u=0,d+="left:-"+o+"px;"):(c=s=0,u=n,d+="right:-"+o+"px;");var p=x(""),h=p[0].getContext("2d");return h.beginPath(),h.lineWidth=2*o,h.arc(c,l,n,r,s,!(e^t)),h.strokeStyle=i,h.stroke(),h.lineWidth=0,h.lineTo(u,f),h.fillStyle=a,h.fill(),p}("t"==this[0],"l"==this[1],t,n,o,i))}),a}function g(e,t,n,o,i,a,r){return""}var v={corners:"tl tr bl br",radius:10,background:"white",borderWidth:0,fixIE:!0};x.extend(v,e||{});var b=function(e,t,n){var o=parseInt(e.css(t))||0;e.css(t,n+o)};return this.each(function(){var e=x(this),t=1*v.radius,n=1*(v.borderWidth||parseInt(e.css("borderTopWidth"))||0),o=v.background,i=v.borderColor;i=i||(0",x.each(x.trim(a).split(" "),function(){var e,t=1,n=1,o=0;"t"==this.charAt(0)?e="top:-"+s+"px;":(e="bottom:-"+s+"px;",n=r+1),"l"==this.charAt(1)?e+="left:-"+s+"px;":(e+="right:-"+s+"px; ",t=r,o=1),u+="
",u+="",u+=g(3*r,r+s,l,-r/2,t,n,o),0