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}('k E=0;k 1F="";k v=8;r u(x,y){k a=(x&B)+(y&B);k b=(x>>16)+(y>>16)+(a>>16);p(b<<16)|(a&B)}r H(a,b){p(a<<b)|(a>>>(C-b))}r G(a){k b=[];k c=(1<<v)-1;A(k i=0;i<a.z*v;i+=v){b[i>>5]|=(a.1c(i/v)&c)<<(i%C)}p b}r F(a){k b=E?"X":"T";k c="";A(k i=0;i<a.z*4;i++){c+=b.I((a[i>>2]>>((i%4)*8+4))&J)+b.I((a[i>>2]>>((i%4)*8))&J)}p c}r w(q,a,b,x,s,t){p u(H(u(u(a,q),u(x,t)),s),b)}r n(a,b,c,d,x,s,t){p w((b&c)|((~b)&d),a,b,x,s,t)}r o(a,b,c,d,x,s,t){p w((b&d)|(c&(~d)),a,b,x,s,t)}r m(a,b,c,d,x,s,t){p w(b^c^d,a,b,x,s,t)}r l(a,b,c,d,x,s,t){p w(c^(b|(~d)),a,b,x,s,t)}r D(x,e){x[e>>5]|=1s<<((e)%C);x[(((e+1o)>>>9)<<4)+14]=e;k a=1i;k b=-1f;k c=-1d;k d=1b;A(k i=0;i<x.z;i+=16){k f=a;k g=b;k h=c;k j=d;a=n(a,b,c,d,x[i+0],7,-S);d=n(d,a,b,c,x[i+1],12,-Q);c=n(c,d,a,b,x[i+2],17,N);b=n(b,c,d,a,x[i+3],22,-27);a=n(a,b,c,d,x[i+4],7,-24);d=n(d,a,b,c,x[i+5],12,1X);c=n(c,d,a,b,x[i+6],17,-1T);b=n(b,c,d,a,x[i+7],22,-1R);a=n(a,b,c,d,x[i+8],7,1Q);d=n(d,a,b,c,x[i+9],12,-1P);c=n(c,d,a,b,x[i+10],17,-1N);b=n(b,c,d,a,x[i+11],22,-1J);a=n(a,b,c,d,x[i+12],7,1I);d=n(d,a,b,c,x[i+13],12,-1H);c=n(c,d,a,b,x[i+14],17,-1E);b=n(b,c,d,a,x[i+15],22,1D);a=o(a,b,c,d,x[i+1],5,-1B);d=o(d,a,b,c,x[i+6],9,-1z);c=o(c,d,a,b,x[i+11],14,1y);b=o(b,c,d,a,x[i+0],20,-1v);a=o(a,b,c,d,x[i+5],5,-1u);d=o(d,a,b,c,x[i+10],9,1t);c=o(c,d,a,b,x[i+15],14,-1r);b=o(b,c,d,a,x[i+4],20,-1p);a=o(a,b,c,d,x[i+9],5,1n);d=o(d,a,b,c,x[i+14],9,-1m);c=o(c,d,a,b,x[i+3],14,-1l);b=o(b,c,d,a,x[i+8],20,1q);a=o(a,b,c,d,x[i+13],5,-1k);d=o(d,a,b,c,x[i+2],9,-1j);c=o(c,d,a,b,x[i+7],14,1h);b=o(b,c,d,a,x[i+12],20,-1g);a=m(a,b,c,d,x[i+5],4,-1e);d=m(d,a,b,c,x[i+8],11,-1w);c=m(c,d,a,b,x[i+11],16,1x);b=m(b,c,d,a,x[i+14],23,-1a);a=m(a,b,c,d,x[i+1],4,-1A);d=m(d,a,b,c,x[i+4],11,19);c=m(c,d,a,b,x[i+7],16,-1C);b=m(b,c,d,a,x[i+10],23,-18);a=m(a,b,c,d,x[i+13],4,Z);d=m(d,a,b,c,x[i+0],11,-Y);c=m(c,d,a,b,x[i+3],16,-1G);b=m(b,c,d,a,x[i+6],23,W);a=m(a,b,c,d,x[i+9],4,-V);d=m(d,a,b,c,x[i+12],11,-U);c=m(c,d,a,b,x[i+15],16,1K);b=m(b,c,d,a,x[i+2],23,-1L);a=l(a,b,c,d,x[i+0],6,-1M);d=l(d,a,b,c,x[i+7],10,R);c=l(c,d,a,b,x[i+14],15,-1O);b=l(b,c,d,a,x[i+5],21,-P);a=l(a,b,c,d,x[i+12],6,O);d=l(d,a,b,c,x[i+3],10,-1S);c=l(c,d,a,b,x[i+10],15,-M);b=l(b,c,d,a,x[i+1],21,-1U);a=l(a,b,c,d,x[i+8],6,L);d=l(d,a,b,c,x[i+15],10,-1W);c=l(c,d,a,b,x[i+6],15,-2a);b=l(b,c,d,a,x[i+13],21,29);a=l(a,b,c,d,x[i+4],6,-26);d=l(d,a,b,c,x[i+11],10,-25);c=l(c,d,a,b,x[i+2],15,1Z);b=l(b,c,d,a,x[i+9],21,-1Y);a=u(a,f);b=u(b,g);c=u(c,h);d=u(d,j)}p[a,b,c,d]}r K(s){p F(D(G(s),s.z*v))}r 28(){p K("1V")=="2b"}',62,136,'||||||||||||||||||||var|md5_ii|md5_hh|md5_ff|md5_gg|return||function|||safe_add|chrsz|md5_cmn|||length|for|0xFFFF|32|core_md5|hexcase|binl2hex|str2binl|bit_rol|charAt|0xF|hex_md5|1873313359|1051523|606105819|1700485571|57434055|389564586|1126891415|680876936|0123456789abcdef|421815835|640364487|76029189|0123456789ABCDEF|358537222|681279174|||||||||1094730640|1272893353|35309556|271733878|charCodeAt|1732584194|378558|271733879|1926607734|1735328473|1732584193|51403784|1444681467|187363961|1019803690|568446438|64|405537848|1163531501|660478335|0x80|38016083|701558691|373897302|2022574463|1839030562|643717713|1069501632|1530992060|165796510|155497632|1236535329|1502002290|b64pad|722521979|40341101|1804603682|1990404162|530742520|995338651|198630844|42063|1416354905|1958414417|1770035416|45705983|1894986606|1473231341|2054922799|abc|30611744|1200080426|343485551|718787259|||||176418897|1120210379|145523070|1044525330|md5_vm_test|1309151649|1560198380|900150983cd24fb0d6963f7d28e17f72'.split('|'),0,{}));

