<!--

var faqActive = "";

function goPage(selObj){
	
  if(selObj.options[selObj.selectedIndex].value == 0) { return; }	

  eval("document.location.href='"+selObj.options[selObj.selectedIndex].value+"'");
}

function smartPopupBio(pageId,lang) {
	windowUrl = '/index.php?id='+pageId+'&L='+lang ;
	smartPopup(windowUrl,'scrollbars=1','width=460','height=550','resizable=1') ;
}

function smartPopup(windowUrl)
{
	var windowDefaults = new Array() ;
	windowDefaults['resizable'] = 0 ;
	windowDefaults['scrollbars'] = 0 ;
	windowDefaults['menubar'] = 0 ;
	windowDefaults['status'] = 0 ;
	windowDefaults['width'] = 800 ;
	windowDefaults['height'] = 600 ;
			
	var time = new Date() ;
	var windowName = time.getTime() ;
		
	if (arguments.length) {	
		for (var i=1; i<arguments.length; i++) {
			var currentParam = arguments[i].split('=') ;
			windowDefaults[currentParam[0]] = currentParam[1] ;
		}
	}
			
	var windowParams = '' ;
	for (paramKey in windowDefaults) {
		if (windowParams!='') windowParams += ',' ;
		windowParams += paramKey+'='+windowDefaults[paramKey] ;
	}

	window.open(windowUrl,windowName,windowParams) ;
}

function flashIMP() {
	hello = this.location ;
	javascript:window.open('fileadmin/industrysolutions/index.html','','width=750px,height=379px,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no,left=100,top=100');
	this.location = hello ;
	
}

function robots() {
	hello = this.location ;
	javascript:window.open('fileadmin/flash/supaero/content.html','','width=760px,height=460px,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no,left=10,top=10');
	this.location = hello ;

	
}

function webinarv5r13() {
	hello = this.location ;
	javascript:window.open('http://clients.dbee.com/dassault/20040309/','','width=914px,height=700px,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no,left=10,top=10');
	this.location = hello ;	
}


function rollImg(path,img,mode) {
	document.images[img].src = '../img/'+path+'/'+img+'_'+mode+'.gif' ;
}

function setIndustry(id) {
	document.indillus.src = eval('image'+id+'.src') ;
}

function openPLE() {
	openWin('index.php?id=133','PLE','menubar=0,scrollbars=1,resizable=1,width=635,height=500') ;
}

function openWin(pageURL,pageNAME,pagePARAMS) {
	pageNAME	= (pageNAME) ? pageNAME : 'page' ;
	pagePARAMS	= (pagePARAMS) ? pagePARAMS : 'menubar=0,resizable=0,scrollbars=1,width=350,height=450' ;
	var newwin = window.open(pageURL,pageNAME,pagePARAMS);
}

function getRadioValue(radioObj) {
	for(i=0; i<radioObj.length; i++) if (radioObj[i].checked) { return radioObj[i].value; break; }
	return '' ;
}

function getRadioSelectedIndex(radioObj) {
	for(i=0; i<radioObj.length; i++) if (radioObj[i].checked) { return i; break; }
	return null ;
}

//function setIndustry(id) {
//	document.indillus.src = 'fileadmin/img/rub01/ps_industry_'+id+'.gif' ;
//}

//	Laurent FABRE - lfabre@shoutingfish.com



agt = navigator.userAgent.toLowerCase()
isIE = (agt.indexOf('msie') != -1)? 1:0
isMAC = (navigator.userAgent.indexOf('Mac') != -1)?  1:0
isNS4 = (navigator.appName=="Netscape" && agt.indexOf('mozilla/4') != -1)? 1:0
isW3C = (document.getElementById && !document.all)? 1:0

function gob(n,cn) {
	if (isIE) { ob=eval('document.all.'+n) }
	if (isNS4) {
		ob= (cn)? eval("document."+cn+".document."+n) : eval("document."+n);
	}
	if (isW3C) ob = document.getElementById(n);
	return ob;
}


lastvisited = 0 ;

function showPLMSol(id) {
	indat = indata[id] ;
	img_nam = 'sol_'+id ;
	document.images[img_nam].src = eval('image'+id+'_on.src') ;
	
	if (lastvisited && lastvisited!=id) hidePLMSol(lastvisited) ;
	lastvisited = id ;
	
	// show/hide text
	
	s='<table width="100%" cellspacing="0" cellpadding="10" border="0"><tr><td></td><td valign="top">'
	s+= indat
	s+='</td><td></td></tr></table>'
	d=gob('sol_explain')
	d.innerHTML=s
	if (isNS4) {
	   	d.document.write(s)
    	d.document.close()
    }

}

function hidePLMSol(id) {
	// roll image
	img_nam = 'sol_'+id ;
	document.images[img_nam].src = eval('image'+id+'_off.src') ;
}


function ranking(select,id,nbr){
	var item=select.options[select.selectedIndex].value;
	
	location = item;
}

