/*  * © Albin Carrier for LILHOOT, www.lilhoot.eu - 29 janv. 2010 */

$(document).ready(function(){
	$("#accordion").accordion();

	/*LILHOOT.EU ZOOMHOVER*/
	zoomHover("#index_center_button_01 a", "img", "content/images/index/sticker_2_45x45_59e.png", "content/images/index/sticker_2_70x70_59e.png", "45px", "70px", 300, 250);
	zoomHover("#index_center_button_02 a", "img", "content/images/index/sticker_3_45x45_99e.png", "content/images/index/sticker_3_70x70_99e.png", "45px", "70px", 300, 250);
	zoomHover("#index_center_button_03 a", "img", "content/images/index/sticker_4_45x45_15e.png", "content/images/index/sticker_4_70x70_15e.png", "45px", "70px", 300, 250);
	zoomHover("#index_center_button_04 a", "img", "content/images/index/sticker_5_45x45_9e.png", "content/images/index/sticker_5_70x70_9e.png", "45px", "70px", 300, 250);
});

var flashvars = {};
var params = { wmode: "transparent" };
var attributes = {};
swfobject.embedSWF("default/flash/slideshow_40.swf", "index_left_flash_slides", "300", "360", "9.0.0", "default/flash/expressInstall.swf", flashvars, params, attributes);


/*  * © Albin Carrier for LILHOOT, www.lilhoot.eu - 25 avr. 2010 */

/*--------------------------------------------------------LILHOOT.EU ZOOMHOVER*/

function zoomHover(elt_hover, elt_target, elt_target_src, elt_target_src_zoom, elt_target_w, elt_target_w_zoom, anim_timeup, anim_timedn)
{
	if(browserVersion() == 'IE7')
	{
		$(elt_hover).hover(
			function(){ $(this).find(elt_target).attr("src", elt_target_src_zoom).width(elt_target_w).stop().animate({ width : elt_target_w_zoom, top : 16 }, anim_timeup); },
			function(){ $(this).find(elt_target).attr("src", elt_target_src).width(elt_target_w_zoom).stop().animate({ width : elt_target_w, top : 38 }, anim_timedn); }
		);
	}
	else
	{
		$(elt_hover).hover(
			function(){ $(this).find(elt_target).attr("src", elt_target_src_zoom).width(elt_target_w).stop().animate({ width : elt_target_w_zoom }, anim_timeup); },
			function(){ $(this).find(elt_target).attr("src", elt_target_src).width(elt_target_w_zoom).stop().animate({ width : elt_target_w }, anim_timedn); }
		);
	}
}