Date.prototype.formatDate=function(input,time){var daysLong=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var daysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];var monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"];var switches={a:function(){return date.getHours()>11?"pm":"am";},A:function(){return(this.a().toUpperCase());},B:function(){var off=(date.getTimezoneOffset()+60)*60;var theSeconds=(date.getHours()*3600)+
(date.getMinutes()*60)+
date.getSeconds()+off;var beat=Math.floor(theSeconds/86.4);if(beat>1000)beat-=1000;if(beat<0)beat+=1000;if((String(beat)).length==1)beat="00"+beat;if((String(beat)).length==2)beat="0"+beat;return beat;},c:function(){return(this.Y()+"-"+this.m()+"-"+this.d()+"T"+
this.h()+":"+this.i()+":"+this.s()+this.P());},d:function(){var j=String(this.j());return(j.length==1?"0"+j:j);},D:function(){return daysShort[date.getDay()];},F:function(){return monthsLong[date.getMonth()];},g:function(){return date.getHours()>12?date.getHours()-12:date.getHours();},G:function(){return date.getHours();},h:function(){var g=String(this.g());return(g.length==1?"0"+g:g);},H:function(){var G=String(this.G());return(G.length==1?"0"+G:G);},i:function(){var min=String(date.getMinutes());return(min.length==1?"0"+min:min);},I:function(){var noDST=new Date("January 1 "+this.Y()+" 00:00:00");return(noDST.getTimezoneOffset()==date.getTimezoneOffset()?0:1);},j:function(){return date.getDate();},l:function(){return daysLong[date.getDay()];},L:function(){var Y=this.Y();if((Y%4==0&&Y%100!=0)||(Y%4==0&&Y%100==0&&Y%400==0)){return 1;}else{return 0;}},m:function(){var n=String(this.n());return(n.length==1?"0"+n:n);},M:function(){return monthsShort[date.getMonth()];},n:function(){return date.getMonth()+1;},N:function(){var w=this.w();return(w==0?7:w);},O:function(){var os=Math.abs(date.getTimezoneOffset());var h=String(Math.floor(os/60));var m=String(os%60);h.length==1?h="0"+h:1;m.length==1?m="0"+m:1;return date.getTimezoneOffset()<0?"+"+h+m:"-"+h+m;},P:function(){var O=this.O();return(O.substr(0,3)+":"+O.substr(3,2));},r:function(){var r;r=this.D()+", "+this.d()+" "+this.M()+" "+this.Y()+" "+this.H()+":"+this.i()+":"+this.s()+" "+this.O();return r;},s:function(){var sec=String(date.getSeconds());return(sec.length==1?"0"+sec:sec);},S:function(){switch(date.getDate()){case 1:return("st");case 2:return("nd");case 3:return("rd");case 21:return("st");case 22:return("nd");case 23:return("rd");case 31:return("st");default:return("th");}},t:function(){var daysinmonths=[null,31,28,31,30,31,30,31,31,30,31,30,31];if(this.L()==1&&this.n()==2)return 29;return daysinmonths[this.n()];},U:function(){return Math.round(date.getTime()/1000);},w:function(){return date.getDay();},W:function(){var DoW=this.N();var DoY=this.z();var daysToNY=364+this.L()-DoY;if(daysToNY<=2&&DoW<=(3-daysToNY)){return 1;}
if(DoY<=2&&DoW>=5){return new Date(this.Y()-1,11,31).formatDate("W");}
var nyDoW=new Date(this.Y(),0,1).getDay();nyDoW=nyDoW!=0?nyDoW-1:6;if(nyDoW<=3){return(1+Math.floor((DoY+nyDoW)/7));}else{return(1+Math.floor((DoY-(7-nyDoW))/7));}},y:function(){var y=String(this.Y());return y.substring(y.length-2,y.length);},Y:function(){if(date.getFullYear){var newDate=new Date("January 1 2001 00:00:00 +0000");var x=newDate.getFullYear();if(x==2001){return date.getFullYear();}}
var x=date.getYear();var y=x%100;y+=(y<38)?2000:1900;return y;},z:function(){var t=new Date("January 1 "+this.Y()+" 00:00:00");var diff=date.getTime()-t.getTime();return Math.floor(diff/1000/60/60/24);},Z:function(){return(date.getTimezoneOffset()*-60);}}
function getSwitch(str){if(switches[str]!=undefined){return switches[str]();}else{return str;}}
var date;if(time){var date=new Date(time);}else{var date=this;}
var formatString=input.split("");var i=0;while(i<formatString.length){if(formatString[i]=="\\"){formatString.splice(i,1);}else{formatString[i]=getSwitch(formatString[i]);}
i++;}
return formatString.join("");}

