//Library of JavaScript functions for Phonons2004

function openWin1() {
  popupWin = window.open('welcome.html', 'spb', 'toolbar,menubar,scrollbars,resizable,width=720,height=600')
}
function openWinReg() {
reg = window.open('php/login.php', 'reg', 'toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=700')
reg.focus();
}

function openWinMenubarOn(filename, name) {
name=window.open(filename, name, 'scrollbars,menubar=yes,location=yes,resizable,width=800,height=600');
name.focus()
}

function openWinFS(filename, name) {
  window.open(filename, name, 'scrollbars, fullscreen, menubar=yes,location=yes, resizable');
}

function openWinMenubarOff(filename, name) {
window.open(filename, name, 'scrollbars,resizable,width=700,height=500')
}

function openWinMenubarOff_1(filename, name, w, h) {
str1='scrollbars,resizable,width=';
str2=',top=10,left=10,height=';
feat=str1+w+str2+h;
window.open(filename, name, feat)
}

function openWinMenubarOn_1(filename, name, w, h) {
str1='scrollbars,resizable,width=';
str2=',top=10,left=10,height=';
feat=str1+w+str2+h;
name=window.open(filename, name, feat)
name.focus();
}




function Unloa() {
  self.close()
    }

function showModiDateEn(){
var G;
NameMonth = new Array(12);
NameDay = new Array(7);

DayEn = new Array("Sunday",
"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
MonthEn = new Array("January",
"February", "March", "April", "May", "June", "July", "August", "September",
"October", "November", "December");

NameMonth=MonthEn;
NameDay=DayEn;
now = new Date(document.lastModified);
G = "Updated on ";
w=now.getYear();
NavName =navigator.appName
NavVers =navigator.appVersion
if(NavName == "Netscape")
{w+=1900}

G += NameDay[now.getDay()]+ ", " + NameMonth[now.getMonth()] + " "+
+ now.getDate() +", "+ w+".";

document.write(G+"<Br>");
}

function ModifDate(){
MD=document.lastModified;
Ind1=MD.indexOf(' ');
Ind2=MD.lastIndexOf(' ');
ModDate=MD.substring(Ind1,Ind2);
document.write(ModDate+'.');
}



function showModiDateRu(){
var G;
NameMonth = new Array(12);
NameDay = new Array(7);

DayRu = new Array("в воскресенье", 
"в понедельник", "во вторник", "в среду", "в четверг", "в пятницу", "в субботу"); 
MonthRu = new Array("января", 
"февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", 
"октября", "ноября", "декабря");

NameMonth=MonthRu;
NameDay=DayRu;
now = new Date(document.lastModified);
G = "Обновлено  "; 
w=now.getYear();
NavName =navigator.appName
NavVers =navigator.appVersion
if(NavName == "Netscape")
{w+=1900}

G += NameDay[now.getDay()]+ ", " + now.getDate()+ " " + 
NameMonth[now.getMonth()] + " "+ w+".";

document.write(G+"<Br>");
} 

function ModifDate(){
MD=document.lastModified;
Ind1=MD.indexOf(' ');
Ind2=MD.lastIndexOf(' ');
ModDate=MD.substring(Ind1,Ind2);
document.write(ModDate+'.');
}





function ShowScreenParam()
{
  BrouseName=navigator.appName
  BrouseVersion=navigator.appVersion
  ScreenWidth=screen.width
  ScreenHeight=screen.height
  ScreenAvailWidth=screen.availWidth
  ScreenAvailHeight=screen.availHeight
  WH=new Array(5)
  if (ScreenWidth>=1280)
   {
     WH[0]=500 //This is swf width
     WH[1]=60 //This is swf height
     WH[2]=540 //This is table width
     WH[3]='11th_1.gif' //This is top image file
     WH[4]='sfinks.jpg' //This is bottom image file
     WH[5]='heading2.gif' //This is bottom image file
     WH[6]='heading3.gif' //This is bottom image file
     WH[7]='heading4.gif'
    }
  else
   {
    if (ScreenWidth>=1024)
      {
       WH[0]=400
       WH[1]=48
       WH[2]=500
       WH[3]='11th_1a.gif'
       WH[4]='sfinks1a.jpg'
       WH[5]='heading2a.gif'
       WH[6]='heading3a.gif'
       WH[7]='heading4a.gif'
      }
    else
      {
        WH[0]=300
        WH[1]=36
        WH[2]=400
        WH[3]='11th_1b.gif'
        WH[4]='sfinks1b.jpg'
        WH[5]='heading2b.gif'
        WH[6]='heading3b.gif'
        WH[7]='heading4b.gif'
       }
    }
  return WH
}