
	$(document).ready(function()
	{
		//hide the object with blink effect  
		$("#blink_out").click(function()
		{
			$("#object").fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100);
		});
		//show the object with blink effect  
		$("#blink_in").click(function()
		{
			$("#object").fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
		});
		//bounce an object
		$("#bounce").click(function()
		{
			$("#object").fadeIn(100).animate({top:"-=20px"},100).animate({top:"+=20px"},100).animate({top:"-=20px"},100)
			.animate({top:"+=20px"},100).animate({top:"-=20px"},100).animate({top:"+=20px"},100);

		});
	});

	
	function mycarousel_initCallback(carousel)
	{
		// Disable autoscrolling if the user clicks the prev or next button.
		carousel.buttonNext.bind('click', function() {
			carousel.startAuto(0);
		});

		carousel.buttonPrev.bind('click', function() {
			carousel.startAuto(0);
		});

		// Pause autoscrolling if the user moves with the cursor over the clip.
		carousel.clip.hover(function() {
			carousel.stopAuto();
		}, function() {
			carousel.startAuto();
		});
	};

	jQuery(document).ready(function() {
		jQuery('#mycarousel').jcarousel({
			auto: 4,
			wrap: 'last',
			initCallback: mycarousel_initCallback,
			scroll: 1
		});
	});
/** 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);
}