// BANNER
<!--
bmQ='<div id="AAA" style="position:absolute; visibility:visible; left:0px; top:0px; width:1px; height:1px; z-index:1"><img src=http://c.bigmir.net/?s87864&t6'
bmD=document
bmD.cookie="b=b"
if(bmD.cookie)bmQ+='&c1'
//--></script><script language="javascript1.2"><!-- 
bmS=screen;bmQ+='&d'+(bmS.colorDepth?bmS.colorDepth:bmS.pixelDepth)+"&r"+bmS.width;
//--></script><script language="javascript"><!--
bmF = bmD.referrer.slice(7);
((bmI=bmF.indexOf('/'))!=-1)?(bmF=bmF.substring(0,bmI)):(bmI=bmF.length);
if(bmF!=window.location.href.substring(7,7+bmI))bmQ+='&f'+escape(bmD.referrer);
bmD.write(bmQ+" border=0 width=1 height=1></div>");
//-->

// BANNER

bV=parseInt(navigator.appVersion);

ns4 = (document.layers) ? true:false;
dom=(!document.layers && !document.all && bV>=4) ? true : false;
ie4 = (document.all)? true:false;

function color_on(par, tr){
	if(ie4){
		if(par==1){document.getElementById(tr).style.background= "#c0b08e";}
		if(par==2){document.getElementById(tr).style.background= "#FFFFFF";}
	}
}
function color_off(par, tr){
	if(ie4){
		if(par==1){document.getElementById(tr).style.background= "#3f3c29";}
		if(par==2){document.getElementById(tr).style.background= "#c0b08e";}
	}
}

function showhide(n,ot,MenuNum) 
{
	if (ie4) 
	{
		for(i=1;i<=MenuNum;i++) 
			//var top_pas = "document.all.menu"+i+".style.top";
			//	top_pas = eval(top_pas).substr(0,3);
			//	top_pas = eval(top_pas)+18*i;
			//	alert(top_pas);
			eval("document.all.menu"+i).style.top=65+18*i-18;
		i1=i-1;
		//document.all.bottom_fon.style.top=parseInt(eval("document.all.menu"+i1).style.top)+17;
		//document.all.banners.style.top=parseInt(eval("document.all.menu"+i1).style.top)+73;               
        
		ALA=eval("document.all.submenu"+n);
		if (ALA.style.visibility=="hidden") im=1; else im=0; 
		//document.all.bg_color.style.visibility="hidden";
		for(i=1;i<=MenuNum;i++) 
		{ 
			eval("document.all.submenu"+i).style.visibility = "hidden";
		}
		if (im==1) 
		{
			for(i=n+1;i<=MenuNum;i++) 
				eval("document.all.menu"+i).style.top=ot+18*i-18;
			ALA.style.visibility="visible";
			i1=i-1;			
			//document.all.bottom_fon.style.top=parseInt(eval("document.all.menu"+i1).style.top)+17;
			//document.all.banners.style.top=parseInt(eval("document.all.menu"+i1).style.top)+73;
		} 
	}
	
	if (ns4) 
	{
		for(i=1;i<=MenuNum;i++) 
		{ 
			l=eval("document.layers.menu"+i);
			l.pageY=65+18*i-18;
		}   
		i1=i-1;
		//document.layers.bottom_fon.pageY=parseInt(eval("document.layers.menu"+i1).pageY)+17;
		//document.layers.banners.pageY=parseInt(eval("document.layers.menu"+i1).pageY)+73;    
		ALA=eval("document.layers.submenu"+n);  
		{ 
			if (ALA.visibility=="hide") im=1; else im=0; 
		} 
		for(i=1;i<=MenuNum;i++)
		{ 
			eval("document.layers.submenu"+i).visibility = "hide";
		}
		if (im==1) 
		{
			for(i=1+n;i<=MenuNum;i++) 
			{
				eval("document.layers.menu"+i).pageY=ot+18*i-18;
			}
			ALA.visibility="show";
			i1=i-1;
			//document.layers.bottom_fon.pageY=parseInt(eval("document.layers.menu"+i1).pageY)+17;
			//document.layers.banners.pageY=parseInt(eval("document.layers.menu"+i1).pageY)+73;    
		}  
	}
	if (dom) 
	{
		for(i=1;i<=MenuNum;i++) 
		{
			eval("document.getElementById('menu"+i+"')").style.top=65+18*i-18;  
		}  
		i1=i-1;	
		//document.getElementById('bottom_fon').style.top=parseInt(eval("document.getElementById('menu"+i1+"')").style.top)+17;
		//document.getElementById('banners').style.top=parseInt(eval("document.getElementById('menu"+i1+"')").style.top)+73;
		ALA=eval("document.getElementById('submenu"+n+"')");     
		{ 
			if (ALA.style.visibility=="hidden") {im=1} else {im=0}; 
		}
		for(i=1;i<=MenuNum;i++) 
		{ 
			eval("document.getElementById('submenu"+i+"')").style.visibility = "hidden";
		}
		if (im==1) 
		{
			for(i=1+n;i<=MenuNum;i++) eval("document.getElementById('menu"+i+"')").style.top=ot+18*i-18;
			ALA.style.visibility="visible";  
			i1=i-1;			
			//document.getElementById('bottom_fon').style.top=parseInt(eval("document.getElementById('menu"+i1+"')").style.top)+17;
			//document.getElementById('banners').style.top=parseInt(eval("document.getElementById('menu"+i1+"')").style.top)+73;
		}  
	}
}



function sendToFlash(num){
switch (num){
case 1:window.logos.SetVariable('_root.flag', '1');
window.logos.SetVariable('_root.txt', '\nмаркетинговый консалтинг и исследования');
break;
case 2:window.logos.SetVariable('_root.flag', '2');
window.logos.SetVariable('_root.txt', 'всеукраинская сеть сбора первичных социологических и маркетинговых данных');
break;
case 3:window.logos.SetVariable('_root.flag', '3');
window.logos.SetVariable('_root.txt', '\nисследования печатных медиа');
break;
case 4:window.logos.SetVariable('_root.flag', '4');
window.logos.SetVariable('_root.txt', '\nevent marketing & sales promotion');
break;
case 5:window.logos.SetVariable('_root.flag', '5');
window.logos.SetVariable('_root.txt', '\nрейтинги украинских рекламных агентств');
break;
case 6:window.logos.SetVariable('_root.flag', '6');
window.logos.SetVariable('_root.txt', '\nкаталог-справочник по рекламному рынку');
break;
case 7:window.logos.SetVariable('_root.flag', '7');
window.logos.SetVariable('_root.txt', '\nIT-система управления исследованиями');
break;
case 8:window.logos.SetVariable('_root.flag', '8');
window.logos.SetVariable('_root.txt', '\nпрограмма поддержки отечественного искусства');
break;

}

}
function sendToFlash2(){
window.logos.SetVariable('_root.flag', '0');
window.logos.SetVariable('_root.txt', '');
}
