var GOOGIE_CUR_LANG=null;var GOOGIE_DEFAULT_LANG="en";function GoogieSpell(d,b,a){var f;var e;f=getCookieGoogie("language");if(f!=null){GOOGIE_CUR_LANG=f}else{GOOGIE_CUR_LANG=GOOGIE_DEFAULT_LANG}this.img_dir=d;this.server_url=b;this.edit_layer_float=a;this.org_lang_to_word={da:"Dansk",de:"Deutsch",en:"English",es:"Espa&#241;ol",fr:"Fran&#231;ais",it:"Italiano",nl:"Nederlands",pl:"Polski",pt:"Portugu&#234;s",fi:"Suomi",sv:"Svenska"};this.lang_to_word=this.org_lang_to_word;this.langlist_codes=AJS.keys(this.lang_to_word);this.show_change_lang_pic=true;this.change_lang_pic_placement="left";this.report_state_change=true;this.ta_scroll_top=0;this.el_scroll_top=0;this.lang_chck_spell="Check spelling";this.lang_revert="Revert to";this.lang_close="Close";this.lang_rsm_edt="Resume editing";this.lang_no_error_found="No spelling errors found";this.lang_no_suggestions="No suggestions";this.show_spell_img=true;this.decoration=true;this.use_close_btn=true;this.edit_layer_dbl_click=true;this.report_ta_not_found=true;this.custom_ajax_error=null;this.custom_no_spelling_error=null;this.custom_menu_builder=[];this.custom_item_evaulator=null;this.extra_menu_items=[];this.custom_spellcheck_starter=null;this.main_controller=true;this.lang_state_observer=null;this.spelling_state_observer=null;this.show_menu_observer=null;this.all_errors_fixed_observer=null;this.use_focus=false;this.focus_link_t=null;this.focus_link_b=null;this.cnt_errors=0;this.cnt_errors_fixed=0;var c=function(g){var h=AJS.getEventElm(g);if(h.googie_action_btn!="1"&&this.isLangWindowShown()){this.hideLangWindow()}if(h.googie_action_btn!="1"&&this.isErrorWindowShown()){this.hideErrorWindow()}};AJS.AEV(document,"click",AJS.$b(c,this))}GoogieSpell.prototype.decorateTextarea=function(g){if(typeof(g)=="string"){this.text_area=AJS.$(g)}else{this.text_area=g}var b,d;if(this.text_area!=null){if(!AJS.isDefined(this.spell_container)&&this.decoration){var c=AJS.TABLE();var a=AJS.TBODY();var f=AJS.TR();if(AJS.isDefined(this.force_width)){b=this.force_width}else{b=this.text_area.offsetWidth+"px"}if(AJS.isDefined(this.force_height)){d=this.force_height}else{d=""}var e=AJS.TD();this.spell_container=e;f.appendChild(e);a.appendChild(f);c.appendChild(a);AJS.insertBefore(c,this.text_area);AJS.setHeight(c,e,d);AJS.setWidth(c,e,b);this._table=c;AJS.setClass(c,"googie_correction");e.style.textAlign="right";e.id="googleContainer"}this.checkSpellingState()}else{if(this.report_ta_not_found){alert("Text area not found")}}};GoogieSpell.prototype.setSpellContainer=function(a){this.spell_container=AJS.$(a)};GoogieSpell.prototype.setLanguages=function(a){this.lang_to_word=a;this.langlist_codes=AJS.keys(a)};GoogieSpell.prototype.setForceWidthHeight=function(b,a){this.force_width=b;this.force_height=a};GoogieSpell.prototype.setDecoration=function(a){this.decoration=a};GoogieSpell.prototype.dontUseCloseButtons=function(){this.use_close_btn=false};GoogieSpell.prototype.appendNewMenuItem=function(b,c,a){this.extra_menu_items.push([b,c,a])};GoogieSpell.prototype.appendCustomMenuBuilder=function(eval,builder){this.custom_menu_builder.push([eval,builder])};GoogieSpell.prototype.setFocus=function(){try{this.focus_link_b.focus();this.focus_link_t.focus();return true}catch(a){return false}};GoogieSpell.prototype.getValue=function(a){return a.value};GoogieSpell.prototype.setValue=function(a,b){a.value=b};GoogieSpell.prototype.setStateChanged=function(a){this.state=a;if(this.spelling_state_observer!=null&&this.report_state_change){this.spelling_state_observer(a,this)}};GoogieSpell.prototype.setReportStateChange=function(a){this.report_state_change=a};GoogieSpell.prototype.getGoogleUrl=function(){return this.server_url+GOOGIE_CUR_LANG};GoogieSpell.prototype.getCrazyUrl=function(){return this.server_url+GOOGIE_CUR_LANG+"&text="+encodeURIComponent(this.getValue(this.text_area))};GoogieSpell.escapeSepcial=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};GoogieSpell.createXMLReq=function(a){return'<?xml version="1.0" encoding="utf-8" ?><spellrequest textalreadyclipped="0" ignoredups="0" ignoredigits="1" ignoreallcaps="1"><text>'+a+"</text></spellrequest>"};GoogieSpell.prototype.spellCheck=function(j){var c=this;this.cnt_errors_fixed=0;this.cnt_errors=0;this.setStateChanged("checking_spell");if(this.main_controller){this.appendIndicator(this.spell_span)}this.error_links=[];this.ta_scroll_top=this.text_area.scrollTop;try{this.hideLangWindow()}catch(g){}this.ignore=j;if(this.getValue(this.text_area)==""||j){if(!c.custom_no_spelling_error){c.flashNoSpellingErrorState()}else{c.custom_no_spelling_error(c)}c.removeIndicator();return}this.createEditLayer(this.text_area.offsetWidth,this.text_area.offsetHeight);this.createErrorWindow();AJS.getBody().appendChild(this.error_window);try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead")}catch(g){}if(this.main_controller){this.spell_span.onclick=null}this.orginal_text=this.getValue(this.text_area);var h=AJS.getRequest(this.getCrazyUrl());var a=function(d){var e=d;c.results=c.parseResult(e);if(e.match(/<c.*>/)!=null){c.showErrorsInIframe();c.resumeEditingState()}else{if(!c.custom_no_spelling_error){c.flashNoSpellingErrorState()}else{c.custom_no_spelling_error(c)}}c.removeIndicator()};h.addCallback(a);a=null;var f=function(d,e){if(c.custom_ajax_error){c.custom_ajax_error(e)}else{alert("An error was encountered on the server. Please try again later.")}if(c.main_controller){AJS.removeElement(c.spell_span);c.removeIndicator()}c.checkSpellingState()};h.addErrback(f);f=null;var b=GoogieSpell.escapeSepcial(this.orginal_text);h.sendReq("")};GoogieSpell.prototype.parseResult=function(m){var d=/\w+="(\d+|true)"/g;var g=/\t/g;var a=m.match(/<c[^>]*>[^<]*<\/c>/g);var h=new Array();if(a==null){return h}for(var l=0;l<a.length;l++){var q=new Array();this.errorFound();q.attrs=new Array();var p=a[l].match(d);for(var f=0;f<p.length;f++){var o=p[f].split(/=/);var c=o[1].replace(/"/g,"");if(c!="true"){q.attrs[o[0]]=parseInt(c)}else{q.attrs[o[0]]=c}}q.suggestions=new Array();var n=a[l].replace(/<[^>]*>/g,"");var b=n.split(g);for(var e=0;e<b.length;e++){if(b[e]!=""){q.suggestions.push(b[e])}}h.push(q)}return h};GoogieSpell.prototype.errorFixed=function(){this.cnt_errors_fixed++;if(this.all_errors_fixed_observer){if(this.cnt_errors_fixed==this.cnt_errors){this.hideErrorWindow();this.all_errors_fixed_observer()}}};GoogieSpell.prototype.errorFound=function(){this.cnt_errors++};GoogieSpell.prototype.createErrorWindow=function(){this.error_window=AJS.DIV();this.error_window.className="googie_window";this.error_window.googie_action_btn="1"};GoogieSpell.prototype.isErrorWindowShown=function(){return this.error_window!=null&&this.error_window.style.visibility=="visible"};GoogieSpell.prototype.hideErrorWindow=function(){try{this.error_window.style.visibility="hidden";if(this.error_window_iframe){this.error_window_iframe.style.visibility="hidden"}}catch(a){}};GoogieSpell.prototype.updateOrginalText=function(g,a,e,h){var d=this.orginal_text.substring(0,g);var c=this.orginal_text.substring(g+a.length);this.orginal_text=d+e+c;this.setValue(this.text_area,this.orginal_text);var f=e.length-a.length;for(var b=0;b<this.results.length;b++){if(b!=h&&b>h){this.results[b]["attrs"]["o"]+=f}}};GoogieSpell.prototype.saveOldValue=function(b,a){b.is_changed=true;b.old_value=a};GoogieSpell.prototype.createListSeparator=function(){var a=AJS.TD(" ");a.googie_action_btn="1";a.style.cursor="default";a.style.fontSize="3px";a.style.borderTop="1px solid #ccc";a.style.paddingTop="3px";return AJS.TR(a)};GoogieSpell.prototype.correctError=function(h,g,f,a){var b=g.innerHTML;var c=f.innerHTML;var e=this.results[h]["attrs"]["o"];if(a){var d=g.previousSibling.innerHTML;g.previousSibling.innerHTML=d.slice(0,d.length-1);b=" "+b;e--}this.hideErrorWindow();this.updateOrginalText(e,b,c,h);g.innerHTML=c;g.style.color="green";g.is_corrected=true;this.results[h]["attrs"]["l"]=c.length;if(!AJS.isDefined(g.old_value)){this.saveOldValue(g,b)}this.errorFixed()};GoogieSpell.prototype.showErrorWindow=function(n,t){if(this.show_menu_observer){this.show_menu_observer(this)}var D=this;var b=AJS.absolutePosition(n);b.y-=this.edit_layer.scrollTop;this.error_window.style.visibility="visible";AJS.setTop(this.error_window,(b.y+20));AJS.setLeft(this.error_window,(b.x));this.error_window.innerHTML="";var x=AJS.TABLE({"class":"googie_list"});x.googie_action_btn="1";var y=AJS.TBODY();var j=false;if(this.custom_menu_builder!=[]){for(var v=0;v<this.custom_menu_builder.length;v++){var h=this.custom_menu_builder[v];if(h[0]((this.results[t]))){j=h[1](this,y,n);break}}}if(!j){var s=this.results[t]["suggestions"];var g=this.results[t]["attrs"]["o"];var w=this.results[t]["attrs"]["l"];if(s.length==0){var m=AJS.TR();var z=AJS.TD({style:"cursor: default;"});var E=AJS.SPAN();E.innerHTML=this.lang_no_suggestions;AJS.ACN(z,AJS.TN(E.innerHTML));z.googie_action_btn="1";m.appendChild(z);y.appendChild(m)}for(i=0;i<s.length;i++){var m=AJS.TR();var z=AJS.TD();var E=AJS.SPAN();E.innerHTML=s[i];z.appendChild(AJS.TN(E.innerHTML));var r=function(k){var F=AJS.getEventElm(k);this.correctError(t,n,F)};AJS.AEV(z,"click",AJS.$b(r,this));z.onmouseover=GoogieSpell.item_onmouseover;z.onmouseout=GoogieSpell.item_onmouseout;m.appendChild(z);y.appendChild(m)}if(n.is_changed&&n.innerHTML!=n.old_value){var c=n.old_value;var e=AJS.TR();var a=AJS.TD();a.onmouseover=GoogieSpell.item_onmouseover;a.onmouseout=GoogieSpell.item_onmouseout;var l=AJS.SPAN({"class":"googie_list_revert"});l.innerHTML=this.lang_revert+" "+c;a.appendChild(l);var r=function(k){this.updateOrginalText(g,n.innerHTML,c,t);n.is_corrected=true;n.style.color="#b91414";n.innerHTML=c;this.hideErrorWindow()};AJS.AEV(a,"click",AJS.$b(r,this));e.appendChild(a);y.appendChild(e)}var B=AJS.TR();var u=AJS.TD({style:"cursor: default"});var C=AJS.INPUT({style:"width: 120px; margin:0; padding:0",value:n.innerHTML});C.googie_action_btn="1";var f=function(){if(C.value!=""){if(!AJS.isDefined(n.old_value)){this.saveOldValue(n,n.innerHTML)}this.updateOrginalText(g,n.innerHTML,C.value,t);n.style.color="green";n.is_corrected=true;n.innerHTML=C.value;this.hideErrorWindow()}return false};f=AJS.$b(f,this);var q=AJS.IMG({src:this.img_dir+"ok.gif",style:"width: 32px; height: 16px; margin-left: 2px; margin-right: 2px; cursor: pointer;"});var d=AJS.FORM({style:"margin: 0; padding: 0; cursor: default;"},C,q);d.googie_action_btn="1";u.googie_action_btn="1";AJS.AEV(d,"submit",f);AJS.AEV(q,"click",f);u.appendChild(d);B.appendChild(u);y.appendChild(B);if(this.extra_menu_items.length>0){AJS.ACN(y,this.createListSeparator())}var A=function(G){if(G<D.extra_menu_items.length){var F=D.extra_menu_items[G];if(!F[2]||F[2](n,D)){var k=AJS.TR();var I=AJS.TD(F[0]);I.onmouseover=GoogieSpell.item_onmouseover;I.onmouseout=GoogieSpell.item_onmouseout;var H=function(){return F[1](n,D)};AJS.AEV(I,"click",H);AJS.ACN(k,I);AJS.ACN(y,k)}A(G+1)}};A(0);A=null;if(this.use_close_btn){AJS.ACN(y,this.createCloseButton(this.hideErrorWindow))}}x.appendChild(y);this.error_window.appendChild(x);if(AJS.isIe()&&!this.error_window_iframe){var p=AJS.IFRAME({style:"position: absolute; z-index: 0;"});AJS.ACN(AJS.getBody(),p);this.error_window_iframe=p}if(AJS.isIe()){var p=this.error_window_iframe;AJS.setTop(p,this.error_window.offsetTop);AJS.setLeft(p,this.error_window.offsetLeft);AJS.setWidth(p,this.error_window.offsetWidth);AJS.setHeight(p,this.error_window.offsetHeight);p.style.visibility="visible"}var o=this.createFocusLink("link");y.appendChild(AJS.TR(AJS.TD({style:"text-align: right; font-size: 1px; height: 1px; margin: 0; padding: 0;"},o)));o.focus()};GoogieSpell.prototype.createEditLayer=function(c,a){this.edit_layer=AJS.DIV({"class":"googie_edit_layer"});this.edit_layer.className=this.text_area.className;this.edit_layer.style.border="1px solid #999";this.edit_layer.style.backgroundColor="#f7f7f7";this.edit_layer.style.padding="3px";this.edit_layer.style.margin="0px";if(this.edit_layer_float!=null&&this.edit_layer_float){if(this.edit_layer.className.length>0){this.edit_layer.className+=" floatLeft"}else{this.edit_layer.className="floatLeft"}}AJS.setWidth(this.edit_layer,(c-8));if(AJS.nodeName(this.text_area)!="input"||this.getValue(this.text_area)==""){this.edit_layer.style.overflow="auto";AJS.setHeight(this.edit_layer,(a-6))}else{this.edit_layer.style.overflow="hidden"}if(this.edit_layer_dbl_click){var d=this;var b=function(g){if(AJS.getEventElm(g).className!="googie_link"&&!d.isErrorWindowShown()){d.resumeEditing();var f=function(){d.text_area.focus();f=null};AJS.callLater(f,10)}return false};this.edit_layer.ondblclick=b;b=null}};GoogieSpell.prototype.resumeEditing=function(){this.setStateChanged("spell_check");this.switch_lan_pic.style.display="inline";if(this.edit_layer){this.el_scroll_top=this.edit_layer.scrollTop}this.hideErrorWindow();if(this.main_controller){this.spell_span.className="googie_no_style"}if(!this.ignore){try{this.edit_layer.parentNode.removeChild(this.edit_layer);if(this.use_focus){AJS.removeElement(this.focus_link_t);AJS.removeElement(this.focus_link_b)}}catch(a){}AJS.showElement(this.text_area);if(this.el_scroll_top!=undefined){this.text_area.scrollTop=this.el_scroll_top}}this.checkSpellingState(false)};GoogieSpell.prototype.createErrorLink=function(c,f){var e=AJS.SPAN({"class":"googie_link"});var a=this;var b=function(d){a.showErrorWindow(e,f);b=null;return false};AJS.AEV(e,"click",b);e.googie_action_btn="1";e.g_id=f;e.is_corrected=false;e.oncontextmenu=b;e.innerHTML=c;return e};GoogieSpell.createPart=function(e){if(e==" "){return AJS.TN(" ")}var a=AJS.SPAN();var c=true;var d=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1);var b=AJS.SPAN();e=GoogieSpell.escapeSepcial(e);e=e.replace(/\n/g,"<br>");e=e.replace(/    /g," &nbsp;");e=e.replace(/^ /g,"&nbsp;");e=e.replace(/ $/g,"&nbsp;");b.innerHTML=e;return b};GoogieSpell.prototype.showErrorsInIframe=function(){var f=AJS.DIV();f.style.textAlign="left";var a=0;var h=this.results;if(h.length>0){for(var j=0;j<h.length;j++){var g=h[j]["attrs"]["o"];var l=h[j]["attrs"]["l"];var d=this.orginal_text.substring(a,g);var e=GoogieSpell.createPart(d);f.appendChild(e);a+=g-a;var b=this.createErrorLink(this.orginal_text.substr(g,l),j);this.error_links.push(b);f.appendChild(b);a+=l}var k=this.orginal_text.substr(a,this.orginal_text.length);var c=GoogieSpell.createPart(k);f.appendChild(c)}else{f.innerHTML=this.orginal_text}var m=this;if(this.custom_item_evaulator){AJS.map(this.error_links,function(n){m.custom_item_evaulator(m,n)})}AJS.ACN(this.edit_layer,f);this.text_area_bottom=this.text_area.offsetTop+this.text_area.offsetHeight;AJS.hideElement(this.text_area);AJS.insertBefore(this.edit_layer,this.text_area);if(this.use_focus){this.focus_link_t=this.createFocusLink("focus_t");this.focus_link_b=this.createFocusLink("focus_b");AJS.insertBefore(this.focus_link_t,this.edit_layer);AJS.insertAfter(this.focus_link_b,this.edit_layer)}this.edit_layer.scrollTop=this.ta_scroll_top};GoogieSpell.prototype.createLangWindow=function(){this.language_window=AJS.DIV({"class":"googie_window"});AJS.setWidth(this.language_window,100);this.language_window.googie_action_btn="1";var d=AJS.TABLE({"class":"googie_list"});AJS.setWidth(d,"100%");var e=AJS.TBODY();this.lang_elms=new Array();for(i=0;i<this.langlist_codes.length;i++){var f=AJS.TR();var c=AJS.TD();c.googieId=this.langlist_codes[i];this.lang_elms.push(c);var a=AJS.SPAN();a.innerHTML=this.lang_to_word[this.langlist_codes[i]];c.appendChild(AJS.TN(a.innerHTML));var b=function(g){var h=AJS.getEventElm(g);this.deHighlightCurSel();this.setCurrentLanguage(h.googieId);if(this.lang_state_observer!=null){this.lang_state_observer()}this.highlightCurSel();this.hideLangWindow()};AJS.AEV(c,"click",AJS.$b(b,this));c.onmouseover=function(h){var g=AJS.getEventElm(h);if(g.className!="googie_list_selected"){g.className="googie_list_onhover"}};c.onmouseout=function(h){var g=AJS.getEventElm(h);if(g.className!="googie_list_selected"){g.className="googie_list_onout"}};f.appendChild(c);e.appendChild(f)}if(this.use_close_btn){e.appendChild(this.createCloseButton(this.hideLangWindow))}this.highlightCurSel();d.appendChild(e);this.language_window.appendChild(d)};GoogieSpell.prototype.setCurrentLanguage=function(b){GOOGIE_CUR_LANG=b;var a=new Date();a.setTime(a.getTime()+365*24*60*60*1000);setCookieGoogie("language",b,a)};GoogieSpell.prototype.isLangWindowShown=function(){return this.language_window!=null&&this.language_window.style.visibility=="visible"};GoogieSpell.prototype.hideLangWindow=function(){try{this.language_window.style.visibility="hidden";this.switch_lan_pic.className="googie_lang_3d_on"}catch(a){}};GoogieSpell.prototype.deHighlightCurSel=function(){this.lang_cur_elm.className="googie_list_onout"};GoogieSpell.prototype.highlightCurSel=function(){if(GOOGIE_CUR_LANG==null){GOOGIE_CUR_LANG=GOOGIE_DEFAULT_LANG}for(var a=0;a<this.lang_elms.length;a++){if(this.lang_elms[a].googieId==GOOGIE_CUR_LANG){this.lang_elms[a].className="googie_list_selected";this.lang_cur_elm=this.lang_elms[a]}else{this.lang_elms[a].className="googie_list_onout"}}};GoogieSpell.prototype.showLangWindow=function(d,a,b){if(this.show_menu_observer){this.show_menu_observer(this)}if(!AJS.isDefined(a)){a=20}if(!AJS.isDefined(b)){b=100}this.createLangWindow();AJS.getBody().appendChild(this.language_window);var c=AJS.absolutePosition(d);AJS.showElement(this.language_window);AJS.setTop(this.language_window,(c.y+a));AJS.setLeft(this.language_window,(c.x+b-this.language_window.offsetWidth));this.highlightCurSel();this.language_window.style.visibility="visible"};GoogieSpell.prototype.createChangeLangPic=function(){var a=AJS.IMG({src:this.img_dir+"change_lang.gif",alt:"Change language"});a.googie_action_btn="1";var c=AJS.SPAN({"class":"googie_lang_3d_on",style:"padding-left: 6px;"},a);var b=function(d){var f=AJS.getEventElm(d);if(AJS.nodeName(f)=="img"){f=f.parentNode}if(f.className=="googie_lang_3d_click"){f.className="googie_lang_3d_on";this.hideLangWindow()}else{f.className="googie_lang_3d_click";this.showLangWindow(c)}};AJS.AEV(c,"click",AJS.$b(b,this));return c};GoogieSpell.prototype.createSpellDiv=function(){var a=AJS.SPAN({"class":"googie_check_spelling_link"});a.innerHTML=this.lang_chck_spell;var b=null;if(this.show_spell_img){b=AJS.IMG({src:this.img_dir+"spellc.gif"})}return AJS.SPAN(b," ",a)};GoogieSpell.prototype.flashNoSpellingErrorState=function(a){var e;if(a){var c=function(){a();this.checkSpellingState()};e=c}else{e=this.checkSpellingState}this.setStateChanged("no_error_found");if(this.main_controller){AJS.hideElement(this.switch_lan_pic);var d=AJS.IMG({src:this.img_dir+"blank.gif",style:"height: 16px; width: 1px;"});var b=AJS.SPAN();b.innerHTML=this.lang_no_error_found;AJS.RCN(this.spell_span,AJS.SPAN(d,b));this.spell_span.className="googie_check_spelling_ok";this.spell_span.style.textDecoration="none";this.spell_span.style.cursor="default";AJS.callLater(AJS.$b(e,this),1200,[false])}};GoogieSpell.prototype.resumeEditingState=function(){this.setStateChanged("resume_editing");if(this.main_controller){AJS.hideElement(this.switch_lan_pic);var d=AJS.IMG({src:this.img_dir+"blank.gif",style:"height: 16px; width: 1px;"});var b=AJS.SPAN();b.innerHTML=this.lang_rsm_edt;AJS.RCN(this.spell_span,AJS.SPAN(d,b));var a=function(f){this.resumeEditing()};this.spell_span.onclick=AJS.$b(a,this);this.spell_span.className="googie_resume_editing"}try{this.edit_layer.scrollTop=this.ta_scroll_top}catch(c){}};GoogieSpell.prototype.checkSpellingState=function(c){if(!AJS.isDefined(c)||c){this.setStateChanged("spell_check")}if(this.show_change_lang_pic){this.switch_lan_pic=this.createChangeLangPic()}else{this.switch_lan_pic=AJS.SPAN()}var a=this.createSpellDiv();var b=function(){this.spellCheck()};if(this.custom_spellcheck_starter){a.onclick=this.custom_spellcheck_starter}else{a.onclick=AJS.$b(b,this)}this.spell_span=a;if(this.main_controller){if(this.change_lang_pic_placement=="left"){AJS.RCN(this.spell_container,a," ",this.switch_lan_pic)}else{AJS.RCN(this.spell_container,this.switch_lan_pic," ",a)}}};GoogieSpell.item_onmouseover=function(a){var b=AJS.getEventElm(a);if(b.className!="googie_list_revert"&&b.className!="googie_list_close"){b.className="googie_list_onhover"}else{b.parentNode.className="googie_list_onhover"}};GoogieSpell.item_onmouseout=function(a){var b=AJS.getEventElm(a);if(b.className!="googie_list_revert"&&b.className!="googie_list_close"){b.className="googie_list_onout"}else{b.parentNode.className="googie_list_onout"}};GoogieSpell.prototype.createCloseButton=function(a){return this.createButton(this.lang_close,"googie_list_close",AJS.$b(a,this))};GoogieSpell.prototype.createButton=function(b,d,f){var e=AJS.TR();var c=AJS.TD();c.onmouseover=GoogieSpell.item_onmouseover;c.onmouseout=GoogieSpell.item_onmouseout;var a;if(d!=""){a=AJS.SPAN({"class":d});a.innerHTML=b}else{a=AJS.TN(b)}c.appendChild(a);AJS.AEV(c,"click",f);e.appendChild(c);return e};GoogieSpell.prototype.removeIndicator=function(b){try{AJS.removeElement(this.indicator)}catch(a){}};GoogieSpell.prototype.appendIndicator=function(c){var a=AJS.IMG({src:this.img_dir+"indicator.gif",style:"margin-right: 5px;"});AJS.setWidth(a,16);AJS.setHeight(a,16);this.indicator=a;a.style.textDecoration="none";try{AJS.insertBefore(a,c)}catch(b){}};GoogieSpell.prototype.createFocusLink=function(a){return AJS.A({href:"javascript:;",name:a})};
