$(function(){jQuery.highlight=document.body.createTextRange?function(a,b){var r=document.body.createTextRange();r.moveToElementText(a);for(var i=0;r.findText(b);i++){r.pasteHTML("<span class=\"highlight\">"+r.text+"</span>");r.collapse(false)}}:function(a,b){var c,skip,spannode,middlebit,endbit,middleclone;skip=0;if(a.nodeType==3){c=a.data.toUpperCase().indexOf(b);if(c>=0){spannode=document.createElement("span");spannode.className="highlight";middlebit=a.splitText(c);endbit=middlebit.splitText(b.length);middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);skip=1}}else{if(a.nodeType==1&&a.childNodes&&!/(script|style)/i.test(a.tagName)){for(var i=0;i<a.childNodes.length;++i){i+=$.highlight(a.childNodes[i],b)}}}return skip};$.dynaCloud.stopwords=new RegExp("\\s(("+$.dynaCloud.stopwords.join("|")+")\\s)+","gi");if($.dynaCloud.auto){$("*[@class*=dynacloud]").dynaCloud()}});jQuery.dynaCloud={cloud:{},max:10,sort:true,auto:true,single:true,wordStats:true,stopwords:["a","about","above","accordingly","after","again","against","ah","all","also","although","always","am","an","and","any","anymore","anyone","are","as","at","away","be","been","begin","beginning","beginnings","begins","begone","begun","being","below","between","but","by","ca","can","cannot","come","could","did","do","doing","during","each","either","else","end","et","etc","even","ever","far","ff","following","for","from","further","get","go","goes","going","got","had","has","have","he","her","hers","herself","him","himself","his","how","i","if","in","into","is","it","its","itself","last","lastly","less","many","may","me","might","more","must","my","myself","near","nearly","never","new","next","no","not","now","o","of","off","often","oh","on","only","or","other","otherwise","our","ourselves","out","over","perhaps","put","puts","quite","s","said","saw","say","see","seen","shall","she","should","since","so","some","such","t","than","that","the","their","them","themselves","then","there","therefore","these","they","this","those","thou","though","throughout","thus","to","too","toward","unless","until","up","upon","us","ve","very","was","we","were","what","whatever","when","where","which","while","who","whom","whomever","whose","why","with","within","without","would","yes","your","yours","yourself","yourselves"]};jQuery.fn.dynaCloud=function(){return this.each(function(){var c=[];var d=0;if(typeof $.wordStats!="undefined"&&$.dynaCloud.wordStats){var e=$.dynaCloud.max==-1?50:$.dynaCloud.max;$.wordStats.computeTopWords(e,this);for(var i=0,j=$.wordStats.topWords.length;i<j&&i<=e;++i){var t=$.wordStats.topWords[i].substring(1);if(typeof $.dynaCloud.cloud[t]=="undefined"){$.dynaCloud.cloud[t]={count:$.wordStats.topWeights[i],el:t}}else{$.dynaCloud.cloud[t].count+=$.wordStats.topWeights[i]}d=Math.max($.dynaCloud.cloud[t].count,d)}$.wordStats.clear()}else{var f=$(this).text().replace(/\W/g," ").replace($.dynaCloud.stopwords," ").split(" ");var g=/^[a-z]*[A-Z]([A-Z]+|[a-z]{3,})/;$.each(f,function(i,n){if(g.test(n)){var t=n.toLowerCase();if(typeof $.dynaCloud.cloud[t]=="undefined"){$.dynaCloud.cloud[t]={count:1,el:n}}else{$.dynaCloud.cloud[t].count+=1}d=Math.max($.dynaCloud.cloud[t].count,d)}})}$.each($.dynaCloud.cloud,function(i,n){c[c.length]=n});if($.dynaCloud.sort){c.sort(function(a,b){if(a.count==b.count){return a.el<b.el?-1:(a.el==b.el?0:1)}else{return a.count<b.count?1:-1}})}var h;if((h=$("#dynacloud")).length==0){$("body").append("<p id=\"dynacloud\"></p>");h=$("#dynacloud")}h.empty();var l=$.dynaCloud.max==-1?c.length:Math.min($.dynaCloud.max,c.length);for(var i=0;i<l;++i){h.append("<a href='#"+c[i].el+"' style='font-size: "+Math.ceil((c[i].count/d)*4)+"em'><span>"+c[i].el+"</span></a> &nbsp; ")}$("#dynacloud a").each(function(){$(this).click(function(){if($.dynaCloud.single){$("span.highlight").each(function(){this.parentNode.replaceChild(this.firstChild,this).normalize()})}var a=$(this).text().toUpperCase();$("*[@class*=dynacloud]").each(function(){$.highlight(this,a)});return false})})})};