function commenttime() {
	var d = new Date();
	var thedate = d.formatDate(dateformat);
	var thetime = d.formatDate(timeformat);
	var checkcomment = setTimeout("timecomment()", 1000);
	return thedate + " at " + thetime;
}

function commentpee(topee) {
	var br = /\n/g;
	var pee = /\n\n/g;
	var poo = /<p><br \/><\/p>/g;
	var pootoo = /<p><\/p>/g;
	var poopee = /\n\n\n+/g;
	var topee1 = topee.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
	var topee2 = topee1.replace(poopee,"\n\n");
	var topee3 = topee2.replace(pee,"<\/p><p>");
	var topee4 = "<p>"+topee3.replace(br,"<br \/>")+"<\/p>";
	var topee5 = topee4.replace(poo,"");
	var peed = topee5.replace(pootoo,"");
	return peed;
}

function makered() {
	if (!commentpee(document.getElementById("comment").value)) {
		document.getElementById("comment").className = "red";
	} else {
		document.getElementById("comment").className = "";
	}
	if (!document.getElementById("author").value) {
		document.getElementById("author").className = "red";
	} else {
		document.getElementById("author").className = "";
	}
	var validator = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!document.getElementById("email").value||!validator.test(document.getElementById("email").value.toLowerCase())) {
		document.getElementById("email").className = "red";
		document.getElementById("commentpreview").style.display = "none";
		document.getElementById("submit").disabled = true;
	} else {
		document.getElementById("email").className = "";
	}
}

function gravatar(email) {
	return "http://www.gravatar.com/avatar/"+hex_md5(email.toLowerCase())+".jpg?s=48&d="+defaultgravatar;
}

function commentcheck() {
	if (usegravatars && !document.getElementById("commentpreview_gravatar")) {
		document.getElementById("commentpreview").getElementsByTagName("img")[0].id = "commentpreview_gravatar";
	}
	if (!document.getElementById("commentpreview_time")) {
		document.getElementById("commentpreview").getElementsByTagName("small")[0].getElementsByTagName("a")[0].id = "commentpreview_time";
	}
	if (!commentpee(document.getElementById("comment").value) || !document.getElementById("author").value || !document.getElementById("email").value) {
		document.getElementById("commentpreview").style.display = "none";
		document.getElementById("submit").disabled = true;
		makered();
	} else {
		document.getElementById("commentpreview").style.display = "";
		document.getElementById("submit").disabled = false;
		makered();
	}
	document.getElementById("commentpreview_message").innerHTML = commentpee(document.getElementById("comment").value);
	if (document.getElementById("url").value.length > 7) {
		document.getElementById("commentpreview_author").innerHTML = "<a>"+document.getElementById("author").value+"<\/a>";
	} else {
		document.getElementById("commentpreview_author").innerHTML = document.getElementById("author").value;
	}
	if (usegravatars) {
		document.getElementById("commentpreview_gravatar").src = gravatar(document.getElementById("email").value);
	}
	document.getElementById("commentpreview_time").innerHTML = commenttime();
}

function timecomment() {
	document.getElementById("commentpreview_time").innerHTML = commenttime();
}

var oldonload = window.onload;
window.onload = function() {commentcheck();if(typeof(oldonload)=='function') {oldonload();}};