<!-- This JavaScript code is created by n.schneider PhotoSmart.ch // -->
<!-- Hide script from old browsers
<!-- 
var message="Copyright © Photo Smart\n\nVous n'avez pas l'authorisation de copier le contenu de ce site! Envoyer un e-mail pour obtenir l'image désirée.\n\nYou do not have permission to copy these images please e-mail me and ask for the picture you want "; // Message for the alert box

function click(e) {
 if (document.all) {
  if (event.button !=1) {
   alert(message); 
   return false; 
  } 
 } if (document.layers) {
  if (e.which !=1) {
   alert(message); 
   return false; 
  } 
 } 
} if (document.layers) {
 document.captureEvents(Event.MOUSEDOWN); 
} document.onmousedown=click; 

function changes(Image, citem ,Msg) {
 counter = citem;
 if (document.images) return changeits(broot,Image,counter, Msg);
}

function book() {
 document.write(nbook);
 return nbook;
}

function changeits(Name,Image,No,Msg) {
 for (cn=0; cn<=(pic_total); cn++) {
  if (cn==No) {
   iw = document.images[Name + cn].width;
   if (iw == 180) {
    //*document.images[Name + "h" + No].src = "../../images/all/pth.gif";
    //*document.images[Name + "b" + No].src = "../../images/all/pt.gif";
    //*document.images[Name + No].width = 45;
    //*document.images[Name + No].height = 67;
    //*document.images[Name + No].border = 1;
   }
   if (iw == 45) {
    document.images[Name + "h" + No].src = "../../images/all/ChevaletHaut.gif"
    document.images[Name + "b" + No].src = "../../images/all/ChevaletBas.gif"
    document.images[Name + No].src = eval(Image + No + '.src');
    document.images[Name + No].width = 180;
    document.images[Name + No].height = 270;
    document.images[Name + No].border = 3;
   }
   if (iw == 67) {
    document.images[Name + "h" + No].src = "../../images/all/ChevaletHauth.gif"
    document.images[Name + "b" + No].src = "../../images/all/ChevaletBas.gif"
    document.images[Name + No].src = eval(Image + No + '.src');
    document.images[Name + No].width = 270;
    document.images[Name + No].height = 180;
    document.images[Name + No].border = 3;
   }
  }
  else {
   iw = document.images[Name + cn].width;
   if (iw==180) {
    document.images[Name + "h" + cn].src = "../../images/all/pth.gif";
    document.images[Name + "b" + cn].src = "../../images/all/pt.gif";
    document.images[Name + cn].width = 45;
    document.images[Name + cn].height = 67;
    document.images[Name + cn].border = 1;
   }
   if (iw==270) {
    document.images[Name + "h" + cn].src = "../../images/all/pthh.gif";
    document.images[Name + "b" + cn].src = "../../images/all/pt.gif";
    document.images[Name + cn].width = 67;
    document.images[Name + cn].height = 45;
    document.images[Name + cn].border = 1;
   }
  }
 }
 if (Msg) self.status = eval(Image + '3');
  return true
}

/** This is high-level function.
 * It must react to delta being more/less than zero.
 */
function handle(delta) {
  if (delta < 0) {
  	var left = 180 + document.body.scrollLeft;
//alert(document.body.scrollLeft);
//alert(left);
  	parent.frames["principal"].scrollTo(left,0); /* scroll the right frame to the position of this frame */

	}
  else {
  	var right = -180 + document.body.scrollLeft;
//alert(right);
  	parent.frames["principal"].scrollTo(right,0); /* scroll the left frame to the position of this frame */
	}
}

/** Event handler for mouse wheel event.
 */
function wheel(event){
        var delta = 0;
        if (!event) /* For IE. */
                event = window.event;
        if (event.wheelDelta) { /* IE/Opera. */
                delta = event.wheelDelta/120;
                /** In Opera 9, delta differs in sign as compared to IE.
                 */
                if (window.opera)
                        delta = -delta;
        } else if (event.detail) { /** Mozilla case. */
                /** In Mozilla, sign of delta is different than in IE.
                 * Also, delta is multiple of 3.
                 */
                delta = -event.detail/3;
        }
        /** If delta is nonzero, handle it.
         * Basically, delta is now positive if wheel was scrolled up,
         * and negative, if wheel was scrolled down.
         */
        if (delta)
                handle(delta);
        /** Prevent default actions caused by mouse wheel.
         * That might be ugly, but we handle scrolls somehow
         * anyway, so don't bother here..
         */
        if (event.preventDefault)
                event.preventDefault();
	event.returnValue = false;
}

/** Initialization code. 
 * If you use your own event management code, change it as required.
 */
if (window.addEventListener)
        /** DOMMouseScroll is for mozilla. */
        window.addEventListener('DOMMouseScroll', wheel, false);
/** IE/Opera. */
window.onmousewheel = document.onmousewheel = wheel;


