PieceCodeCourante=0;
CodeCourant="";
NbElemCode=0;
/* ************************************************************* */ 
function ChoixRune(IdRune)  
{ 
	if(PieceCodeCourante<5)
	{
		PieceCodeCourante++;
		NbElemCode++;
		MM_swapImage('COD'+PieceCodeCourante,'','images/runes/rune'+IdRune+'.gif',1);
		if(CodeCourant=="")
			CodeCourant=""+IdRune;
		else
			CodeCourant=CodeCourant+","+IdRune;
	}
} 
/* ************************************************************* */ 
function EffacerCode()  
{ 
	PieceCodeCourante=0;
	NbElemCode=0;
	CodeCourant="";
	MM_swapImage('COD1','','images/runes/runevide.gif',1)
	MM_swapImage('COD2','','images/runes/runevide.gif',1)
	MM_swapImage('COD3','','images/runes/runevide.gif',1)
	MM_swapImage('COD4','','images/runes/runevide.gif',1)
	MM_swapImage('COD5','','images/runes/runevide.gif',1)
	
} 
/* ************************************************************* */ 

function ValiderEntrerCrypte()
{
	formulaire=document.FORMCODE;
	
	if(formulaire.PSEUDO.value=="")
	{
		alert("Tu dois entrer ton speudo.");
		return false;
	}	
	UnTexte=formulaire.PSEUDO.value;
	if((UnTexte.length>20)||(UnTexte.length<6))
	{
		alert("ton pseudo doit contenir entre 6 et 20 caractères ou chiffres.");
		return false;
	}
	if(!(verif_pass(formulaire.PSEUDO.value)))
	{
		alert("Ton pseudo n'est pas valide. Ton pseudo doit contenir entre 6 et 20 caractères ou chiffres.");
		return false;
	}
	
	if(NbElemCode<5)
	{
		alert("Tu dois entrer ton code.");
		return false;
	}		
	formulaire.CODEUTILISATEUR.value=CodeCourant;
	
	formulaire.submit();
}

/* ************************************************************* */ 

/* ************************************************************* */ 
	function ZoomDirect(Obj)
	{
		hs.registerOverlay({
			html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
			position: 'top right'
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.align = 'center';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
		hs.wrapperClassName = 'wide-border';
		hs.fadeInOut = true;
		hs.dimmingOpacity =null;
 		return hs.expand(Obj);
 		
	}
/* ************************************************************* */ 
	function ZoomDirectGauche(Obj)
	{
		hs.registerOverlay({
			html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
			position: 'top right'
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.targetX = 'laposition -200px';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
		hs.wrapperClassName = 'wide-border';
		hs.fadeInOut = true;
		hs.dimmingOpacity =null;
 		return hs.expand(Obj);
 		
	}
/* ************************************************************* */ 
	function EnvoiCode(Obj)
	{
		hs.registerOverlay({
			html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
			position: 'top right'
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.align = 'center';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
    hs.wrapperClassName= 'no-footer draggable-header '
		hs.fadeInOut = true;
		hs.dimmingOpacity =null;
 		return hs.htmlExpand(Obj, {objectType: 'iframe'} );
 		
	}
/* ************************************************************* */ 
	function AfficheOuvrageFlashFlottant(Obj)
	{
		hs.registerOverlay({
		overlayId: 'closebutton',
		position: 'top right',
		fade: 2, 
		useOnHtml: true
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.align = 'center';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
    hs.wrapperClassName= 'no-footer draggable-header '
		hs.fadeInOut = true;
		hs.width = 640;
		hs.height = 755;
		hs.dimmingOpacity = null;
 		return hs.htmlExpand(Obj, {objectType: 'iframe'} );
 		
	}
/* ************************************************************* */ 
	function AfficheOuvrageFlash(Obj)
	{
		hs.registerOverlay({
		overlayId: 'closebutton',
		position: 'top right',
		fade: 2, 
		useOnHtml: true
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.align = 'center';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
    hs.wrapperClassName= 'no-footer draggable-header '
		hs.fadeInOut = true;
		hs.width = 660;
		hs.height = 755;
		hs.dimmingOpacity = 0.75;
 		return hs.htmlExpand(Obj, {objectType: 'iframe'} );
 		
	}
/* ************************************************************* */ 
	function AfficheCarteMonde(Obj)
	{
		hs.registerOverlay({
		overlayId: 'closebutton',
		position: 'top right',
		fade: 2, 
		useOnHtml: true
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.align = 'center';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
    hs.wrapperClassName= 'no-footer draggable-header '
		hs.fadeInOut = true;
		hs.width = 800;
		hs.height = 440;
				hs.dimmingOpacity = 0.75;
 		return hs.htmlExpand(Obj, {objectType: 'iframe'} );
 		
	}
/* ************************************************************* */ 
	function AfficheFicheInscription(Obj)
	{
		hs.registerOverlay({
		overlayId: 'closebutton',
		position: 'top right',
		fade: 2, 
		useOnHtml: true
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.align = 'center';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
    hs.wrapperClassName= 'no-footer draggable-header '
		hs.fadeInOut = true;
		hs.width = 961;
		hs.height = 630;
				hs.dimmingOpacity = 0.75;
 		return hs.htmlExpand(Obj, {objectType: 'iframe'} );
 		
	}
/* ************************************************************* */ 
	function AfficheCarteMembre(Obj)
	{
		hs.registerOverlay({
		overlayId: 'closebutton',
		position: 'top right',
		fade: 2, 
		useOnHtml: true
		});
	
		hs.graphicsDir = 'highslide/graphics/';
		hs.showCredits = false;
		hs.align = 'center';
    hs.outlineType = 'outer-glow';
		hs.transitions = ['expand', 'crossfade'];
    hs.wrapperClassName= 'no-footer draggable-header '
		hs.fadeInOut = true;
		hs.width = 650;
		hs.height = 350;
				hs.dimmingOpacity = 0.75;
 		return hs.htmlExpand(Obj, {objectType: 'iframe'} );
 		
	}
/* ************************************************************* */ 

