function MM_findObj(n, d)
{
	var p,i,x;
	if (!d)
		d=document;
	if ((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if (!(x=d[n])&&d.all)
		x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
	for (i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=MM_findObj(n,d.layers[i].document);
	if (!x && document.getElementById)
		x=document.getElementById(n);
	return x;
}

function MM_swapImage()
{
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for (i=0;i<(a.length-2);i+=3)
	{
		if ((x=MM_findObj(a[i]))!=null)
		{
			document.MM_sr[j++]=x;
			if (!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
	}
}

function MM_swapImgRestore()
{
	var i,x,a=document.MM_sr;
	for (i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}

function MM_preloadImages()
{
	var d=document;
	if (d.images)
	{
		if (!d.MM_p)
			d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for (i=0; i<a.length; i++)
		{
			if (a[i].indexOf("#")!=0)
			{
				d.MM_p[j]=new Image;
				d.MM_p[j++].src=a[i];
			}
		}
	}
}

function switchLang(lang)
{
	if (lang)
		self.location=self.location.pathname+'?id_lang='+lang;
}

function switchCountry(country,domain,page)
{
	page = (page ? page : 1);
	var re = /http:/;
	var check = country.match(re);
	//alert('check='+check+'\ncountry='+country+'\ndomain='+domain+'\npage='+page);

	if (country && domain)
	{
		if (check)
		{
		//alert('redirection');
		self.location = country;
		return;
		}
		else if (country == 'japan')
		{
			window.open('http://www.jvc-victor.co.jp');
			return;
		}
		else if (country.length > 2)
		{
			country = country.substr(0,2);
		}
		else if (country.length == 2)
		{
			page = countryPage;
		}
		else
		{
			alert('Wrong choice');
			return;
		}
		if (page && domain && country)
			self.location = '/'+domain+'/'+country+'/article.'+page+'.html';
	}
}

function goDoc(id)
{
	var id;
	document.location.href = '/jpe/root/core/D000' + id;
}

function doBlink()
{
	var blink = document.all.tags("BLINK")
		for (var i=0;i<blink.length;i++)
			blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "";
}

function startBlink()
{
	if (document.all)
		setInterval("doBlink()",1000);
}

function checksubform()
{
	alert(document.forms[0]);
	return false;
}

function addBookmark(bookmark_title)
{
	var bookmark_url = document.location.href;
	if (navigator.appName == 'Netscape')
	{
		window.sidebar.addPanel(bookmark_title,bookmark_url,"");
	}
	else if (navigator.appName == 'Microsoft Internet Explorer')
	{
		window.external.AddFavorite(bookmark_url,bookmark_title);
	}
	else if (navigator.appName == 'Opera')
	{
		var elem = document.createElement('a');
		elem.setAttribute('href',bookmark_url);
		elem.setAttribute('title',bookmark_title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}
	else
	{
		return true;
	}
}

function PopUp(mypage, myname, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4)
		{
			win.window.focus();
		}
}

function PopUpResizable(mypage, myname, w, h, scroll)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4)
		{
			win.window.focus();
		}
}

function popize(element,width,height,scrollbar)
{
	if (element == null || typeof element.nodeName == 'undefined' || element.nodeName != 'A' || typeof element.getAttributeNode == 'undefined'  || (width != null && parseInt(width) == 'NaN') || (height != null && parseInt(height) == 'NaN'))
	{
		return true;
	}
	if (width == null && height == null && scrollbar == null)
	{
		width=500;
		height=500;
		window.open(element.getAttributeNode('href').nodeValue,'_blank','width='+width+','+'height='+height+','+'left=0,top=0,scrollbars=yes,resizable=yes');
	}
	else
	{
		window.open(element.getAttributeNode('href').nodeValue,parseInt(Math.random()*99999999)+'new','width='+width+','+'height='+height+','+'left=0,top=0,scrollbars=yes,resizable=yes');
	}
	return false;
}

var noresize;

function autoSize()
{
	if (!noresize)
	{
		if(document.body.scrollHeight>650)
		{
			window.setTimeout("window.resizeTo(document.body.scrollWidth+50, 6500)",1000);
		}
		else
		{
			document.body.style.overflow='hidden';
			window.setTimeout("window.resizeTo(document.body.scrollWidth, document.body.scrollHeight+125)",1000);
		}
	}
	return true;
}

function glossaire(id,connVar,appliVar)
{
	var uri;
	var id;
	var connVar;
	var appliVar;
	if (id)
		uri = '/;glossaire;glossaire;default;'+connVar+appliVar+'?nosearch=1&idx='+id;
	else
		uri = '/;glossaire;glossaire;default;'+connVar+appliVar;
	PopUpResizable(uri, 'Glossaire', '300', '250', 'yes');
}

function toggleBox(szDivID, iState)		// 1 visible, 0 hidden
{
	if(document.layers)					// NN 4+
	{
		document.layers[szDivID].visibility = iState ? "show" : "hide";
		document.layers[szDivID].display = iState ? "block" : "none";
	}
	else if(document.getElementById)	// Gecko (NN 6) & IE 5+
	{
		var obj = document.getElementById(szDivID);
		if (obj)
		{
		obj.style.visibility = iState ? "visible" : "hidden";
		obj.style.display = iState ? "block" : "none";
		}
	}
	else if(document.all)				// IE 4
	{
		document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
		document.all[szDivID].style.display = iState ? "block" : "none";
	}
}

function switchAllLayers(e)
{
	var handler;
	var childs;
	
	e = (e ? e : 'productContent');

	childs = (msie ? document.getElementById(e).children : document.getElementById(e).childNodes);

	for (x=0; x<childs.length; x++)
	{
		try
		{
			handler = (document.getElementById ? document.getElementById(childs[x].id) : document.all[childs[x].id]);
			handler.style.display = (  handler.style.display  == 'block' ? 'none' : 'block');
			handler.style.visibility = ( handler.style.visibility =='hidden' ? 'visible' : 'hidden');
		}
		catch(e)
		{
		}
	}
}

var istoggled = true;
var seuil = 199;
var savedPos;


function toggleAllLayers(e)
{
	var handler;
	var childs;

	
	e = (e ? e : 'productContent');

	childs = (msie ? document.getElementById(e).children : document.getElementById(e).childNodes);

	for (x=0; x<childs.length; x++)
	{
		try
		{
			handler = (document.getElementById ? document.getElementById(childs[x].id) : document.all[childs[x].id]);
			// handler.style.display = (  handler.style.display  == 'block' ? 'none' : 'block');
			// handler.style.visibility = ( handler.style.visibility =='hidden' ? 'visible' : 'hidden');
			
			if (handler.innerHTML.length > seuil)

			{
			if (istoggled && (handler.style.visibility == 'visible') )
				savedPos = handler.id;

			//handler.style.visibility = istoggled  ? 'visible' : 'hidden';
			//handler.style.display =  istoggled  ? 'block' : 'none';

			handler.style.visibility = 'visible';
			handler.style.display =  'block';

			}
		}
		catch(e)
		{
		}
	}

	istoggled=!istoggled;

}

function toggleLayer (e,initit,f)
{
	var handler;
	var childs;
	f = (f ? f : 'productContent');
	childs = (msie ? document.getElementById(f).children : document.getElementById(f).childNodes);
	if ( (document.getElementById('pminit')) && (!initit) )
	{
		document.getElementById('pminit').setAttribute('className', 'pmoff');
		document.getElementById('pminit').setAttribute('class', 'pmoff');
	}
	for (x=0; x<childs.length; x++)
	{
		try
		{
			handler = (document.getElementById ? document.getElementById(childs[x].id) : document.all[childs[x].id]);
			handler.style.display = (childs[x].id == e ? 'block' : 'none');
			handler.style.visibility = (childs[x].id == e ? 'visible' : 'hidden');
		}
		catch(e)
		{
		}
	}
}

var notoggle = false;

function initToggleLayer (e,f,g,h)
{
	var handler;
	var childs;
	var err;

	if (notoggle)
		return;

	h = (h ? h : 'productMenu');
	g = (g ? g : 'productContent');
	f = (f ? f : 'productPresentation');
	childs = (msie ? document.getElementById(h).children : document.getElementById(h).childNodes);
	if (document.getElementById('pminit'))
	{
		document.getElementById('pminit').setAttribute('className', 'active');
		document.getElementById('pminit').setAttribute('class', 'active');
		document.getElementById('pminit').setAttribute('className', 'pmon');
		document.getElementById('pminit').setAttribute('class', 'pmon');
	}
	var str = '';
	var firstLayer = true;
	var toto;
	var content;
	childs = (msie ? document.getElementById(h).children : document.getElementById(h).childNodes);
	for (x=0; x<childs.length; x++)
	{
		if (childs[x].id)
		{
			try
			{
				handler = (document.getElementById ? document.getElementById(childs[x].id).style : document.all[childs[x].id].style);
			}
			catch(e)
			{
			}
			if (handler)
			{
				var toto = (msie ? childs[x].children : childs[x].childNodes);
				content = '';
				for (z=0;z<toto.length; z++)
				{
					if ( (toto[z].innerHTML != 'undefined') && (toto[z].innerHTML != '')  )
					{
						//alert('-'+toto[z].innerHTML+'-');
						content += toto[z].innerHTML;
					}
				}
				//alert(content);
				var hasContent = (content.length ? true : false);
				if (hasContent && firstLayer)
				{
					firstLayer = false;
					handler.display='block';
				}
				else
				{
					handler.display='none';
				}
			}
		}
	}
	toggleLayer(f,true);
}

function formsManagement()
{
	for (x=0; x<document.forms.length; x++)
	{
		try
		{
			document.forms[x].attachEvent('onsubmit',formControl);
			//alert("Attaching controls ...");
		}
		catch(e)
		{
		}
	}
}

function formControl()
{
	var handler = event.srcElement;
	var errormsg = '';
	var radioControl = new Array();
	//alert("Loading controls ...");
	if (handler)
	{
		var oForm = handler.all;
		for (x=0; x< oForm.length; x++)
		{
			try
			{
				if (oForm[x].type == 'radio' && oForm[x].mandatory == 'on')
				{
					var myradio = oForm[x].name;
					var hradio = document.getElementsByName(myradio);
					var sradio = false;
					for (y=0; y<hradio.length; y++)
					{
						if (hradio[y].checked == true)
							sradio = true;
					}
					if (!sradio)
					{
						if (!radioControl[oForm[x].name])
							errormsg += ' - ' + oForm[x].name.replace(/_/," ").toUpperCase() + '\n';
						radioControl[oForm[x].name] = true;
					}
				}
				else if ( ( (oForm[x].type == 'select-one') || (oForm[x].type == 'select-multiple') ) && oForm[x].mandatory == 'on')
				{
					if ( ( oForm[x].selectedIndex == -1)  || (!oForm[x].options[oForm[x].selectedIndex].value) )
					{
						errormsg += ' - ' + oForm[x].name.replace(/_/," ").toUpperCase() + '\n';
					}
				}
				else if (oForm[x].mandatory == 'on' && !oForm[x].value && oForm[x].name)
					errormsg += ' - ' + oForm[x].name.replace(/_/," ").toUpperCase() + '\n';
			}
			catch(e)
			{
			}
		}
	}
	if (errormsg)
	{
		alert('Vous devez obligatoirement saisir :\n\n'+errormsg);
		return false;
	}
	else
	{
		return true;
	}
}

function checkmail(email)
{
	arobase = false;
	point = false;
	for (i=0; i<email.length; i++)
	{
		if (email.substr(i,1) == '@') arobase = true;
		if (arobase && email.substr(i,1) == '.') point = true;
	}
	return arobase && point;
}

function submit_searchForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Type your search here") chaine += "one or more keyword(s) to perform your search!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_DE()
{
	titre = "Sie müssen eingeben ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Geben Sie hier Ihren Suchbegriff ein") chaine += "eines oder mehr Begriffe, um Ihre Suche durchzuführen!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_ES()
{
	titre = "Debe introducir ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Introduzca aquí su búsqueda") chaine += "una o más palabras clave para realizar la búsqueda!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Saisissez votre recherche ici") chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_IT()
{
	titre = "Devi scrivere ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "Inserisci la tua ricerca") chaine += "una o più parole chiave per eseguire la ricerca!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_searchForm_RU()
{
	titre = "Необходимо напечатать ";
	chaine = "";
	if (document.forms.searchForm.search_string.value == 0 || document.forms.searchForm.search_string.value == "что искать") chaine += "Одно или более ключевых слов для поиска!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.searchForm.submit();
}

function submit_advancedSearchForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.advancedSearchForm.search_string.value == 0 || document.forms.advancedSearchForm.search_string.value == "Saisissez un ou plusieurs mot(s) clé(s)") chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche avancée !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.advancedSearchForm.submit();
}

function submit_advancedSearchForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (document.forms.advancedSearchForm.search_string.value == 0 || document.forms.advancedSearchForm.search_string.value == "Type your search here") chaine += "one or more keyword(s) to perform your advanced search!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.advancedSearchForm.submit();
}

function submit_advancedSearchForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.advancedSearchForm.search_string.value == 0 || document.forms.advancedSearchForm.search_string.value == "Saisissez votre recherche ici") chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche avancée !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.advancedSearchForm.submit();
}

