private Link getLink(String text, int PageId, int parentPageID, boolean addParentID,boolean isSubPage){ Link L  = new Link(text); if(_styles){ if ( isSubPage && _subStyles ) { if ( PageId == currentPageId ) L.setStyle(_subHoverName); else L.setStyle(_subName);
private Link getLink(String text, int PageId, int parentPageID, boolean addParentID, boolean isSubPage) { Link L = new Link(text); if (_styles) { if (isSubPage && _subStyles) { if (PageId == currentPageId) L.setStyle(_subHoverName); else L.setStyle(_subName); } else { if (PageId == currentPageId) L.setStyle(_hoverName); else L.setStyle(_name); } } else { if (PageId == currentPageId) L.setFontColor(highlightFontColor); else L.setFontColor(fontColor); L.setFontSize(fontSize); }  L.setPage(PageId); if (addParentID) L.addParameter("parent_id", parentPageID); if (asButton) { L.setAsImageButton(asButton, true); } else if (asTab) { L.setAsImageTab(asTab, true, asFlipped); }  return L;
  private Link getLink(String text, int PageId, int parentPageID, boolean addParentID,boolean isSubPage){    Link L  = new Link(text);      if(_styles){	if ( isSubPage && _subStyles ) {	  if ( PageId == currentPageId )	    L.setStyle(_subHoverName);	  else	    L.setStyle(_subName);	}	else {	  if ( PageId == currentPageId )	    L.setStyle(_hoverName);	  else	    L.setStyle(_name);	}      }      else {	if ( PageId == currentPageId )	  L.setFontColor(highlightFontColor);	else	  L.setFontColor(fontColor);	L.setFontSize(fontSize);      }    L.setPage(PageId);    if ( addParentID )      L.addParameter("parent_id",parentPageID);    if(asButton){      L.setAsImageButton( asButton,true);    }    else if(asTab){      L.setAsImageTab(asTab,true,asFlipped );    }    return L;  }