/*--Coded by Alain Beaumier at Montréal,03/08/2003--*/ 
function show(id) 
{
	if (document.layers) document.layers[id].visibility = "show"
	else if (document.all) document.all[id].style.visibility = "visible"
	else if (document.getElementById) document.getElementById(id).style.visibility = "visible"
}

function hide(id) 
{
	if (document.layers) document.layers[id].visibility = "hide"
	else if (document.all) document.all[id].style.visibility = "hidden"
	else if (document.getElementById) document.getElementById(id).style.visibility = "hidden"
}

function LW(url, width, height,name) 
{
	if(url == '') return
	window_style = "left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + width + ",height=" + height
	win = window.open(url, name, window_style)
}

function LW2(url, width, height,name) 
{
	if(url == '') return
	window_style = "left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + width + ",height=" + height
	win = window.open(url, name, window_style)
}

function LW3(url, width, height,name) 
{
	if(url == '') return
	window_style = "left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height
	win = window.open(url, name, window_style)
}

function RequestOptions(){show('RequestOptions');setTimeout("hide('RequestOptions')", 7000)}

var msgPub = 'Thunderstruck the ultimate tribute to AC/DC ....   Thunderstruck, l\'ultime hommage à AC/DC ...'
var msgPub, msgPubb, chaine = "", chainePart, delaiPub, pub
function status_pub(delai) 
{
	delaiPub = delai
	if (chaine.length == 0) 
	{
		chaine = " "
		msgPubb = msgPub
		chainePart = ""
	}
	else if (chaine.length == 1) 
	{
		while (msgPubb.substring(0, 1) == " ") 
		{
			chainePart += chaine
			chaine = msgPubb.substring(0, 1)
			msgPubb = msgPubb.substring(1, msgPubb.length)
		}
		chainePart += chaine
		chaine = msgPubb.substring(0, 1)
		msgPubb = msgPubb.substring(1, msgPubb.length)
	}
	else chaine = chaine.substring(10, chaine.length)
	
	window.status = chainePart + chaine
	pub = window.setTimeout('status_pub(delaiPub)',delai)
}

var cie = "© 2003 SWEBMASTER INC."

if (document.layers) document.captureEvents(Event.MOUSEDOWN)
document.onmousedown = click

function click(z) 
{
	if (document.all) {if (event.button == 2 || event.button == 3) {alert(cie);return false}}
	if (document.layers) {if (z.which == 3) {alert(cie);return false}}
}

/*==Functions pour ovrir les menus==*/
var od = 1	
var cr = 100
var wIE = 100
var wNS = 100

function IOB()
{	
	show('HomeBut');show('AboutBut');show('PhotosBut');show('ContactBut');show('EnglishBut')
	if (document.all){CPIE.style.visibility = "visible";wIE = OBIE.style.pixelWidth;setInterval("OpenButIE()",50)}
	if (document.layers){wNS = document.CPNS.document.OBNS.clip.width;document.CPNS.document.OBNS.clip.right = 100;setInterval("OpenButNS()",50)}
}

function OpenButIE(){OBIE.style.clip = "rect(0 " + cr + " auto 0)";if (cr <= wIE) cr -= wIE / (od * 20)}
function OpenButNS(){if (cr <= 100){document.CPNS.document.OBNS.clip.right = cr;cr -= wNS / (od * 20)}}
/*==Fine des functions pour ouvrir les menus==*/	

/*==Début des functions fr et en pour afficher la date==*/
function PrintDate()
{
	var Today = new Date()
	var fullyear = Today.getFullYear()
	var daymonth = Today.getDate()
	var currentmonth = MonthTxT(Today.getMonth() + 1)
	var dayofweek = DayTxT(Today.getDay() + 1)
	var allofit = dayofweek + " le " + daymonth + " " +currentmonth + ", " + fullyear
	return allofit
}

function MonthTxT(MonthNumber)
{
	var Month = new Array()
	Month[1] =  "Janvier"
	Month[2] =  "Fevrier"
	Month[3] =  "Mars"
	Month[4] =  "Avril"
	Month[5] =  "Mai"
	Month[6] =  "Juin"
	Month[7] =  "Juillet"
	Month[8] =  "Août"
	Month[9] =  "Septembre"
	Month[10] = "Octobre"
	Month[11] = "Novembre"
	Month[12] = "Decembre"
	return Month[MonthNumber]
}

function DayTxT(DayNumber)
{
	var DayofWeek = new Array()
	DayofWeek[1] = "Dimanche"
	DayofWeek[2] = "Lundi"
	DayofWeek[3] = "Mardi"
	DayofWeek[4] = "Mercredi"
	DayofWeek[5] = "Jeudi"
	DayofWeek[6] = "Vendredi"
	DayofWeek[7] = "Samedi"
	return DayofWeek[DayNumber]
}

function PrintDateEn()
{
	var Today = new Date()
	var fullyear = Today.getFullYear()
	var currentmonth = MonthTxTEn(Today.getMonth() + 1)
	var dayofweek = DayTxTEn(Today.getDate())
	var allofit = currentmonth + " " + dayofweek + " " + fullyear
	return allofit
}

function MonthTxTEn(MonthNumber)
{
	var Month = new Array()
	Month[1] =  "January"
	Month[2] =  "Febriary"
	Month[3] =  "Mars"
	Month[4] =  "April"
	Month[5] =  "May"
	Month[6] =  "June"
	Month[7] =  "July"
	Month[8] =  "August"
	Month[9] =  "September"
	Month[10] = "October"
	Month[11] = "November"
	Month[12] = "December"
	return Month[MonthNumber]
}

function DayTxTEn(DayNumber)
{
	var DayofWeek = new Array()
	DayofWeek[1] = "1st"
	DayofWeek[2] = "2nd"
	DayofWeek[3] = "3td"
	DayofWeek[4] = "4th"
	DayofWeek[5] = "5th"
	DayofWeek[6] = "6th"
	DayofWeek[7] = "7th"
	DayofWeek[8] = "8th"
	DayofWeek[9] = "9th"
	DayofWeek[10] = "10th"
	DayofWeek[11] = "11th"
	DayofWeek[12] = "12th"
	DayofWeek[13] = "13th"
	DayofWeek[14] = "14th"
	DayofWeek[15] = "15th"
	DayofWeek[16] = "16th"
	DayofWeek[17] = "17th"
	DayofWeek[18] = "18th"
	DayofWeek[19] = "19th"
	DayofWeek[20] = "20th"
	DayofWeek[21] = "21th"
	DayofWeek[22] = "22th"
	DayofWeek[23] = "23th"
	DayofWeek[24] = "24th"
	DayofWeek[25] = "25th"
	DayofWeek[26] = "26th"
	DayofWeek[27] = "27th"
	DayofWeek[28] = "28th"
	DayofWeek[29] = "29th"
	DayofWeek[30] = "30th"
	DayofWeek[31] = "31th"					
	return DayofWeek[DayNumber]
}
/*==Fin des functions pour afficher la date==*/