browser_name = navigator.appName; 
browser_version = parseFloat(navigator.appVersion); 

if (browser_name == "Netscape" && browser_version >= 3.0) {
    roll = 'true';
} else {
    if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) {
        roll = 'true';
    } else {
        roll = 'false';
    }
}

function over(img,ref) {
    if (roll == 'true') {
        document.images[img].src = ref;
    }
} 

function out(img,ref) {
    if (roll == 'true') {
        document.images[img].src = ref;
    }
} 

if (roll == 'true') { 
    a1 = new Image;
    a1.src = path_to_root_site + 'images/r1.gif';
    a2 = new Image;
    a2.src = path_to_root_site + 'images/r2.gif';
} 

function Write_hidden() {
    document.write('<!--begin of Rambler\'s Top100 code -->');
    document.write('<a href="http://top100.rambler.ru/top100/">');
    document.write('<img src="http://counter.rambler.ru/top100.cnt?389146" alt="" width=1 height=1 border=0></a>');
    document.write('<!--end of Top100 code-->');
}

function Write_mail_table() {
    mail_table =  '<table bgcolor="#F6934A" align="center" width="598" cellspacing="0" cellpadding="5" border="0">';
    mail_table += '    <tr>';
    mail_table += '        <td>';
    mail_table += '            <table cellspacing="0" cellpadding="0" border="0">';
    mail_table += '                <tr>';
    mail_table += '                    <td width="25"><img src="' + path_to_root_site + 'images/rm.gif" width="20" height="20" border="0"></td>';
    mail_table += '                    <td class="z">E-mail:&nbsp;<a href="mailto:kursplus@mail.ru">kursplus@mail.ru</a>, тел.: (495)511-76-24</td>';
    mail_table += '                </tr>';
    mail_table += '            </table>';
    mail_table += '        </td>';
    mail_table += '    </tr>';
    mail_table += '</table>';
    document.write(mail_table);
}

function Write_menu() {
    table =  '<table align="center" width="598" cellspacing="0" cellpadding="0" border="0">';
    table += '    <tr><td height="15" colspan="9"></td></tr>';
    table += '    <tr>';
    table += '        <td rowspan="3" width="115"></td>';
    table += '        <td width="69" valign="top">';
    strelka1 = 'r3';
    strelka2 = 'r3';
    strelka3 = 'r3';
    strelka4 = 'r3';
    str = '';
    if (select_menu_item != 1) {
        str = 'onmouseover="over(\'a0\',\'' + path_to_root_site + 'images/r2.gif\');" onmouseout="out(\'a0\',\'' + path_to_root_site + 'images/r1.gif\');"';
        strelka1 = 'r1';
    }
    table += '<A href="' + path_to_root_site + 'index.htm" ' + str + '><img src="' + path_to_root_site + 'images/home.gif" width="69" height="32" border="0"></a></td>';
    table += '        <td width="26"></td>';
    table += '        <td width="94" valign="top">';
    str = '';
    if (select_menu_item != 2) {
        str = 'onmouseover="over(\'a1\',\'' + path_to_root_site + 'images/r2.gif\');" onmouseout="out(\'a1\',\'' + path_to_root_site + 'images/r1.gif\');"';
        strelka2 = 'r1';
    }
    table += '<A href="' + path_to_root_site + 'products.htm" ' + str + '><img src="' + path_to_root_site + 'images/prod.gif" width="94" height="32" border="0"></a></td>';
    table += '        <td width="26"></td>';
    table += '        <td width="50" valign="top">';
    str = '';
    if (select_menu_item != 3) {
        str = 'onmouseover="over(\'a2\',\'' + path_to_root_site + 'images/r2.gif\');" onmouseout="out(\'a2\',\'' + path_to_root_site + 'images/r1.gif\');"';
        strelka3 = 'r1';
    }
    table += '<A href="' + path_to_root_site + 'aboutus.htm" ' + str + '><img src="' + path_to_root_site + 'images/about.gif" width="50" height="32" border="0"></a></td>';
    table += '        <td width="26"></td>';
    table += '        <td width="173" valign="top">';
    str = '';
    if (select_menu_item != 4) {
        str = 'onmouseover="over(\'a3\',\'' + path_to_root_site + 'images/r2.gif\');" onmouseout="out(\'a3\',\'' + path_to_root_site + 'images/r1.gif\');"';
        strelka4 = 'r1';
    }
    table += '<A href="' + path_to_root_site + 'equip.htm" ' + str + '><img src="' + path_to_root_site + 'images/equip.gif" width="173" height="34" border="0"></a></td>';
    table += '        <td rowspan="3" width="19" valign="bottom"><img src="' + path_to_root_site + 'images/wpixel.gif" width="19" height="5" border="0"></td>';
    table += '    </tr>';
    table += '    <tr><td colspan="7" height="3"></td></tr>';
    table += '    <tr><td colspan="7" height="16" align="right" valign="bottom"><img src="' + path_to_root_site + 'images/lines.gif" width="413" height="16" border="0"></td></tr>';
    table += '</table>';



    table += '<table align="center" width="598" cellspacing="0" cellpadding="0" border="0">';
    table += '    <tr>';
    table += '        <td rowspan="5" width="211" align="center">';
    table += '            <table align="center" width="211" cellspacing="0" cellpadding="0" border="0">';
    table += '                <tr><td height="85" align="right"><img src="' + path_to_root_site + 'images/logo.gif" width="196" height="77" border="0"></td></tr>';
    table += '                <tr><td height="52"><img src="' + path_to_root_site + 'images/block1.gif" width="211" height="53" border="0"></td></tr>';
    table += '            </table>';
    table += '        </td>';
    table += '        <td rowspan="4" width="236" height="112" valign="top"><img src="' + path_to_root_site + 'images/block2.gif" width="236" height="112" border="0"></td>';
    table += '        <td width="132" valign="top"><img src="' + path_to_root_site + 'images/block3.gif" width="132" height="13" border="0"></td>';
    table += '        <td rowspan="5" width="19" bgcolor="#F6934A"></td>';
    table += '    </tr>';
    table += '    <tr><td height="4" bgcolor="#F6934A"></td></tr>';
    table += '    <tr>';
    table += '        <td align="center">';
    table += '            <table bgcolor="#F6934A" align="center" width="132" cellspacing="0" cellpadding="0" border="0">';
    table += '                <tr>';
    table += '                <td width="30"><img src="' + path_to_root_site + 'images/' + strelka1 + '.gif" width="30" height="30" border="0" name=a0></td>';
    table += '                <td width="4"></td>';
    table += '                <td width="30"><img src="' + path_to_root_site + 'images/' + strelka2 + '.gif" width="30" height="30" border="0" name=a1></td>';
    table += '                <td width="4"></td>';
    table += '                <td width="30"><img src="' + path_to_root_site + 'images/' + strelka3 + '.gif" width="30" height="30" border="0" name=a2></td>';
    table += '                <td width="4"></td>';
    table += '                <td width="30"><img src="' + path_to_root_site + 'images/' + strelka4 + '.gif" width="30" height="30" border="0" name=a3></td>';
    table += '                </tr>';
    table += '            </table>';
    table += '        </td>';
    table += '    </tr>';
    table += '    <tr><td bgcolor="#F6934A" height="65"></td></tr>';
    table += '    <tr><td bgcolor="#F6934A" height="26" colspan="2" align="center"><img src="' + path_to_root_site + 'images/text.gif" alt="" width="366" height="26" border="0"></td></tr>';
    table += '</table>';

    document.write(table);
}

