function rusLang(){
    if (document.cookie.match(/lang_ru=ru/g)) 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;
    if (NoRusInAddress())
      location.href=curProtocol+"//"+curHost+curPort+"/rus"+curPathname+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="/index.html">Home</a></li>';
HTML+='     <li><a href="/products.html">Products</a></li>';
HTML+='     <li><a href="/HSdocumentation/index.html">Documentation</a></li>';
HTML+='     <li><a href="http://www.forum.psoft.net/">Forums</a></li>';
HTML+='     <li><a href="http://www.parallels.com/support/hsphere/">Support</a></li>';
HTML+='     <li><a href="/partners.html">Partners</a></li>';
HTML+='     <li><a href="/contactus.php">Contact&nbsp;Us</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('<FRAME src="/topmenu_google-analytics.html" WIDTH=0 HEIGHT=0 FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no allowtransparency=true></FRAME>');
document.write(HTML);
// if (rusLang()&&NoRusInAddress()) document.write('<div style="HEIGHT: 26px; WIDTH:99px; LEFT: 300px; RIGHT: 0px; POSITION: absolute; TOP: 0px;"><a href="#" onclick="rusLocation();return(false);"><img src="/images/rus.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">Warning:</font> psoft.lviv.ua is not a mirror of psoft.net and may contain  outdated or draft pages! Our official site is <a href="http://www.psoft.net/">http://www.psoft.net/</a>!</p>');

// if (location.host.toLowerCase().indexOf('mirror.psoft.net')>-1)
//    document.write('<p class="note" align="center"><font color="red">Warning:</font> <b>mirror.psoft.net</b> is a mirror site for PSoft info, docs, and packages. For complete PSoft resources refer to our official site <a href="http://www.psoft.net/">http://www.psoft.net/</a>!</p>');
document.write('<p class="note" align="center"><font color="red"><b>Warning:</b></font> This site may contain outdated information. For up-to-date information please refer to the <a href="http://www.parallels.com/products/hsphere/"><b>Parallels official site</b></a>.</p>');
}
