
/*********************MM functions Start*************************/
// Example:

// simplePreload( '01.gif', '02.gif' ); 

function simplePreload()

{ 

  var args = simplePreload.arguments;

  document.imageArray = new Array(args.length);

  for(var i=0; i<args.length; i++)

  {

    document.imageArray[i] = new Image;

    document.imageArray[i].src = args[i];

  }

}

// * Dependencies * 

// this function requires the following snippets:

// JavaScript/images/switchImage

//

// BODY Example:

// <body onLoad="mySlideShow1.play(); mySlideShow2.play();">

// <img src="originalImage1.gif" name="slide1">

// <img src="originalImage2.gif" name="slide2">

//

// SCRIPT Example:
//french version
var mySlideList1 = ['img0.jpg',
					'img1.jpg',
					'img2.jpg',
					'img3.jpg',
					'img4.jpg',
					'img5.jpg',
					'img6.jpg',
					'img7.jpg',
					'img8.jpg',
					'img9.jpg',
					'img10.jpg',
					'img11.jpg',
					'img12.jpg',
					'img13.jpg',
					'img14.jpg',
					'img15.jpg',
					'img16.jpg',
					'img17.jpg',
					'img18.jpg',
					'img19.jpg',
					'img20.jpg',
					'img21.jpg',
					'img22.jpg',
					'img23.jpg',
					'img24.jpg'];
var mySlideText1 = ['',
					'Kasima, Ma&icirc;tresse de C&eacute;r&eacute;monie Cirque Fantastico, Feria de Le&oacute;n, Mexique, 2006',
					'Kasima, Ma&icirc;tresse de C&eacute;r&eacute;monie Cirque Fantastico, Feria de Le&oacute;n, Mexique, 2006',
					'Kasima, Ma&icirc;tresse de C&eacute;r&eacute;monie Cirque Fantastico, Feria de Le&oacute;n, Mexique, 2006',
					'Rose &agrave; Mexico 2000',
					'Rose, Cirque C&eacute;leste 2000',
					'Rose, Cirque C&eacute;leste 2000',
					'Rose Violoncelliste, Cirque C&eacute;leste 2000',
					'Max Sennet, le Roi du Gag Max Films, 1999',
					'Mabel Norman, Max Sennet, le roi du Gag Max Films, 1999',
					'Robin et Stella S.D.A Productions Montr&eacute;al, 1988-91',
					'Robin et Stella S.D.A Productions Montr&eacute;al, 1988-91',
					'Wumpa&lsquo;s World Cite Am&eacute;rique Montr&eacute;al, 2001 ',
					'Inukjuak, 1999 et 2000',
					'Inukjuak, 1999 et 2000',
					'&Agrave; plein temps, S.D.A Productions, 1984-87',
					'Bilbo le hobbit, Th&eacute;&acirc;tre sans fil, 1978-80',
					'Bilbo le hobbit, Th&eacute;&acirc;tre sans fil, 1978-80',
					'Jolis deuils, Th&eacute;&acirc;tre sans fil, 1978-80',
					'L&lsquo;oiseau vert de Godzi, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'L&lsquo;oeil du dragon, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'L&lsquo;oeil du dragon, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'L&lsquo;oeil du dragon, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'Petit P&eacute;pin parapluie',
					'Petit P&eacute;pin parapluie'];
var mySlideShow1 = new SlideShow(mySlideList1, mySlideText1, 'slide1','slidetextcontainer', 8000, "mySlideShow1","../images/Slides/realisationspassees/");

var mySlideList2 = ['img1.jpg',
					'img2.jpg',
					'img3.jpg',
					'img4.jpg',
					'img5.jpg',
					'img6.jpg',
					'img7.jpg',
					'img8.jpg',
					'img9.jpg',
					'img10.jpg',
					'img11.jpg',
					'img12.jpg',
					'img13.jpg',
					'img14.jpg',
					'img15.jpg',
					'img16.jpg',
					'img17.jpg',
					'img18.jpg',
					'img19.jpg',
					'img20.jpg'];

