function setT() 
{
	if (setT.arguments[0]&&setT.arguments[1])
	{														// style.display="block"; appendData("aaa")
		document.getElementById(setT.arguments[0]).firstChild.appendData(setT.arguments[1] + '___');
	}
}

function getOpacityProperty()
{
  if (typeof document.body.style.opacity == 'string') // CSS3 compliant (Moz 1.7+, Safari 1.2+, Opera 9)
    return 'opacity';
  else if (typeof document.body.style.MozOpacity == 'string') // Mozilla 1.6 и младше, Firefox 0.8 
    return 'MozOpacity';
  else if (typeof document.body.style.KhtmlOpacity == 'string') // Konqueror 3.1, Safari 1.1
    return 'KhtmlOpacity';
  else if (document.body.filters && navigator.appVersion.match(/MSIE ([\d.]+);/)[1]>=5.5) // Internet Exploder 5.5+
    return 'filter';

  return false; //нет прозрачности
}
function alpha(sElemId, nOpacity)
{
	//	setT('textp',"BBBBB");
	var opacityProp = getOpacityProperty();
	var elem = sElemId;//= document.getElementById(sElemId);

	if (!elem || !opacityProp) return; // Если не существует элемент с указанным id или браузер не поддерживает ни один из известных функции способов управления прозрачностью

	if (opacityProp=="filter")  // Internet Exploder 5.5+
	{
		nOpacity *= 100;
	
		// Если уже установлена прозрачность, то меняем её через коллекцию filters, иначе добавляем прозрачность через style.filter
		var oAlpha = elem.filters['DXImageTransform.Microsoft.alpha'] || elem.filters.alpha;
		if (oAlpha) oAlpha.opacity = nOpacity;
		else elem.style.filter += "progid:DXImageTransform.Microsoft.Alpha(opacity="+nOpacity+")"; // Для того чтобы не затереть другие фильтры используем "+="
	}
	else // Другие браузеры
		elem.style[opacityProp] = nOpacity;
}

function alphaById(sElemId, nOpacity)
{
/*		setT('textp',sElemId);
*/
//	document.getElementById('hov').style.visibility='hidden';
	
	var opacityProp = getOpacityProperty();
	var elem = document.getElementById(sElemId);

	if (!elem || !opacityProp) return; // Если не существует элемент с указанным id или браузер не поддерживает ни один из известных функции способов управления прозрачностью

	if (opacityProp=="filter")  // Internet Exploder 5.5+
	{
		nOpacity *= 100;
	
		// Если уже установлена прозрачность, то меняем её через коллекцию filters, иначе добавляем прозрачность через style.filter
		var oAlpha = elem.filters['DXImageTransform.Microsoft.alpha'] || elem.filters.alpha;
		if (oAlpha) oAlpha.opacity = nOpacity;
		else elem.style.filter += "progid:DXImageTransform.Microsoft.Alpha(opacity="+nOpacity+")"; // Для того чтобы не затереть другие фильтры используем "+="
	}
	else // Другие браузеры
		elem.style[opacityProp] = nOpacity;

}

function getX(){
	var x = 0;
	var e = arguments[0];
	while(e){
		x+= e.offsetLeft;
		e = e.offsetParent;
	}
	return x;
}
function getY(){
	var y = 0;
	var e = arguments[0];
	while(e){
		y+= e.offsetTop;
		e = e.offsetParent;
	}
	return y;
}

function over() {
	var a = over.arguments[0];
	var sp = a.firstChild;
	var em = sp.firstChild;
	/*
	a.style.cursor='pointer';
	a.style.backgroundImage='url(/pic/hm_2.gif)';
	a.style.backgroundPosition='0 center';
	a.style.backgroundRepeat = 'repeat-x';
	*/
	
	sp.style.backgroundImage='url(/pic/hm_1.gif)';
	sp.style.backgroundPosition='0 center';
	sp.style.backgroundRepeat = 'no-repeat';


	em.style.backgroundImage='url(/pic/hm_3.gif)';
	em.style.backgroundPosition='right center';
	em.style.backgroundRepeat = 'no-repeat';
}
function out() {
	var a = out.arguments[0];
	var sp = a.firstChild;
	var em = sp.firstChild;
	/*
	a.style.cursor='default';
	a.style.backgroundImage='url(/pic/bg0.gif)';
	a.style.backgroundPosition='0 0';
	a.style.backgroundRepeat = 'repeat-x';
	*/
	
	sp.style.backgroundImage='url(/pic/bg0.gif)';
	sp.style.backgroundPosition='0 0';
	sp.style.backgroundRepeat = 'repeat-x';


	em.style.backgroundImage='url(/pic/bg0.gif)';
	em.style.backgroundPosition='0 0';
	em.style.backgroundRepeat = 'repeat-x';
}
function overT() { (overT.arguments[0]).style.backgroundColor = '#ffffff'; }
function outT()  { (outT.arguments[0]).style.backgroundColor = '#CFDCD2';  }

