/** menu rollover */
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/** fiche produit */

Nom = navigator.appName;

if (Nom == 'Microsoft Internet Explorer') 
{
	var hauteur = document.body.offsetHeight;
	var largeur = document.body.offsetWidth;
}
else
{
	var hauteur = window.innerHeight;
	var largeur = window.innerWidth;
}
var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
var userAgent=navigator.appName + " " + navigator.appVersion;
var agentInfo=userAgent.substring(0, 12);

if(agentInfo >= "Netscape 4.0")
{
	window.captureEvents(Event.MOUSEMOVE);
	function mouveA(evnt) 
	{
		Xpos = evnt.pageX;
		Ypos = evnt.pageY;
	}
	window.onMouseMove = mouveA;
	document.onmousemove = mouveA;
}
else 
{
	function mouveB() 
	{
		ofy = document.body.scrollTop;ofx = document.body.scrollLeft;
		Xpos = event.clientX;
		Ypos = event.clientY;
	}
	document.onmousemove = mouveB;
}

var init_marquee = true;
var tid;
function marquee_move()
{
	obj_marquee = document.getElementById('curscroll');
	if(Xpos > obj_marquee.offsetWidth/2) {
	obj_marquee.direction = "left";
	obj_marquee.scrollamount = '2';
	if (Xpos > ((obj_marquee.offsetWidth/2)+(obj_marquee.offsetWidth/4)))obj_marquee.scrollamount = '4';
	} else {
	document.getElementById('curscroll').direction = "right";
	obj_marquee.scrollamount = '2';
	if (Xpos < ((obj_marquee.offsetWidth/2)-(obj_marquee.offsetWidth/4)))obj_marquee.scrollamount = '4';
	}
		tid=setTimeout('marquee_move()',5);
}

function marquee_stop() 
{
	obj_marquee = document.getElementById('curscroll');
	clearTimeout(tid);
	obj_marquee.scrollAmount = '2';
}

function montrer(cheminPhoto)
{
	document.getElementById("Photo1").src = cheminPhoto;
}

function montrer_photo1(cheminPhoto)
{
	document.getElementById("Photo1").src = cheminPhoto;
}

function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func)
{
	var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);
}