var mySlideText2 = ['France lors de son exposition &quot;Conte d&lsquo;eau&quot; au Centre de Commerce Mondial de Montr&eacute;al du 4 au 11 novembre 1994',
					'France lors de son exposition &quot;Conte d&lsquo;eau&quot; au Centre de Commerce Mondial de Montr&eacute;al du 4 au 11 novembre 1994',
					'Premier Regard 40x50',
					'Autoportrait 54x72',
					'La Chute',
					'Autoportrait 45x60',
					'Or Liquide 40x50',
					'Rafale 72x54',
					'T&ecirc;te de Trio 54x48',
					'Poussi&egrave;re d&lsquo;&eacute;toiles 40x50',
					'Oc&eacute;an 120x60',
					'Eoiche de Jami&egrave;re 120x60',
					'Noyau 72x54',
					'Les 4 Lunes 120x12',
					'D&eacute;tail des &quot;4 Lunes&quot;',
					'D&eacute;tail des &quot;4 Lunes&quot;',
					'Amalgame immigralion 12x72',
					'Le regard 12x90',
					'D&eacute;tail de &quot;regard&quot;',
					'D&eacute;tail de &quot;regard&quot;',
					'D&eacute;tail de &quot;regard&quot;'];

var mySlideShow2 = new SlideShow(mySlideList2, mySlideText2, 'slide1','slidetextcontainer', 8000, "mySlideShow2","../images/Slides/realisationspicturales/");

//english version
var mySlideList3 = ['img0_e.gif',
					'img1.jpg',
					'img2.jpg',
					'img3.jpg',
					'img4.jpg',
					'img5.jpg',
					'img6.jpg',
					'img7.jpg',
					'img8.jpg',
					'img9.jpg',
					'img10.jpg',
					'img11.jpg',
					'img12.jpg',
					'img13.jpg',
					'img14.jpg',
					'img15.jpg',
					'img16.jpg',
					'img17.jpg',
					'img18.jpg',
					'img19.jpg',
					'img20.jpg',
					'img21.jpg',
					'img22.jpg',
					'img23.jpg',
					'img24.jpg'];

var mySlideText3 = ['',
					'Kasima, MC Fantastico Circus, Feria de Le&oacute;n, Mexico, 2006',
					'Kasima, MC Fantastico Circus, Feria de Le&oacute;n, Mexico, 2006',
					'Kasima, MC Fantastico Circus, Feria de Le&oacute;n, Mexico, 2006',
					'Rose at Mexico 2000',
					'Rose, Cirque C&eacute;leste 2000',
					'Rose, Cirque C&eacute;leste 2000',
					'Rose Violoncelliste, Cirque C&eacute;leste 2000',
					'Max Sennet, le Roi du Gag Max Films, 1999',
					'Mabel Norman, Max Sennet, le roi du Gag Max Films, 1999',
					'Robin et Stella S.D.A Productions Montr&eacute;al, 1988-91',
					'Robin et Stella S.D.A Productions Montr&eacute;al, 1988-91',
					'Wumpa&lsquo;s World Cite Am&eacute;rique Montr&eacute;al, 2001 ',
					'Inukjuak, 1999 et 2000',
					'Inukjuak, 1999 et 2000',
					'&Agrave; plein temps, S.D.A Productions, 1984-87',
					'Bilbo le hobbit, Th&eacute;&acirc;tre sans fil, 1978-80',
					'Bilbo le hobbit, Th&eacute;&acirc;tre sans fil, 1978-80',
					'Jolis deuils, Th&eacute;&acirc;tre sans fil, 1978-80',
					'L&lsquo;oiseau vert de Godzi, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'L&lsquo;oeil du dragon, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'L&lsquo;oeil du dragon, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'L&lsquo;oeil du dragon, Ville de Montr&eacute;al, collaboration avec Paul Buissoneau, 1977-1984',
					'Petit P&eacute;pin parapluie',
					'Petit P&eacute;pin parapluie'];

var mySlideShow3 = new SlideShow(mySlideList3, mySlideText3, 'slide1','slidetextcontainer', 8000, "mySlideShow3","../images/Slides/realisationspassees/");

var mySlideText4 = ['France at her exhibition &quot;Conte d&lsquo;eau&quot; at the Centre de Commerce Mondial of Montreal November 1994',
					'France at her exhibition &quot;Conte d&lsquo;eau&quot; at the Centre de Commerce Mondial of Montreal November 1994',
					'Premier Regard 40x50',
					'Autoportrait 54x72',
					'La Chute',
					'Autoportrait 45x60',
					'Or Liquide 40x50',
					'Rafale 72x54',
					'T&ecirc;te de Trio 54x48',
					'Poussi&egrave;re d&lsquo;&eacute;toiles 40x50',
					'Oc&eacute;an 120x60',
					'Eoiche de Jami&egrave;re 120x60',
					'Noyau 72x54',
					'Les 4 Lunes 120x12',
					'Details of &quot;4 Lunes&quot;',
					'Details of &quot;4 Lunes&quot;',
					'Amalgame immigralion 12x72',
					'Le regard 12x90',
					'Details of &quot;regard&quot;',
					'Details of &quot;regard&quot;',
					'Details of &quot;regard&quot;'];

