function sesame(url,winObj,longueur,hauteur,scroll){
	window.open(url,winObj,"status=0,toolbar=no,scrollbars=0,width="+longueur+",height="+hauteur+",scrollbars="+scroll+"")
}
function sesame2(url,winObj,longueur,hauteur,scroll){
	window.open(url,winObj,"status=1,toolbar=no,scrollbars=0,width="+longueur+",height="+hauteur+",scrollbars="+scroll+"")
}


document.PageLoaded=0;

function sesameProd(url,winObj,longueur,hauteur,scroll){
	if(document.PageLoaded)	window.open(url,winObj,"status=0,toolbar=no,scrollbars=0,width="+longueur+",height="+hauteur+",scrollbars="+scroll+"");
}

function roll(ImgNme){
	ClicName=(document.clicImgFafa)? document.clicImgFafa.name:"";
	if(ClicName!=ImgNme){	
		obj=document.images[ImgNme];
		obj.src=(obj.src.lastIndexOf('-on')!=-1)? obj.src.replace(/-on/gi,"-off"):obj.src.replace(/-off/gi,"-on");
	}
}

function Clic(ImgNme){
        obj=(document.images)? document.images[ImgNme]:0; ClicNme=(document.clicImgFafa)? document.clicImgFafa.name:""; 
        if (!obj && document.layers) {
                for (i=0; i<document.layers.length; i++) { ObjLyr=document.layers[i].document;
                        if (ObjLyr.images && ObjLyr.images[ImgNme]) obj=ObjLyr.images[ImgNme];}}        
      	if (document.clicImgFafa){
				 document.clicImgFafa.src=document.clicImgFafa.src.replace(/-on/gi,"-off");        
		}
		obj.src=obj.src.replace(/-off/gi,"-on");
       document.clicImgFafa=obj;		
}

function rollOver(ImgNme){ 
	imgsrc=dlib_po(ImgNme,"image").src;
	isOn=(imgsrc.indexOf("_on")!=-1)?1:0;
	dlib_po(ImgNme,"image").src=(isOn)? imgsrc.replace(/_on/gi,"_off"):imgsrc.replace(/_off/gi,"_on"); 
}

function getRelativRootURL(RootIndex){
	ShortURL=self.location.href.substring(self.location.href.indexOf(RootIndex)+RootIndex.length);
	ShortURL=ShortURL.split("/");
	RelativPath="";
	for(i=0; i<ShortURL.length-1; i++) RelativPath+="../";
	 return RelativPath;
}

function SetSuccessurl(url)
{
	url = url + '?RetourUrl=' + document.location;
	window.open(url, '_self');
}

function getMagRelativPath(){
	UrlArray=self.location.href.substring(7).split("/");
	if(UrlArray[UrlArray.length-2]=="_en") return "";
	else return "../";
}

function desLiens(hurle){
	top.location = hurle;
}

function Ascenceur(LyrNme, vitesse, direction, run)
{
	if (LyrNme) {
	obj=(document.all)? document.all[LyrNme]:(!document.layers)?document.getElementById(LyrNme):document.layers[LyrNme]; ie=(document.all || !document.layers)?1:0; 
	IeMac4=(navigator.appVersion.indexOf("MSIE 4.5")!=-1 && navigator.appVersion.indexOf("Mac")!=-1)?1:0;
	if (ie) obj.clip=eval('new Array('+obj.style.clip.substring(obj.style.clip.indexOf("\u0028")+1, obj.style.clip.lastIndexOf("\u0029")).replace((IeMac4)?/ /gi:/px/gi,"\u002c")+((!IeMac4)?'0':'')+')');
	haut=(ie)?0:"top"; droite=(ie)? 1:"right"; bas=(ie)? 2:"bottom"; gauche=(ie)? 3:"left"; posTop=(ie)? "pixelTop":"top"; posLeft=(ie)? "pixelLeft":"left"; objMove=(ie)?obj.style:obj;		
	largeur=(ie)?obj.offsetWidth:obj.document.width; hauteur=(ie)?obj.offsetHeight:obj.document.height;
	if (direction=="horiz" && obj.clip[gauche]>=(0+vitesse) && obj.clip[droite]<=(largeur+vitesse)) {
					obj.clip[gauche]-=vitesse; obj.clip[droite]-=vitesse; objMove[posLeft]+=vitesse;}
	if (direction=="vertic" && obj.clip[haut]>=(0+vitesse) && obj.clip[bas]<=(hauteur+vitesse)) {
					obj.clip[haut]-=vitesse; obj.clip[bas]-=vitesse; objMove[posTop]+=vitesse;}
	if (ie) obj.style.clip="rect("+obj.clip[haut]+"px "+obj.clip[droite]+"px "+obj.clip[bas]+"px "+obj.clip[gauche]+"px)";	
	if (arguments.length==4 && !document.runAsc) document.runAsc=run; }
	else document.runAsc=false;
	if (document.runAsc) setTimeout('Ascenceur("'+LyrNme+'", '+vitesse+', "'+direction+'")', 5);	
}

function FermeOuvre(page)
{
	top.opener.location="/_nb/_no/ask/faq_index.html";
	top.close();
}

