
var wid=screen.width
var hei=screen.height


var message='<div  class="zag_2">Обзор прессы</div><div id="Layer1" class="cont_right"><ul><li><a href="#1">Военно-техническое сотрудничество России с иностранными государствами. Международное военное сотрудничество</a></li><li><a href="#2">Деятельность ФГУП "Рособоронэкспорт" и ГК "Ростехнологии"</a></li><li><a href="#3">Оборонно-промышленный комплекс России.Экспорто-ориентированные российские вооружения и военная техника</a></li><li><a href="#4">Вооруженные Силы Российской Федерации</a></li><li><a href="#5">Военно-техническое сотрудничество иностранных государств</a></li></ul></div>'

//entrez un nom de couleur qui sera utilis� commecouleur d'arri�re-plan du message.
var backgroundcolor=""

//entrez 0 pour un affichage permanent, 1 pour une p�riode donn�e, 2 pour un affichage al�atoire.
var displaymode=0

//si displaymode est fix� pour une p�riode donn�, entrez la dur�e de cette p�riode (1000=1 sec).
var displayduration=4000

//entrez 0 pour un message non clignatant, 1 pour un message clignotant.
var flashmode=0

//si ce qui pr�c�de est cligntant, entrez la couleur associ�e au clignotement.
var flashtocolor=""

var var_ismac=0
///////////////do not edit below this line////////////////////////////////////////


function regenerate(){
window.location.reload()
}

var which=0



if (document.all){
document.write('<span id="topmsg" style="position:absolute;visibility:hidden">'+message+'</span>')
}


function logoit(){
document.all.topmsg.style.left=document.body.scrollLeft+10
document.all.topmsg.style.top=document.body.scrollTop+10
}




function setmessage()
{
	var_ismac=ismac();
	if (var_ismac == 0) 
	{
		document.all.topmsg.style.left=document.body.scrollLeft+10
		document.all.topmsg.style.top=document.body.scrollTop+10
		document.all.topmsg.style.backgroundColor=backgroundcolor
		document.all.topmsg.style.visibility="visible"
		if (displaymode==1)
		setTimeout("topmsg.style.visibility='hidden'",displayduration)
		else if (displaymode==1)
		display2()
		if (flashmode==1)
		setInterval("flash()",0)
		window.onscroll=logoit
		window.onresize=new Function("window.location.reload()")
	}
}




function ismac(){
var ua = window.navigator.userAgent;
	if (ua.indexOf("Mac")>=0)
        {
            //c'est un mac
            var_ismac=1
	}
	else
        {
           // c'est pas un mac
           var_ismac=0
        }
        
        return var_ismac;
}

var ua2 = window.navigator.userAgent;
if (ua2.indexOf("Mac")>=0)
{
}
else
{
	
	if (document.layers)
		window.onload=setmessage2;
	else if (document.all)
		window.onload=setmessage;
}
	
	



