if (!li)
{
li = $('<li>', {'class': myClassName});
if(mainDiv.hasClass('noLink'))
{
else
{
li.class = myClassName;
var href = this.href, cssClass = this['class'] || '';
li.append($('<a>', {href: href, title: pageOfHref(href, cssClass), text: text, 'class': cssClass}))