<!-- DEBUT DU SCRIPT -->

/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
imgPath = new Array;
SiClickGoTo = new Array;
if (document.images)
	{
	i0 = new Image;
	i0.src = '/photos/illustration1.jpg';
	SiClickGoTo[0] = "#";
	imgPath[0] = i0.src;
	i1 = new Image;
	i1.src = '/photos/illustration2.jpg';
	SiClickGoTo[1] = "#";
	imgPath[1] = i1.src;
	i2 = new Image;
	i2.src = '/photos/illustration3.jpg';
	SiClickGoTo[2] = "#";
	imgPath[2] = i2.src;
	i3 = new Image;
	i3.src = '/photos/illustration4.jpg';
	SiClickGoTo[3] = "#";
	imgPath[3] = i3.src;
	i4 = new Image;
	i4.src = '/photos/illustration5.jpg';
	SiClickGoTo[4] = "#";
	imgPath[4] = i4.src;
	i5 = new Image;
	i5.src = '/photos/illustration6.jpg';
	SiClickGoTo[5] = "#";
	imgPath[5] = i5.src;
	}
a = 0;
function ejs_img_fx(img)
	{
	if(img && img.filters && img.filters[0])
		{
		img.filters[0].apply();
		img.filters[0].play();
		}
	}

function StartAnim()
	{
	if (document.images)
		{
		document.write('<a href="#" onClick="ImgDest();return(false)"><img src="/photos/1.jpg" alt="&nbsp;" name="defil" class="illustration" style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=100,Duration=1)" /></a>');
		defilimg()
		}
	else
		{
		document.write('<a href="#"><img src="/photos/1.jpg" alt="&nbsp;" class="illustration" /></a>')
		}
	}
function ImgDest()
	{
	document.location.href = SiClickGoTo[a-1];
	}
function defilimg(){
	if (a == 6){
		a = 0;
	}
	if (document.images){
		ejs_img_fx(document.defil)
		document.defil.src = imgPath[a];
		tempo3 = setTimeout("defilimg();", 5000);
		a++;
	}
}

//DD Tab Menu- Last updated April 27th, 07: http://www.dynamicdrive.com
//Only 1 configuration variable below

var ddtabmenu={
	disabletablinks: false, ////Disable hyperlinks in 1st level tabs with sub contents (true or false)?
	currentpageurl: window.location.href.replace("http://"+window.location.hostname, "").replace(/^\//, ""), //get current page url (minus hostname, ie: http://www.dynamicdrive.com/)

definemenu:function(tabid, dselected){
	this[tabid+"-menuitems"]=null
	this.addEvent(window, function(){ddtabmenu.init(tabid, dselected)}, "load")
},

showsubmenu:function(tabid, targetitem){
	var menuitems=this[tabid+"-menuitems"]
 for (i=0; i<menuitems.length; i++){
		menuitems[i].className=""
		if (typeof menuitems[i].hasSubContent!="undefined") {
			document.getElementById(menuitems[i].getAttribute("rel")).style.display="none"
		}
	}
	targetitem.className="current"
	if (typeof targetitem.hasSubContent!="undefined") {
		document.getElementById(targetitem.getAttribute("rel")).style.display="block"
	}
},

isSelected:function(menuurl){
	var menuurl=menuurl.replace("http://"+menuurl.hostname, "").replace(/^\//, "")
	return (ddtabmenu.currentpageurl==menuurl)
},

addEvent:function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)
	var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
	if (target.addEventListener)
		target.addEventListener(tasktype, functionref, false)
	else if (target.attachEvent)
		target.attachEvent(tasktype, functionref)
},

init:function(tabid, dselected){
	var menuitems=document.getElementById(tabid).getElementsByTagName("a")
	this[tabid+"-menuitems"]=menuitems
	for (var x=0; x<menuitems.length; x++){
		if (menuitems[x].getAttribute("rel")){
			this[tabid+"-menuitems"][x].hasSubContent=true
			if (ddtabmenu.disabletablinks)
				menuitems[x].onclick=function(){return false}
		}
		else //for items without a submenu, add onMouseout effect
			menuitems[x].onmouseout=function(){this.className=""}
		menuitems[x].onmouseover=function(){ddtabmenu.showsubmenu(tabid, this)}
		if (dselected=="auto" && typeof setalready=="undefined" && this.isSelected(menuitems[x].href)){
			ddtabmenu.showsubmenu(tabid, menuitems[x])
			var setalready=true
		}
		else if (parseInt(dselected)==x)
			ddtabmenu.showsubmenu(tabid, menuitems[x])
	}
}
}