
var imgLastImage = 0;

function imgShift(objLink) {
	// Variables
	imgCurImage = document.all(objLink.name + '_img');
	// Attributions
	imgLastImage = imgCurImage.src;
	imgCurImage.src = imgCurImage.rollover;
}

function imgRecharge(objLink) {
	// Variables
	document.all(objLink.name + '_img').src = imgLastImage;
}

function fr() {
	// Variables
	chaine = new String(window.location);
	if (chaine.indexOf("?")==-1) {
		window.location = window.location + '?langue=fr';
	} else {
		window.location = window.location + '&langue=fr';
	}
}
function en() {
	// Variables
	chaine = new String(window.location);
	if (chaine.indexOf("?")==-1) {
		window.location = window.location + '?langue=en';
	} else {
		window.location = window.location + '&langue=en';
	}
}

function skin(skinnum) {
	// Variables
	chaine = new String(window.location);
	if (chaine.indexOf("?")==-1) {
		window.location = window.location + '?skin=' + skinnum;;
	} else {
		window.location = window.location + '&skin=' + skinnum;;
	}
}
function langueshift(langue) {
	// Variables
	strLocation = new String(window.location);
	if (strLocation.indexOf("?")==-1) {
		strLocation = strLocation.replace(/lg=/,"le=");
		window.location = strLocation + '?lg=' + langue + '&lgcookie=' + langue;
	} else {
		strLocation = strLocation.replace(/lg=/,"le=");
		window.location = strLocation + '&lg=' + langue + '&lgcookie=' + langue;
	}
}

function pPop() {
    window.open('medias/jeu.htm','jeu','fullscreen=0,width=640,height=480,top=0,left=0, scrollbar = 0');
}

function donnecookie(nom)
{
  var recherche=nom+'=';                    // pour recherche nom dans la liste
  if (document.cookie.length>0)             // si il existe des cookies
  {
    position=document.cookie.indexOf(recherche);   // donne la position du nom
    if (position!=-1)                              // si une position existe
      {
        position=position+recherche.length;        // on passe après nom=
        fin=document.cookie.indexOf(';',position); // on cherche la fin (";")
        if (fin==-1)                               // si le ";" n'existe pas
        {
          fin=document.cookie.length;       // alors le cookie va jusqu'au bout
        }
        return unescape(document.cookie.substring(position,fin));// donne texte
      }
      else {return '';}                     // retourne du 'vide'
  }
  else {return '';}                         // retourne du 'vide'
}


