//////////////////// New Window
function newWindow(url,width,height)
{
  var left=((window.screen.width)/2)-(width/2);
  var top=((window.screen.height)/2)-(height/2);
  w = window.open(url, 'Preview', 'width='+width+',height='+height+',left='+left+',top='+top+',resizable=yes,scrollbars=no,menubar=no,status=no');
}

//////////////////// Draw Copyright
function DrawCopyright()
{
document.write('&copy;&nbsp;ФАУ&nbsp;2011<br><br><br>');
}

//////////////////// Draw Menu

function DrawMenu ()
{
/// SetPage
  if (document.location.href.indexOf('\\')!=-1) 
  { 
    a = document.location.href.split('.html')[0].split('\\');
    page=a[a.length-1];
  }
  else 
  {
    a = document.location.href.split('.html')[0].split('\/');
    page=a[a.length-1];
  }

/// Start Menu table
  document.write('<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr valign="top">');

/// Draw FAU  
  document.write('<td width="35%">'+
  '<table border="0" width="100%" cellpadding="10" cellspacing="0" class="menu">'+
  '<tr valign="middle" align="center">');

  if (page.indexOf('fau')!=-1) 
  {
    document.write('<td class="magenta" align="center">');
    
    if (page=='fau') document.write('<img src="img/fau_on.jpg" title="Федерация Айкидо Украины" alt="Федерация Айкидо Украины" border="0">');
    else document.write('<a href="fau.html"><img src="img/fau_on.jpg" title="Федерация Айкидо Украины" alt="Федерация Айкидо Украины" border="0"></a>');
    
    document.write('</td>' +
    '</tr>' +
    '<tr>' +
    '<td class="menu">' +
    '<ul style="margin-bottom:0px;">');

/// Draw FAU Pages   
    if (page=='fau_news') document.write('<li>Новости');
    else document.write('<a href="fau_news.html" class="menu"><li>Новости</a>'); 
    
    if (page=='fau_klubi') document.write('<li>Клубы ФАУ');
    else document.write('<a href="fau_klubi.html" class="menu"><li>Клубы ФАУ</a>');    
        
    if (page=='fau_programma') document.write('<li>Программа аттестации');
    else document.write('<a href="fau_programma.html" class="menu"><li>Программа аттестации</a>');    
     
    if (page=='fau_atributi') document.write('<li>Атрибуты ФАУ');
    else document.write('<a href="fau_atributi.html" class="menu"><li>Атрибуты ФАУ</a> '); 
     
    if (page=='fau_kontakti') document.write('<li>Контакты');
    else document.write('<a href="fau_kontakti.html" class="menu"><li>Контакты</a>'); 

    if (page=='fau_sem') document.write('<li>Семинары и Конференции');
    else document.write('<a href="fau_sem.html" class="menu"><li>Семинары и Конференции</a>'); 

    
    if (page=='fau_ogranich') document.write('<li>Айкидо для детей и молодёжи с функциональными ограничениями');
    else document.write('<a href="fau_ogranich.html" class="menu"><li>Айкидо для детей и молодёжи с функциональными ограничениями</a>');

    if (page=='fau_foto') document.write('<li>Фотогалерея');
    else document.write('<a href="fau_foto.html" class="menu"><li>Фотогалерея</a>');   


    
/// Finish Draw FAU Pages       

    document.write('</ul>');    
  }
  else 
  {
    document.write('<td>'+
    '<a href="fau.html"><img src="img/fau.gif" title="Федерация Айкидо Украины" alt="Федерация Айкидо Украины" border="0"></a>'
    );
  }  
  
  document.write('</td>' +
  '</tr>' +
  '</table>' +
  '</td>');
/// Finish Draw FAU



/// Draw Kimushin  
  document.write('<td width="35%">'+
  '<table border="0" width="100%" cellpadding="10" cellspacing="0" class="menu">'+
  '<tr valign="middle" align="center">');

  if (page.indexOf('kimushin')!=-1) 
  {
    document.write('<td class="magenta" align="center">');
    
    if (page=='kimushin') document.write('<img src="img/kimushin_on.jpg" title=\'Клуб-школа Айкидо "Кимушин"\' alt=\'Клуб-школа Айкидо "Кимушин"\' border="0">');
    else document.write('<a href="kimushin.html"><img src="img/kimushin_on.jpg" title=\'Клуб-школа Айкидо "Кимушин"\' alt=\'Клуб-школа Айкидо "Кимушин"\' border="0"></a>');
    
    document.write('</td>' +
    '</tr>' +
    '<tr>' +
    '<td class="menu">' +
    '<ul style="margin-bottom:0px;">');

/// Draw Kimushin Pages   
    if (page=='kimushin_gruppi') document.write('<li>Инструкторы и группы');
    else document.write('<a href="kimushin_gruppi.html" class="menu"><li>Инструкторы и группы</a>');    

    if (page=='kimushin_raspisanie') document.write('<li>Расписание Занятий');
    else document.write('<a href="kimushin_raspisanie.html" class="menu"><li>Расписание Занятий</a>');    

        
    if (page=='kimushin_atributi') document.write('<li>Атрибуты клуба');
    else document.write('<a href="kimushin_atributi.html" class="menu"><li>Атрибуты клуба</a>');    
     
    if (page=='kimushin_plan') document.write('<li>План внутренних мероприятий');
    else document.write('<a href="kimushin_plan.html" class="menu"><li>План внутренних мероприятий</a> '); 
     
    if (page=='kimushin_dati') document.write('<li>Знаменательные даты');
    else document.write('<a href="kimushin_dati.html" class="menu"><li>Знаменательные даты</a>'); 
    
    if (page=='kimushin_foto') document.write('<li>Фотогалерея');
    else document.write('<a href="kimushin_foto.html" class="menu"><li>Фотогалерея</a>');    

    if (page=='kimushin_zaly') document.write('<li>Наши залы');
    else document.write('<a href="kimushin_zaly.html" class="menu"><li>Наши залы</a>');    

//    if (page=='kimushin_shop') document.write('<li>Товары для айкидо(в разработке)');
//    else document.write('<a href="kimushin_shop.html" class="menu"><li>Товары для айкидо(страница находится в разработке)</a>');    



    
/// Finish Kimushin Pages       

    document.write('</ul>');    
  }
  else 
  {
    document.write('<td>'+
    '<a href="kimushin.html"><img src="img/kimushin.gif" title=\'Клуб-школа Айкидо "Кимушин"\' alt=\'Клуб-школа Айкидо "Кимушин"\' border="0"></a>'
    );
  }  
  
  document.write('</td>' +
  '</tr>' +
  '</table>' +
  '</td>');
/// Finish Draw Kimushin


/// Draw Aikido  
  document.write('<td width="35%">'+
  '<table border="0" width="100%" cellpadding="10" cellspacing="0" class="menu">'+
  '<tr valign="middle" align="center">');

  if (page.indexOf('aikido')!=-1) 
  {
    document.write('<td class="magenta" align="center">');
    
    if (page=='aikido') document.write('<img src="img/aikido_on.jpg" title="Айкидо" alt="Айкидо" border="0">');
    else document.write('<a href="aikido.html"><img src="img/aikido_on.jpg" title="Айкидо" alt="Айкидо" border="0"></a>');
    
    document.write('</td>' +
    '</tr>' +
    '<tr>' +
    '<td class="menu">' +
    '<ul style="margin-bottom:0px;">');

/// Draw Aikido Pages   

    if (page=='aikido_founder') document.write('<li>Основатель');
    else document.write('<a href="aikido_founder.html" class="menu"><li>Основатель</a>');    


    if (page=='aikido_doshu') document.write('<li>Айкидо');
    else document.write('<a href="aikido_doshu.html" class="menu"><li>Досю</a>');    
        
    if (page=='aikido_master') document.write('<li>Мастера<ul><li><a href="aikido_master_mor.html" class="menu">Уэсиба Морихей</a></li><li>Уэсиба Киссомару</li><li>Уэсиба Моритеру</li><li><a href="aikido_master_saito.html" class="menu">Сайто Морихиро</a></li><li><a href="aikido_master_vrachar.html" class="menu">Любомир Врачаревич</a></li></ul></li>');
    else document.write('<a href="aikido_master.html" class="menu"><li>Мастера</a>');    
     

    if (page=='aikido_master_mor') document.write('<ul><li>Уэсиба Морихей</li><li>Уэсиба Кисумару</li><li>Уэсиба Моритеру</li><li><a href="aikido_master_saito.html" class="menu">Сайто Морихиро</a></li><li><a href="aikido_master_vrachar.html" class="menu">Любомир Врачаревич</a></li></ul></li>');


    if (page=='aikido_master_saito') document.write('<ul><li><a href="aikido_master_mor.html" class="menu">Уэсиба Морихей</a></li><li>Уэсиба Кисумару</li><li>Уэсиба Моритеру</li><li>Сайто Морихиро</li><li><a href="aikido_master_vrachar.html" class="menu">Любомир Врачаревич</a></li></ul></li>');

    if (page=='aikido_master_vrachar') document.write('<ul><li><a href="aikido_master_mor.html" class="menu">Уэсиба Морихей</a></li><li>Уэсиба Кисумару</li><li>Уэсиба Моритеру</li><li><a href="aikido_master_saito.html" class="menu">Сайто Морихиро</a></li><li>Любомир Врачаревич</li></ul></li>');


    if (page=='aikido_video') document.write('<li>Видео ресурсы');
    else document.write('<a href="aikido_video.html" class="menu"><li>Видео ресурсы</a> '); 
     
    if (page=='aikido_knigi') document.write('<li>Книги');
    else document.write('<a href="aikido_knigi.html" class="menu"><li>Книги</a>'); 

    if (page=='aikido_offitial') document.write('<li>Официальные представительства');
    else document.write('<a href="aikido_offitial.html" class="menu"><li>Официальные представительства</a>'); 

  

    
/// Finish Aikido Pages       

    document.write('</ul>');    
  }
  else 
  {
    document.write('<td>'+
    '<a href="aikido.html"><img src="img/aikido.gif" title="Айкидо" alt="Айкидо" border="0"></a>'
    );
  }  
  
  document.write('</td>' +
  '</tr>' +
  '</table>' +
  '</td>');
/// Finish Draw Aikido













  document.write('</tr>'); 

/// Draw Navigation
  document.write('<tr>' +
  '<td colspan="3" align="right" style="padding:0px;">' +
  '<table border="0" cellpadding="0" cellspacing="0">' +
  '<tr valign="middle">' +
  '<td><a href="index.html"><img src="img/home.jpg" alt="первая страница" title="первая страница" width="11" height="10" border="0"></a></td>');
    
  if (page=='site_map') {document.write('<td style="padding-left:10px;"><img src="img/lupa_on.jpg" alt="карта сайта" title="карта сайта" width="11" height="11" border="0"></td>');}     
  else {document.write('<td style="padding-left:10px;"><a href="site_map.html"><img src="img/lupa.gif" alt="карта сайта" title="карта сайта" width="11" height="11" border="0"></a></td>');}
          
  document.write(  '<td style="padding-left:10px;"><a href="mailto:alx.inferno@gmail.com"><img src="img/mail.gif" alt="написать письмо" title="написать письмо" width="12" height="8" border="0"></a></td>' +
  '<td style="padding-left:10px;"><img src="img/spacer.gif" width="10" height="30" border="0" class="magenta"></td>' +
  '</tr>' +
  '</table>' +
  '</td>' +
  '</tr>');    
 
/// Finish Menu table
  document.write('</table>');
}  

