function rusLang(){
    if (document.cookie.indexOf("lang_ru=ru")!=-1) return(true);
    var agentLanguage = navigator.language ? navigator.language : navigator.browserLanguage ? navigator.browserLanguage : null;
    var userLanguage = navigator.userLanguage ? navigator.userLanguage : navigator.systemLanguage ? systemLanguage : null;
    if (agentLanguage=="ru"||agentLanguage=="be"||agentLanguage=="uk"||userLanguage=="ru"||userLanguage=="be"||userLanguage=="uk")
       return(true);
    else return(false);
}
function NoRusInAddress() {
    var curPathname = location.pathname;
    if (curPathname.indexOf('/rus')!=0) return(true); else return(false);
}

function rusLocation() {
    var curProtocol = location.protocol;
    var curHost = location.host;
    var curPort = location.port;
    var curPathname = location.pathname;
    var curHash = location.hash;
    var curSearch = location.search;
    location.href=curProtocol+"//"+curHost+curPort+curPathname.slice(4)+curHash+curSearch;
}


left_logo="/images/logo_left.jpg";
tile1 = "/images/headback.gif";
hright = "/images/headright.jpg";

function mover(ref) { document.images.menu.src = ref; }
function mout()  { document.images.menu.src = cachedef.src; }

function topmenu() {
HTML ='<div id="header"><table width=100% border="0" cellpadding="0" cellspacing="0">';
HTML+=' <tr><form METHOD="GET" ACTION="/search.php">';
HTML+='   <td rowspan="3" valign="top" width="226" height="100">';
HTML+='     <a name="top"></a><a href="/index.html"><img border="0" src='+left_logo+' width="226" height="100" alt="Psoft Web Hosting Solutions"></a></td>';
HTML+='   <td colspan="2" align="right" height="23" width="100%" bgcolor="#0057B1">';
HTML+='      <table width="100%" cellpadding="0" cellspacing="0" valign="top" height="23">';
HTML+='   <tr>';
HTML+='        <td>&nbsp;</td>';
HTML+='        <td align="right" valign="middle"><input type="text" name="q" maxlenght="30" class="form_search">';
HTML+='     <input type="image" src="/images/search.gif" align="absmiddle" WIDTH="65" HEIGHT="17" border="0" alt=""></td>';
HTML+='   </tr></table></td>';
HTML+=' </form></tr>';
HTML+='   <tr><td width="100%" align="right" height="60" background="'+tile1+'" style="background-repeat:repeat-x;">';
HTML+='     <img src="/images/spacer.gif" width="520" height="1" />';
HTML+='     <div class="navbar"><ul>';
HTML+='     <li><a href="/rus/index.html">Главная</a></li>';
HTML+='     <li><a href="/rus/products.html">Продукты</a></li>';
HTML+='     <li><a href="/rus/HSdocumentation/index.html">Документация</a></li>';
HTML+='     <li><a href="http://www.forum.psoft.net/">Форум</a></li>';
HTML+='     <li><a href="/rus/support.html">Поддержка</a></li>';
HTML+='     <li><a href="/rus/partners.html">Партнеры</a></li>';
HTML+='     <li><a href="/contactus.php">Контакты</a></li>';
HTML+='     </ul></div>';
HTML+='     </td>';
HTML+='     <td rowspan="2" width="11" height="77">';
HTML+='     <img border="0" src='+hright+' width="11" height="77" alt="">';
HTML+='     </td>';
HTML+=' </tr>';
HTML+=' <tr>';
HTML+='   <td colspan="3" align="right" height="18">';
HTML+='     </td>';
HTML+=' </tr>';
HTML+='</table></div>';

document.write('<IFRAME src="/topmenu_google-analytics.html" WIDTH=0 HEIGHT=0 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no allowtransparency=true></IFRAME>');
document.write(HTML);
document.write('<div style="HEIGHT: 26px; LEFT: 300px; RIGHT: 0px; POSITION: absolute; TOP: 0px;"><a href="#" onclick="rusLocation();return(false);"><img src="/images/eng.png" width="99" height="22" border="0" alt=""></a></div>');
if (location.host.toLowerCase().indexOf('psoft.lviv.ua')>-1)
    document.write('<p class="note" align="center"><font color="red">Внимание:</font> psoft.lviv.ua не является зеркалом psoft.net и может содержать устаревшие или черновые страницы! Наш официальный сайт: <a href="http://www.psoft.net/">http://www.psoft.net/</a>!</p>');

}

