function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function charger(fichier,titre) {
	//alert(titre);
					//alert(Url.encode(titre));
	window.open('http://www.eclectica.ch/videoplayer.php?t='+Url.encode(titre)+'&f='+fichier,'videop','width=380, height=320, left=500, top=50, menubar=no, status=no, scrollbars=no');
}

// il crée une collection de méthodes pour les url
/**
*
*  URL encode / decode
*  http://www.webtoolkit.info/
*
**/
// utilisation x=Url.encode(this.value)
var Url = {


	// public method for url encoding
	encode : function (string) {
		return escape(this._utf8_encode(string));
	},
 
	// public method for url decoding
	decode : function (string) {
		return this._utf8_decode(unescape(string));
	},
 
	// private method for UTF-8 encoding
	_utf8_encode : function (string) {
		string = string.replace(/\r\n/g,"\n");
		var utftext = "";
 
		for (var n = 0; n < string.length; n++) {
 
			var c = string.charCodeAt(n);
 
			if (c < 128) {
				utftext += String.fromCharCode(c);
			}
			else if((c > 127) && (c < 2048)) {
				utftext += String.fromCharCode((c >> 6) | 192);
				utftext += String.fromCharCode((c & 63) | 128);
			}
			else {
				utftext += String.fromCharCode((c >> 12) | 224);
				utftext += String.fromCharCode(((c >> 6) & 63) | 128);
				utftext += String.fromCharCode((c & 63) | 128);
			}
 
		}
 
		return utftext;
	},
 
	// private method for UTF-8 decoding
	_utf8_decode : function (utftext) {
		var string = "";
		var i = 0;
		var c = c1 = c2 = 0;
 
		while ( i < utftext.length ) {
 
			c = utftext.charCodeAt(i);
 
			if (c < 128) {
				string += String.fromCharCode(c);
				i++;
			}
			else if((c > 191) && (c < 224)) {
				c2 = utftext.charCodeAt(i+1);
				string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
				i += 2;
			}
			else {
				c2 = utftext.charCodeAt(i+1);
				c3 = utftext.charCodeAt(i+2);
				string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
				i += 3;
			}
 
		}
 
		return string;
	}

}


/*
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}
*/


/*
function menu_clic(theurl,thegroupe,themenu,thessmenu,thessmenu2,thelangue) {
	  document.envoi_menu.action = theurl ;   //alert(theurl);
	  document.envoi_menu.groupe.value = thegroupe ;
	  document.envoi_menu.menu.value = themenu ;
	  document.envoi_menu.sousmenu.value = thessmenu ;
	  document.envoi_menu.sousmenu2.value = thessmenu2 ;
	  document.envoi_menu.ma_langue.value = thelangue ;
	  document.envoi_menu.submit() ;
	}
*/


/*
var le_texte_du_mois = Array(13);
	  le_texte_du_mois[1]="janvier";
	  le_texte_du_mois[2]="f&eacute;vrier";
	  le_texte_du_mois[3]="mars";
	  le_texte_du_mois[4]="avril";
	  le_texte_du_mois[5]="mai";
	  le_texte_du_mois[6]="juin";
	  le_texte_du_mois[7]="juillet";
	  le_texte_du_mois[8]="ao&ucirc;t";
	  le_texte_du_mois[9]="septembre";
	  le_texte_du_mois[10]="octobre";
	  le_texte_du_mois[11]="novembre";
	  le_texte_du_mois[12]="d&eacute;cembre";
*/