function MM_findObj(n, d) { 
  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;
}

var ie=(document.all && document.all.item && !window.opera)?1:0;

function over(id, nextconcert, obj1) //$name.'_'.$m, $nextconc, this
{
	var obj = MM_findObj(id);	
	var d = MM_findObj('cal1');
	d.className='invisible';
	if (obj) obj.className='visible';
	obj1.style.backgroundColor='#D8A98E';	
}

function out(id, nextconcert, obj1) //$name.'_'.$m, $nextconc, this
{
	var obj = MM_findObj(id);	
	var d = MM_findObj('cal1');	
	if (obj) obj.className='invisible';
	if (d) d.className='visible';
	if (obj1) obj1.style.backgroundColor='#E5E5E1';	
}

function visover(obj) //this
{
	if (obj) obj.style.backgroundColor='#DA622E';	
}

function visout(obj) //this
{
	if (obj) obj.style.backgroundColor='#B4572F';		
}

//onMouseOut="document.all.{menuid}.background='../images/menu/{out}.gif'" onMouseOver="document.all.{menuid}.background='../images/menu/{hover}.gif'"
function menuout(menuid, out, s)
{
	obj = MM_findObj(menuid);
	if (obj) obj.background = '../images/'+s+'menu/'+out+'.gif';
}

function height()
{
	var h = 0;
	if (divs) for (key in divs)
	{
		obj = MM_findObj(divs[key]);
		if (obj){
			className = obj.className;
			obj.className = 'visible';
			if (obj.clientHeight>h) h=obj.clientHeight;
			obj.className = className;
		}
	}

    if (h) for (key in divs)
	{
//		alert(h+' '+divs[key]);
		obj = MM_findObj(divs[key]);
	    if (obj) obj.style.height = h;

	}
}

function menuover(menuid, over, s)
{
	obj = MM_findObj(menuid);
	if (obj) obj.background = '../images/'+s+'menu/'+over+'.gif';
}

function Audio(single) {
	window.open("/popup.php?img="+single+"&title=Симфонический оркестр России", "audio", "scrollbars=0, resizable=1, width=286, height=50").focus();
}
function openImage(image) {
	window.open("/popup.php?img="+image, "popupimage", "scrollbars=0, resizable=1, width=286, height=72").focus();
}
function rusoft() {
  window.open('http://www.rusoft.ru');
}