function getSkypeStatusText($status)
{
    switch ($status["num"]) {
        case 7:
        case 2:
            return get_localization("online");
            break;
        default:
            return get_localization("offline");
    }
}
 private function createLink($nodeToLink, $forOpeningSubMenu = FALSE)
 {
     if ($forOpeningSubMenu && !($nodeToLink->firstChild->tagName == "category")) {
         $id = $nodeToLink->getElementsByTagName("subMenu")->item(0)->getAttribute("menuId");
         return '<li><a href="' . self::LINK_STR . $this->getNodeValue($nodeToLink, "siteName") . '" onmouseover="' . "openMenu('{$id}');" . '" onmouseout="' . "closeMenu('{$id}');" . '" onclick="' . "showMenu('{$id}');" . '">' . get_localization($nodeToLink->getAttribute("itemName")) . '</a>' . "\n" . '<ul class="' . $this->cssStyle . '"id="' . $id . '"onmouseover="' . "openMenu('{$id}');" . '" onmouseout="' . "closeMenu('{$id}');" . '" onclick="' . "showMenu('{$id}');" . '">' . "\n";
     } else {
         if ($forOpeningSubMenu && $nodeToLink->firstChild->tagName == "category") {
             var_dump($nodeToLink->parentNode->tagName);
             return '<li><a href="' . self::LINK_STR . $this->getNodeValue($nodeToLink, "siteName") . '&category=' . $this->getNodeValue($nodeToLink, "category") . '" onmouseover="' . "openMenu();" . '" onmouseout="' . "closeMenu();" . '">' . get_localization($nodeToLink->getAttribute("itemName")) . '</a>' . "\n" . '<ul class="' . $this->cssStyle . '"id="dropdown">' . "\n";
         } else {
             if ($nodeToLink->firstChild->tagName == "category") {
                 return '<li><a href="' . self::LINK_STR . $this->getNodeValue($nodeToLink, "siteName") . '&category=' . $this->getNodeValue($nodeToLink, "category") . '">' . get_localization($nodeToLink->getAttribute("itemName")) . '</a></li>' . "\n";
             } else {
                 return '<li><a href="' . self::LINK_STR . $this->getNodeValue($nodeToLink, "siteName") . '">' . get_localization($nodeToLink->getAttribute("itemName")) . '</a></li>' . "\n";
             }
         }
     }
 }