function submit_newsletterForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Saisissez votre adresse email") chaine += "une adresse email valide pour vous inscrire à la lettre d'information !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_newsletterForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Type your email here") chaine += "a valid email address to subscribe to the newsletter!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_newsletterForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.newsletterForm.email.value) || document.forms.newsletterForm.email.value == "Saisissez votre email ici") chaine += "une adresse email valide pour vous inscrire de la lettre d'information !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.newsletterForm.submit();
}

function submit_unsubscribeForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.unsubscribeForm.email.value) || document.forms.unsubscribeForm.email.value == "Saisissez votre adresse email") chaine += "une adresse email valide pour vous désinscrire de la lettre d'information !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.unsubscribeForm.submit();
}

function submit_unsubscribeForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.unsubscribeForm.email.value) || document.forms.unsubscribeForm.email.value == "Type your email here") chaine += "a valid email address to unsubscribe to the newsletter!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.unsubscribeForm.submit();
}

function submit_sendToFriendForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.sendToFriendForm.name.value == 0) chaine += "     - vos prénom et nom\n";
	if (!checkmail(document.forms.sendToFriendForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.sendToFriendForm.targetname.value == 0) chaine += "     - les prénom et nom de votre ami(e)\n";
	if (!checkmail(document.forms.sendToFriendForm.targetemail.value)) chaine += "     - l'adresse email de votre ami(e)\n";
	if (document.forms.sendToFriendForm.subject.value == 0) chaine += "     - le sujet de votre message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.sendToFriendForm.submit();
}

function submit_sendToFriendForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.sendToFriendForm.name.value == 0) chaine += "     - your first name and family name\n";
	if (!checkmail(document.forms.sendToFriendForm.email.value)) chaine += "     - your email address\n";
	if (document.forms.sendToFriendForm.targetname.value == 0) chaine += "     - your friend's first name and family name\n";
	if (!checkmail(document.forms.sendToFriendForm.targetemail.value)) chaine += "     - your friend's email address\n";
	if (document.forms.sendToFriendForm.subject.value == 0) chaine += "     - the subject of your message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.sendToFriendForm.submit();
}

function submit_sendToFriendForm_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.sendToFriendForm.name.value == 0) chaine += "     - vos prénom et nom\n";
	if (!checkmail(document.forms.sendToFriendForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.sendToFriendForm.targetname.value == 0) chaine += "     - les prénom et nom de votre ami(e)\n";
	if (!checkmail(document.forms.sendToFriendForm.targetemail.value)) chaine += "     - l'adresse email de votre ami(e)\n";
	if (document.forms.sendToFriendForm.subject.value == 0) chaine += "     - le sujet de votre message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.sendToFriendForm.submit();
}

function submit_recommendToFriendForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.recommendToFriendForm.name.value == 0) chaine += "     - vos prénom et nom\n";
	if (!checkmail(document.forms.recommendToFriendForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.recommendToFriendForm.targetname.value == 0) chaine += "     - les prénom et nom de votre ami(e)\n";
	if (!checkmail(document.forms.recommendToFriendForm.targetemail.value)) chaine += "     - l'adresse email de votre ami(e)\n";
	if (document.forms.recommendToFriendForm.subject.value == 0) chaine += "     - le sujet de votre message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.recommendToFriendForm.submit();
}

function submit_recommendToFriendForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.recommendToFriendForm.name.value == 0) chaine += "     - your first name and family name\n";
	if (!checkmail(document.forms.recommendToFriendForm.email.value)) chaine += "     - your email address\n";
	if (document.forms.recommendToFriendForm.targetname.value == 0) chaine += "     - your friend's first name and family name\n";
	if (!checkmail(document.forms.recommendToFriendForm.targetemail.value)) chaine += "     - your friend's email address\n";
	if (document.forms.recommendToFriendForm.subject.value == 0) chaine += "     - the subject of your message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.recommendToFriendForm.submit();
}

function submit_loginForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginForm.code_client.value == 0 || document.forms.loginForm.code_client.value == "Votre identifiant") chaine += "     - votre identifiant\n";
	if (document.forms.loginForm.pwd_client.value == 0 || document.forms.loginForm.pwd_client.value == "Votre mot de passe") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginForm.submit();
}

function submit_loginForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginForm.code_client.value) || document.forms.loginForm.code_client.value == "Identifier") chaine += "     - your identifier\n";
	if (document.forms.loginForm.pwd_client.value == 0 || document.forms.loginForm.pwd_client.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginForm.submit();
}

function submit_loginFormHome()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginFormHome.code_client.value == 0 || document.forms.loginFormHome.code_client.value == "Identifiant") chaine += "     - votre identifiant\n";
	if (document.forms.loginFormHome.pwd_client.value == 0 || document.forms.loginFormHome.pwd_client.value == "Password") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormHome.submit();
}

function submit_loginFormHome_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.loginFormHome.code_client.value == 0 || document.forms.loginFormHome.code_client.value == "Identifier") chaine += "     - your identifier\n";
	if (document.forms.loginFormHome.pwd_client.value == 0 || document.forms.loginFormHome.pwd_client.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormHome.submit();
}

function submit_loginFormUsers()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "Email") chaine += "     - votre adresse email\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Password") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormUsers_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "Email") chaine += "     - your email address\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormUsers_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "Email") chaine += "     - votre adresse email\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Mot de passe") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormUsers_RU()
{
	titre = "Необходимо напечатать:\n\n";
	chaine = "";
	if (!checkmail(document.forms.loginFormUsers.email.value) || document.forms.loginFormUsers.email.value == "Эл. Почта") chaine += "     - твой Эл. Почта\n";
	if (document.forms.loginFormUsers.password.value == 0 || document.forms.loginFormUsers.password.value == "Пароль") chaine += "     - твой Пароль\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormUsers.submit();
}

function submit_loginFormDealers()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.dealer_customer_id.value == 0 || document.forms.loginFormDealers.dealer_customer_id.value == "Identifiant client") chaine += "     - votre identifiant client\n";
	if (document.forms.loginFormDealers.dealer_user_name.value == 0 || document.forms.loginFormDealers.dealer_user_name.value == "Nom d'utilisateur") chaine += "     - votre nom d'utilisateur\n";
	if (document.forms.loginFormDealers.dealer_password.value == 0 || document.forms.loginFormDealers.dealer_password.value == "Password") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_loginFormDealers_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.as_customer_id.value == 0 || document.forms.loginFormDealers.as_customer_id.value == "Customer ID") chaine += "     - your customer ID\n";
	if (document.forms.loginFormDealers.as_user_name.value == 0 || document.forms.loginFormDealers.as_user_name.value == "User name") chaine += "     - your user name\n";
	if (document.forms.loginFormDealers.as_password.value == 0 || document.forms.loginFormDealers.as_password.value == "Password") chaine += "     - your password\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_loginFormDealers_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.as_customer_id.value == 0 || document.forms.loginFormDealers.as_customer_id.value == "N° de client") chaine += "     - votre n° de client\n";
	if (document.forms.loginFormDealers.as_user_name.value == 0 || document.forms.loginFormDealers.as_user_name.value == "Nom d'utilisateur") chaine += "     - votre nom d'utilisateur\n";
	if (document.forms.loginFormDealers.as_password.value == 0 || document.forms.loginFormDealers.as_password.value == "Mot de passe") chaine += "     - votre mot de passe\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_loginFormDealers_RU()
{
	titre = "Необходимо напечатать:\n\n";
	chaine = "";
	if (document.forms.loginFormDealers.as_customer_id.value == 0 || document.forms.loginFormDealers.as_customer_id.value == "ID покупателя") chaine += "     - твой ID покупателя\n";
	if (document.forms.loginFormDealers.as_user_name.value == 0 || document.forms.loginFormDealers.as_user_name.value == "Имя пользователя") chaine += "     - твой Имя пользователя\n";
	if (document.forms.loginFormDealers.as_password.value == 0 || document.forms.loginFormDealers.as_password.value == "Пароль") chaine += "     - твой Пароль\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.loginFormDealers.submit();
}

function submit_registerForm()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.registerForm.email.value)) chaine += "une adresse email valide pour vous enregistrer !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registerForm.submit();
}

function submit_registerForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.registerForm.email.value)) chaine += "a valid email address to register!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registerForm.submit();
}

