//© ATELIER 33 All rights reserved 2005 / www.atelier33.com
//-------------------------------
function MM_callJS(jsStr) {return eval(jsStr)}
//-------------------------------
function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { 
  var ok=false; document.MM_returnValue = false;
  with (navigator) if (appName.indexOf('Microsoft')==-1) ok=(plugins && plugins[plgIn]);
  else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    else ok=autoGo; }
  if (!ok) theURL=altURL; if (theURL) window.open('phppages/main01.htm','PHP','resizable=yes,width=775,height=505');;
}
//-------------------------------
function PreviewIt(DaFolder)
{
	if (DaFolder !=""){window.open('/pages/photos.asp?reqfolder='+DaFolder+' ','PREVIEW','status=yes,scrollbars=yes,resizable=yes,width=550,height=550');}
	else							{alert("Erreur : paramètres manquants, la tâche ne peut être effectuée !!!")}
}
//-------------------------------
function Piercing01(){window.open('piercing.htm','VP01','resizable=no,width=280,height=250');}
//-------------------------------
function Tattoo01(){window.open('tatoo.htm','VP01','resizable=no,width=280,height=250');}
//-------------------------------
function Article(){window.open('article.htm','ART01','scrollbars=yes,resizable=yes,width=650,height=500');}
//-------------------------------
function GetAdrEma(DaName, DaID, DaClass)
{
	var DaDomaine;
	if (DaID!="" && DaName!="" && DaClass!="")
		{
		switch (DaID.toString())
			{
			case "0"	: DaDomaine=""; break;
			default		: DaDomaine="artistic-tattoo.com"; break;
			}
		document.write("<a href='mailto:"+DaName+"@"+DaDomaine+"' class='"+DaClass+"'>"+DaName+"@"+DaDomaine+"&nbsp;»</a>");
		}
}
//-------------------------------
function ImageUpload(DaPage, DaLoc, DaDim, DaNum)
{
	if (DaPage!="" && DaLoc!="" && DaDim!="" && DaNum!="")
		{winUpload=window.open (DaPage+'?loc='+DaLoc+'&dim='+DaDim+'&num='+DaNum+' ','UPLOAD','scrollbars=auto,resizable=yes,status=no,width=330,height=280');}
	else
		{alert('Erreur : \n\nAbsence de référence\nLa tâche demandée ne peut être effectuée.')}
}
//-------------------------------
function ManageFolder()
{
	var Dis=document.Form01; var Param="";
	Param="reqfolder="+Dis.reqfolder.options[Dis.reqfolder.selectedIndex].value;
	top.location.href="?"+Param;
}
//-------------------------------
function ManageNames(DaPage){opener.location.href=DaPage;}
//-------------------------------
function ReloadOpener(){opener.location.reload(true)}
//-------------------------------