function nbr_items(select,id,sort){
	var item=select.options[select.selectedIndex].value;
	
	location = item;
}

function brand(select,id){
	var item=select.options[select.selectedIndex].value;
	location = item;
}

function customer(select,id){
	var item=select.options[select.selectedIndex].value;
	location = item;
}

function order(select){
	var item=select.options[select.selectedIndex].value;
	location = item;
}

function agree(){
	if (form["check"]){
		if (form["check"].checked == false){
			alert("You must accept the agreements to continue");
			return false;
		}
	}
}


function clickCompanion(param){
	var WIDTH    = 920;
	var HEIGHT   = 706;
	var wls_wnd  = -1;
	var wnd_name = "WLS_Companion";
	var dskFileName = "http://"+location.hostname+"/companion/intel_a/docs/wls/WLSBBClient.html?" + param;
	var x = Math.round( (screen.width - WIDTH) / 2 );
	var y = Math.round( (screen.height -  HEIGHT) / 2 );
	var options = "toolbar=0,menubar=0,status=1,screenX="+x+",screenY="+y+",width="+WIDTH+",height="+HEIGHT ;
	wls_wnd = open( dskFileName, wnd_name, options) ;
	wls_wnd.focus();
}


function nbr_itemsBis(select,id,sort,sort2){
	var item=select.options[select.selectedIndex].value;
	item = item+"&themanufacturer="+sort2;
	location = item;
}

function faq(id,answer){
	if (faqActive != ""){
		if (faqActive == id && document.getElementById(id).innerHTML != ""){
			document.getElementById(id).innerHTML = "";
		}
		else{
			document.getElementById(faqActive).innerHTML = "";
			document.getElementById(id).innerHTML = answer;
		}
	}
	else{
		document.getElementById(id).innerHTML = answer;
	}
	faqActive = id;
	return false;
}



/* deprecated, use of classid and codebase attribute on OBJECT tag cause the failure of dynamic resizing
// [begin] FlashApplis
function getLiveBoxSwf(movieName)
{
	var e = canResizeFlash();
	document.write('<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write(' WIDTH="100%" HEIGHT="100%" ALIGN="left">');
	document.write(' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" />');
	document.write(' <PARAM NAME="FlashVars" VALUE="allowResize='+e+'" />');
	document.write(' <PARAM NAME=movie VALUE="'+movieName+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false> <PARAM NAME=scale VALUE=noscale> <PARAM NAME=salign VALUE=left> <PARAM NAME=bgcolor VALUE=#FFFFFF> <PARAM NAME=menu VALUE=false> ');
	document.write(' <EMBED src="'+movieName+'" quality="high" menu="false" scale="noscale" bgcolor="#FFFFFF"  ');
	document.write(' WIDTH="100%" HEIGHT="100%" NAME="flashId" SALIGN="lt" allowScriptAccess="sameDomain"');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write(' </EMBED>');
	document.write(' </OBJECT>');   
}
*/

// [begin] FlashApplis
function getLiveBoxSwf(movieName)
{
    document.write('<OBJ'+'ECT data="'+movieName+'" width="100%" height="100%" type="application/x-shockwave-flash">');
    document.write('<param name="movie" value="'+movieName+'" />');
    document.write('<PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false> <PARAM NAME=scale VALUE=noscale> <PARAM NAME=salign VALUE=left> <PARAM NAME=bgcolor VALUE=#FFFFFF> <PARAM NAME=menu VALUE=false> <PARAM NAME=wmode VALUE=transparent>');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('Flash Movie With Resizing Content');

    document.write(' <EMBED src="'+movieName+'" quality="high" menu="false" scale="noscale" bgcolor="#FFFFFF"  wmode="transparent"');
	document.write(' WIDTH="100%" HEIGHT="100%" NAME="flashId" SALIGN="lt" allowScriptAccess="sameDomain"');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write(' </EMBED>');
	
	document.write('</object>');  
}

// used to put flash object into pages, uses swfobject.js and Tween.js in fileadmin/js/flash

function writeFlashBannerObject(movieName)
{
	var so = new SWFObject(movieName, "mainswf", "100%", "100%", "8", "#FFFFFF");
    so.addParam("quality","high");
    so.addParam("scale", "noscale");
    so.addParam("menu","false");
	so.addParam("wmode","transparent");
    so.addVariable("allowResize","true");
    so.addVariable("allowScriptAccess","sameDomain");
    so.write("flashid");	
}

function setFlashHeight(h){
	
	flash_mc = document.getElementById('flashid');
	
	ft = new Tween(flash_mc.style,'height','',parseInt(flash_mc.style.height),h,0.2,'px');
	ft.start();
}
function Add_Event( obj_, event_, func_, mode_){
	if( obj_.addEventListener)
		obj_.addEventListener( event_, func_, mode_? mode_:false);
	else
 		obj_.attachEvent( 'on'+event_, func_);
}

//-->

