function SGraph(id) {
	this.width= 940;
	this.height= 146;
	this.div_id		= id; // id de la div
	this.kernel		= '';
	// ----------------------------------------------
	this.Init = function() {
		var kernel_id = 'kernel_';
		var FlashVars = {
			
		};
		myKernel = new BuildGraph(this.div_id, 'bandeau.swf', kernel_id, this.width, this.height, 8, {wmode:"transparent",allowScriptAccess:"always"}, FlashVars);
		if (document.getElementById(kernel_id)) {
			this.kernel=document.getElementById(kernel_id);
		} else {
			//alert('Enable to find Squeere Graph Object');
		}
	}
	
	this.chgBde_0 = function() {
		this.kernel.ChgBandeau("bandeau_0");
		return true;
	}
	
	this.chgBde_1 = function() {
		this.kernel.ChgBandeau("bandeau_1");
		return true;
	}
	
	this.chgBde_2 = function() {
		this.kernel.ChgBandeau("bandeau_2");
		return true;
	}
	
	this.chgBde_3 = function() {
		this.kernel.ChgBandeau("bandeau_3");
		return true;
	}
	
	this.chgBde_4 = function() {
		this.kernel.ChgBandeau("bandeau_4");
		return true;
	}
	
	this.onLoad = function(state) {  }

	// ---------------------------------------------------------

	return this;
}


function BuildGraph(eID,src,id,w,h,vers,params,vars) {
	
	var wao=window.ActiveXObject,o='',prs='',atr='',fvrs='',ar=new Array(),hw='hockwave';
	this.div=document.getElementById(eID);td=this.div;
	
	this.Check=function(v){
		var f,nv=navigator,ok=false;
		if(wao){
			try{f=new ActiveXObject(("S"+hw+"Flash.S"+hw+"Flash."+v));ok=true;} catch(e){}
		}else{
			if(nv.plugins && nv.mimeTypes.length>0){f=nv.plugins["S"+hw+" Flash"];if(f && f.description.replace(/.*(\d+\.\d+).*/,"$1")>=v){ok=true;}}
		}
		return ok;
	}
	
	/* if(td && this.Check(vers)){ */
		for(var i in params){prs+='<param name="'+i+'" value="'+params[i]+'">';atr+=' '+i+'="'+params[i]+'"';}
		for(var i in vars){ar[ar.length]=i+"="+escape(vars[i]);}
		fvrs=ar.join('&');
	
		o ='<object'+((wao)?' id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+src+'"':'')+' width="'+w+'" height="'+h+'">';
		o+='<param name="movie" value="'+src+'">'+prs+'<param name="flashvars" value="'+fvrs+'">';
		o+='<embed id="'+id+'" src="'+src+'" type="application/x-s'+hw+'-flash" width="'+w+'" height="'+h+'"'+atr+' flashvars="'+fvrs+'"></embed>';
		o+='</object>';
		
		td.innerHTML=o;
	/*
	}*/
	return this;
}
