m1on=new Image();
m1on.src="images/main_menu_act1.gif";
m1off=new Image();
m1off.src="images/main_menu1.gif";

m2on=new Image();
m2on.src="images/main_menu_act2.gif";
m2off=new Image();
m2off.src="images/main_menu2.gif";

m3on=new Image();
m3on.src="images/main_menu_act3.gif";
m3off=new Image();
m3off.src="images/main_menu3.gif";

m4on=new Image();
m4on.src="images/main_menu_act4.gif";
m4off=new Image();
m4off.src="images/main_menu4.gif";
 
s_on=new Image();
s_on.src="http://www.americaonline.ru/images/listact.gif";
s_off=new Image();
s_off.src="http://www.americaonline.ru/images/list.gif";
 
function rollover(imgSwap,imgName) {
	imgSwap = eval(imgSwap + ".src");
	document [imgName].src = imgSwap;
	}
	
function openNewWin(url, name, scr, w, h){
	name = window.open(url, name,'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width='+w+',height='+h+'');
	name.window.focus()
}

function openNewWin1(url, name, scr, w, h){
var name = window.open(url, name,'toolbar=no,location=no,status=no,menubar=no,resizable=yes,directories=no,scrollbars=yes,width='+w+',height='+h+'');
	name.window.focus()
}

function openNewWin2(url){
	name = window.open(url,'', 'left=360,top=170,width=660,height=460,menubar=no,toolbar=yes,location=yes,scrollbars=yes,status=yes,resizable=yes');

}

// показ картинки в большом окошке
function popupPicture(title,url,w,h,name)
{ w=w+30; h=h+90; title=title+"&nbsp;";
w1=window.open(url,name, "width="+w+",height="+h+",left=10,top=10,status=no,toolbar=no,menubar=no,directories=no,location=yes,resizable=yes,scrollbars=yes")
w1.document.write("<html><head><title>"+title+"</title></head><body marginheight='0' topmargin='10' marginwidth='0' leftmargin='0' bgcolor='#ffffff'><h2 align='center'>"+title+"</h2><center><img src='' name='im' alt="+title+" border='2'></center></body></html>")
w1.document.im.src=url;
w1.window.focus();
}

function popupPage(url,name)
{ w1=window.open(url,name, "width=600,height=400,left=10,top=10,status=no,toolbar=yes,menubar=no,directories=no,location=yes,resizable=yes,scrollbars=yes");
w1.window.focus();
}

/* document.oncopy = function(){return false}
document.onselectstart = function(){return false}
document.oncontextmenu = function(){alert('Все права защищены');return false}*/

var ie=document.all
var slidespeed=0
var whichlink=0
var whichimage=0
var imageholder=new Array()

function slideit(speed, slideimages){
slidespeed=speed
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage

whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit(slidespeed, slideimages)",slidespeed+blenddelay)
}

//colors=["#ff0000", "#ff6600", "#339900", "#0099ff", "#0000ff", "#6600cc"];
//var tm;	

function changeColor(time,colors)
    {
	  var migalka=document.getElementById("migalka");
	  tm=time;
      //Сбрасываем цвет или же заряжаем, если в первый раз
      if((migalka.color_number>=colors.length)||!migalka.color_number){migalka.color_number=0;}
      migalka.style.color=colors[migalka.color_number];
      migalka.color_number++;
      setTimeout("changeColor(tm,colors)",tm);
    }


// *** Замещение картинки другой картинкой того же размера при наведении мышки 
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
// ***


//-------------------------------------------------------------------
//configure the below three variables to change the style of the scroller
/*Размеры поля на котором идет смена содержимого. Это может быть таблица с несколькими баннерами, только размерыстабильные должны быть, в пикселях.
var scrollerwidth=170
var scrollerheight=230*/
//configure the below variable to change the contents of the scroller
var messages=new Array()
// Обратите внимания все кавычки в тэгах одинарные и обязательны.
/*messages[0]="<a href='sport.htm'><img src='images/shows-1.gif' width='170' height='230' border='0' alt=''></a>"
messages[1]="<a href='sport.htmm'><img src='images/shows-concert-elton-john.jpg' width='170' height='230' border='0' alt=''></a>"*/

///////Do not edit pass this line///////////////////////
if (messages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=4){
tlayer.top=0
/* настройка времени через которое меняется баннер
менять рекомендую во сем тексте, все числа 4000 на другие если необходимо сменить*/
setTimeout("move1(tlayer)",4000)
setTimeout("move2(document.main.document.second)",4000)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
// настройка времени за которое меняется баннер
setTimeout("move1(tlayer)",7)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",4000)
setTimeout("move1(document.main.document.first)",4000)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",7)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",4000)
setTimeout("move4(second2)",4000)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=5
setTimeout("move3(tdiv)",7)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",4000)
setTimeout("move3(first2)",4000)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=5
setTimeout("move4(second2)",7)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (document.all){
move3(first2)
second2.style.top=scrollerheight
}
else if (document.layers){
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+5
document.main.document.second.visibility='show'
}
}
window.onload=startscroll

//-------------------------------------------------------------------

function goList(objSelect) {
			var n = objSelect.selectedIndex;
			if (objSelect.options[n].value != "") location.href = objSelect.options[n].value;
		}