var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function myFlash_DoFSCommand(command, args)                
{
	//var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
	//alert (command);
	if (command=='goentreprise'){
		top.window.location="http://www.123arc.com/fr/entreprise.htm";
	}
	if (command=='godemo'){
		top.window.location="https://www.123arc.com/bi/demo.htm?langue=francais";
	}
	if (command=='goproduits'){
		top.window.location="http://www.123arc.com/fr/produits.htm";
	}
	if (command=='gohome'){
		top.window.location="http://www.123arc.com/";
	}
	if (command=='gojoindre'){
		top.window.location="http://www.123arc.com/fr/nousjoindre.htm";
	}
	if (command=='gojoindreplan'){
		NewFenetre('http://www.123arc.com/fr/nordelec.pdf','Specification','700','500','yes','center','yes');
	}
	if (command=='arcplus'){
		top.window.location="http://www.123arc.com/fr/presentationARCplus.htm";
	}
	if (command=='arcplusspec'){
		//top.window.location="http://www.123arc.com/fr/spec_arc_plus.htm";
		NewFenetre('http://www.123arc.com/fr/spec_arc_plus.htm','Specification','700','500','yes','center','yes');
	}
	if (command=='arc'){
		top.window.location="http://www.123arc.com/fr/presentationARC.htm";
	}
	if (command=='arcspec'){
		//top.window.location="http://www.123arc.com/fr/spec_arc.htm";
		NewFenetre('http://www.123arc.com/fr/spec_arc.htm','Specification','700','500','yes','center','yes');
	}
	if (command=='eduwelding'){
		top.window.location="http://www.123arc.com/fr/eduwelding.htm";
	}
	if (command=='eduweldingspec'){
		//top.window.location="http://www.123arc.com/fr/spec_eduwelding.htm";
		NewFenetre('http://www.123arc.com/fr/spec_eduwelding.htm','Specification','700','500','yes','center','yes');
	}
	if (command=='eduweldingplus'){
		top.window.location="http://www.123arc.com/fr/eduwelding_plus.htm";
	}
	if (command=='eduweldingplusspec'){
		//top.window.location="http://www.123arc.com/fr/spec_eduwelding_plus.htm";
		NewFenetre('http://www.123arc.com/fr/spec_eduwelding_plus.htm','Specification','700','500','yes','center','yes');
	}
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call myFlash_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}

var win=null;
function NewFenetre(mypage,myname,w,h,scroll,pos,resize){
	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=0;
		TopPosition=20;
	}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable='+resize+'';
	// settings='fullscreen=yes,top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable='+resize+'';
	win=window.open(mypage,myname,settings);
}


var inMenu = false;

var agt=navigator.userAgent.toLowerCase();
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
            && (agt.indexOf('webtv')==-1));
var is_nav2 = (is_nav && (is_major == 2));
var is_nav3 = (is_nav && (is_major == 3));
var is_nav4 = (is_nav && (is_major == 4));
var is_nav4up = (is_nav && (is_major >= 4));
var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
                      (agt.indexOf("; nav") != -1)) );
var is_nav5 = (is_nav && (is_major == 5));
var is_nav5up = (is_nav && (is_major >= 5));
var is_ie   = (agt.indexOf("msie") != -1);
var is_ie3  = (is_ie && (is_major < 4));
var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) );
var is_ie4up  = (is_ie  && (is_major >= 4));
var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
var is_ie6  = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.0")!=-1) );	
var is_ie5up  = ( (is_ie5 || is_ie6 )  && !is_ie3);
var is_aol   = (agt.indexOf("aol") != -1);
var is_aol3  = (is_aol && is_ie3);
var is_aol4  = (is_aol && is_ie4);
var is_opera = (agt.indexOf("opera") != -1);
var is_webtv = (agt.indexOf("webtv") != -1);	
function sendMenuToBack()
{
	if (!is_ie5up)
	{
		if (!inMenu )
		{
			document.getElementById('divMenu').style.zIndex = 100;
			document.getElementById('divContent').style.zIndex = 200;		
		}
		else
		{
			document.getElementById('divMenu').style.zIndex = 200;
			document.getElementById('divContent').style.zIndex = 100;
		}
	}
}	