function submit_registrationForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.registrationForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.registrationForm.first_name.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.registrationForm.family_name.value == 0) chaine += "     - votre nom\n";
	if (document.forms.registrationForm.password1.value == 0) chaine += "     - votre mot de passe\n";
	if (document.forms.registrationForm.password2.value == 0) chaine += "     - la confirmation de votre mot de passe\n";
	if (document.forms.registrationForm.password1.value != 0 && document.forms.registrationForm.password2.value != 0 && document.forms.registrationForm.password1.value != document.forms.registrationForm.password2.value) chaine += "     - le même mot de passe dans les deux champs prévus à cet effet\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registrationForm.submit();
}

function submit_registrationForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (!checkmail(document.forms.registrationForm.email.value)) chaine += "     - your email address\n";
	if (document.forms.registrationForm.first_name.value == 0) chaine += "     - your first name\n";
	if (document.forms.registrationForm.family_name.value == 0) chaine += "     - your family name\n";
	if (document.forms.registrationForm.password1.value == 0) chaine += "     - your password\n";
	if (document.forms.registrationForm.password2.value == 0) chaine += "     - the confirmation of your password\n";
	if (document.forms.registrationForm.password1.value != 0 && document.forms.registrationForm.password2.value != 0 && document.forms.registrationForm.password1.value != document.forms.registrationForm.password2.value) chaine += "     - the same password in both corresponding fields\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registrationForm.submit();
}

function submit_registrationForm_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (!checkmail(document.forms.registrationForm.email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.registrationForm.first_name.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.registrationForm.family_name.value == 0) chaine += "     - votre nom\n";
	if (document.forms.registrationForm.password1.value == 0) chaine += "     - votre mot de passe\n";
	if (document.forms.registrationForm.password2.value == 0) chaine += "     - la confirmation de votre mot de passe\n";
	if (document.forms.registrationForm.password1.value != 0 && document.forms.registrationForm.password2.value != 0 && document.forms.registrationForm.password1.value != document.forms.registrationForm.password2.value) chaine += "     - le même mot de passe dans les champs correspondants\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.registrationForm.submit();
}

function submit_passwordForgottenForm_EN()
{
	titre = "You must type ";
	chaine = "";
	if (!checkmail(document.forms.passwordForgottenForm.email.value)) chaine += "your email address!\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.passwordForgottenForm.submit();
}

function submit_passwordForgottenForm_FR()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (!checkmail(document.forms.passwordForgottenForm.email.value)) chaine += "votre adresse email !\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.passwordForgottenForm.submit();
}

function submit_logInDetailsForgottenForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.logInDetailsForgottenForm.name_of_company.value == 0) chaine += "     - the name of your company\n";
	if (document.forms.logInDetailsForgottenForm.firstname.value == 0) chaine += "     - your firstname\n";
	if (document.forms.logInDetailsForgottenForm.surname.value == 0) chaine += "     - your surname\n";
	if (!checkmail(document.forms.logInDetailsForgottenForm.email.value)) chaine += "     - your email address\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.logInDetailsForgottenForm.submit();
}

function submit_logInDetailsForgottenForm_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.logInDetailsForgottenForm.name_of_company.value == 0) chaine += "     - le nom de votre société\n";
	if (document.forms.logInDetailsForgottenForm.firstname.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.logInDetailsForgottenForm.surname.value == 0) chaine += "     - votre nom\n";
	if (!checkmail(document.forms.logInDetailsForgottenForm.email.value)) chaine += "     - votre adresse email\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.logInDetailsForgottenForm.submit();
}

function submit_annuSearchForm1()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.annuSearchForm1.contact_firstname.value == 0) chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche dans l'annuaire téléphonique !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.annuSearchForm1.submit();
}

function submit_annuSearchForm1_EN()
{
	titre = "You must type ";
	chaine = "";
	if (document.forms.annuSearchForm1.contact_firstname.value == 0) chaine += "one or more keyword(s) to perform your search in the phone directory!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.annuSearchForm1.submit();
}

function submit_annuSearchForm2()
{
	titre = "Vous devez obligatoirement saisir ";
	chaine = "";
	if (document.forms.annuSearchForm2.contact_firstname.value == 0 && document.forms.annuSearchForm2.contact_phone.value == 0 && document.forms.annuSearchForm2.contact_fax.value == 0 && document.forms.annuSearchForm2.contact_desk.value == 0 && document.forms.annuSearchForm2.contact_service.value == 0 && document.forms.annuSearchForm2.contact_dpt.value == 0 && document.forms.annuSearchForm2.contact_company.value == 0) chaine += "un ou plusieurs mot(s) clé(s) pour effectuer votre recherche dans l'annuaire téléphonique !";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.annuSearchForm2.submit();
}

function submit_annuSearchForm2_EN()
{
	titre = "You must type ";
	chaine = "";
	if (document.forms.annuSearchForm2.contact_firstname.value == 0 && document.forms.annuSearchForm2.contact_phone.value == 0 && document.forms.annuSearchForm2.contact_fax.value == 0 && document.forms.annuSearchForm2.contact_desk.value == 0 && document.forms.annuSearchForm2.contact_service.value == 0 && document.forms.annuSearchForm2.contact_dpt.value == 0 && document.forms.annuSearchForm2.contact_company.value == 0) chaine += "one or more keyword(s) to perform your search in the phone directory!";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.annuSearchForm2.submit();
}

function submit_orderForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.orderForm.order_firstname.value == 0) chaine += "     - votre prénom\n";
	if (document.forms.orderForm.order_lastname.value == 0) chaine += "     - votre nom\n";
	if (!checkmail(document.forms.orderForm.order_email.value)) chaine += "     - votre adresse email\n";
	if (document.forms.orderForm.order_address.value == 0) chaine += "     - votre adresse\n";
	if (document.forms.orderForm.order_zipcode.value == 0) chaine += "     - votre code postal\n";
	if (document.forms.orderForm.order_city.value == 0) chaine += "     - votre ville\n";
	if (document.forms.orderForm.order_wishdate.value == 0) chaine += "     - la date de mise à disposition souhaitée\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms[3].submit();
}

function submit_orderForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.orderForm.order_firstname.value == 0) chaine += "     - your first name\n";
	if (document.forms.orderForm.order_lastname.value == 0) chaine += "     - your family name\n";
	if (!checkmail(document.forms.orderForm.order_email.value)) chaine += "     - your email address\n";
	if (document.forms.orderForm.order_address.value == 0) chaine += "     - your address\n";
	if (document.forms.orderForm.order_zipcode.value == 0) chaine += "     - your zip code\n";
	if (document.forms.orderForm.order_city.value == 0) chaine += "     - your city\n";
	if (document.forms.orderForm.order_wishdate.value == 0) chaine += "     - the wished delivery date\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms[3].submit();
}

function submit_orderForm2()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.orderForm.billingaddress.selectedIndex < 0) chaine += "     - l'adresse de facturation\n";
	if (document.forms.orderForm.shippingaddress.selectedIndex < 0) chaine += "     - l'adresse de livraison\n";
	if (document.forms.orderForm.m2.checked != true) chaine += "     - l'acceptation des conditions générales de vente\n";
	if (document.forms.orderForm.m1.checked != true) chaine += "     - la vérification des contres-indications\n";
	var tst = false;
	for (x=0;x<document.forms.orderForm.payment.length;x++)
	{
		if (document.forms.orderForm.payment[x].checked == true)
			tst=true;
	}
	if (!tst)
		chaine += "     - le moyen de paiement";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.orderForm.submit();
}

function submit_orderForm2_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.orderForm.billingaddress.selectedIndex < 0) chaine += "     - the billing address\n";
	if (document.forms.orderForm.shippingaddress.selectedIndex < 0) chaine += "     - the shipping address\n";
	if (document.forms.orderForm.tcs.checked != true) chaine += "     - the terms and conditions of sale acceptation\n";
	var tst = false;
	for (x=0;x<document.forms.orderForm.payment.length;x++)
	{
		if (document.forms.orderForm.payment[x].checked == true)
			tst=true;
	}
	if (!tst)
		chaine += "     - the payment method";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.orderForm.submit();
}

function submit_orderForm2_FR()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.orderForm.billingaddress.selectedIndex < 0) chaine += "     - l'adresse de facturation\n";
	if (document.forms.orderForm.shippingaddress.selectedIndex < 0) chaine += "     - l'adresse de livraison\n";
	if (document.forms.orderForm.tcs.checked != true) chaine += "     - l'acceptation des conditions générales de vente\n";
	var tst = false;
	for (x=0;x<document.forms.orderForm.payment.length;x++)
	{
		if (document.forms.orderForm.payment[x].checked == true)
			tst=true;
	}
	if (!tst)
		chaine += "     - la méthode de paiement";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.orderForm.submit();
}

function setFormEmail()		// Événement ### onChange="setFormEmail();" ### sur une balise HTML ### <select> ###
{
	if (document.forms.contactForm.destinataire.value == "ma_valeur") document.forms.contactForm.form_email.value = "aaa@bbb.ccc";
}

function setFormEmail_EN()	// Event ### onChange="setFormEmail();" ### on a ### <select> ### HTML tag
{
	if (document.forms.contactForm.destinataire.value == "ma_valeur") document.forms.contactForm.form_email.value = "aaa@bbb.ccc";
}

function submit_contactForm()
{
	titre = "Vous devez obligatoirement saisir :\n\n";
	chaine = "";
	if (document.forms.contactForm.prenom.value == 0 || document.forms.contactForm.prenom.value == "Votre prénom") chaine += "     - votre prénom\n";
	if (document.forms.contactForm.nom.value == 0 || document.forms.contactForm.nom.value == "Votre nom") chaine += "     - votre nom\n";
	if (!checkmail(document.forms.contactForm.email.value) || document.forms.contactForm.email.value == "Votre adresse email") chaine += "     - votre adresse email\n";
	if (document.forms.contactForm.destinataire.value == 0) chaine += "     - le destinataire de votre message\n";
	if (document.forms.contactForm.sujet.value == 0 || document.forms.contactForm.sujet.value == "Le sujet de votre message") chaine += "     - le sujet de votre message\n";
	if (document.forms.contactForm.message.value == 0 || document.forms.contactForm.message.innerHTML == "Le contenu de votre message") chaine += "     - le contenu de votre message\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.contactForm.submit();
}

function submit_contactForm_EN()
{
	titre = "You must type:\n\n";
	chaine = "";
	if (document.forms.contactForm.prenom.value == 0 || document.forms.contactForm.prenom.value == "Your first name") chaine += "     - your first name\n";
	if (document.forms.contactForm.nom.value == 0 || document.forms.contactForm.nom.value == "Your family name") chaine += "     - your family name\n";
	if (!checkmail(document.forms.contactForm.email.value) || document.forms.contactForm.email.value == "Your email address") chaine += "     - your email address\n";
	if (document.forms.contactForm.destinataire.value == 0) chaine += "     - your message recipient\n";
	if (document.forms.contactForm.sujet.value == 0 || document.forms.contactForm.sujet.value == "Your message subject") chaine += "     - your message subject\n";
	if (document.forms.contactForm.message.value == 0 || document.forms.contactForm.message.innerHTML == "Your message content") chaine += "     - your message content\n";
	if (chaine != "")
		alert(titre + chaine);
	else
		document.forms.contactForm.submit();
}