function hideSwitch() {
//	setT('textp',"AAA");
/**/
	if (document.getElementById(hideSwitch.arguments[0]).style.display == "block") {
		document.getElementById(hideSwitch.arguments[0]).style.display = "none";
	} else {
		document.getElementById(hideSwitch.arguments[0]).style.display = "block";
	}

}


var curMenu = null;
var curTimer = null;

function killtimer_menu() {
	if(curTimer!=null) { // если таймер установлен
		clearTimeout(curTimer); // он обнуляется
		curTimer=null;
	}
	return true;
}


//ONCLICK
function hide_menu() {//setT('textp',"SSS");
	if (curTimer!=null)
		killtimer_menu();
	// Hide the pop-up menu that is currently displayed.
	if (null != curMenu)
		document.getElementById(curMenu).style.display='none';
		//document.all[curMenu].style.display='none';
	curMenu = null;
}


//ONMOUSEOUT
function reset_menu() {
	killtimer_menu();
	// закроем меню через 200 мс
	curTimer=setTimeout('hide_menu()',200);
}


//ONMOUSEOVER
function show_menu(name) {
	
	if (null != curMenu)
		document.getElementById(curMenu).style.display='none';
		//document.all[curMenu].style.display='none';
	curMenu=name;
	killtimer_menu();
	//document.all[curMenu].style.display='block';	
	//document.all.curMenu.style.display='block';
	document.getElementById(show_menu.arguments[0]).style.display='block';
	//setT('textp',document.all.curMenu.style.display);
}


function setImg() 
{
//	if (setImg.arguments[0]&&setImg.arguments[1])
//	{     
	//	var result = new Image();
	//	result.src = setImg.arguments[0];
	
		document.getElementById(setImg.arguments[1]).src = setImg.arguments[0];
	
	
	//var i = setImg.arguments[1];
//	i.src = setImg.arguments[0];
//		i.src = result.src;
		
		
	//	document.images[0].src = result.src;
//		return result;
//	}
}


over_hm = function() { var div=document.getElementById(arguments[0]);
/*
var l = getX(div);
var t = getY(div);
var r = l + div.offsetWidth;
var b = t + div.offsetHeight;
if( l<event.clientX && event.clientX<r && t<event.clientY && event.clientY<b ) var indiv = 1; else indiv = 0;
//setT('textp', "_"+ l +"_"+ t +"_"+ r +"_"+ b +"_");
//if( (arguments.callee.button != arguments[0] && indiv == 1) || (arguments.callee.button == arguments[0] && indiv == 0) )
if( arguments.callee.button == arguments[0] && indiv == 1 )
return;
//setT('textp', "B");
*/
if(div.style.visibility == 'visible') div.style.visibility='hidden';
else div.style.visibility='visible';
//arguments.callee.button = arguments[0];
}
//over_hm.button='A';



function resizeFlash() 
{
/*
//	setT('textp','BBB'+document.body.clientWidth+'BBB');
//	var hr = (window.getmov||document.embed_getmov).setAttribute("width", document.body.clientWidth);
	
//	setT('textp','BBB'+hr+'BBB');
	//									   setAttribute("width",w);
	var flash = document.getElementById('ffgetmov');
	
(document.getElementById('getmov')||document.getElementById('ffgetmov'))
*/
var newDim = (document.body.clientWidth < 1007)? 1007: document.body.clientWidth;
document.getElementById('getmov').setAttribute("width", newDim);
document.getElementById('ffgetmov').setAttribute("width", newDim);
	
	

}