<!--

var ismenushown;

var browserver;
browserver=5;
ismenushown=0;
var whichmenu;
whichmenu="none";



startopacity=60;
spin=8;
spout=5;

var surveywindow;


function fadeIt(obj,direct)
{ 
if(window.timer) 
{ clearInterval(timer); } 
tobj=obj; 
drct=direct;
timer=setInterval("flowfilter(tobj,drct);",5); 
}

function flowfilter(thing,dct){
if(dct==1) 
{ if (thing.filters.alpha.opacity<100) 
{ thing.filters.alpha.opacity+=spin; } 
else { clearInterval(timer); } 
}
if(dct==2) { 
if (thing.filters.alpha.opacity>startopacity) 
{ thing.filters.alpha.opacity-=spout; }
 else {
 clearInterval(timer); } 
}
}


function fadeIt1(obj1,direct1)
{ 
if(window.timer1) 
{ clearInterval(timer1); } 
tobj1=obj1; 
drct1=direct1;
timer1=setInterval("flowfilter1(tobj1,drct1);",5); 
}

function flowfilter1(thing1,dct1){
if(dct1==1) 
{ if (thing1.filters.alpha.opacity<100) 
{ thing1.filters.alpha.opacity+=spin; } 
else { clearInterval(timer1); } 
}
if(dct1==2) { 
if (thing1.filters.alpha.opacity>startopacity) 
{ thing1.filters.alpha.opacity-=spout; }
 else {
 clearInterval(timer1); } 
}
}

function fadeIt2(obj2,direct2)
{ 
if(window.timer2) 
{ clearInterval(timer2); } 
tobj2=obj2; 
drct2=direct2;
timer2=setInterval("flowfilter2(tobj2,drct2);",5); 
}

function flowfilter2(thing2,dct2){
if(dct2==1) 
{ if (thing2.filters.alpha.opacity<100) 
{ thing2.filters.alpha.opacity+=spin; } 
else { clearInterval(timer2); } 
}
if(dct2==2) { 
if (thing2.filters.alpha.opacity>startopacity) 
{ thing2.filters.alpha.opacity-=spout; }
 else {
 clearInterval(timer2); } 
}
}

function fadeIt3(obj3,direct3)
{ 
if(window.timer3) 
{ clearInterval(timer3); } 
tobj3=obj3; 
drct3=direct3;
timer3=setInterval("flowfilter3(tobj3,drct3);",5); 
}

function flowfilter3(thing3,dct3){
if(dct3==1) 
{ if (thing3.filters.alpha.opacity<100) 
{ thing3.filters.alpha.opacity+=spin; } 
else { clearInterval(timer3); } 
}
if(dct3==2) { 
if (thing3.filters.alpha.opacity>startopacity) 
{ thing3.filters.alpha.opacity-=spout; }
 else {
 clearInterval(timer3); } 
}
}


function fadeIt4(obj4,direct4)
{ 
if(window.timer4) 
{ clearInterval(timer4); } 
tobj4=obj4; 
drct4=direct4;
timer4=setInterval("flowfilter4(tobj4,drct4);",5); 
}

function flowfilter4(thing4,dct4){
if(dct4==1) 
{ if (thing4.filters.alpha.opacity<100) 
{ thing4.filters.alpha.opacity+=spin; } 
else { clearInterval(timer4); } 
}
if(dct4==2) { 
if (thing4.filters.alpha.opacity>startopacity) 
{ thing4.filters.alpha.opacity-=spout; }
 else {
 clearInterval(timer4); } 
}
}

function fadeIt5(obj5,direct5)
{ 
if(window.timer5) 
{ clearInterval(timer5); } 
tobj5=obj5; 
drct5=direct5;
timer5=setInterval("flowfilter5(tobj5,drct5);",5); 
}

function flowfilter5(thing5,dct5){
if(dct5==1) 
{ if (thing5.filters.alpha.opacity<100) 
{ thing5.filters.alpha.opacity+=spin; } 
else { clearInterval(timer5); } 
}
if(dct5==2) { 
if (thing5.filters.alpha.opacity>startopacity) 
{ thing5.filters.alpha.opacity-=spout; }
 else {
 clearInterval(timer5); } 
}
}

function fadeIt6(obj6,direct6)
{ 
if(window.timer6) 
{ clearInterval(timer6); } 
tobj6=obj6; 
drct6=direct6;
timer6=setInterval("flowfilter6(tobj6,drct6);",5); 
}

function flowfilter6(thing6,dct6){
if(dct6==1) 
{ if (thing6.filters.alpha.opacity<100) 
{ thing6.filters.alpha.opacity+=spin; } 
else { clearInterval(timer6); } 
}
if(dct6==2) { 
if (thing6.filters.alpha.opacity>startopacity) 
{ thing6.filters.alpha.opacity-=spout; }
 else {
 clearInterval(timer6); } 
}
}


function photomover(idf)
{
if (whichmenu !="none")
{	
eval(whichmenu+ ".style.visibility='hidden';")
//photos.style.zIndex=1;
ismenushown=0;
};
document.all[idf].style.filter="alpha (opacity=100, enabled=1)";

}

function photomout(idf)
{
document.all[idf].style.filter="alpha(opacity=50, enabled=1)";
}

function linkover(idf)
{
if (whichmenu !="none")
{	
eval(whichmenu+ ".style.visibility='hidden';")
photos.style.zIndex=1;
ismenushown=0;
};
document.all[idf].style.color='yellow';
}

function linkout(idf)
{
document.all[idf].style.color='darkblue';
}

function opensurvey()
{
surveywindow=window.open ('survey.html','Опрос', 'width=270, height=450');
surveywindow
}

//-->
