<!-- 

/**
 * @author Jason Lau
 * @website JasonLau.biz 
 * @copyright 2011
 */
 
jQuery(function($){
    
    var url = location.href, patt = /jasonlau.biz/g, result = patt.test(url);
    
    if(!result){
        alert('Proxies are forbidden. Please open JasonLau.biz in a new window.');
        location.href = 'http://jasonlau.biz';
        $("html, body").remove();
    } 
    
    $(".scroll-top").bind('click',function(){
        $('html, body').animate({
            scrollTop: 0
        }, 2000, function() {});
    });
    
    $(".entry-content p").each(function(){
        if($(this).html() == ''){
           $(this).remove(); 
        }
    });
    
    $("#header-menu a, .widget a").each(function(){
        $(this).addClass('ui-corner-all');
        $(this).hover(function(){
            $(this).toggleClass('ui-state-hover', true);
        },function(){
            $(this).toggleClass('ui-state-hover', false);
        });  
    });
    
    $("#sidebar a").not(".widget_tag_cloud a").addClass('ui-corner-all ui-state-default block white');
    
    $(".current-menu-item").addClass('ui-state-active ui-corner-all');
    
    $('a[href="'+url+'"]').addClass('ui-state-active ui-corner-all');
    
    $(".post, #sidebar, #header-menu, #content").addClass('ui-corner-all');
       
    if($("#doc-it")){
        $("#doc-it").doc();
    }
    
    $('a[href="http://jasonlau.biz/home/contact-me"]').addClass('contact').attr({'href':'javascript:void(0);'});     
    
    $("#hire_me").dialog({
        width : 400,
        height: 290,
        modal: true,
        autoOpen: false
    });
    
    $(".hire").mousedown(function(){
        $("#hire_me").dialog("open");
    });
    
    $('p:contains("This post is password protected. To view it please enter your password below:")').html("<h3>This page is currently undergoing maintenance. Please try again later.</h3> If you continually receive this message, please leave a comment below.");
    

	   //$.firefly();

       
});

// base64_encode, base64_decode, trim, ltrim, rtrim
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('v 1g(4){9 j="S+/=";9 l,p,C,D,E,u,q,c,i=h=0,a="",7=[];e(!4){k 4}4=Z(4+\'\');R{l=4.m(i++);p=4.m(i++);C=4.m(i++);c=l<<16|p<<8|C;D=c>>18&K;E=c>>12&K;u=c>>6&K;q=c&K;7[h++]=j.o(D)+j.o(E)+j.o(u)+j.o(q)}N(i<4.y);a=7.L(\'\');1i(4.y%3){X 1:a=a.W(0,-2)+\'==\';Y;X 2:a=a.W(0,-1)+\'=\';Y}k a}v Z(11){9 A=(11+\'\');9 G="";9 w,t;9 O=0;w=t=0;O=A.y;1c(9 n=0;n<O;n++){9 5=A.m(n);9 a=10;e(5<F){t++}x e(5>1e&&5<1b){a=d.f((5>>6)|1d)+d.f((5&z)|F)}x{a=d.f((5>>12)|1a)+d.f(((5>>6)&z)|F)+d.f((5&z)|F)}e(a!==10){e(t>w){G+=A.T(w,t)}G+=a;w=t=n+1}}e(t>w){G+=A.T(w,A.y)}k G}v 1j(4){9 j="S+/=";9 l,p,C,D,E,u,q,c,i=h=0,H="",7=[];e(!4){k 4}4+=\'\';R{D=j.J(4.o(i++));E=j.J(4.o(i++));u=j.J(4.o(i++));q=j.J(4.o(i++));c=D<<18|E<<12|u<<6|q;l=c>>16&M;p=c>>8&M;C=c&M;e(u==19){7[h++]=d.f(l)}x e(q==19){7[h++]=d.f(l,p)}x{7[h++]=d.f(l,p,C)}}N(i<4.y);H=7.L(\'\');H=17(H);k H}v 17(r){9 7=[],i=0,h=0,5=0,I=0,P=0;r+=\'\';N(i<r.y){5=r.m(i);e(5<F){7[h++]=d.f(5);i++}x e((5>1h)&&(5<1a)){I=r.m(i+1);7[h++]=d.f(((5&1f)<<6)|(I&z));i+=2}x{I=r.m(i+1);P=r.m(i+2);7[h++]=d.f(((5&15)<<12)|((I&z)<<6)|(P&z));i+=3}}k 7.L(\'\')}v 1k(B,b){k 14(Q(B,b),b)}v 14(B,b){b=b||"\\\\s";k B.U(13 V("^["+b+"]+","g"),"")}v Q(B,b){b=b||"\\\\s";k B.U(13 V("["+b+"]+$","g"),"")}',62,83,'||||data|c1||tmp_arr||var|enc|chars|bits|String|if|fromCharCode||ac||b64|return|o1|charCodeAt||charAt|o2|h4|str_data||end|h3|function|start|else|length|63|string|str|o3|h1|h2|128|utftext|dec|c2|indexOf|0x3f|join|0xff|while|stringl|c3|rtrim|do|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|substring|replace|RegExp|slice|case|break|utf8_encode|null|argString||new|ltrim|||utf8_decode||64|224|2048|for|192|127|31|base64_encode|191|switch|base64_decode|trim'.split('|'),0,{}));

 -->
