var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
function mainmenu(){
	
	var newWidth = $("#menu li").find('.menuBouton2').width();
	//alert('toto'+newWidth);
	var tempNumber = parseInt(newWidth);
	tempMarg=tempNumber+2;
	tempNumber+=8;
	newWidth=tempNumber+'px';
	var newMargin='-'+tempMarg+'px';
	$("#menu li").find('.menuDeco2').css({'width':newWidth});
	$("#menu li").find('.menuBouton2').css({'margin-left':newMargin });
	



$("#menu li").hover(function(){
	
	//$(this).css("background-image","url(../files/design/bt_bg_over.jpg)");
	var newWidth = $(this).find('.menuBouton').width();
	var tempNumber = newWidth;
	tempMarg=tempNumber+2;
	tempNumber+=8;
	newWidth=tempNumber+'px';
	var newMargin='-'+tempMarg+'px';
	
	//$(this).find('.menuDeco').css({'max-width':"200px",'width':'200px'});
	//alert('nondidju'+newWidth);
	
	
	$(this).find('.menuDeco').css({'max-width':"200px" ,'width':'6px'}).animate( { 'width':newWidth }, { queue:false, duration:100},"linear",function(){alert('toto');} );
	$(this).find('.menuBouton').css({'margin-left':'0px'}).animate({ 'marginLeft':newMargin  }, { queue:false, duration:100},"linear",function(){alert('toto');} );
	//$(this).find('.menuBouton').css({'margin-left':'0px'});

	if (browser=="Microsoft Internet Explorer"){
			
			
			}else {
				
			
			
			}
			
			},function(){	
				$(this).find('.menuDeco').animate( { 'width':'6px','max-width':'6px' }, { queue:false, duration:100},"linear",function(){alert('toto');} );
			$(this).find('.menuBouton').animate({ 'marginLeft':'0px'  }, { queue:false, duration:100},"linear",function(){alert('toto');} );
			
			
				if (browser=="Microsoft Internet Explorer"){	
					
			}else {			
			
			}
		});
};


$('document').ready(function(){
	mainmenu();
	doFlash();
	//("a.light").lightbox();
	
 });
 
 function doFlash(){
	var flashvars = {};
 var params = {};
 var attributes = {};

 swfobject.embedSWF("http://www.toituredeby.be/files/flash/logo.swf", "headLeft", "227", "184", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
 
 }