var $j = jQuery.noConflict();
SlideShow = {
	emptyFunction : function() {},
	pageName : '',
	X1_ad_params : {},

	initialise : function()
	{

		var slides = $j('.pict');
		var slideLi = $j('.list_li');

		var slideshow = slides.nextSlideshow({
			autostart : true,
			staticTime : 6000,
			speed : 0,
			callback : function(idx)
			{

				slideLi.removeClass('activ');
				slideLi.eq(idx).addClass('activ');

			}
		});

		slideLi.bind('mouseenter', function() {
			var idLiHp = $j(this).attr('id').split("-");
			var idx = parseInt(idLiHp[1]);
			slideshow.jumpTo(idx - 1, false);
			slideshow.stop();
		});

		slideLi.bind('mouseleave', function() {
			slideshow.start();
		});
		//filter products
		$j('#hpSelectCat').change(function(){
			url = $j('#hpSelectCat').val();
			if(url!='')
			{
				window.location = url;
			}
		});

	}
}

$j(document).ready(function()
{
	SlideShow.initialise();
});
