function plist_hover(el) { 
	
	// this = element triggering hover :-)
	this.getElement('img.product-list-image-hover').setStyle('display', 'block');
	// Bild 2 einblenden
	if (this.fade_pic) this.fade_pic.stop();
	this.fade_pic = this.getElement('img.product-list-image-normal').effect('opacity', {transition: Fx.Transitions.Cubic.easeInOut, duration:250}).start('0');
	
	// Titel beleuchten
	var t = this.getElement('h2').getElement('a');
	var colors = new Fx.Styles(t, {duration:250});
  	colors.start({
		'background-color': '9a061e',
		'color': '#ffffff',
		'wait': false
  	});
} 

function plist_out(el) {
	// Bild 2 ausblenden
	if (this.fade_pic) this.fade_pic.stop();
	this.fade_pic = this.getElement('img.product-list-image-normal').effect('opacity', {transition: Fx.Transitions.Cubic.easeInOut, duration:250}).start('1');

	// Titel entleuchten
	var t = this.getElement('h2').getElement('a');
	var colors = new Fx.Styles(t, {duration:250});
  	colors.start({
		'background-color': 'd7b369',
		'color': '#2f1e17',
		'wait': false
  	});
	
}


function init_plist_items() {
	var plist_items ;
	plist_items = $$('li.products-list_item');
	plist_items.each(
		function(el) {
			el.addEvent('mouseenter', plist_hover);
			el.addEvent('mouseleave', plist_out);
			el.addEvent('click', function(el) {
				var url = this.getElement('a');
				location.href = url;
			});
			el.setStyle('cursor', 'pointer');
		}
	);
}

window.addEvent('domready', init_plist_items);