var orig;
var baseorig;
try
{
	orig = (window.document.body.style.fontSize ? window.document.body.style.fontSize : 100);
}
catch(e)
{
}
orig = (orig ? orig : 100);
baseorig = orig;
var zoomer;
var factor = 1;
zoomer = 100;
var today = new Date();
var expiry = new Date(today.getTime() + 20 * 24 * 60 * 60 * 1000);
var bikky = document.cookie;

function getCookie(name)
{
	var index = bikky.indexOf(name + "=");
	if (index == -1)
		return null;
	index = bikky.indexOf("=", index) + 1;
	var endstr = bikky.indexOf(";", index);
	if (endstr == -1)
		endstr = bikky.length;
	return unescape(bikky.substring(index, endstr));
}

function setCookie(name, value)
{
	if (value != null && value != "")
		document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString()+"; path=/";
	bikky = document.cookie;
}

var prev;
var zprev;

function magicSize()
{
	prev = getCookie("myfont");
	if (!prev)
	{
		prev=0;
	}
	else
	{
		prev=parseInt(prev);
	}
	var zprev = getCookie("myzoom");
	if (!zprev)
	{
		zprev=zoomer;
		setCookie("myzoom",zoomer);
	}
	else
	{
		zoomer=parseInt(zprev);
	}
	setFont(prev);
}

function initSize()
{
	setFont(0);
	zoomIt(0);
}

function setFont(sz)
{
	var sz;
	if (!document.all && !document.getElementById)
		return;
	if (sz)
		orig += sz * factor;
	try
	{
		window.document.body.style.fontSize=orig+'%';
	}
	catch(e)
	{
	}
	var targeter;
	targeter = parseInt(( orig - baseorig ) / factor);
	setCookie("myfont", targeter );
}

function sizeTag(elem)
{
	var elem;
	for (x=0;x<elem.length;x++)
	{
		elem.item(x).style.fontSize=orig+'%';
	}
}

var zoomPercent;

function zoomIt(per)
{
	var per;
	zoomPercent = ( zoomPercent ? zoomPercent : 100 );
	zoomPercent += parseInt(per)*10;
	if (document.all)
		document.body.style.zoom = zoomPercent + '%';
	setCookie("myzoom",zoomPercent);
}

