function lc(str){str+="";return str.toLowerCase()}Meetup.DomDeco.Jumpto=function(){bindMethods(this)};Meetup.DomDeco.Jumpto.prototype={decorate:function(el){if(!el){LOG.error("no element passed in to Meetup.DomDeco.Jumpto.decorate()");return}var targMatch=el.className.match(/.*?J_jumpto_in_(\w+)/);if(targMatch&&targMatch[1]){this._targetElId=targMatch[1];this._targetEl=$(targMatch[1]);this._targetEl.style.position="relative"}else{return}var alphabet=(hasElementClass(el,"J_jumpto_short"))?this._alphabetShort:this._alphabetFull;removeEmptyTextNodes(this._targetEl);var cursor=0;if(this._targetEl.childNodes.length>0){var firstChild=this._targetEl.childNodes[0];while(lc(getNodeAttribute(firstChild,"sortby"))>alphabet[cursor].key&&alphabet[cursor]){insertSiblingNodesBefore(firstChild,DIV({id:this._targetElId+"_"+alphabet[cursor].key,sortby:alphabet[cursor].key}));cursor++}var i=cursor+1;while(i<this._targetEl.childNodes.length&&alphabet[cursor]){if(lc(getNodeAttribute(this._targetEl.childNodes[i],"sortby"))>alphabet[cursor].key){insertSiblingNodesBefore(this._targetEl.childNodes[i],DIV({id:this._targetElId+"_"+alphabet[cursor].key,sortby:alphabet[cursor].key}));cursor++;i++}else{i++}}}while(cursor<alphabet.length){appendChildNodes(this._targetEl,DIV({id:this._targetElId+"_"+alphabet[cursor].key,sortby:alphabet[cursor].key}));cursor++}this._kidLinks=new Array();for(var i=0;i<alphabet.length;i++){this._kidLinks.push(A({href:"JAVASCRIPT:void(0);",sortby:alphabet[i].key},alphabet[i].label));connect(this._kidLinks[this._kidLinks.length-1],"onclick",this._scrollTo)}appendChildNodes(el,SPAN(null,STRONG("jump to:")),this._kidLinks)},_scrollTo:function(e){this._targetEl.scrollTop=$(this._targetElId+"_"+getNodeAttribute(e.target(),"sortby")).offsetTop},_mainEl:null,_alphabetFull:[{label:"#",key:"#"},{label:"a",key:"a"},{label:"b",key:"b"},{label:"c",key:"c"},{label:"d",key:"d"},{label:"e",key:"e"},{label:"f",key:"f"},{label:"g",key:"g"},{label:"h",key:"h"},{label:"i",key:"i"},{label:"j",key:"j"},{label:"k",key:"k"},{label:"l",key:"l"},{label:"m",key:"m"},{label:"n",key:"n"},{label:"o",key:"o"},{label:"p",key:"p"},{label:"q",key:"q"},{label:"r",key:"r"},{label:"s",key:"s"},{label:"t",key:"t"},{label:"u",key:"u"},{label:"v",key:"v"},{label:"w",key:"w"},{label:"x",key:"x"},{label:"y",key:"y"},{label:"z",key:"z"}],_alphabetShort:[{label:"#",key:"#"},{label:"a-c",key:"a"},{label:"d-f",key:"d"},{label:"g-i",key:"g"},{label:"j-l",key:"j"},{label:"m-o",key:"m"},{label:"p-r",key:"p"},{label:"s-u",key:"s"},{label:"v-x",key:"v"},{label:"y-z",key:"y"}],_kidLinks:null,_itemEls:null,_targetElId:null,_targetEl:null,__repr__:function(){return"Meetup.DomDeco.Jumpto"}};Meetup.DOMReady.ready(function(){Meetup.DomDeco.applyByTagAndClass("DIV","J_jumpto",Meetup.DomDeco.Jumpto)});