//#############################################################################
// ZARMA JavaScript Library                       Version 1.0                 #
// Copyright 2003 Frédéric Andrieux de Zarma      frederic@andrieux.org       #
// Created 26/07/03                  Last Modified 26/07/03                   #
// Script Archive at:                http:www.andrieux.org/en/javascript.html #
//                         Extensive Documentation found in ZARMA_JS.txt file.#
//#############################################################################
// COPYRIGHT NOTICE                                                           #
// Copyright 2003 Frédéric Andrieux de Zarma.  All Rights Reserved.           #
// ZARMA JavaScript Library may be used and modified free of charge by anyone #
// so long as this copyright notice and the comments above remain intact.  By #
// using this code you agree to indemnify the author from any liability that  #
// might arise from it's use.                                                 #
//                                                                            #
// Selling the code for this program without prior written consent is         #
// expressly forbidden.  In other words, please ask first before you try and  #
// make money off of my program.                                              #
//                                                                            #
// Obtain permission before redistributing this software over the Internet or #
// in any other medium.  In all cases copyright and header must remain intact.#
//#############################################################################

// EDITABLE VARIABLES (c) Frédéric Andrieux de Zarma ##########################
// see ZARMA_JS.txt for instruction of use
var zz_ev_multilingual = 1;
var zz_ev_multilingual_def = 'fr|/fr/';
var zz_ev_date = 0;
var zz_ev_frames = 0;
var zz_ev_banex = 0;
var zz_ev_copy = 2000;
// END EDITABLE VARIABLES #####################################################

// SYSTEM VARIABLES (c) Frédéric Andrieux de Zarma ############################
// DO NOT MODIFY UNLESS YOU CAN MAKE THEM BETTER (please send me a copy)
	if (zz_ev_multilingual == 1) {
	var zz_sv_loca = ''+self.document.location;
	var zz_sv_lan_def = (zz_ev_multilingual_def.split('|'))[0];
	var zz_sv_lan_sep = (zz_ev_multilingual_def.split('|'))[1];
		if (zz_sv_loca.indexOf(zz_sv_lan_sep) > -1) {
		var zz_sv_lan = zz_sv_lan_def;
		}
		else {
			if (zz_sv_lan_def == "en") {
			var zz_sv_lan = 'fr';
			}
			else {
			var zz_sv_lan = 'en';
			}
		}
	}
	else {
		if (navigator.appName == 'Netscape') {
		var zz_sv_lan = navigator.language;
		}
		else {
		var zz_sv_lan = navigator.browserLanguage;
		}
		if (/fr/.test(zz_sv_lan) > 0) {
		zz_sv_lan = 'fr';
		}
		else {
		zz_sv_lan = 'en';
		}
	}
	if ((zz_ev_frames != 0)&&(top.frames.length!=0)) {
	top.location=self.document.location;
	}
var zz_sv_date = new Date();
var zz_sv_year = zz_sv_date.getYear();
var zz_sv_shortyear = ''+zz_sv_year;
zz_sv_shortyear = zz_sv_shortyear.substring(2,4);
var zz_sv_month = zz_sf_addzeros(zz_sv_date.getMonth(),2);
var zz_sv_day = zz_sf_addzeros(zz_sv_date.getDate(),2);
var zz_sv_hour = zz_sf_addzeros(zz_sv_date.getHours(),2);
var zz_sv_min = zz_sf_addzeros(zz_sv_date.getMinutes(),2);
var zz_sv_sec = zz_sf_addzeros(zz_sv_date.getSeconds(),2);
var zz_sv_ms = zz_sf_addzeros(zz_sv_date.getMilliseconds(),3);
var zz_sv_months = new Array ('Janvier|January','Février|February','Mars|March','Avril|April','Mai|May','Juin|June','Juillet|July','Août|August','Septembre|September','Octobre|October','Novembre|November','Décembre|December');
var zz_sv_fullmonth = zz_sv_months[zz_sv_date.getMonth()];
zz_sv_fullmonth = ''+zz_sv_fullmonth;
zz_sv_fullmonth = zz_sv_fullmonth.split('|');
	if (zz_sv_lan == 'fr') {
	zz_sv_fullmonth = zz_sv_fullmonth[0];
	}
	else {
	zz_sv_fullmonth = zz_sv_fullmonth[1];
	}
	if (zz_ev_date == 0) {
	var zz_fulldate = zz_sv_day+' '+zz_sv_fullmonth+' '+zz_sv_year;
	var zz_shortdate = zz_sv_day+'/'+zz_sv_month+'/'+zz_sv_shortyear;
	}
	else {
	var zz_fulldate = zz_sv_fullmonth+' '+zz_sv_day+' '+zz_sv_year;
	var zz_shortdate = zz_sv_month+'/'+zz_sv_day+'/'+zz_sv_shortyear;
	}
