/*********************************************************/



/**************************popPup*************************/
function montrer(id) {
	var toto = document.getElementById(id);
	toto.style.display = "block";
}
function cacher(id) {
	var toto = document.getElementById(id);
	toto.style.display = "none";
}
function grande(url) {
   window.open(url, '', 'width=900,height=500');
}

/**************************popPup avec fermeture automatique*************************/
/* <<mettre ce texte dans le href>>   onclick="showImage('grande.jpg', 400, 300);"     */

function showImage(url, width, height)
{
	var max_width = screen.width-100;
	var max_height = screen.height-100;
	var full_view = max_width>=width && max_height>=height;
	var win_width = full_view ? width : Math.min(width, max_width);
	var win_height = full_view ? height : Math.min(height, max_height);
	var win_top = Math.floor((screen.height - win_height - 16)/2);
	var win_left = Math.floor((screen.width - win_width)/2);
	var sb = full_view ? '' : ',scrollbars=yes';
	var wnd = window.open("", "wf2image", "width=" + win_width + ",height=" + win_height + ",left=" + win_left + ",top=" + win_top + sb );
	var doc = wnd.document;
		
	doc.open();
				
	doc.write('<html><head><title></title></head>');
	if(full_view) {
		doc.write('<body style="margin: 0; background-color: #000000; background: url(../+url+) no-repeat 0 0;" onBlur="self.close()">'); 
	    doc.write(' ');
	}
	else {
		doc.write('<body style="margin: 0; background-color: #000000; onBlur="self.close()">'); 
		doc.write('<img src="../' + url + '" width="' + width + '" height="' + height + '" alt="" border="0">');
	}
	doc.write('</body></html>');
	doc.close();
	wnd.onmouseup = function(event) {
		var e = event || window.event;
		if(e.button<2) wnd.close();
	}
	wnd.focus();
}
/************************************ouverture lente de la fenetre*****************/
/**************/
var mylocation="http://www.soleildafrique.com/senegal/vols-secs-senegal.htm"
var winheight=100
var winsize=100
var x=5
function go(){
win2=window.open("","","scrollbars")
if (!document.layers&&!document.all){
win2.location=mylocation
return
}
win2.resizeTo(100,100)
win2.moveTo(0,0)
go2()
}
function go2(){
if (winheight>=screen.availHeight-10)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-10){
win2.location=mylocation
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",1)
}
/************pop up flash****************/

function ouverture()
{
window.open('url', 'ouverture', 'toolbar=no',' status=yes',' scrollbars=yes', 'resizable=no',' width=550',' height=510');
}
function airport()
{
window.open("http://www.m1nd-set.com/sectorsActivity/airport.html", "ouverture", "toolbar=no, status=yes, scrollbars=no, resizable=yes, width=500, height=410");
}
function news()
{
window.open("news/news.php", "ouverture", "toolbar=no, status=yes, scrollbars=yes, resizable=yes, width=420, height=450");
}
// JavaScript Document