var mySlideShow4 = new SlideShow(mySlideList2, mySlideText4, 'slide1','slidetextcontainer', 8000, "mySlideShow4","../images/Slides/realisationspicturales/");

function SlideShow(slideList,slideText, imageID, txtID, speed, name,imgpath)          

{

  this.slideList = slideList;
  
  this.slideText = slideText;

  this.image = imageID;
  
  this.txt = txtID;

  this.speed = speed;

  this.name = name;

  this.current = -1;

  this.timer = 0;

  this.imgpath = imgpath;
}

SlideShow.prototype.play = SlideShow_play;  
SlideShow.prototype.pause = SlideShow_pause;
SlideShow.prototype.prev = SlideShow_prev;

function SlideShow_play()       

{

  with(this)

  {

    if(current++ == slideList.length-1) current = 0;

    switchImage(image, imgpath + slideList[current]);
	switchText(txt, slideText[current]);
    clearTimeout(timer);
	window.status = 'Lecture activée';
    timer = setTimeout(name+'.play()', speed);

  }

}

function SlideShow_pause()       

{

  with(this)

  {
    window.status = 'Lecture mis en pause';
	clearTimeout(timer);
  }

}

function SlideShow_prev()       

{

  with(this)
  {
    if(current-- <= 0 ) current = slideList.length-1;
    switchImage(image,imgpath + slideList[current]);
	switchText(txt, slideText[current]);
    clearTimeout(timer);
	window.status = 'Lecture mis en pause';
  }

}

function switchImage(imgName, imgSrc) 

{

  if (document.images)

  {

    if (imgSrc != "none")

    {

      document.images[imgName].src = imgSrc;

    }

  }

}

function switchText(txtName, txtToShow) 

{
	document.getElementById(txtName).innerHTML = txtToShow;
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)

{

  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}

// Example:

// var b = new BrowserInfo();

// alert(b.version); 

function BrowserInfo()

{

  this.name = navigator.appName;

  this.codename = navigator.appCodeName;

  this.version = navigator.appVersion.substring(0,4);

  this.platform = navigator.platform;

  this.javaEnabled = navigator.javaEnabled();

  this.screenWidth = screen.width;

  this.screenHeight = screen.height;

}

var curbrowser = new BrowserInfo();

/*********************MM functions End*************************/

/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array();
menu1[0]='Personnages';
var menu2=new Array();
menu2[0]='Spectacle et num&eacute;ros';
var menu3=new Array();
menu3[0]='Biographie';
var menu4=new Array();
menu4[0]='Liens utiles';
var menu5=new Array();
menu5[0]='Me joindre';
var menu6=new Array();
menu6[0]='Mme Bao et Cosma';
var menu7=new Array();
menu7[0]='Romanche et Chopin';
var menu8=new Array();
menu8[0]='Cosima';
var menu9=new Array();
menu9[0]='Kasima';
var menu10=new Array();
menu10[0]='Romanche';
var menu11=new Array();
menu11[0]='Rose';

//Contents for menu Ang
var menu12=new Array();
menu12[0]='Characters';
var menu13=new Array();
menu13[0]='Performances and acts';
var menu14=new Array();
menu14[0]='Biographies';
var menu15=new Array();
menu15[0]='Useful links';
var menu16=new Array();
menu16[0]='Contact me';
var menu17=new Array();
menu17[0]='Mme Bao and Cosma';
var menu18=new Array();
menu18[0]='Romanche and Chopin';
var menu19=new Array();
menu19[0]='Cosima';
var menu20=new Array();
menu20[0]='Kasima';
var menu21=new Array();
menu21[0]='Romanche';
var menu22=new Array();
menu22[0]='Rose';


		
var disappeardelay=1;  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=-30; //horizontal offset of menu from default location. (0-5 is a good value)
var verticaloffset=20;//vertical offset of menu from default location. (0-5 is a good value)
/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6){
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
document.write('<div id="dropmenudiv1" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
}

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){

if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth,mode,xoffset,yoffset){
if(typeof(xoffset) != 'undefined')
{
	horizontaloffset = xoffset;
}

if(typeof(yoffset) != 'undefined')
{
	verticaloffset = yoffset;
}

if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById("dropmenudiv" + mode);
populatemenu(menucontents)

if (ie4||ns6){
obj.title = "";
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+verticaloffset+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}




