//
// Variables Init
//

var lang = "ru";
var url_page=document.location+" ";
var url=url_page.substring(0,url_page.indexOf("/",7));
var BrAdd = 21;

//
// Page Menu Code
//


function openHtml(m_type, spec_title){
var tmp=''
    end=''
    menu_num=m_type || 1;
    sp_title=spec_title || document.title;
    
// Frame protection ---------------------------------------------------------
if (self.parent.frames.length != 0)
        {self.parent.location=document.location};


tmp+='\
<LEFT>\
  <table border="0" width="750" cellspacing="0" cellpadding="0">\
    <tr>\
      <td valign="top" align="left" width="161" height="103" rowspan="2" bgcolor="#429684"><a name="up"><img border="0" src="images/aboutGR.jpg" width="158" height="98"></a></td>\
      <td valign="middle" align="center" bgcolor="#429684"><img border="0" width="10" height="1" src="/pic/sp.gif"></td>\
      <td valign="middle" align="left" width="589" bgcolor="#429684" CLASS="aUpTitle">\
        Ñàíêò-Ïåòåðáóðãñêàÿ Àññîöèàöèÿ Ñîöèîëîãîâ\
      </td>\
    </tr>\
    <tr>\
    <td valign="middle" colspan="2">\
     <table border="0" width="100%" cellspacing="0" cellpadding="0">\
     <tr>\
     <td valign="top" align="left" bgcolor="#429684" background="/pic/left.jpg">\
      <img border="0" src="/pic/sp.gif" width="38" height="42">\
     </td>';

if (menu_num==1){
tmp+='\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/ustav.htm" Class="aMenuText">ÓÑÒÀÂ</a>\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <img border="0" src="/pic/sp.gif" width="15" height="1">\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/court.htm" Class="aMenuText">ÏÐÀÂËÅÍÈÅ</a>\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <img border="0" src="/pic/sp.gif" width="15" height="1">\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/kodeks.htm" Class="aMenuText">ÏÐÎÔÅÑÑÈÎÍÀËÜÍÛÉ<BR>ÊÎÄÅÊÑ</a>\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <img border="0" src="/pic/sp.gif" width="15" height="1">\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/members.htm" Class="aMenuText">×ËÅÍÛ<BR>ÀÑÑÎÖÈÀÖÈÈ</a>\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <img border="0" src="/pic/sp.gif" width="15" height="1">\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/KONTACT.htm" Class="aMenuText">ÊÎÍÒÀÊÒÍÀß<BR>ÈÍÔÎÐÌÀÖÈß</a>\
     </td>'};
     
if (menu_num==2){
tmp+='\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/INFOPRAVL.htm" Class="aMenuText">ÈÍÔÎÐÌÀÖÈß<BR>ÏÐÀÂËÅÍÈß</a>\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <img border="0" src="/pic/sp.gif" width="15" height="1">\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/bookshop.htm" Class="aMenuText">ÊÍÈÆÍÛÉ<BR>ÌÀÃÀÇÈÍ</a>\
     </td>'};

if (menu_num==3){
tmp+='\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/SOCRESUR.htm" Class="aMenuText">ÑÎÖÈÎËÎÃÈ×ÅÑÊÈÅ<BR>ÐÅÑÓÐÑÛ&nbsp;&nbsp;ÈÍÒÅÐÍÅÒ</a>\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <img border="0" src="/pic/sp.gif" width="15" height="1">\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="/job.htm" Class="aMenuText">ÁÈÐÆÀ<BR>ÒÐÓÄÀ</a>\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <img border="0" src="/pic/sp.gif" width="15" height="1">\
     </td>\
     <td valign="middle" align="center" bgcolor="#429684" background="/pic/mid.gif" Class="aMenuText">\
      <a href="http://teleskop-journal.spb.ru" target="_blank" Class="aMenuText">ÆÓÐÍÀË<BR>"ÒÅËÅÑÊÎÏ"</a>\
     </td>'};

end+='\
     <td valign="top" align="left" bgcolor="#429684" background="/pic/mid.gif">\
      <img border="0" src="pic/right.jpg" width="38" height="42">\
     </td>\
     <td valign="top" align="left" width="100%" height="42" bgcolor="#429684">\
      &nbsp;\
     </td>\
    </tr>\
  </table>\
  </td>\
  </tr>\
  </table>\
  <table border="0" width="100%" height="200%" cellspacing="0" cellpadding="0" bgcolor="#FEFEFE">\
    <tr>\
    <td width="141" bgcolor="#429684" valign="top" align="left" Class="aNormalBlack">\
      <table border="0" width="135" cellspacing="0" cellpadding="0" bgcolor="#429684">\
      <tr>\
       <td colspan="2"><img border="0" src="/pic/sp.gif" height="10" width="135"></td>\
      </tr>\
      <tr>\
      <td><img border="0" src="/pic/sp.gif" height="44" width="1"></td>\
      <td valign="middle" align="center" Class="aMenuText" bgcolor="#429684" background="/pic/button.jpg">\
       <a href="osn.htm" Class="aMenuText">ÎÁ&nbsp;ÀÑÑÎÖÈÀÖÈÈ</a>\
      </td>\
      </tr>\
      <tr>\
      <td><img border="0" src="/pic/sp.gif" height="44" width="1"></td>\
      <td valign="middle" align="center" Class="aMenuText" bgcolor="#429684" background="/pic/button.jpg">\
       <a href="NOVOSTI.htm" Class="aMenuText">ÍÎÂÎÑÒÈ</a>\
      </td>\
      </tr>\
      <tr>\
      <td><img border="0" src="/pic/sp.gif" height="44" width="1"></td>\
      <td valign="middle" align="center" Class="aMenuText" bgcolor="#429684" background="/pic/button.jpg">\
       <a href="POLINFO.htm" Class="aMenuText">ÏÎËÅÇÍÀß<BR>ÈÍÔÎÐÌÀÖÈß</a>\
      </td>\
      </tr>\
      <tr>\
      <td><img border="0" src="/pic/sp.gif" height="44" width="1"></td>\
      <td valign="middle" align="center" Class="aMenuText" bgcolor="#429684" background="/pic/button.jpg">\
       <a href="SOCOBRAZ.htm" Class="aMenuText">ÑÎÖÈÎËÎÃÈ×ÅÑÊÎÅ<BR>ÎÁÐÀÇÎÂÀÍÈÅ</a>\
      </td>\
      </tr>\
      <tr>\
      <td><img border="0" src="/pic/sp.gif" height="44" width="1"></td>\
      <td valign="middle" align="center" Class="aMenuText" bgcolor="#429684" background="/pic/button.jpg">\
       <a href="SOBYTIYA.htm" Class="aMenuText">ÊÎÍÔÅÐÅÍÖÈÈ,<BR>ÊÎÍÃÐÅÑÑÛ</a>\
      </td>\
      </tr>\
      </table>\
      <br><br><br><a href="http://www.osi.ru" target="_blank"><img border="0" src="images/soros.gif" width="140" height="130"></a>\
      </td>\
      <td bgcolor="#FFFFFF" width="30" valign="top" align="left">\
        <img border="0" src="images/ugGR.gif" width="30" height="26">\
      </td>\
      <td bgcolor="#FFFFFF" valign="top" align="left" width="750" Class="aNormalBlack">\
      <img border="0" src="/pic/sp.gif" height="1" width="575"><BR>\
      <table border="0" width="100%" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0">\
       <tr>\
         <td width="100%" class="aNormalBlack">';

// end+='\
//     </table>\
//  </td>'

// if (frame_num==0){
// end+='\
//  <td colspan=2 width=605 align=left valign=top class=aTable>\
//    <table width=605 height=100% border=1 cellspacing=0 cellpadding=0>\
//    <tr height=100%>\
//      <td width=605 height=100% align=left valign=top>\
//    <table width=600 height=100% border=0 cellspacing=0 cellpadding=0>\
//    <tr height=100%>\
//      <td width=600 height=100% align=left valign=top>'};
// if (frame_num==1){
// end+='\
//      </tr>\
//    </table>'};

// document.write(tmp+end)

document.write(tmp+end)
}