var zz_fulltime = zz_sv_hour+':'+zz_sv_min+':'+zz_sv_sec;
var zz_shorttime = zz_sv_hour+':'+zz_sv_min;
var zz_s_yearto = '';
	if (zz_sv_year > zz_ev_copy) {
	zz_s_yearto = '-'+zz_sv_year;
	}
zz_copy = '&copy; '+zz_ev_copy+zz_s_yearto;
// END SYSTEM VARIABLES #######################################################

// SYSTEM FUNCTIONS (c) Frédéric Andrieux de Zarma ############################
// DO NOT MODIFY UNLESS YOU CAN MAKE THEM BETTER (please send me a copy)
	function zz_sf_addzeros (zz_s_source,zz_s_length) {
	zz_s_source = ''+zz_s_source;
	var zz_s_source2 = zz_s_source.split('');
		while (zz_s_source2.length < zz_s_length) {
		zz_s_source = '0'+zz_s_source;
		zz_s_source2 = zz_s_source.split('');
		}
	zz_s_source = zz_s_source2.join('');
	return zz_s_source;
	}
	function zz_antileech (zz_s_source1,zz_s_source2) {
	zz_s_address = zz_s_source1+'@'+zz_s_source2;
	top.location = "mailto:"+zz_s_address;
	}
	function zz_banex () {
	document.write('<a href="http://www.10connect.com/banex/zz_banex.cgi?id='+zz_ev_banex+'&url" target="_blank">');
	document.write('<img src="http://www.10connect.com/banex/zz_banex.cgi?');
	document.write('id='+zz_ev_banex+'&page='+zz_sv_sec+zz_sv_ms+'&image" border="1" width="468" height="60" alt="');
		if (zz_sv_lan == "fr") {
		document.write('Visitez ce site');
		}
		else {
		document.write('Visit this site');
		}
	document.write('" align="absmiddle"></a>');
	document.write('<a href="http://www.10connect.com/banex" target="_blank">');
	document.write('<img src="http://www.10connect.com/banex/banex_link.gif" border="0" width="11" height="62" alt="');
		if (zz_sv_lan == "fr") {
		document.write('Echangez votre bandeau');
		}
		else {
		document.write('Banner exchange program');
		}
	document.write('" align="absmiddle"></a>');
	}
	function zz_pop (zz_s_w,zz_s_h,zz_s_file,zz_s_name,zz_s_statu,zz_s_resi) {
		if (zz_s_name=='') {
		zz_s_name='popup';
		}
		if (zz_s_statu==0) {
		zz_s_statu='no';
		}
		else {
		zz_s_statu='yes';
		}
		if (zz_s_resi==0) {
		zz_s_resi='no';
		var zz_s_scro='no';
		}
		else {
		zz_s_resi='yes';
		var zz_s_scro='yes';
		}
	window.open (zz_s_file,zz_s_name,'width='+zz_s_w+',height='+zz_s_h+',scrollbars='+zz_s_scro+',resizable='+zz_s_resi+',toolbar=no,location=no,directories=no,status='+zz_s_statu+',copyhistory=no');
	}
// END SYSTEM FUNCTIONS #######################################################