0)w.push(str);return(w);},computeWords:function(elem){if(!elem)elem=window.document;this.unsortedWords={};if(elem.is("textarea"))
{var text=editor.replaceDivToEn(elem.val());text=text.replace(/\s\-+/g,' ').replace(/\-+\s/g,' ').replaceAll("’","'").replaceAll("‘","'").replaceAll("“",'"').replaceAll("”",'"').replaceAll("–",'-').replaceAll("…",'...');this.addWords(text,1);return;}
else if(elem.is("div[contenteditable='true']")||elem.is("div[contenteditable='true']")){var text=elem.html();text=text.replace(/ /gi," \n").replace(//gi," \n").replace(/<\s*[\/]?div>/gi,"").replace(/ /gi," ").replace(/&/gi,"");var tmp=document.createElement("DIV");text=text.replace(/</gi,' <').replace(/>/gi,'>');tmp.innerHTML=text;text=tmp.textContent||tmp.innerText||"";this.addWords(text,1);return;}
this.addWords($('title',elem).text(),20);wordstats=this;$('h1',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),15);});$('h2',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),10);});$('h3, h4, h5, h6',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),5);});$('strong, b, em, i',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),3);});$('p, div, th, td, li, a, span',elem).each(function(){wordstats.addWordsFromTextNodes($(this).get(0),2);});$('img',elem).each(function(){wordstats.addWords($(this).attr('alt'),1);wordstats.addWords($(this).attr('title'),1);});this._computed=true;},computeTopWords:function(count,elem){if(!this._computed){this.computeWords(elem);}
this.topWords=[];this.topWeights=[];this.sortWords();for(var i=0;ib.weight){return-1}else{return 0}});},clear:function(){this.unsortedWords=this.sortedWords=this.topWords=this.topWeights=null;this._computed=true;}};jQuery.wordStats.stopWords={"1":true,"2":true,"3":true,"4":true,"5":true,"6":true,"7":true,"8":true,"9":true,"a":true,"b":true,"c":true,"d":true,"e":true,"f":true,"g":true,"h":true,"i":true,"j":true,"&":true,"am":true,"an":true,"and":true,"are":true,"aren't":true,"as":true,"at":true,"be":true,"but":true,"by":true,"can":true,"cannot":true,"cant":true,"can't":true,"does":true,"doesn't":true,"doing":true,"done":true,"don't":true,"did":true,"didn't":true,"do":true,"etc":true,"ex":true,"for":true,"from":true,"got":true,"had":true,"hadn't":true,"has":true,"hasn't":true,"have":true,"haven't":true,"having":true,"he":true,"he'd":true,"he'll":true,"her":true,"hers":true,"herself":true,"he's":true,"him":true,"himself":true,"his":true,"i'd":true,"if":true,"i'll":true,"i'm":true,"in":true,"into":true,"is":true,"isn't":true,"it":true,"it'd":true,"it'll":true,"its":true,"it's":true,"itself":true,"i've":true,"me":true,"mr":true,"mrs":true,"my":true,"myself":true,"no":true,"not":true,"of":true,"off":true,"oh":true,"ok":true,"okay":true,"on":true,"or":true,"our":true,"ours":true,"ourselves":true,"out":true,"per":true,"said":true,"she":true,"she'd":true,"she'll":true,"she's":true,"so":true,"than":true,"that":true,"that'll":true,"thats":true,"that's":true,"that've":true,"the":true,"their":true,"theirs":true,"them":true,"themselves":true,"then":true,"there":true,"there'd":true,"there'll":true,"there's":true,"these":true,"they":true,"they'd":true,"they'll":true,"they're":true,"they've":true,"this":true,"those":true,"to":true,"too":true,"up":true,"us":true,"use":true,"used":true,"uses":true,"was":true,"wasn't":true,"way":true,"we":true,"we'd":true,"well":true,"we'll":true,"went":true,"were":true,"we're":true,"weren't":true,"we've":true,"what":true,"what's":true,"where":true,"where's":true,"which":true,"who":true,"who'd":true,"who'll":true,"who's":true,"whose":true,"why":true,"will":true,"with":true,"won't":true,"would":true,"wouldn't":true,"yes":true,"yet":true,"you":true,"you'd":true,"you'll":true,"your":true,"you're":true,"yours":true,"yourself":true,"yourselves":true,"you've":true,'liam':true,'noah':true,'ethan':true,'mason':true,'lucas':true,'logan':true,'oliver':true,'jackson':true,'aiden':true,'jacob':true,'elijah':true,'james':true,'benjamin':true,'alexander':true,'jack':true,'luke':true,'carter':true,'william':true,'michael':true,'daniel':true,'owen':true,'gabriel':true,'henry':true,'matthew':true,'wyatt':true,'jayden':true,'nathan':true,'isaac':true,'caleb':true,'ryan':true,'sebastian':true,'andrew':true,'david':true,'dylan':true,'connor':true,'samuel':true,'jaxon':true,'eli':true,'grayson':true,'joshua':true,'hunter':true,'landon':true,'levi':true,'joseph':true,'anthony':true,'julian':true,'max':true,'john':true,'adam':true,'cameron':true,'gavin':true,'christian':true,'evan':true,'isaiah':true,'leo':true,'lincoln':true,'nolan':true,'thomas':true,'hudson':true,'dominic':true,'brayden':true,'christopher':true,'colton':true,'parker':true,'austin':true,'aaron':true,'nicholas':true,'muhammad':true,'adrian':true,'tyler':true,'cooper':true,'josiah':true,'chase':true,'jonathan':true,'jace':true,'asher':true,'jeremiah':true,'jordan':true,'ian':true,'jaxson':true,'alex':true,'easton':true,'zachary':true,'ezra':true,'carson':true,'miles':true,'blake':true,'xavier':true,'declan':true,'cole':true,'tristan':true,'nathaniel':true,'ayden':true,'micah':true,'ryder':true,'brody':true,'harrison':true,'jason':true,'camden':true,'elias':true,'roman':true,'mateo':true,'greyson':true,'luca':true,'kai':true,'kayden':true,'vincent':true,'robert':true,'bentley':true,'bryce':true,'jude':true,'brandon':true,'jonah':true,'emmett':true,'everett':true,'wesley':true,'weston':true,'silas':true,'jake':true,'finn':true,'ben':true,'charles':true,'jameson':true,'santiago':true,'leonardo':true,'george':true,'theodore':true,'kaiden':true,'bennett':true,'xander':true,'maddox':true,'riley':true,'damian':true,'colin':true,'maxwell':true,'brantley':true,'marcus':true,'sam':true,'jax':true,'graham':true,'aidan':true,'ashton':true,'braxton':true,'theo':true,'jayce':true,'abel':true,'caden':true,'bryson':true,'kingston':true,'bradley':true,'calvin':true,'kyle':true,'ryker':true,'kaden':true,'nicolas':true,'patrick':true,'kaleb':true,'malachi':true,'angel':true,'preston':true,'dean':true,'eric':true,'miguel':true,'antonio':true,'giovanni':true,'conner':true,'avery':true,'elliott':true,'ezekiel':true,'justin':true,'kevin':true,'sean':true,'grant':true,'omar':true,'aj ':true,'ali':true,'brady':true,'ivan':true,'axel':true,'juan':true,'elliot':true,'matteo':true,'diego':true,'maverick':true,'lorenzo':true,'arthur':true,'cayden':true,'joel':true,'enzo':true,'rowan':true,'jose':true,'luis':true,'tucker':true,'paul':true,'jaden':true,'jase':true,'oscar':true,'beau':true,'beckett':true,'zane':true,'myles':true,'august':true,'karter':true,'timothy':true,'jasper':true,'felix':true,'jesse':true,'rylan':true,'tanner':true,'lukas':true,'simon':true,'mark':true,'maximus':true,'richard':true,'judah':true,'edward':true,'amir':true,'carlos':true,'victor':true,'cash':true,'peter':true,'river':true,'zander':true,'zion':true,'emmanuel':true,'griffin':true,'leon':true,'joey':true,'jeremy':true,'reid':true,'zayden':true,'corbin':true,'rafael':true,'brooks':true,'alejandro':true,'archer':true,'seth':true,'caiden':true,'milo':true,'drew':true,'gage':true,'paxton':true,'dante':true,'garrett':true,'spencer':true,'brian':true,'ahmad':true,'damien':true,'derek':true,'mohammed':true,'emma':true,'olivia':true,'sophia':true,'ava':true,'mia':true,'isabella':true,'charlotte':true,'amelia':true,'harper':true,'madison':true,'emily':true,'abigail':true,'lily':true,'ella':true,'sofia':true,'chloe':true,'evelyn':true,'aria':true,'aubrey':true,'scarlett':true,'ellie':true,'zoey':true,'hannah':true,'zoe':true,'grace':true,'addison':true,'elizabeth':true,'audrey':true,'mila':true,'nora':true,'layla':true,'victoria':true,'natalie':true,'lillian':true,'lucy':true,'penelope':true,'brooklyn':true,'claire':true,'savannah':true,'violet':true,'anna':true,'stella':true,'leah':true,'maya':true,'alice':true,'skylar':true,'samantha':true,'maria':true,'eva':true,'sarah':true,'sophie':true,'hailey':true,'kennedy':true,'julia':true,'sadie':true,'hazel':true,'madelyn':true,'paisley':true,'mackenzie':true,'eleanor':true,'aaliyah':true,'gabriella':true,'caroline':true,'kylie':true,'peyton':true,'piper':true,'ariana':true,'bella':true,'kaylee':true,'arianna':true,'cora':true,'clara':true,'taylor':true,'isabelle':true,'camila':true,'autumn':true,'quinn':true,'alyssa':true,'annabelle':true,'lydia':true,'emilia':true,'isla':true,'alexa':true,'allison':true,'aurora':true,'naomi':true,'ruby':true,'valentina':true,'elena':true,'alexis':true,'gianna':true,'madeline':true,'luna':true,'aubree':true,'lilly':true,'eliana':true,'hadley':true,'sydney':true,'reagan':true,'vivian':true,'serenity':true,'bailey':true,'rylee':true,'kayla':true,'faith':true,'alexandra':true,'willow':true,'isabel':true,'lyla':true,'liliana':true,'brielle':true,'morgan':true,'ivy':true,'kinsley':true,'nevaeh':true,'molly':true,'jade':true,'sara':true,'london':true,'adalyn':true,'lauren':true,'natalia':true,'kate':true,'paige':true,'brooke':true,'emery':true,'delilah':true,'ana':true,'adeline':true,'khloe':true,'melody':true,'jasmine':true,'arya':true,'gracie':true,'everly':true,'jordyn':true,'eden':true,'adalynn':true,'charlie':true,'norah':true,'athena':true,'melanie':true,'maggie':true,'elise':true,'mya':true,'reese':true,'laila':true,'jocelyn':true,'abby':true,'eliza':true,'katherine':true,'josephine':true,'kendall':true,'sienna':true,'rose':true,'mary':true,'payton':true,'brianna':true,'lola':true,'makayla':true,'andrea':true,'mckenzie':true,'callie':true,'ariel':true,'alaina':true,'lila':true,'juliana':true,'gabrielle':true,'hayden':true,'emerson':true,'tessa':true,'adelyn':true,'arabella':true,'nicole':true,'evie':true,'alana':true,'cecilia':true,'genevieve':true,'trinity':true,'alina':true,'nur':true,'nina':true,'laura':true,'lucia':true,'genesis':true,'leilani':true,'presley':true,'kaitlyn':true,'teagan':true,'leila':true,'finley':true,'juliette':true,'alexandria':true,'summer':true,'aliyah':true,'josie':true,'keira':true,'ryleigh':true,'fiona':true,'julianna':true,'alayna':true,'mariah':true,'marley':true,'anastasia':true,'brooklynn':true,'helena':true,'iris':true,'adriana':true,'makenzie':true,'lexi':true,'amaya':true,'valerie':true,'londyn':true,'eloise':true,'talia':true,'rebecca':true,'georgia':true,'vivienne':true,'olive':true,'rachel':true,'delaney':true,'kinley':true,'mikayla':true,'katelyn':true,'nova':true,'allie':true,'daisy':true,'evangeline':true,'harmony':true,'zara':true,'lana':true,'ayla':true,'camille':true,'lara':true,'sawyer':true,'lena':true,'mckenna':true,'katie':true,'kenzie':true,'raelynn':true,'alivia':true,'gabriela':true,'maryam':true,'anaya':true,'brynn':true,'noelle':true,'phoebe':true,'angelina':true,'gia':true,'erin':true};jQuery.wordStats.whiteList={'U.S.A.':true,'U.S.':true};;jQuery.extend({highlight:function(node,re,nodeName,className){if(node.nodeType===3){var match=node.data.match(re);if(match){var highlight=document.createElement(nodeName||'span');highlight.className=className||'highlight';var wordNode=node.splitText(match.index);wordNode.splitText(match[0].length);var wordClone=wordNode.cloneNode(true);highlight.appendChild(wordClone);wordNode.parentNode.replaceChild(highlight,wordNode);return 1;}}else if((node.nodeType===1&&node.childNodes)&&!/(script|style)/i.test(node.tagName)&&!(node.tagName===nodeName.toUpperCase()&&node.className===className)){for(var i=0;i
').parent().append($('
').bind("mousedown",{el:this},startDrag));var grippie=$('div.grippie',$(this).parent())[0];grippie.style.marginRight=(grippie.offsetWidth-$(this)[0].offsetWidth)+'px'})
function startDrag(e){textarea=$(e.data.el);textarea.blur();iLastMousePos=mousePosition(e).y;staticOffset=textarea.height()-iLastMousePos;textarea.css('opacity',0.25);$(document).mousemove(performDrag).mouseup(endDrag);return true}
function performDrag(e){var iThisMousePos=mousePosition(e).y;var iMousePos=staticOffset+iThisMousePos;if(iLastMousePos>=(iThisMousePos)){iMousePos-=5}
iLastMousePos=iThisMousePos;iMousePos=Math.max(iMin,iMousePos);textarea.height(iMousePos+'px');if(iMousePos=0){toRange.start=element.value.substr(0,toRange.start).replace(/\r/g,'').length;toRange.end=element.value.substr(0,toRange.end).replace(/\r/g,'').length;}
range.collapse(true);range.moveStart('character',toRange.start);range.moveEnd('character',toRange.end-toRange.start);range.select();}else if(element.setSelectionRange){element.setSelectionRange(toRange.start,toRange.end);}}catch(e){}},getText:function(element){return _getCaretInfo(element).text;},_caretMode:function(caret){caret=caret||"keep";if(caret===true){caret='end';}
switch(caret){case'keep':case'start':case'end':break;default:caret='keep';}
return caret;},replace:function(element,text,caret){var tmp=_getCaretInfo(element),orig=element.value,pos=$(element).scrollTop(),range={start:tmp.start,end:tmp.start+text.length};element.value=orig.substr(0,tmp.start)+text+orig.substr(tmp.end);$(element).scrollTop(pos);this.setPos(element,range,caret);},insertBefore:function(element,text,caret){var tmp=_getCaretInfo(element),orig=element.value,pos=$(element).scrollTop(),range={start:tmp.start+text.length,end:tmp.end+text.length};element.value=orig.substr(0,tmp.start)+text+orig.substr(tmp.start);$(element).scrollTop(pos);this.setPos(element,range,caret);},insertAfter:function(element,text,caret){var tmp=_getCaretInfo(element),orig=element.value,pos=$(element).scrollTop(),range={start:tmp.start,end:tmp.end};element.value=orig.substr(0,tmp.end)+text+orig.substr(tmp.end);$(element).scrollTop(pos);this.setPos(element,range,caret);}};$.extend({selection:function(mode){var getText=((mode||'text').toLowerCase()==='text');try{if(win.getSelection){if(getText){return win.getSelection().toString();}else{var sel=win.getSelection(),range;if(sel.getRangeAt){range=sel.getRangeAt(0);}else{range=doc.createRange();range.setStart(sel.anchorNode,sel.anchorOffset);range.setEnd(sel.focusNode,sel.focusOffset);}
return $('
').append(range.cloneContents()).html();}}else if(doc.selection){if(getText){return doc.selection.createRange().text;}else{return doc.selection.createRange().htmlText;}}}catch(e){}
return'';}});$.fn.extend({selection:function(mode,opts){opts=opts||{};switch(mode){case'getPos':return _CaretOperation.getPos(this[0]);case'setPos':return this.each(function(){_CaretOperation.setPos(this,opts);});case'replace':return this.each(function(){_CaretOperation.replace(this,opts.text,opts.caret);});case'insert':return this.each(function(){if(opts.mode==='before'){_CaretOperation.insertBefore(this,opts.text,opts.caret);}else{_CaretOperation.insertAfter(this,opts.text,opts.caret);}});case'get':default:return _CaretOperation.getText(this[0]);}
return this;}});})(jQuery,window,window.document);;var EXPORTED_SYMBOLS=['AtDCore'];function AtDCore(){this.ignore_types=['Bias Language','Cliches','Complex Expression','Diacritical Marks','Double Negatives','Hidden Verbs','Jargon Language','Passive voice','Phrases to Avoid','Redundant Expression'];this.ignore_strings={};this.i18n={};};AtDCore.prototype.getLang=function(key,defaultk){if(this.i18n[key]==undefined)
return defaultk;return this.i18n[key];};AtDCore.prototype.addI18n=function(localizations){this.i18n=localizations;};AtDCore.prototype.setIgnoreStrings=function(string){var parent=this;this.map(string.split(/,\s*/g),function(string){parent.ignore_strings[string]=1;});};AtDCore.prototype.showTypes=function(string){var show_types=string.split(/,\s*/g);var types={};types["Double Negatives"]=1;types["Hidden Verbs"]=1;types["Passive voice"]=1;types["Bias Language"]=1;types["Cliches"]=1;types["Complex Expression"]=1;types["Diacritical Marks"]=1;types["Jargon Language"]=1;types["Phrases to Avoid"]=1;types["Redundant Expression"]=1;var ignore_types=[];this.map(show_types,function(string){types[string]=undefined;});this.map(this.ignore_types,function(string){if(types[string]!=undefined)
ignore_types.push(string);});this.ignore_types=ignore_types;};AtDCore.prototype.makeError=function(error_s,tokens,type,seps,pre){var struct=new Object();struct.type=type;struct.string=error_s;struct.tokens=tokens;if(new RegExp("\\b"+error_s+"\\b").test(error_s)){struct.regexp=new RegExp("(?!"+error_s+"<)\\b"+error_s.replace(/\s+/g,seps)+"\\b");}
else if(new RegExp(error_s+"\\b").test(error_s)){struct.regexp=new RegExp("(?!"+error_s+"<)"+error_s.replace(/\s+/g,seps)+"\\b");}
else if(new RegExp("\\b"+error_s).test(error_s)){struct.regexp=new RegExp("(?!"+error_s+"<)\\b"+error_s.replace(/\s+/g,seps));}
else{struct.regexp=new RegExp("(?!"+error_s+"<)"+error_s.replace(/\s+/g,seps));}
struct.used=true;return struct;};AtDCore.prototype.addToErrorStructure=function(errors,list,type,seps){var parent=this;this.map(list,function(error){var tokens=error["word"].split(/\s+/);var pre=error["pre"];var first=tokens[0];if(errors['__'+first]==undefined){errors['__'+first]=new Object();errors['__'+first].pretoks={};errors['__'+first].defaults=new Array();}
if(pre==""){errors['__'+first].defaults.push(parent.makeError(error["word"],tokens,type,seps,pre));}else{if(errors['__'+first].pretoks['__'+pre]==undefined)
errors['__'+first].pretoks['__'+pre]=new Array();errors['__'+first].pretoks['__'+pre].push(parent.makeError(error["word"],tokens,type,seps,pre));}});};AtDCore.prototype.buildErrorStructure=function(spellingList,enrichmentList,grammarList){var seps=this._getSeparators();var errors={};this.addToErrorStructure(errors,spellingList,"hiddenSpellError",seps);this.addToErrorStructure(errors,grammarList,"hiddenGrammarError",seps);this.addToErrorStructure(errors,enrichmentList,"hiddenSuggestion",seps);return errors;};AtDCore.prototype._getSeparators=function(){var re='',i;var str='"s!#$%&()*+,./:;<=>?@[\]^_{|}';for(i=0;i0)
errorStruct=this.buildErrorStructure(spellingErrors,enrichment,grammarErrors);else
errorStruct=undefined;return{errors:errorStruct,count:ecount,suggestions:this.suggestions};};AtDCore.prototype.findSuggestion=function(element){var text=element.innerHTML;var context=(this.getAttrib(element,'pre')+"").replace(/[\\,!\\?\\."\s]/g,'');if(this.getAttrib(element,'pre')==undefined)
{alert(element.innerHTML);}
var errorDescription=undefined;var len=this.suggestions.length;for(var i=0;i$&']);error.used=true;done=true;}};var foundStrings={};if(current!=undefined){previous=previous+' ';parent.map(current,checkErrors);}
if(!done){previous='';parent.map(defaults,checkErrors);}}
previous=token;}
if(doReplaces.length>0){newNode=n;for(var x=0;x0&&node.nodeValue.substr(0,1)==' ')
return parent.create(' '+node.nodeValue.substr(1,node.nodeValue.length-1).replace(regexp,result),true);else
return parent.create(node.nodeValue.replace(regexp,result),true);}
else{var contents=parent.contents(node);for(var y=0;y0&&contents[y].nodeValue.substr(0,1)==' ')
nnode=parent.create(' '+contents[y].nodeValue.substr(1,contents[y].nodeValue.length-1).replace(regexp,result),true);else
nnode=parent.create(contents[y].nodeValue.replace(regexp,result),true);parent.replaceWith(contents[y],nnode);parent.removeParent(nnode);ecount++;return node;}}
return node;}};newNode=bringTheHurt(newNode);}
parent.replaceWith(n,newNode);}}});return ecount;};AtDCore.prototype._walk=function(elements,f){var i;for(i=0;i2000&&navigator.appName=='Microsoft Internet Explorer')||text.length>7800){if(callback_f!=undefined&&callback_f.error!=undefined)
callback_f.error("Maximum text length for this browser exceeded");return;}
CSSHttpRequest.get(AtD.rpc_css+text+"&lang="+AtD.rpc_css_lang+"&nocache="+(new Date().getTime()),function(response){var xml;if(navigator.appName=='Microsoft Internet Explorer'){xml=new ActiveXObject("Microsoft.XMLDOM");xml.async=true;xml.loadXML(response);}
else{xml=(new DOMParser()).parseFromString(response,'text/xml');}
if(AtD.core.hasErrorMessage(xml)){if(AtD.callback_f!=undefined&&AtD.callback_f.error!=undefined)
AtD.callback_f.error(AtD.core.getErrorMessage(xml));return;}
AtD.container=container_id;var count=AtD.processXML(container_id,xml);if(AtD.callback_f!=undefined&&AtD.callback_f.ready!=undefined)
AtD.callback_f.ready(count);if(count==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
AtD.callback_f.success(count);AtD.counter=count;AtD.count=count;});};AtD.check=function(container_id,callback_f){if(typeof AtD_proofread_click_count!="undefined")
AtD_proofread_click_count++;AtD.callback_f=callback_f;AtD.remove(container_id);var container=jQuery('#'+container_id);var html=container.html();text=jQuery.trim(container.html());text=encodeURIComponent(text);var ie=(function(){var undef,v=3,div=document.createElement('div'),all=div.getElementsByTagName('i');while(div.innerHTML='',all[0]);return v>4?v:undef;}());jQuery.ajax({type:"POST",url:AtD.rpc+'/checkDocument',data:'key='+AtD.api_key+'&data='+text,format:'raw',dataType:(ie)?"text":"xml",error:function(XHR,status,error){if(AtD.callback_f!=undefined&&AtD.callback_f.error!=undefined)
AtD.callback_f.error(status+": "+error);},success:function(data){var xml;if(typeof data=="string"){xml=new ActiveXObject("Microsoft.XMLDOM");xml.async=true;xml.loadXML(data);}
else{xml=data;}
if(AtD.core.hasErrorMessage(xml)){if(AtD.callback_f!=undefined&&AtD.callback_f.error!=undefined)
AtD.callback_f.error(AtD.core.getErrorMessage(xml));return;}
AtD.container=container_id;var count=AtD.processXML(container_id,xml);if(AtD.callback_f!=undefined&&AtD.callback_f.ready!=undefined)
AtD.callback_f.ready(count);if(count==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
AtD.callback_f.success(count);AtD.counter=count;AtD.count=count;}});};AtD.remove=function(container_id){AtD._removeWords(container_id,null);};AtD.clickListener=function(event){if(AtD.core.isMarkedNode(event.target))
AtD.suggest(event.target);};AtD.processXML=function(container_id,responseXML){var results=AtD.core.processXML(responseXML);if(results.count>0)
results.count=AtD.core.markMyWords(jQuery('#'+container_id).contents(),results.errors);jQuery('#'+container_id).unbind('click',AtD.clickListener);jQuery('#'+container_id).click(AtD.clickListener);return results.count;};AtD.useSuggestion=function(word){this.core.applySuggestion(AtD.errorElement,word);AtD.counter--;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
AtD.callback_f.success(AtD.count);};AtD.editSelection=function(){var parent=AtD.errorElement.parent();if(AtD.callback_f!=undefined&&AtD.callback_f.editSelection!=undefined)
AtD.callback_f.editSelection(AtD.errorElement);if(AtD.errorElement.parent()!=parent){AtD.counter--;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
AtD.callback_f.success(AtD.count);}};AtD.ignoreSuggestion=function(){AtD.core.removeParent(AtD.errorElement);AtD.counter--;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
AtD.callback_f.success(AtD.count);};AtD.ignoreAll=function(container_id){var target=AtD.errorElement.text();var removed=AtD._removeWords(container_id,target);AtD.counter-=removed;if(AtD.counter==0&&AtD.callback_f!=undefined&&AtD.callback_f.success!=undefined)
AtD.callback_f.success(AtD.count);if(AtD.callback_f!=undefined&&AtD.callback_f.ignore!=undefined){AtD.callback_f.ignore(target);AtD.core.setIgnoreStrings(target);}};AtD.explainError=function(){if(AtD.callback_f!=undefined&&AtD.callback_f.explain!=undefined)
AtD.callback_f.explain(AtD.explainURL);};AtD.suggest=function(element){if(jQuery('#suggestmenu').length==0){var suggest=jQuery('');suggest.prependTo('body');}
else{var suggest=jQuery('#suggestmenu');suggest.hide();}
errorDescription=AtD.core.findSuggestion(element);AtD.errorElement=jQuery(element);suggest.empty();if(errorDescription==undefined){suggest.append(''+AtD.getLang('menu_title_no_suggestions','No suggestions')+' ');}
else if(errorDescription["suggestions"].length==0){suggest.append(''+errorDescription['description']+' ');}
else{suggest.append(''+errorDescription['description']+' ');for(var i=0;i'+sugg+'');})(errorDescription["suggestions"][i]);}}
if(AtD.callback_f!=undefined&&AtD.callback_f.explain!=undefined&&errorDescription['moreinfo']!=undefined){suggest.append(''+AtD.getLang('menu_option_explain','Explain...')+' ');AtD.explainURL=errorDescription['moreinfo'];}
suggest.append(''+AtD.getLang('menu_option_ignore_once','Ignore suggestion')+' ');if(AtD.callback_f!=undefined&&AtD.callback_f.editSelection!=undefined){if(AtD.callback_f!=undefined&&AtD.callback_f.ignore!=undefined)
suggest.append(''+AtD.getLang('menu_option_ignore_always','Ignore always')+' ');else
suggest.append(''+AtD.getLang('menu_option_ignore_all','Ignore all')+' ');suggest.append(''+AtD.getLang('menu_option_edit_selection','Edit Selection...')+' ');}
else{if(AtD.callback_f!=undefined&&AtD.callback_f.ignore!=undefined)
suggest.append(''+AtD.getLang('menu_option_ignore_always','Ignore always')+' ');else
suggest.append(''+AtD.getLang('menu_option_ignore_all','Ignore all')+' ');}
var pos=jQuery(element).offset();var width=jQuery(element).width();jQuery(suggest).css({left:(pos.left+width)+'px',top:pos.top+'px'});jQuery(suggest).fadeIn(200);AtD.suggestShow=true;setTimeout(function(){jQuery("body").bind("click",function(){if(!AtD.suggestShow)
jQuery('#suggestmenu').fadeOut(200);});},1);setTimeout(function(){AtD.suggestShow=true;},2);};AtD._removeWords=function(container_id,w){return this.core.removeWords(jQuery('#'+container_id),w);};AtD.initCoreModule=function(){var core=new AtDCore();core.hasClass=function(node,className){return jQuery(node).hasClass(className);};core.map=jQuery.map;core.contents=function(node){return jQuery(node).contents();};core.replaceWith=function(old_node,new_node){return jQuery(old_node).replaceWith(new_node);};core.findSpans=function(parent){return jQuery.makeArray(parent.find('span'));};core.create=function(node_html,isTextNode){return jQuery(''+node_html+' ');};core.remove=function(node){return jQuery(node).remove();};core.removeParent=function(node){if(jQuery(node).unwrap)
return jQuery(node).contents().unwrap();else
return jQuery(node).replaceWith(jQuery(node).html());};core.getAttrib=function(node,name){return jQuery(node).attr(name);};return core;};AtD.core=AtD.initCoreModule();;(function(){var chr=window.CSSHttpRequest={};chr.id=0;chr.requests={};chr.MATCH_ORDINAL=/#c(\d+)/;chr.MATCH_URL=/url\("?data\:[^,]*,([^")]+)"?\)/;chr.get=function(url,callback){var id=++chr.id;var iframe=document.createElement("iframe");iframe.style.position="absolute";iframe.style.left=iframe.style.top="-1000px";iframe.style.width=iframe.style.height=0;document.documentElement.appendChild(iframe);var r=chr.requests[id]={id:id,iframe:iframe,document:iframe.contentDocument||iframe.contentWindow.document,callback:callback};r.document.open("text/html",true);r.document.write("");r.document.write(" ");r.document.write("");r.document.write("")
0 Words 0 Unique Words
0
Characters
0
Characters (no spaces)
0
Sentences
0 Longest Sentence (words)
0
Shortest Sentence (words)
0
Avg. Sentence (words)
0
Avg. Sentence (chars)
0
Avg. word length
0
Paragraphs
0 Pages
0 Syllables
0
Lines
0 Words (Publisher)
N/A Nivel de Carregamento
0 Segundos
Tempo carregado
0 sec
velocidade do tempo
0 segundos
Hand Writing Time