function cd_position(p){
	position_x = (navigator.appName.indexOf("Netscape")!=-1 )? p.pageX : event.clientX+document.documentElement.scrollLeft;
	position_y = (navigator.appName.indexOf("Netscape")!=-1) ? p.pageY : document.documentElement.scrollTop+event.clientY;
}

function cd_Om()
{
  var menu = document.getElementById("menuClicDroit");
    menu.style.position = 'absolute';
    menu.style.left = position_x+"px";
    menu.style.top = position_y+"px";
	  menu.style.visibility = "visible";
  //console.log(menu.innerLeft);
	return(false);
}

function cd_Fm()
{
	document.getElementById("menuClicDroit").style.visibility = "hidden";
}

function cd_addFav()
{
	if (document.all){
		window.external.AddFavorite(location.href, document.title);
	}else{
		alert("");
	}
}

function cd_recommander(){
	window.open("recommander.php","recommander","width=800,height=600,scrollbars=yes,status=no,resizable=yes");
}

function cd_Om2(btn)
{
	if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2)
	{
		cd_Om();
		return false;
	}
	else if ( (navigator.appName.indexOf("Netscape")!=-1 ) && btn.which == 3)
	{
		cd_Om();
		return false;
	}
}

//if(navigator.appName.indexOf("Netscape")!= -1) document.captureEvents(Event.MOUSEMOVE);

document.onmousemove = cd_position;
document.onmousedown = cd_Om2;
document.oncontextmenu = cd_Om;
document.onclick = cd_Fm;


var num=0, num2=0, num3=0, num4=0, num5=0, num6=0, num7=0, num8=0, num9=0, num10=0, num11=0, nbim=0;
function changer() {
switch(nbim){
case 1 :
if (num == 0) {
num = 1;
document.image.src = "arthemis/apercu_a_la_conquete_d_arthemis.jpg";// grande image
document.image.width = 620;
document.image.height = 977;
}
else {
num = 0;
document.image.src = "arthemis/apercu_a_la_conquete_d_arthemis.jpg";// petite image
document.image.width = 150;
document.image.height = 236;
}
break;
case 2 :
if (num2 == 0) {
num2 = 1;
document.image2.src = "arthemis/la_potion1.jpg";// grande image
document.image2.width = 400;
document.image2.height = 472;
}
else {
num2 = 0;
document.image2.src = "arthemis/la_potion1.jpg";// petite image
document.image2.width = 100;
document.image2.height = 118;
}
break;
case 3 :
if (num3 == 0) {
num3 = 1;
document.image3.src = "arthemis/la_premiere_phase1.jpg";// grande image
document.image3.width = 400;
document.image3.height = 171;
}
else {
num3 = 0;
document.image3.src = "arthemis/la_premiere_phase1.jpg";// petite image
document.image3.width = 100;
document.image3.height = 43;
}
break;
case 4 :
if (num4 == 0) {
num4 = 1;
document.image4.src = "arthemis/la_deuxieme_phase1.jpg";// grande image
document.image4.width = 400;
document.image4.height = 119;
}
else {
num4 = 0;
document.image4.src = "arthemis/la_deuxieme_phase1.jpg";// petite image
document.image4.width = 100;
document.image4.height = 30;
}
break;
case 5 :
if (num5 == 0) {
num5 = 1;
document.image5.src = "arthemis/la_troisieme_phase1.jpg";// grande image
document.image5.width = 400;
document.image5.height = 268;
}
else {
num5 = 0;
document.image5.src = "arthemis/la_troisieme_phase1.jpg";// petite image
document.image5.width = 100;
document.image5.height = 67;
}
break;
case 6 :
if (num6 == 0) {
num6 = 1;
document.image6.src = "arthemis/la_quatrieme_phase1.jpg";// grande image
document.image6.width = 400;
document.image6.height = 268;
}
else {
num6 = 0;
document.image6.src = "arthemis/la_quatrieme_phase1.jpg";// petite image
document.image6.width = 100;
document.image6.height = 67;
}
break;
case 7 :
if (num7 == 0) {
num7 = 1;
document.image7.src = "arthemis/manette1.jpg";// grande image
document.image7.width = 400;
document.image7.height = 236;
}
else {
num7 = 0;
document.image7.src = "arthemis/manette1.jpg";// petite image
document.image7.width = 100;
document.image7.height = 59;
}
break;
case 8 :
if (num8 == 0) {
num8 = 1;
document.image8.src = "arthemis/les_as_du_challenge1.jpg";// grande image
document.image8.width = 400;
document.image8.height = 232;
}
else {
num8 = 0;
document.image8.src = "arthemis/les_as_du_challenge1.jpg";// petite image
document.image8.width = 100;
document.image8.height = 58;
}
break;
case 9 :
if (num9 == 0) {
num9 = 1;
document.image9.src = "arthemis/flute1.jpg";// grande image
document.image9.width = 400;
document.image9.height = 268;
}
else {
num9 = 0;
document.image9.src = "arthemis/flute1.jpg";// petite image
document.image9.width = 100;
document.image9.height = 67;
}
break;
case 10 :
if (num10 == 0) {
num10 = 1;
document.image10.src = "arthemis/la_barque1.jpg";// grande image
document.image10.width = 400;
document.image10.height = 268;
}
else {
num10 = 0;
document.image10.src = "arthemis/la_barque1.jpg";// petite image
document.image10.width = 100;
document.image10.height = 67;
}
break;
case 11 :
if (num11 == 0) {
num11 = 1;
document.image11.src = "arthemis/la_corde1.jpg";// grande image
document.image11.width = 400;
document.image11.height = 537;
}
else {
num11 = 0;
document.image11.src = "arthemis/la_corde1.jpg";// petite image
document.image11.width = 100;
document.image11.height = 134;
}
break;
}
}