function hr_html(HR_width){
var tmp=''
    HRwidth=HR_width || '100%';
tmp+='<table width="'+HRwidth+'" border="0" cellspacing="0" cellpadding="0">\
       <tr>\
        <TD width="100%" class=aBRspace>&nbsp;</TD>\
       </tr>\
       <tr>\
        <TD width="100%" class=aBRspace><img src="/design/img/hr.gif" width="100%" height="3" border="0"></TD>\
       </tr>\
       <tr>\
        <TD width="100%" class=aBRspace>&nbsp;</TD>\
       </tr>\
      </table>';
return tmp
}

function hrs(HR_width){
document.write(hr_html(HR_width))
}


function closeHtml(br_num){
var tmp=''
    end='';

// tmp+='<font class=aBoldBlackSmall>'
//            };
// for (var i=0;i<brnum;i++){tmp+='<br>'};

tmp+='\
    </td>\
   </tr>\
   <tr>\
    <td width="100%">&nbsp;</td>\
   </tr>\
  </table>\
  </td>\
  <td valign="top" align="left" Class="aNormalBlack">&nbsp;</td>\
 </tr>\
</Left>';

end+='&nbsp;&nbsp; C o p y r i g h t&nbsp;&nbsp;\
    <a href=mailto:xxxx@xxxx.xx class=aCopyRights>\
    S P A S&nbsp;&nbsp;</a>&copy; 1 9 9 9 &nbsp;-&nbsp; 2 0 0 6'

// document.write(tmp+end)
document.write(tmp);

// if(M_Started != 361) {document.location=Page_URL}

}