function addcart(idx,q)
{
	var idx;
	var q;
	var val;
	var h;
	h = document.getElementById(q).options[document.getElementById(q).selectedIndex].value;
	if (idx && addCartUri)
	{
		if ( (h) && (h!= 'undefined') )
			self.location=addCartUri+'?idx_store='+idx+'&itemQuantity='+h;
		else
			self.location=addCartUri+'?idx_store='+idx;
	}
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

var detect = navigator.userAgent.toLowerCase();
var OS;
var browser;
var version;
var total;
var thestring;

if (!OS)
{
	if (checkIt('linux'))
		OS = "Linux";
	else if (checkIt('x11'))
		OS = "Unix";
	else if (checkIt('mac'))
		OS = "Mac";
	else if (checkIt('win'))
		OS = "Windows";
	else
		OS = "Unknown operating system !";
}

if (!browser)
{
	if (checkIt('konqueror'))
	{
		OS = "Linux";
		browser = "Konqueror";
	}
	else if (checkIt('safari'))
		browser = "Safari";
	else if (checkIt('omniweb'))
		browser = "OmniWeb";
	else if (checkIt('opera'))
		browser = "Opera";
	else if (checkIt('webtv'))
		browser = "WebTV";
	else if (checkIt('icab'))
		browser = "iCab";
	else if (checkIt('msie'))
		browser = "Internet Explorer";
	else if (!checkIt('compatible'))
	{
		browser = "Netscape Navigator";
		version = detect.charAt(8);
	}
	else
		browser = "Unknown browser !";
}

if (!version)
	version = detect.charAt(place + thestring.length);

function affQTPlayer(videoFile, widthVideo, heightVideo)
{
	var videoFile;
	var widthVideo;
	var heightVideo;
	videoFile = "http://internet.jpe.nexint.net/jpe/root/bank_mm/videos-mov/" + videoFile + ".mov";
	heightVideo = heightVideo + 16;
	if (browser == 'Internet Explorer')
	{
		document.write('<object classid="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="' + widthVideo + '" height="' + heightVideo + '">\n');
		document.write('<param name="src" value="' + videoFile + '"/>\n');
		document.write('<param name="bgcolor" value="black"/>\n');
		document.write('</object>');
	}
	else
	{
		document.write('<object type="video/quicktime" data="' + videoFile + '" width="' + widthVideo + '" height="' + heightVideo + '">\n');
		document.write('<param name="bgcolor" value="black"/>\n');
		document.write('</object>');
	}
}

function affWMPlayer(videoFile, widthVideo, heightVideo)
{
	var videoFile;
	var widthVideo;
	var heightVideo;
	videoFile = "http://internet.jpe.nexint.net/jpe/root/bank_mm/videos-wmv/" + videoFile + ".wmv";
	heightVideo = heightVideo + 45;
	document.write('<object type="video/x-ms-wmv" width="' + widthVideo + '" height="' + heightVideo + '">\n');
	document.write('<param name="src" value="' + videoFile + '"/>\n');
	document.write('</object>\n');
}

function afficheHeure()
{
	var heureChaine;
	var heureDate;
	var heureHeures;
	var heureMinutes;
	heureChaine = "";
	heureDate = new Date();
	heureHeures = heureDate.getHours();
	heureMinutes = heureDate.getMinutes();
	if (heureHeures < 10) heureChaine += "0";
	heureChaine += heureHeures + ":";
	if (heureMinutes < 10) heureChaine += "0";
	heureChaine += heureMinutes;
	document.write(heureChaine);
}

function afficheFete()
{
	var feteChaine;
	var feteDate;
	var feteMois;
	var feteJour;
	feteChaine = "";
	feteDate = new Date();
	feteMois = feteDate.getMonth() + 1;
	feteJour = feteDate.getDate();
	if (feteMois == 1 && feteJour == 1) feteChaine += "<strong>Jour de l\'an</strong>";
	if (feteMois == 1 && feteJour == 2) feteChaine += "Saint <strong>Basile</strong>";
	if (feteMois == 1 && feteJour == 3) feteChaine += "Sainte <strong>Geneviève</strong>";
	if (feteMois == 1 && feteJour == 4) feteChaine += "Saint <strong>Odilon</strong>";
	if (feteMois == 1 && feteJour == 5) feteChaine += "Saint <strong>Edouard</strong>";
	if (feteMois == 1 && feteJour == 6) feteChaine += "Saint <strong>Mélaine</strong>";
	if (feteMois == 1 && feteJour == 7) feteChaine += "Saint <strong>Raymond</strong>";
	if (feteMois == 1 && feteJour == 8) feteChaine += "Saint <strong>Lucien</strong>";
	if (feteMois == 1 && feteJour == 9) feteChaine += "Sainte <strong>Alix</strong>";
	if (feteMois == 1 && feteJour == 10) feteChaine += "Saint <strong>Guillaume</strong>";
	if (feteMois == 1 && feteJour == 11) feteChaine += "Sainte <strong>Pauline</strong>";
	if (feteMois == 1 && feteJour == 12) feteChaine += "Sainte <strong>Tatiana</strong>";
	if (feteMois == 1 && feteJour == 13) feteChaine += "Sainte <strong>Yvette</strong>";
	if (feteMois == 1 && feteJour == 14) feteChaine += "Sainte <strong>Nina</strong>";
	if (feteMois == 1 && feteJour == 15) feteChaine += "Saint <strong>Rémi</strong>";
	if (feteMois == 1 && feteJour == 16) feteChaine += "Saint <strong>Marcel</strong>";
	if (feteMois == 1 && feteJour == 17) feteChaine += "Sainte <strong>Roseline</strong>";
	if (feteMois == 1 && feteJour == 18) feteChaine += "Sainte <strong>Prisca</strong>";
	if (feteMois == 1 && feteJour == 19) feteChaine += "Saint <strong>Marius</strong>";
	if (feteMois == 1 && feteJour == 20) feteChaine += "Saint <strong>Sébastien</strong>";
	if (feteMois == 1 && feteJour == 21) feteChaine += "Sainte <strong>Agnès</strong>";
	if (feteMois == 1 && feteJour == 22) feteChaine += "Saint <strong>Vincent</strong>";
	if (feteMois == 1 && feteJour == 23) feteChaine += "Saint <strong>Banard</strong>";
	if (feteMois == 1 && feteJour == 24) feteChaine += "Saint <strong>François de Sales</strong>";
	if (feteMois == 1 && feteJour == 25) feteChaine += "<strong>Conversion de Paul</strong>";
	if (feteMois == 1 && feteJour == 26) feteChaine += "Sainte <strong>Paule</strong>";
	if (feteMois == 1 && feteJour == 27) feteChaine += "Sainte <strong>Angèle</strong>";
	if (feteMois == 1 && feteJour == 28) feteChaine += "Saint <strong>Thomas d\'Aquin</strong>";
	if (feteMois == 1 && feteJour == 29) feteChaine += "Saint <strong>Gildas</strong>";
	if (feteMois == 1 && feteJour == 30) feteChaine += "Sainte <strong>Martine</strong>";
	if (feteMois == 1 && feteJour == 31) feteChaine += "Sainte <strong>Marcelle</strong>";
	if (feteMois == 2 && feteJour == 1) feteChaine += "Sainte <strong>Ella</strong>";
	if (feteMois == 2 && feteJour == 2) feteChaine += "<strong>Présentation</strong>";
	if (feteMois == 2 && feteJour == 3) feteChaine += "Saint <strong>Blaise</strong>";
	if (feteMois == 2 && feteJour == 4) feteChaine += "Sainte <strong>Véronique</strong>";
	if (feteMois == 2 && feteJour == 5) feteChaine += "Sainte <strong>Agathe</strong>";
	if (feteMois == 2 && feteJour == 6) feteChaine += "Saint <strong>Gaston</strong>";
	if (feteMois == 2 && feteJour == 7) feteChaine += "Sainte <strong>Eugènie</strong>";
	if (feteMois == 2 && feteJour == 8) feteChaine += "Sainte <strong>Jacqueline</strong>";
	if (feteMois == 2 && feteJour == 9) feteChaine += "Sainte <strong>Apolline</strong>";
	if (feteMois == 2 && feteJour == 10) feteChaine += "Saint <strong>Arnaud</strong>";
	if (feteMois == 2 && feteJour == 11) feteChaine += "Sainte <strong>Notre Dame de Lourdes</strong>";
	if (feteMois == 2 && feteJour == 12) feteChaine += "Saint <strong>Félix</strong>";
	if (feteMois == 2 && feteJour == 13) feteChaine += "Sainte <strong>Béatrice</strong>";
	if (feteMois == 2 && feteJour == 14) feteChaine += "Saint <strong>Valentin</strong>";
	if (feteMois == 2 && feteJour == 15) feteChaine += "Saint <strong>Claude</strong>";
	if (feteMois == 2 && feteJour == 16) feteChaine += "Sainte <strong>Julienne</strong>";
	if (feteMois == 2 && feteJour == 17) feteChaine += "Saint <strong>Alexis</strong>";
	if (feteMois == 2 && feteJour == 18) feteChaine += "Sainte <strong>Bernadette</strong>";
	if (feteMois == 2 && feteJour == 19) feteChaine += "Saint <strong>Gabin</strong>";
	if (feteMois == 2 && feteJour == 20) feteChaine += "Sainte <strong>Aimée</strong>";
	if (feteMois == 2 && feteJour == 21) feteChaine += "Saint <strong>Damien</strong>";
	if (feteMois == 2 && feteJour == 22) feteChaine += "Sainte <strong>Isabelle</strong>";
	if (feteMois == 2 && feteJour == 23) feteChaine += "Saint <strong>Lazare</strong>";
	if (feteMois == 2 && feteJour == 24) feteChaine += "Saint <strong>Modeste</strong>";
	if (feteMois == 2 && feteJour == 25) feteChaine += "Saint <strong>Roméo</strong>";
	if (feteMois == 2 && feteJour == 26) feteChaine += "Saint <strong>Nestor</strong>";
	if (feteMois == 2 && feteJour == 27) feteChaine += "Sainte <strong>Honorine</strong>";
	if (feteMois == 2 && feteJour == 28) feteChaine += "Saint <strong>Romain</strong>";
	if (feteMois == 2 && feteJour == 29) feteChaine += "Saint <strong>Auguste</strong>";
	if (feteMois == 3 && feteJour == 1) feteChaine += "Saint <strong>Aubin</strong>";
	if (feteMois == 3 && feteJour == 2) feteChaine += "Saint <strong>Charles le Bon</strong>";
	if (feteMois == 3 && feteJour == 3) feteChaine += "Saint <strong>Guénolé</strong>";
	if (feteMois == 3 && feteJour == 4) feteChaine += "Saint <strong>Casimir</strong>";
	if (feteMois == 3 && feteJour == 5) feteChaine += "Sainte <strong>Olive</strong>";
	if (feteMois == 3 && feteJour == 6) feteChaine += "Sainte <strong>Colette</strong>";
	if (feteMois == 3 && feteJour == 7) feteChaine += "Sainte <strong>Félicité</strong>";
	if (feteMois == 3 && feteJour == 8) feteChaine += "Saint <strong>Jean de Dieu</strong>";
	if (feteMois == 3 && feteJour == 9) feteChaine += "Sainte <strong>Françoise</strong>";
	if (feteMois == 3 && feteJour == 10) feteChaine += "Saint <strong>Vivien</strong>";
	if (feteMois == 3 && feteJour == 11) feteChaine += "Sainte <strong>Rosine</strong>";
	if (feteMois == 3 && feteJour == 12) feteChaine += "Sainte <strong>Justine</strong>";
	if (feteMois == 3 && feteJour == 13) feteChaine += "Saint <strong>Rodrigue</strong>";
	if (feteMois == 3 && feteJour == 14) feteChaine += "Sainte <strong>Mathilde</strong>";
	if (feteMois == 3 && feteJour == 15) feteChaine += "Sainte <strong>Louise</strong>";
	if (feteMois == 3 && feteJour == 16) feteChaine += "Sainte <strong>Bénédicte</strong>";
	if (feteMois == 3 && feteJour == 17) feteChaine += "Saint <strong>Patrice</strong>";
	if (feteMois == 3 && feteJour == 18) feteChaine += "Saint <strong>Cyrille</strong>";
	if (feteMois == 3 && feteJour == 19) feteChaine += "Saint <strong>Joseph</strong>";
	if (feteMois == 3 && feteJour == 20) feteChaine += "<strong>Printemps</strong>";
	if (feteMois == 3 && feteJour == 21) feteChaine += "Sainte <strong>Clémence</strong>";
	if (feteMois == 3 && feteJour == 22) feteChaine += "Sainte <strong>Léa</strong>";
	if (feteMois == 3 && feteJour == 23) feteChaine += "Saint <strong>Victorien</strong>";
	if (feteMois == 3 && feteJour == 24) feteChaine += "Sainte <strong>Catherine 1</strong>";
	if (feteMois == 3 && feteJour == 25) feteChaine += "<strong>Annonciation</strong>";
	if (feteMois == 3 && feteJour == 26) feteChaine += "Sainte <strong>Larissa</strong>";
	if (feteMois == 3 && feteJour == 27) feteChaine += "Saint <strong>Habib</strong>";
	if (feteMois == 3 && feteJour == 28) feteChaine += "Saint <strong>Gontran</strong>";
	if (feteMois == 3 && feteJour == 29) feteChaine += "Sainte <strong>Gwladys</strong>";
	if (feteMois == 3 && feteJour == 30) feteChaine += "Saint <strong>Amédée</strong>";
	if (feteMois == 3 && feteJour == 31) feteChaine += "Saint <strong>Benjamin</strong>";
	if (feteMois == 4 && feteJour == 1) feteChaine += "Saint <strong>Hugues</strong>";
	if (feteMois == 4 && feteJour == 2) feteChaine += "Sainte <strong>Sandrine</strong>";
	if (feteMois == 4 && feteJour == 3) feteChaine += "Saint <strong>Richard</strong>";
	if (feteMois == 4 && feteJour == 4) feteChaine += "Saint <strong>Isidore</strong>";
	if (feteMois == 4 && feteJour == 5) feteChaine += "Sainte <strong>Irène</strong>";
	if (feteMois == 4 && feteJour == 6) feteChaine += "Saint <strong>Marcellin</strong>";
	if (feteMois == 4 && feteJour == 7) feteChaine += "Saint <strong>Jean-Baptiste de la Salle</strong>";
	if (feteMois == 4 && feteJour == 8) feteChaine += "Sainte <strong>Julie</strong>";
	if (feteMois == 4 && feteJour == 9) feteChaine += "Saint <strong>Gautier</strong>";
	if (feteMois == 4 && feteJour == 10) feteChaine += "Saint <strong>Fulbert</strong>";
	if (feteMois == 4 && feteJour == 11) feteChaine += "Saint <strong>Stanislas</strong>";
	if (feteMois == 4 && feteJour == 12) feteChaine += "Saint <strong>Jules</strong>";
	if (feteMois == 4 && feteJour == 13) feteChaine += "Sainte <strong>Ida</strong>";
	if (feteMois == 4 && feteJour == 14) feteChaine += "Saint <strong>Maxime</strong>";
	if (feteMois == 4 && feteJour == 15) feteChaine += "Saint <strong>Paterne</strong>";
	if (feteMois == 4 && feteJour == 16) feteChaine += "Saint <strong>Benoît-Joseph</strong>";
	if (feteMois == 4 && feteJour == 17) feteChaine += "Saint <strong>Anicet</strong>";
	if (feteMois == 4 && feteJour == 18) feteChaine += "Saint <strong>Parfait</strong>";
	if (feteMois == 4 && feteJour == 19) feteChaine += "Sainte <strong>Emma</strong>";
	if (feteMois == 4 && feteJour == 20) feteChaine += "Sainte <strong>Odette</strong>";
	if (feteMois == 4 && feteJour == 21) feteChaine += "Saint <strong>Anselme</strong>";
	if (feteMois == 4 && feteJour == 22) feteChaine += "Saint <strong>Alexandre</strong>";
	if (feteMois == 4 && feteJour == 23) feteChaine += "Saint <strong>Georges</strong>";
	if (feteMois == 4 && feteJour == 24) feteChaine += "Saint <strong>Fidèle</strong>";
	if (feteMois == 4 && feteJour == 25) feteChaine += "Saint <strong>Marc</strong>";
	if (feteMois == 4 && feteJour == 26) feteChaine += "Sainte <strong>Alida</strong>";
	if (feteMois == 4 && feteJour == 27) feteChaine += "Sainte <strong>Zita</strong>";
	if (feteMois == 4 && feteJour == 28) feteChaine += "Sainte <strong>Valérie</strong>";
	if (feteMois == 4 && feteJour == 29) feteChaine += "Sainte <strong>Catherine de Sienne</strong>";
	if (feteMois == 4 && feteJour == 30) feteChaine += "Saint <strong>Robert</strong>";
	if (feteMois == 5 && feteJour == 1) feteChaine += "<strong>Fête du travail</strong>";
	if (feteMois == 5 && feteJour == 2) feteChaine += "Saint <strong>Boris</strong>";
	if (feteMois == 5 && feteJour == 3) feteChaine += "Saints <strong>Philippe & Jacques</strong>";
	if (feteMois == 5 && feteJour == 4) feteChaine += "Saint <strong>Sylvain</strong>";
	if (feteMois == 5 && feteJour == 5) feteChaine += "Sainte <strong>Judith</strong>";
	if (feteMois == 5 && feteJour == 6) feteChaine += "Sainte <strong>Prudence</strong>";
	if (feteMois == 5 && feteJour == 7) feteChaine += "Sainte <strong>Gisèle</strong>";
	if (feteMois == 5 && feteJour == 8) feteChaine += "<strong>Armistice 1945</strong>";
	if (feteMois == 5 && feteJour == 9) feteChaine += "Saint <strong>Pacôme</strong>";
	if (feteMois == 5 && feteJour == 10) feteChaine += "Sainte <strong>Solange</strong>";
	if (feteMois == 5 && feteJour == 11) feteChaine += "Sainte <strong>Estelle</strong>";
	if (feteMois == 5 && feteJour == 12) feteChaine += "Saint <strong>Achille</strong>";
	if (feteMois == 5 && feteJour == 13) feteChaine += "Sainte <strong>Rolande</strong>";
	if (feteMois == 5 && feteJour == 14) feteChaine += "Saint <strong>Matthias</strong>";
	if (feteMois == 5 && feteJour == 15) feteChaine += "Sainte <strong>Denise</strong>";
	if (feteMois == 5 && feteJour == 16) feteChaine += "Saint <strong>Honoré</strong>";
	if (feteMois == 5 && feteJour == 17) feteChaine += "Saint <strong>Pascal</strong>";
	if (feteMois == 5 && feteJour == 18) feteChaine += "Saint <strong>Eric</strong>";
	if (feteMois == 5 && feteJour == 19) feteChaine += "Saint <strong>Yves</strong>";
	if (feteMois == 5 && feteJour == 20) feteChaine += "Saint <strong>Bernardin</strong>";
	if (feteMois == 5 && feteJour == 21) feteChaine += "Saint <strong>Constantin</strong>";
	if (feteMois == 5 && feteJour == 22) feteChaine += "Saint <strong>Emile</strong>";
	if (feteMois == 5 && feteJour == 23) feteChaine += "Saint <strong>Didier</strong>";
	if (feteMois == 5 && feteJour == 24) feteChaine += "Saint <strong>Donatien</strong>";
	if (feteMois == 5 && feteJour == 25) feteChaine += "Sainte <strong>Sophie</strong>";
	if (feteMois == 5 && feteJour == 26) feteChaine += "Saint <strong>Bérenger</strong>";
	if (feteMois == 5 && feteJour == 27) feteChaine += "Saint <strong>Augustin 1</strong>";
	if (feteMois == 5 && feteJour == 28) feteChaine += "Saint <strong>Germain</strong>";
	if (feteMois == 5 && feteJour == 29) feteChaine += "Saint <strong>Aymar</strong>";
	if (feteMois == 5 && feteJour == 30) feteChaine += "Saint <strong>Ferdinand</strong>";
	if (feteMois == 5 && feteJour == 31) feteChaine += "<strong>Visitation de la Sainte Vierge</strong>";
	if (feteMois == 6 && feteJour == 1) feteChaine += "Saint <strong>Justin</strong>";
	if (feteMois == 6 && feteJour == 2) feteChaine += "Sainte <strong>Blandine</strong>";
	if (feteMois == 6 && feteJour == 3) feteChaine += "Saint <strong>Kévin</strong>";
	if (feteMois == 6 && feteJour == 4) feteChaine += "Sainte <strong>Clotilde</strong>";
	if (feteMois == 6 && feteJour == 5) feteChaine += "Saint <strong>Igor</strong>";
	if (feteMois == 6 && feteJour == 6) feteChaine += "Saint <strong>Norbert</strong>";
	if (feteMois == 6 && feteJour == 7) feteChaine += "Saint <strong>Gilbert</strong>";
	if (feteMois == 6 && feteJour == 8) feteChaine += "Saint <strong>Médard</strong>";
	if (feteMois == 6 && feteJour == 9) feteChaine += "Sainte <strong>Diane</strong>";
	if (feteMois == 6 && feteJour == 10) feteChaine += "Saint <strong>Landry</strong>";
	if (feteMois == 6 && feteJour == 11) feteChaine += "Saint <strong>Barnabé</strong>";
	if (feteMois == 6 && feteJour == 12) feteChaine += "Saint <strong>Guy</strong>";
	if (feteMois == 6 && feteJour == 13) feteChaine += "Saint <strong>Antoine de Padoue</strong>";
	if (feteMois == 6 && feteJour == 14) feteChaine += "Saint <strong>Elisée</strong>";
	if (feteMois == 6 && feteJour == 15) feteChaine += "Sainte <strong>Germaine</strong>";
	if (feteMois == 6 && feteJour == 16) feteChaine += "Saint <strong>Jean François Régis</strong>";
	if (feteMois == 6 && feteJour == 17) feteChaine += "Saint <strong>Hervé</strong>";
	if (feteMois == 6 && feteJour == 18) feteChaine += "Sainte <strong>Léonce</strong>";
	if (feteMois == 6 && feteJour == 19) feteChaine += "Saint <strong>Romuald</strong>";
	if (feteMois == 6 && feteJour == 20) feteChaine += "Saint <strong>Silvère</strong>";
	if (feteMois == 6 && feteJour == 21) feteChaine += "<strong>Eté</strong>";
	if (feteMois == 6 && feteJour == 22) feteChaine += "Saint <strong>Alban</strong>";
	if (feteMois == 6 && feteJour == 23) feteChaine += "Sainte <strong>Audrey</strong>";
	if (feteMois == 6 && feteJour == 24) feteChaine += "Saint <strong>Jean-Baptiste</strong>";
	if (feteMois == 6 && feteJour == 25) feteChaine += "Saint <strong>Prosper</strong>";
	if (feteMois == 6 && feteJour == 26) feteChaine += "Saint <strong>Anthelme</strong>";
	if (feteMois == 6 && feteJour == 27) feteChaine += "Saint <strong>Fernand</strong>";
	if (feteMois == 6 && feteJour == 28) feteChaine += "Sainte <strong>Irénée</strong>";
	if (feteMois == 6 && feteJour == 29) feteChaine += "Saints <strong>Pierre & Paul</strong>";
	if (feteMois == 6 && feteJour == 30) feteChaine += "Saint <strong>Martial</strong>";
	if (feteMois == 7 && feteJour == 1) feteChaine += "Saint <strong>Thierry</strong>";
	if (feteMois == 7 && feteJour == 2) feteChaine += "Saint <strong>Martinien</strong>";
	if (feteMois == 7 && feteJour == 3) feteChaine += "Saint <strong>Thomas</strong>";
	if (feteMois == 7 && feteJour == 4) feteChaine += "Saint <strong>Florent</strong>";
	if (feteMois == 7 && feteJour == 5) feteChaine += "Saint <strong>Antoine</strong>";
	if (feteMois == 7 && feteJour == 6) feteChaine += "Sainte <strong>Mariette</strong>";
	if (feteMois == 7 && feteJour == 7) feteChaine += "Saint <strong>Raoul</strong>";
	if (feteMois == 7 && feteJour == 8) feteChaine += "Saint <strong>Thibault</strong>";
	if (feteMois == 7 && feteJour == 9) feteChaine += "Sainte <strong>Amandine</strong>";
	if (feteMois == 7 && feteJour == 10) feteChaine += "Saint <strong>Ulrich</strong>";
	if (feteMois == 7 && feteJour == 11) feteChaine += "Saint <strong>Benoît</strong>";
	if (feteMois == 7 && feteJour == 12) feteChaine += "Saint <strong>Olivier</strong>";
	if (feteMois == 7 && feteJour == 13) feteChaine += "Saints <strong>Henri & Joël</strong>";
	if (feteMois == 7 && feteJour == 14) feteChaine += "<strong>Fête Nationale</strong>";
	if (feteMois == 7 && feteJour == 15) feteChaine += "Saint <strong>Donald</strong>";
	if (feteMois == 7 && feteJour == 16) feteChaine += "Sainte <strong>Notre Dame du Mont Carmel</strong>";
	if (feteMois == 7 && feteJour == 17) feteChaine += "Sainte <strong>Charlotte</strong>";
	if (feteMois == 7 && feteJour == 18) feteChaine += "Saint <strong>Frédéric</strong>";
	if (feteMois == 7 && feteJour == 19) feteChaine += "Saint <strong>Arsène</strong>";
	if (feteMois == 7 && feteJour == 20) feteChaine += "Sainte <strong>Marina</strong>";
	if (feteMois == 7 && feteJour == 21) feteChaine += "Saint <strong>Victor</strong>";
	if (feteMois == 7 && feteJour == 22) feteChaine += "Sainte <strong>Marie Madeleine</strong>";
	if (feteMois == 7 && feteJour == 23) feteChaine += "Sainte <strong>Brigitte</strong>";
	if (feteMois == 7 && feteJour == 24) feteChaine += "Sainte <strong>Christine</strong>";
	if (feteMois == 7 && feteJour == 25) feteChaine += "Saint <strong>Jacques</strong>";
	if (feteMois == 7 && feteJour == 26) feteChaine += "Saints <strong>Anne & Joachin</strong>";
	if (feteMois == 7 && feteJour == 27) feteChaine += "Sainte <strong>Nathalie</strong>";
	if (feteMois == 7 && feteJour == 28) feteChaine += "Saint <strong>Samson</strong>";
	if (feteMois == 7 && feteJour == 29) feteChaine += "Sainte <strong>Marthe</strong>";
	if (feteMois == 7 && feteJour == 30) feteChaine += "Sainte <strong>Juliette</strong>";
	if (feteMois == 7 && feteJour == 31) feteChaine += "Saint <strong>Ignace de Loyola</strong>";
	if (feteMois == 8 && feteJour == 1) feteChaine += "Saint <strong>Alphonse</strong>";
	if (feteMois == 8 && feteJour == 2) feteChaine += "Saint <strong>Julien Eymard</strong>";
	if (feteMois == 8 && feteJour == 3) feteChaine += "Sainte <strong>Lydie</strong>";
	if (feteMois == 8 && feteJour == 4) feteChaine += "Saint <strong>Jean-Marie Vianney</strong>";
	if (feteMois == 8 && feteJour == 5) feteChaine += "Saint <strong>Abel</strong>";
	if (feteMois == 8 && feteJour == 6) feteChaine += "<strong>Transfiguration</strong>";
	if (feteMois == 8 && feteJour == 7) feteChaine += "Saint <strong>Gaétan</strong>";
	if (feteMois == 8 && feteJour == 8) feteChaine += "Saint <strong>Dominique</strong>";
	if (feteMois == 8 && feteJour == 9) feteChaine += "Saint <strong>Amour</strong>";
	if (feteMois == 8 && feteJour == 10) feteChaine += "Saint <strong>Laurent</strong>";
	if (feteMois == 8 && feteJour == 11) feteChaine += "Sainte <strong>Claire</strong>";
	if (feteMois == 8 && feteJour == 12) feteChaine += "Sainte <strong>Clarisse</strong>";
	if (feteMois == 8 && feteJour == 13) feteChaine += "Saint <strong>Hippolyte</strong>";
	if (feteMois == 8 && feteJour == 14) feteChaine += "Saint <strong>Evrard</strong>";
	if (feteMois == 8 && feteJour == 15) feteChaine += "<strong>Assomption</strong>";
	if (feteMois == 8 && feteJour == 16) feteChaine += "Sainte <strong>Armel</strong>";
	if (feteMois == 8 && feteJour == 17) feteChaine += "Sainte <strong>Hyacinthe</strong>";
	if (feteMois == 8 && feteJour == 18) feteChaine += "Sainte <strong>Hélène</strong>";
	if (feteMois == 8 && feteJour == 19) feteChaine += "Saint <strong>Jean Eudes</strong>";
	if (feteMois == 8 && feteJour == 20) feteChaine += "Saint <strong>Bernard</strong>";
	if (feteMois == 8 && feteJour == 21) feteChaine += "Saint <strong>Christophe</strong>";
	if (feteMois == 8 && feteJour == 22) feteChaine += "Saint <strong>Fabrice</strong>";
	if (feteMois == 8 && feteJour == 23) feteChaine += "Sainte <strong>Rose de Lima</strong>";
	if (feteMois == 8 && feteJour == 24) feteChaine += "Saint <strong>Barthélémy</strong>";
	if (feteMois == 8 && feteJour == 25) feteChaine += "Saint <strong>Louis</strong>";
	if (feteMois == 8 && feteJour == 26) feteChaine += "Sainte <strong>Natacha</strong>";
	if (feteMois == 8 && feteJour == 27) feteChaine += "Sainte <strong>Monique</strong>";
	if (feteMois == 8 && feteJour == 28) feteChaine += "Saint <strong>Augustin 2</strong>";
	if (feteMois == 8 && feteJour == 29) feteChaine += "Sainte <strong>Sabine</strong>";
	if (feteMois == 8 && feteJour == 30) feteChaine += "Saint <strong>Fiacre</strong>";
	if (feteMois == 8 && feteJour == 31) feteChaine += "Saint <strong>Aristide</strong>";
	if (feteMois == 9 && feteJour == 1) feteChaine += "Saint <strong>Gilles</strong>";
	if (feteMois == 9 && feteJour == 2) feteChaine += "Sainte <strong>Ingrid</strong>";
	if (feteMois == 9 && feteJour == 3) feteChaine += "Saint <strong>Grégoire</strong>";
	if (feteMois == 9 && feteJour == 4) feteChaine += "Sainte <strong>Rosalie</strong>";
	if (feteMois == 9 && feteJour == 5) feteChaine += "Sainte <strong>Raïssa</strong>";
	if (feteMois == 9 && feteJour == 6) feteChaine += "Saint <strong>Bertrand</strong>";
	if (feteMois == 9 && feteJour == 7) feteChaine += "Sainte <strong>Reine</strong>";
	if (feteMois == 9 && feteJour == 8) feteChaine += "<strong>Nativité</strong>";
	if (feteMois == 9 && feteJour == 9) feteChaine += "Saint <strong>Alain</strong>";
	if (feteMois == 9 && feteJour == 10) feteChaine += "Sainte <strong>Inès</strong>";
	if (feteMois == 9 && feteJour == 11) feteChaine += "Saint <strong>Adelphe</strong>";
	if (feteMois == 9 && feteJour == 12) feteChaine += "Saint <strong>Apollinaire</strong>";
	if (feteMois == 9 && feteJour == 13) feteChaine += "Saint <strong>Aimé</strong>";
	if (feteMois == 9 && feteJour == 14) feteChaine += "Sainte <strong>Croix Glorieuse</strong>";
	if (feteMois == 9 && feteJour == 15) feteChaine += "Saint <strong>Roland</strong>";
	if (feteMois == 9 && feteJour == 16) feteChaine += "Sainte <strong>Edith</strong>";
	if (feteMois == 9 && feteJour == 17) feteChaine += "Saint <strong>Renaud</strong>";
	if (feteMois == 9 && feteJour == 18) feteChaine += "Sainte <strong>Nadège</strong>";
	if (feteMois == 9 && feteJour == 19) feteChaine += "Sainte <strong>Emilie</strong>";
	if (feteMois == 9 && feteJour == 20) feteChaine += "Saint <strong>Davy</strong>";
	if (feteMois == 9 && feteJour == 21) feteChaine += "Saint <strong>Matthieu</strong>";
	if (feteMois == 9 && feteJour == 22) feteChaine += "Saint <strong>Maurice</strong>";
	if (feteMois == 9 && feteJour == 23) feteChaine += "<strong>Automne</strong>";
	if (feteMois == 9 && feteJour == 24) feteChaine += "Saint <strong>Thècle</strong>";
	if (feteMois == 9 && feteJour == 25) feteChaine += "Saint <strong>Hermann</strong>";
	if (feteMois == 9 && feteJour == 26) feteChaine += "Saints <strong>Côme & Damien</strong>";
	if (feteMois == 9 && feteJour == 27) feteChaine += "Saint <strong>Vincent de Paul</strong>";
	if (feteMois == 9 && feteJour == 28) feteChaine += "Saint <strong>Venceslas</strong>";
	if (feteMois == 9 && feteJour == 29) feteChaine += "Saints <strong>Michel, Gabriel & Raphaël</strong>";
	if (feteMois == 9 && feteJour == 30) feteChaine += "Saint <strong>Jérôme</strong>";
	if (feteMois == 10 && feteJour == 1) feteChaine += "Sainte <strong>Thérèse de l\'Enfant Jésus</strong>";
	if (feteMois == 10 && feteJour == 2) feteChaine += "Saint <strong>Léger</strong>";
	if (feteMois == 10 && feteJour == 3) feteChaine += "Saint <strong>Gérard</strong>";
	if (feteMois == 10 && feteJour == 4) feteChaine += "Saint <strong>François d\'Assise</strong>";
	if (feteMois == 10 && feteJour == 5) feteChaine += "Sainte <strong>Fleur</strong>";
	if (feteMois == 10 && feteJour == 6) feteChaine += "Saint <strong>Bruno</strong>";
	if (feteMois == 10 && feteJour == 7) feteChaine += "Saint <strong>Serge</strong>";
	if (feteMois == 10 && feteJour == 8) feteChaine += "Sainte <strong>Pélagie</strong>";
	if (feteMois == 10 && feteJour == 9) feteChaine += "Saint <strong>Denis</strong>";
	if (feteMois == 10 && feteJour == 10) feteChaine += "Saint <strong>Ghislain</strong>";
	if (feteMois == 10 && feteJour == 11) feteChaine += "Saint <strong>Firmin</strong>";
	if (feteMois == 10 && feteJour == 12) feteChaine += "Saint <strong>Wilfried</strong>";
	if (feteMois == 10 && feteJour == 13) feteChaine += "Saint <strong>Géraud</strong>";
	if (feteMois == 10 && feteJour == 14) feteChaine += "Saint <strong>Juste</strong>";
	if (feteMois == 10 && feteJour == 15) feteChaine += "Sainte <strong>Thérèse d\'Avila</strong>";
	if (feteMois == 10 && feteJour == 16) feteChaine += "Sainte <strong>Edwige</strong>";
	if (feteMois == 10 && feteJour == 17) feteChaine += "Saint <strong>Baudoin</strong>";
	if (feteMois == 10 && feteJour == 18) feteChaine += "Saint <strong>Luc</strong>";
	if (feteMois == 10 && feteJour == 19) feteChaine += "Saint <strong>René</strong>";
	if (feteMois == 10 && feteJour == 20) feteChaine += "Sainte <strong>Adeline</strong>";
	if (feteMois == 10 && feteJour == 21) feteChaine += "Sainte <strong>Céline</strong>";
	if (feteMois == 10 && feteJour == 22) feteChaine += "Sainte <strong>Elodie</strong>";
	if (feteMois == 10 && feteJour == 23) feteChaine += "Saint <strong>Jean de Capistran</strong>";
	if (feteMois == 10 && feteJour == 24) feteChaine += "Saint <strong>Florentin</strong>";
	if (feteMois == 10 && feteJour == 25) feteChaine += "Saint <strong>Crépin</strong>";
	if (feteMois == 10 && feteJour == 26) feteChaine += "Saint <strong>Dimitri</strong>";
	if (feteMois == 10 && feteJour == 27) feteChaine += "Sainte <strong>Emeline</strong>";
	if (feteMois == 10 && feteJour == 28) feteChaine += "Saint <strong>Jude</strong>";
	if (feteMois == 10 && feteJour == 29) feteChaine += "Saint <strong>Narcisse</strong>";
	if (feteMois == 10 && feteJour == 30) feteChaine += "Sainte <strong>Bienvenue</strong>";
	if (feteMois == 10 && feteJour == 31) feteChaine += "Saint <strong>Quentin</strong>";
	if (feteMois == 11 && feteJour == 1) feteChaine += "<strong>Toussaint</strong>";
	if (feteMois == 11 && feteJour == 2) feteChaine += "Saints <strong>Défunts</strong>";
	if (feteMois == 11 && feteJour == 3) feteChaine += "Saint <strong>Hubert</strong>";
	if (feteMois == 11 && feteJour == 4) feteChaine += "Saint <strong>Charles</strong>";
	if (feteMois == 11 && feteJour == 5) feteChaine += "Sainte <strong>Sylvie</strong>";
	if (feteMois == 11 && feteJour == 6) feteChaine += "Sainte <strong>Bertille</strong>";
	if (feteMois == 11 && feteJour == 7) feteChaine += "Sainte <strong>Carine</strong>";
	if (feteMois == 11 && feteJour == 8) feteChaine += "Saint <strong>Geoffroy</strong>";
	if (feteMois == 11 && feteJour == 9) feteChaine += "Saint <strong>Théodore</strong>";
	if (feteMois == 11 && feteJour == 10) feteChaine += "Saint <strong>Léon</strong>";
	if (feteMois == 11 && feteJour == 11) feteChaine += "<strong>Armistice 1918</strong>";
	if (feteMois == 11 && feteJour == 12) feteChaine += "Saint <strong>Christian</strong>";
	if (feteMois == 11 && feteJour == 13) feteChaine += "Saint <strong>Brice</strong>";
	if (feteMois == 11 && feteJour == 14) feteChaine += "Saint <strong>Sidoine</strong>";
	if (feteMois == 11 && feteJour == 15) feteChaine += "Saint <strong>Albert</strong>";
	if (feteMois == 11 && feteJour == 16) feteChaine += "Sainte <strong>Marguerite</strong>";
	if (feteMois == 11 && feteJour == 17) feteChaine += "Sainte <strong>Elisabeth</strong>";
	if (feteMois == 11 && feteJour == 18) feteChaine += "Sainte <strong>Aude</strong>";
	if (feteMois == 11 && feteJour == 19) feteChaine += "Saint <strong>Tanguy</strong>";
	if (feteMois == 11 && feteJour == 20) feteChaine += "Saint <strong>Edmond</strong>";
	if (feteMois == 11 && feteJour == 21) feteChaine += "<strong>Présence de Marie</strong>";
	if (feteMois == 11 && feteJour == 22) feteChaine += "Sainte <strong>Cécile</strong>";
	if (feteMois == 11 && feteJour == 23) feteChaine += "Saint <strong>Clément</strong>";
	if (feteMois == 11 && feteJour == 24) feteChaine += "Sainte <strong>Flora</strong>";
	if (feteMois == 11 && feteJour == 25) feteChaine += "Sainte <strong>Catherine 2</strong>";
	if (feteMois == 11 && feteJour == 26) feteChaine += "Sainte <strong>Delphine</strong>";
	if (feteMois == 11 && feteJour == 27) feteChaine += "Saint <strong>Sévrin</strong>";
	if (feteMois == 11 && feteJour == 28) feteChaine += "Saint <strong>Jacques de la Marche</strong>";
	if (feteMois == 11 && feteJour == 29) feteChaine += "Saint <strong>Saturnin</strong>";
	if (feteMois == 11 && feteJour == 30) feteChaine += "Saint <strong>André</strong>";
	if (feteMois == 12 && feteJour == 1) feteChaine += "Sainte <strong>Florence</strong>";
	if (feteMois == 12 && feteJour == 2) feteChaine += "Sainte <strong>Viviane</strong>";
	if (feteMois == 12 && feteJour == 3) feteChaine += "Saint <strong>François Xavier</strong>";
	if (feteMois == 12 && feteJour == 4) feteChaine += "Sainte <strong>Barbara</strong>";
	if (feteMois == 12 && feteJour == 5) feteChaine += "Saint <strong>Gérald</strong>";
	if (feteMois == 12 && feteJour == 6) feteChaine += "Saint <strong>Nicolas</strong>";
	if (feteMois == 12 && feteJour == 7) feteChaine += "Saint <strong>Ambroise</strong>";
	if (feteMois == 12 && feteJour == 8) feteChaine += "<strong>Immaculée Conception</strong>";
	if (feteMois == 12 && feteJour == 9) feteChaine += "Saint <strong>Pierre Fourier</strong>";
	if (feteMois == 12 && feteJour == 10) feteChaine += "Saint <strong>Romaric</strong>";
	if (feteMois == 12 && feteJour == 11) feteChaine += "Saint <strong>Daniel</strong>";
	if (feteMois == 12 && feteJour == 12) feteChaine += "Sainte <strong>Jeanne-Françoise de Chantal</strong>";
	if (feteMois == 12 && feteJour == 13) feteChaine += "Sainte <strong>Lucie</strong>";
	if (feteMois == 12 && feteJour == 14) feteChaine += "Sainte <strong>Odile</strong>";
	if (feteMois == 12 && feteJour == 15) feteChaine += "Sainte <strong>Ninon</strong>";
	if (feteMois == 12 && feteJour == 16) feteChaine += "Sainte <strong>Alice</strong>";
	if (feteMois == 12 && feteJour == 17) feteChaine += "Saint <strong>Gaël</strong>";
	if (feteMois == 12 && feteJour == 18) feteChaine += "Saint <strong>Gatien</strong>";
	if (feteMois == 12 && feteJour == 19) feteChaine += "Saint <strong>Urbain</strong>";
	if (feteMois == 12 && feteJour == 20) feteChaine += "Saint <strong>Théophile</strong>";
	if (feteMois == 12 && feteJour == 21) feteChaine += "<strong>Hiver</strong>";
	if (feteMois == 12 && feteJour == 22) feteChaine += "Sainte <strong>Françoise Xavière</strong>";
	if (feteMois == 12 && feteJour == 23) feteChaine += "Saint <strong>Armand</strong>";
	if (feteMois == 12 && feteJour == 24) feteChaine += "Sainte <strong>Adèle</strong>";
	if (feteMois == 12 && feteJour == 25) feteChaine += "<strong>Noël</strong>";
	if (feteMois == 12 && feteJour == 26) feteChaine += "Saint <strong>Etienne</strong>";
	if (feteMois == 12 && feteJour == 27) feteChaine += "Saint <strong>Jean</strong>";
	if (feteMois == 12 && feteJour == 28) feteChaine += "Saints <strong>Innocents</strong>";
	if (feteMois == 12 && feteJour == 29) feteChaine += "Saint <strong>David</strong>";
	if (feteMois == 12 && feteJour == 30) feteChaine += "Saint <strong>Roger</strong>";
	if (feteMois == 12 && feteJour == 31) feteChaine += "Saint <strong>Sylvestre</strong>";
	document.write(feteChaine);
}

function getNavHistory1()
{
	var navHistory1 = new Array();
	if (document.all)
	{
		try
		{
			if (document.getElementById("navigationPath"))
				navHistory1 = document.getElementById("navigationPath").innerText.split(">");
		}
		catch(e)
		{
			void(0);
		}
	}
	else
	{
		var i = new Number();
		var j = new Number();
		j = 0;
		for (i = 0; i < document.getElementById("navigationPath").childNodes.length; i++)
		{
			if (document.getElementById("navigationPath").childNodes[i].tagName == "A")
			{
				navHistory1[j] = document.getElementById("navigationPath").childNodes[i].text;
				j++;
			}
		}
	}
	return navHistory1;
}

function trim1(str)
{
	while (str.indexOf("n") >= 0)
	{
		str = str.replace("n", "");
	}
	while (str.indexOf("r") >= 0)
	{
		str = str.replace("r", "");
	}
	while (str.indexOf("t") >= 0)
	{
		str = str.replace("t", "");
	}
	while (str.indexOf(" ") >= 0)
	{
		str = str.replace(" ", "");
	}
	return str;
}

var pos1;
pos1=0;

function makeHighLight1(el, pattern)
{
	var i = new Number();
	if (document.all)
	{
		for (i = 0; i < el.children.length; i++)
		{
			if (trim1(el.children[i].innerText).indexOf(pattern) >= 0)
			{
				if (el.children[i].children.length == 0)
				{
					pos1++;
					el.children[i].className='nav1Location'+pos1;
					return true;
				}
				else
				{
					return makeHighLight1(el.children[i], pattern);
				}
			}
		}
		return false;
	}
	else
	{
		for (i = 0; i < el.childNodes.length; i++)
		{
			if (el.childNodes[i].tagName)
			{
				if (el.childNodes[i].tagName == "A")
				{
					if (trim1(el.childNodes[i].text).indexOf(pattern) >= 0)
					{
						el.childNodes[i].className='nav1Location'+pos1;
						return true;
					}
				}
				else
				{
					if (el.childNodes[i].hasChildNodes())
					{
						if (makeHighLight1(el.childNodes[i], pattern))
						{
							return true;
						}
					}
				}
			}
		}
		return false;
	}
}

function highLight1(string)
{
	var div2highLight1 = string;
	var navHistory1 = new Array();
	var i = new Number();
	navHistory1 = getNavHistory1();
	for (i = 0; i < navHistory1.length - 1; i++)
	{
		if (document.getElementById(div2highLight1))
		{
			if (makeHighLight1(document.getElementById(div2highLight1), trim1(navHistory1[i]).substring(0, Math.min(trim1(navHistory1[i]).length, 100))))
			{
				if (document.getElementById(div2highLight1))
				{
					makeHighLight1(document.getElementById(div2highLight1), trim1(navHistory1[i + 1]).substring(0, Math.min(trim1(navHistory1[i + 1]).length, 100)));
				}
				break;
			}
		}
	}
}

function getNavHistory2()
{
	var navHistory2 = new Array();
	if (document.all)
	{
		try
		{
			if (document.getElementById("navigationPathInvisible"))
				navHistory2 = document.getElementById("navigationPathInvisible").innerText.split(">");
		}
		catch(e)
		{
			void(0);
		}
	}
	else
	{
		var i = new Number();
		var j = new Number();
		j = 0;
		for (i = 0; i < document.getElementById("navigationPathInvisible").childNodes.length; i++)
		{
			if (document.getElementById("navigationPathInvisible").childNodes[i].tagName == "A")
			{
				navHistory2[j] = document.getElementById("navigationPathInvisible").childNodes[i].text;
				j++;
			}
		}
	}
	return navHistory2;
}

function trim2(str)
{
	while (str.indexOf("n") >= 0)
	{
		str = str.replace("n", "");
	}
	while (str.indexOf("r") >= 0)
	{
		str = str.replace("r", "");
	}
	while (str.indexOf("t") >= 0)
	{
		str = str.replace("t", "");
	}
	while (str.indexOf(" ") >= 0)
	{
		str = str.replace(" ", "");
	}
	return str;
}

var pos2;
pos2=0;

function makeHighLight2(el, pattern)
{
	var i = new Number();
	if (document.all)
	{
		for (i = 0; i < el.children.length; i++)
		{
			if (trim2(el.children[i].innerText).indexOf(pattern) >= 0)
			{
				if (el.children[i].children.length == 0)
				{
					pos2++;
					el.children[i].className='nav2Location'+pos2;
					return true;
				}
				else
				{
					return makeHighLight2(el.children[i], pattern);
				}
			}
		}
		return false;
	}
	else
	{
		for (i = 0; i < el.childNodes.length; i++)
		{
			if (el.childNodes[i].tagName)
			{
				if (el.childNodes[i].tagName == "A")
				{
					if (trim2(el.childNodes[i].text).indexOf(pattern) >= 0)
					{
						el.childNodes[i].className='nav2Location'+pos2;
						return true;
					}
				}
				else
				{
					if (el.childNodes[i].hasChildNodes())
					{
						if (makeHighLight2(el.childNodes[i], pattern))
						{
							return true;
						}
					}
				}
			}
		}
		return false;
	}
}

function highLight2(string)
{
	var div2highLight2 = string;
	var navHistory2 = new Array();
	var i = new Number();
	navHistory2 = getNavHistory2();
	for (i = 0; i < navHistory2.length - 1; i++)
	{
		if (document.getElementById(div2highLight2))
		{
			if (makeHighLight2(document.getElementById(div2highLight2), trim2(navHistory2[i]).substring(0, Math.min(trim2(navHistory2[i]).length, 100))))
			{
				if (document.getElementById(div2highLight2))
				{
					makeHighLight2(document.getElementById(div2highLight2), trim2(navHistory2[i + 1]).substring(0, Math.min(trim2(navHistory2[i + 1]).length, 100)));
				}
				break;
			}
		}
	}
}

function showphoto(e)
{
	var h;
	h = document.getElementById('productMainPhotoImage');
	if (h && e)
		h.src=e;
}

function hidephoto(e)
{
}

function hideTop()
{
	var size = document.getElementById('mainContent').innerHTML.toString().length;
	var h;
	var mx = 3000;
	try
	{
		h = document.getElementById('topofpage');
		if (size < mx)
		{
			if (h)
			{
				h.style.display='none';
				h.style.visibility='hidden';
			}
		}
	}
	catch(e)
	{
	}
}

function hideCategoryBrowser()
{
	var size = document.getElementById('categorybrowser').innerHTML.toString().length;
	var h;
	var mx = 25;
	try
	{
		h = document.getElementById('categorybrowser');
		if (size < mx)
		{
			if (h)
			{
				h.style.display='none';
				h.style.visibility='hidden';
			}
		}
	}
	catch(e)
	{
	}
}

function hideProductBrowser()
{
	var size = document.getElementById('productbrowser').innerHTML.toString().length;
	var h;
	var mx = 25;
	try
	{
		h = document.getElementById('productbrowser');
		if (size < mx)
		{
			if (h)
			{
				h.style.display='none';
				h.style.visibility='hidden';
			}
		}
	}
	catch(e)
	{
	}
}

var NS = (navigator.appName=="Netscape")?true:false;

function FitPic()
{
	var i1 = 55;
	var i2 = 80;
	iWidth = (NS)?window.innerWidth:document.body.clientWidth;
	iHeight = (NS)?window.innerHeight:document.body.clientHeight;
	iWidth2 = document.images[0].width - iWidth;
	iHeight2 = document.images[0].height - iHeight;
	iWidth = (iWidth2>iWidth ? iWidth2 : iWidth);
	iHeight = (iHeight2>iHeight ? iHeight2 : iHeight);
	window.resizeBy(iWidth+i1, iHeight+i2);
	self.focus();
}

function limitText(limitField, limitCount, limitNum)
{
	if (limitField.value.length > limitNum)
	{
		limitField.value = limitField.value.substring(0, limitNum);
	}
	else
	{
		if (limitCount)
			limitCount.value = limitNum - limitField.value.length;
	}
}
