/*------------------------------------------------------
Roll
------------------------------------------------------*/
function MM_preloadImages()
{
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_swapImgRestore()
{
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_findObj(n, d)
{
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}


function MM_swapImage()
{
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_showHideLayers()
{
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
		if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
		obj.visibility=v; }
}
function change_GD_picto(num,name,kind)
{
	var im = MM_findObj('GD-picto-' + num);
	add = (kind == true) ? "-zoom" : "";
	im.src = "http://media.maison-facile.com/img/" + name + add + ".gif";
}
/*------------------------------------------------------
Open
------------------------------------------------------*/
function pop100_0(pop_URL,pop_width,pop_height,menu,toll,scroll,resize,pop_name)
{
	window.open(pop_URL,pop_name,'menubar='+menu+',toolbar='+toll+',scrollbars='+scroll+',resizable='+resize+',width='+pop_width+',height='+pop_height+',screenX=100,left=100,screenY=0,top=0');
}


function lexique(theURL,pop_name,pop_width,pop_height)
{
	window.open(theURL,pop_name,'width='+pop_width+',height='+pop_height+',screenX=100,left=100,screenY=0,top=0');
}


function popup(new_URL,new_width,new_height,winName)
{
	window.open(new_URL,winName,'scrollbars=yes,toolbar=0,menubar=0,resizable=0,width='+new_width+',height='+new_height+',screenX=0,left=0,screenY=0,top=0');
}


function popcentree(new_URL,new_width,new_height,winName)
{
	if (document.all)
	var xMax = screen.width, yMax = screen.height;
	else
	if (document.layers)
	var xMax = window.outerWidth, yMax = window.outerHeight;
	else
	var xMax = 800, yMax=600;
	var xOffset = (xMax - new_width)/2, yOffset = (yMax - new_height)/2;
	return window.open(new_URL,winName,'scrollbars=no,toolbar=0,menubar=0,resizable=0,width='+new_width+',height='+new_height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}

function popcscroll(new_URL,new_width,new_height,winName)
{
	if (document.all)
	var xMax = screen.width, yMax = screen.height;
	else
	if (document.layers)
	var xMax = window.outerWidth, yMax = window.outerHeight;
	else
	var xMax = 800, yMax=600;
	var xOffset = (xMax - new_width)/2, yOffset = (yMax - new_height)/2;
	return window.open(new_URL,winName,'scrollbars=yes,toolbar=0,menubar=0,resizable=0,width='+new_width+',height='+new_height+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}

function MM_openBrWindow(theURL,winName,features)
{ //v2.0
  window.open(theURL,winName,features);
}

function homepage()
{
LaHomePage.setHomePage("http://www.maison-facile.com");
}


function telecommande(new_URL,new_width,new_height,winName)
{
remote = window.open(new_URL,winName,'width='+new_width+',height='+new_height+'');
remote.location.href = new_URL;
if (remote.opener == null) remote.opener = window;
remote.opener.name = "opener";
}
/*------------------------------------------------------
Overlay
------------------------------------------------------*/
document.write('<div ID=overlay-bg STYLE="visible:hidden;position:absolute;top:0;left:0;z-index:100"></div>');
document.write('<div ID=overlay-centre STYLE="visible:hidden;position:absolute;top:0;left:0;width:100%;text-align:middle;z-index:101"></div>');

function portfoliobtqart(numart)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+20)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff WIDTH=670 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' width='15' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;'><iframe name=\"portfolio\" SRC=\"http://www.maison-facile.com/boutique/article_mag/034article_rubrique.asp?num="+numart+"\" scrolling='yes' height='620' width='670' FRAMEBORDER='no'></iframe></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function portfoliobtq(numart)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+50)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff WIDTH=650 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' width='15' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;'><iframe name=\"portfolio\" SRC=\"http://www.maison-facile.com/boutique/pop-portfolio.asp?num="+numart+"\" scrolling='no' height='440' width='650' FRAMEBORDER='no'></iframe></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function portfoliobtqoffre(numart)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+50)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff WIDTH=650 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' width='15' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;'><iframe name=\"portfolio\" SRC=\"http://www.maison-facile.com/boutique/pop-portfolio-offre.asp?num="+numart+"\" scrolling='no' height='540' width='650' FRAMEBORDER='no'></iframe></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function portfoliobtq_newversion(numart)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+50)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff WIDTH=650 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' width='15' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;'><iframe name=\"portfolio\" SRC=\"http://www.maison-facile.com/boutique/pop-portfolio-newversion.asp?num="+numart+"\" scrolling='auto' height='500' width='650' FRAMEBORDER='no'></iframe></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function overlayimg(img)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+100)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff WIDTH=650 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;' align=\"center\"><a HREF='#' onclick='hideoverlay();return(false);'><img src=\"http://media.maison-facile.com/img/article/"+img+"\" NAME=\"imageTest\" style=\"margin:9px;\"></a></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function overlaypubbtq(link,img)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+50)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff WIDTH=600 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' width='15' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;'><a href=\""+link+"\"><img src=\"http://media.maison-facile.com/img/pubmf/"+img+"\" border=\"0\" /></a></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function overlaypubbtqflash(src,widthX,heightY)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+50)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff WIDTH=600 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' width='15' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;'><object type='application/x-shockwave-flash' data='http://media.maison-facile.com/img/pubmf/"+src+"' width='"+widthX+"' height='"+heightY+"'><param name='movie' value='http://media.maison-facile.com/img/pubmf/"+src+"'><param name='play' value='true'><param name='loop' value='true'><param name='quality' value='high'><param name='WMode' value='transparent'></object></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function overlaypubbtqiframe(genre,num,widthX,heightY,Yscroll)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+Yscroll)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;' align=\"center\"><iframe name=\"pubmf\" SRC=\"http://www.maison-facile.com/boutique/pubiframe/"+genre+"/"+num+"\" scrolling='no' height='"+heightY+"' width='"+widthX+"' FRAMEBORDER='no'></iframe></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function overlaybtqzoompdt(num,p,nbimg,imgminiold,imgzoomold,widthX,heightY,Yscroll,extbt02,dispo)
{
if(document.getElementById)
	{
	document.getElementById("overlay-bg").style.visibility  = "visible";
	document.getElementById("overlay-centre").style.visibility  = "visible";
	document.getElementById("overlay-bg").style.display  = "inline";
	document.getElementById("overlay-centre").style.display  = "inline";
	document.getElementById("overlay-bg").style.width = '100%';
	document.getElementById("overlay-bg").style.height = String(document.documentElement.scrollHeight)+'px';
	document.getElementById("overlay-centre").style.top = String(document.documentElement.scrollTop+50)+'px';
	document.getElementById("overlay-centre").innerHTML = "<TABLE WIDTH=100% cellspacing=0 cellpadding=10><TR><TD VALIGN=middle ALIGN=center><TABLE bgcolor=#ffffff CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD align=right bgcolor=#CFCFCF><a HREF='#' onclick='hideoverlay();return(false);'><img src='http://media.maison-facile.com/img/overlay-fermer.gif' border=0></a></TD></TR><TR><TD style='border:0px solid #CFCFCF;border-width:0 15px 15px 15px;'><iframe name=\"portfolio\" SRC=\"http://www.maison-facile.com/boutique/bt_zoom.asp?num="+num+"&amp;p="+p+"&amp;nbimg="+nbimg+"&amp;mini="+imgminiold+"&amp;max="+imgzoomold+"&amp;extbt02="+extbt02+"&amp;dispo="+dispo+"\" scrolling='auto' height='"+heightY+"' width='"+widthX+"' FRAMEBORDER='no'></iframe></TD></TR></TABLE></TD></TR></TABLE>";
	}
}

function hideoverlay()
{
	document.getElementById("overlay-bg").style.visibility  = "hidden";
	document.getElementById("overlay-centre").style.visibility  = "hidden";
	document.getElementById("overlay-bg").style.display  = "none";
	document.getElementById("overlay-centre").style.display  = "none";
}