/////// Draw Baner
function DrawBaner()
{
document.write('<tr>');
//-----------1-----------
document.write('<td>');
document.write('<a href="http://www.proext.com/" target=_blank onClick=\'this.href="http://top.proext.com/go.cgi?u=54976";\'>');
pcD=document;pcD.cookie="b=b";pcC=pcD.cookie?1:0;
pcQ='<img src="http://t.proext.com/?u=54976&v=4&f=6&c='+pcC;
pcF = pcD.referrer.slice(7);
((pcI=pcF.indexOf('/'))!=-1)?(pcF=pcF.substring(0,pcI)):(pcI=pcF.length);
if(pcF!=window.location.href.substring(7,7+pcI)){pcQ+='&r='+escape(pcD.referrer)}
else {try{pcOF=(window.opener && window.opener.document && window.opener.document.referrer)?window.opener.document.referrer.slice(7):'';
((pcOI=pcOF.indexOf('/'))!=-1)?(pcOF=pcOF.substring(0,pcOI)):(pcOI=pcOF.length);
if(pcOF!=window.location.href.substring(7,7+pcOI))pcQ+='&r='+escape(window.opener.document.referrer)}catch(e){}}
pcQ+='&p='+escape(document.URL)+'&t='+Math.random();
pcD.write(pcQ+'" width=88 height=31 border=0 alt="TOP.proext.com">');
document.write('</a>');
document.write('</td>');
//-----------2-----------
document.write('<td>');
bmN=navigator,bmD=document,bmD.cookie='b=b',i=0,bs=[],bm={v:179646,s:179646,t:8,c:bmD.cookie?1:0,n:Math.round((Math.random()* 1000000)),w:0};
for(var f=self;f!=f.parent;f=f.parent)bm.w++;
try{if(bmN.plugins&&bmN.mimeTypes.length&&(x=bmN.plugins['Shockwave Flash']))bm.m=parseInt(x.description.replace(/([a-zA-Z]|s)+/,''));
else for(var f=3;f<20;f++)if(eval('new ActiveXObject("ShockwaveFlash.ShockwaveFlash.'+f+'")'))bm.m=f}catch(e){;}
try{bm.y=bmN.javaEnabled()?1:0}catch(e){;}
try{bmS=screen;bm.v^=bm.d=bmS.colorDepth||bmS.pixelDepth;bm.v^=bm.r=bmS.width}catch(e){;}
r=bmD.referrer.slice(7);if(r&&r.split('/')[0]!=window.location.host){bm.f=escape(r);bm.v^=r.length}
bm.v^=window.location.href.length;for(var x in bm) if(/^[vstcnwmydrf]$/.test(x)) bs[i++]=x+bm[x];
bmD.write('<a href="http://www.bigmir.net/" target="_blank" onClick="img=new Image();img.src=&quot;http://www.bigmir.net/?cl=179646&quot;;"><img src="http://c.bigmir.net/?'+bs.join('&')+'"  width="88" height="31" border="0" alt="bigmir)net TOP 100" title="bigmir)net TOP 100"></a>');
document.write('</td>');
//-----------3-----------
document.write('<td>');
document.write('<a href=\'http://www.ukrbiznes.com/knopka_ukrbiznes.php\'> <img src=\'http://www.ukrbiznes.com/img/knopka_nawa.gif\' border=\'0\'></a>');
document.write('</td>');
//-----------4-----------
document.write('<td>');
document.write('<a href="http://www.yandex.ru/cy?base=0&host=http://www.aikido-fau.org.ua"><img src="http://www.yandex.ru/cycounter?http://www.aikido-fau.org.ua" width="88" height="31" alt="Яндекс цитирования" border="0"></a>');
document.write('</td>');
//-----------5-----------
document.write('<td>');
mtI="120607170942";mtG="33";mtT="4";mtS='http://120607170942.c.mystat-in.net/?';
mtD=document;mtN=navigator.appName;mtR=escape(mtD.referrer);
mtW="";mtC="";mtV="0";mtJ="1";
mtV="1";mtJ = (navigator.javaEnabled()?"1":"0");
mtE=screen;mtW=mtE.width;mtN!="Netscape"?mtC=mtE.colorDepth:mtC=mtE.pixelDepth;mtV="2";
mtV="3";
mtUrl="";mtUrl+="\""+mtS+"i"+mtI+"&t"+mtT+"&g"+mtG+"&w"+mtW+"&c"+mtC+"&r"+mtR+"&v"+mtV+"&j"+mtJ+"\"";
mtUrl="<a href=http://mytop-in.net/ target=_blank><img src="+mtUrl+"width=88 height=31 border=0 alt=\"Rated by MyTOP\"></a>";
document.write(mtUrl);
document.write('</td>');
document.write('</tr>');
//-----------------------
document.write('<tr>');
//-----------11----------

//-----------12----------
document.write('<td>');
document.write('<a href="http://top100.rambler.ru/home?id=1866138" target="_blank"><img src="http://top100-images.rambler.ru/top100/banner-88x31-rambler-black2.gif" alt="Rambler\'s Top100" width="88" height="31" border="0" /></a>');
document.write('</td>');
//-----------13----------
document.write('<td>');
document.write('<a href="http://www.aikido-fau.org.ua" target="_blank" title="Айкидо - Федерация Айкидо Украины"><img src="http://www.aikido-fau.org.ua/img/content/aiki-banner.gif" width="88" height="31" border="0"></a>');
document.write('</td>');
//-----------14----------
document.write('<td>');
document.write("<a href='http://www.liveinternet.ru/click' "+"target=_blank><img src='http://counter.yadro.ru/hit?t52.2;r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random()+"' alt='' title='LiveInternet: показано число просмотров и"+" посетителей за 24 часа' "+"border='0' width='88' height='31'><\/a>");
document.write('</td>');
//-----------15----------
document.write('<td>');
document.write('<a href=\'http://hit.ua/?x=22524\' target=\'_blank\'>');
Cd=document;Cr="&"+Math.random();Cp="&s=1";
Cd.cookie="b=b";if(Cd.cookie)Cp+="&c=1";
Cp+="&t="+(new Date()).getTimezoneOffset();
if(self!=top)Cp+="&f=1";
if(navigator.javaEnabled())Cp+="&j=1";
if(typeof(screen)!='undefined')Cp+="&w="+screen.width+"&h="+
screen.height+"&d="+(screen.colorDepth?screen.colorDepth:screen.pixelDepth);
Cd.write("<img src='http://c.hit.ua/hit?i=22524&g=0&x=5"+Cp+Cr+"&r="+escape(Cd.referrer)+"&u="+escape(window.location.href)+"' border='0' width='88' height='31' "+"alt='hit.ua: посетителей и просмотров за сегодня' title='hit.ua: посетителей и просмотров за сегодня'/>");
document.write('</td>');
//-----------16----------
//document.write('<td>');
//document.write('<script src=\"http://tools.spylog.ru/counter_cv.js\" //id=\"spylog_code\" type=\"text/javascript\" counter=\"1012837\" part=\"\" //track_links=\"ext\" page_level=\"0\">');
//document.write('</script>');
//document.write('</td>');


//-----------0-----------
document.write('</tr>');
}