function Write_product_name_article_table() {
    table =  '<table width="100%" cellspacing="0" cellpadding="0" border="0">';
    table += '    <tr>';
    table += '        <td>';
    table += '            <h3>';
    table += '                <img src="../../images/td.gif" width="8" height="8" border="0" align="middle">';
    table += '                <img src="../../images/td.gif" width="8" height="8" border="0" align="middle">';
    table += '                <img src="../../images/td.gif" width="8" height="8" border="0" align="middle">';
    table += '                ' + product_name;
    table += '            </h3>';
    table += '        </td>';
    table += '        <td align="right">';
    table += '            <h5>';
    table += '                ' + product_article;
    table += '            </h5>';
    table += '        </td>';
    table += '    </tr>';
    table += '</table>';

    document.write(table);
}

function Write_podval_table() {
    table =  '<table width="100%" cellspacing="0" cellpadding="0" border="0">';
    table += '    <tr>';
    table += '        <td align="left">';
    table += '            <!--Rating@Mail.ru COUNTER-->';
    table += '            <a target=_top href="http://top.mail.ru/jump?from=421088"><img src="http://top.list.ru/counter?id=421088;t=89" border=0 height=18 width=88 alt="Рейтинг@Mail.ru"></a>';
    table += '            <!--/COUNTER-->';
    table += '        </td>';
    table += '        <td align="center">';
    table += '            <!--begin of Top100 logo-->';
    table += '            <a href="http://top100.rambler.ru/top100/"><img src="http://top100-images.rambler.ru/top100/w7.gif" alt="Rambler\'s Top100" width=88 height=31 border=0></a>';
    table += '            <!--end of Top100 logo -->';
    table += '        </td>';
    table += '        <td align="right"><a href="mailto:fdsupport@mail.ru"><img src="' + path_to_root_site + 'images/fd.gif" alt="FineDesign 2002" width="61" height="23" border="0"></a></td>';
    table += '    </tr>';
    table += '    <tr>';
    table += '        <td>&nbsp;</td>';
    table += '    </tr>';
    table += '</table>';

    document.write(table);
}

