<!--

//change subnav background color (ie5+ ns6+)
function changebg(item, color)
{
	if (document.getElementById)
	{
	theone = eval("document.getElementById('"+item+"')")
	theone.style.background = color
	}
}

function Up(){                                                     
if(document.all.MySearch.value=="artvideo")
{top.location.href="exclusive.htm";
}
else
window.alert("Неверный пароль");
}

function selauthor()                                                
{ document.all.coun.value="";
document.all.style.value="";
document.all.yea.value="";
top.right.hudlit.Filter="Author="+document.all.auth.value;
top.right.hudlit.Reset(); 
top.right.focus();
}
function selcountry()                                                
{ document.all.auth.value="";
document.all.style.value="";
document.all.yea.value="";
top.right.hudlit.Filter="Country="+document.all.coun.value; 
top.right.hudlit.Reset(); 
top.right.focus();
}
function ident()                                                     
{switch (document.all.style.value)
{case "Авангард.":top.right.hudlit.Filter="Avan="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Анимация.":top.right.hudlit.Filter="Anim="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Документальное кино.":top.right.hudlit.Filter="Doc="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Из жизни сексменьшинств.":top.right.hudlit.Filter="Sex="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Молодежное кино.":top.right.hudlit.Filter="Young="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Старое кино.":top.right.hudlit.Filter="Old="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Сюрреализм.":top.right.hudlit.Filter="Sjur="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Ужасы.":top.right.hudlit.Filter="Horr="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Фантастика.":top.right.hudlit.Filter="Fantazy="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
case "Эротика.":top.right.hudlit.Filter="Eros="+document.all.style.value;top.right.hudlit.Reset();document.all.auth.value="";document.all.coun.value="";document.all.yea.value="";top.right.focus();break;
}
}
function selyear()                                                 
{ document.all.auth.value="";
document.all.style.value="";
document.all.coun.value="";
top.right.hudlit.Filter="Year="+document.all.yea.value; 
top.right.hudlit.Reset(); 
top.right.focus();
}


var fRunning = 0
function startTrans(k) 
{
    if (fRunning == 0)
    {
        fRunning = 1;
        SampleID.filters.blendTrans.Apply();
        SampleID.src ="images/m"+k+"-"+n+".jpg";
        SampleID.filters.blendTrans.Play();
    }
}

function rollon() {                                                
  if (window.event.srcElement.className == "Item") {
     window.event.srcElement.className = "Highlight";
  }
}

document.onmouseover = rollon;

function rolloff() {                                               
  if (window.event.srcElement.className == "Highlight") {
     window.event.srcElement.className = "Item";
  }
}
document.onmouseout = rolloff;   
                                   
function change_background() 
{ top.right.hudlit.Filter="ThisYear="+document.all.mouth.value;
top.right.hudlit.Reset();
}
function chan()                                                    
{document.all.text2.style.color="red";
setTimeout("document.all.text2.style.color='black'",2000);
}

var k
var n
function upn(k){
if(n==0){n=1;
startTrans(k);
}
else
{n++;
startTrans(k);
document.all.But1.style.visibility="visible";
{if(n==5){
document.all.But2.style.visibility="hidden";
}
}
}
}

function doun(){
n--;
startTrans(k);
document.all.But2.style.visibility="visible";
{if(n==1){
document.all.But1.style.visibility="hidden";
}
}
}

function visbut(){
document.all.But2.style.visibility ="visible";
document.all.But1.style.visibility="hidden";
}



//-->

