
i=0;
img_a=new Array()
img_a[0]=new Image()
img_a[1]=new Image()
img_a[2]=new Image()
img_a[3]=new Image()
img_a[4]=new Image()
img_a[5]=new Image()
img_a[0].src="mechanicalpoet/1.jpg"
img_a[1].src="mechanicalpoet/2.jpg"
img_a[2].src="mechanicalpoet/3.jpg"
img_a[3].src="mechanicalpoet/4.jpg"
img_a[4].src="mechanicalpoet/5.jpg"
img_a[5].src="mechanicalpoet/6.jpg"
index = 1;
imgCount = 22; // кол-во картинок
img_b = new Array();

function mechpoetavatars()
{
document.images[0].src=img_a[i].src
i++
if(i>5) i=0;
setTimeout("mechpoetavatars()", 2000)
}

// для комикса
	for(i = 1; i <= imgCount; i++) 
	{
		img_b[i] = new Image();
		img_b[i].src = "mechanicalpoet/mechpoet_" + i + ".JPG";
	}

function MPComics()
{
	document.mechpoet.src = img_b[index].src
	index++
	if(index>21) index=1;
	setTimeout("MPComics()", 2000)
}
   //index = (++index > imgCount)?1:index; //BY YETI
function clock() {
        var timeStr, dateStr;
        now = new Date();

        hours = now.getHours();
        minutes = now.getMinutes();
        seconds = now.getSeconds();
        timeStr = "" + hours;
        timeStr += ((minutes < 10) ? ":0" : ":") + minutes;
        timeStr += ((seconds < 10) ? ":0" : ":") + seconds;

        date= now.getDate();
        month= now.getMonth()+1;
        year= now.getYear();
        if (year <= 1900)
        {
			year += 1900;
        }
        
        dateStr= ((date<10) ? "0" : "") + date;
        dateStr+= "."+ ((month < 10) ? "0" : "")  + month;
        dateStr+= "." + year;
        Form1.Date1.value = dateStr +" "+ timeStr;
        Timer = setTimeout("clock()",1000);
}
function checkUserPass()
{
    with (INTERR){
        if (PassInput1.value == PassInput2.value && PassInput1.value.length > 0)
        {
            Pass1.color = "black";
        }
        else
        {
           Pass1.color = "red";
        }
    }
}
function PasswordEnter()
{
pass = prompt('Введите пароль (atlantis):','введите пароль');
if (pass=='atlantis') { alert('Пароль введен верно - вы можете участвовать в опросе') } else { alert('вы неверно ввели пароль обратитесь к администратору за его получением'), top.location.href="../index.html"}
}

i=0;flag=0;start_stop=0;
function textscroll()
	         {
	          if(start_stop==1)
	            {
	             window.scroll(0,i*10);
	             if(flag==0) i++;
	             if(flag==1) i--;
	             if(i>30000) {i=30000;flag=1;}
	             if(i<0) {i=0;flag=0;}
	            }
	          setTimeout("textscroll()",500);
	         }
function startstop()
	         {
	          if(start_stop == 0) 
	            {
	             start_stop =1;
	            }
	          else
	            {
	             start_stop =0;
	            }
	         }