/*###############################################################################
#  Copyright © 2001-2010 NissR. All Rights Reserved                             #
#  nissr@nissr.com                                                              #
#  http://www.nissr.com                                                         #
#                                                                               #
#  This script is developed and owned by NissR. Any use, any copy, any way of   #
#  modification or redistribution of this script or any part of it without the  #
#  written consent of NissR is strictly prohibited.                             #
#  You may not remove any of these header notices.                              #
###############################################################################*/
vstep=16;
hstep=24;
if (document.all) {
	brows=2 // MSIE 4 DOM
	dddhaut=45;
} else if(document.getElementById) {
	brows=3 // W3C DOM
	dddhaut=38;
} else if (document.layers) {
	brows=1 // NN 4 DOM
	dddhaut=38;
}
function mymove(x,y) {
	if (brows==1) {
		eval("document."+object3+".moveTo(x,y)");
	} else if (brows==2) {
		eval(object3+".style.pixelLeft="+x);
		eval(object3+".style.pixelTop="+y);
	} else {
		eval("document.getElementById('"+object3+"').style.left="+x);
		eval("document.getElementById('"+object3+"').style.top="+y);
	}
}

function myresize(x,y) {
	if (brows==1) {
		eval("document."+object3+".resizeTo(x,y)");
	} else if (brows==2) {
		eval(image3+".width="+x);
		eval(image3+".height="+y);
	} else {
		eval("document.getElementById('"+image3+"').width="+x);
		eval("document.getElementById('"+image3+"').height="+y);
	}
}


function zoomla() {
	if (i<10) {
		i++;
		zwidth +=i*7-5;
		zheight +=i*5-5;
		distduhaut -=vstep;
		distdugauche -=hstep;
		mymove(distdugauche,distduhaut)
		myresize(zwidth,zheight) 
		setTimeout("zoomla()",5);
	} else if (stop==0) {
		distduhaut=dddhaut;
		distdugauche=160;
		zwidth=414;
		zheight=304;
		i=100;
		mymove(distdugauche,distduhaut)
		myresize(zwidth,zheight) 
	}
}
function zoomlafin() {
		stop=1;
		zwidth=1;
		zheight=1;
		distduhaut=190;
		distdugauche=380;
		i=100;
		if (brows==1) {
			eval("document."+object3+".visibility='hide'");
		} else if (brows==2) {
			eval(object3+".style.visibility='hidden'");
		} else {
			eval("document.getElementById('"+object3+"').style.visibility='hidden'");
		}
		mymove(distdugauche,distduhaut)
		myresize(zwidth,zheight) 
	}

function zoomlastart(imageName) {
		distduhaut=190;
		distdugauche=380;
		zwidth=40;
		zheight=40;
		stop=0;
		i=1;
		object3= imageName +  "DescDiv";
		image3= imageName +  "DescImage";
		mymove(distdugauche,distduhaut)
		myresize(zwidth,zheight) 
		if (brows==1) {
			eval("document."+object3+".visibility='show'");
		} else if (brows==2) {
			eval(object3+".style.visibility='visible'");
		} else {
			eval("document.getElementById('"+object3+"').style.visibility='visible'");
		}
		zoomla();
}



function SwapIm(imageName,imageState) {
      var myimage = eval(imageName +  imageState);
      document [ imageName].src = myimage.src;
}

/*###############################################################################
#  Copyright © 2001-2010 NissR. All Rights Reserved                             #
#  nissr@nissr.com                                                              #
#  http://www.nissr.com                                                         #
#                                                                               #
#  This script is developed and owned by NissR. Any use, any copy, any way of   #
#  modification or redistribution of this script or any part of it without the  #
#  written consent of NissR is strictly prohibited.                             #
#  You may not remove any of these header notices.                              #
###############################################################################*/
