if(typeof(slideProduction_included) == 'undefined'){
	var slideProduction_included=1;
	Event.observe(window, 'load', initSlide);
}

function initSlide(event) {

	if($$('div.slideProduction').length==0) return; // Test inclusion

	listeElement = $$('li.tx-a1teasermenu-pi1');
	for (i=0;i<listeElement.length;i++) {
		//Event.observe(listeElement[i],'mouseover', mouseOv);
		if(i==0) {
			Event.observe(listeElement[i],'mouseover', function(){
				mouseOutAll();
				el = $('item_1');
				element =el.up('li');
				element.addClassName('act');
				child = element.descendants();
				child_2 = child[1];
				child_2.show();
			});
		}
		if(i==1) {
			Event.observe(listeElement[i],'mouseover', function(){
				mouseOutAll();
				el = $('item_2');
				element =el.up('li');
				element.addClassName('act');
				child = element.descendants();
				child_2 = child[1];
				child_2.show();
			});
		}
		if(i==2) {
			Event.observe(listeElement[i],'mouseover', function(){
				mouseOutAll();
				el = $('item_3');
				element =el.up('li');
				element.addClassName('act');
				child = element.descendants();
				child_2 = child[1];
				child_2.show();
			});
		}
		if(i==3) {
			Event.observe(listeElement[i],'mouseover', function(){
				mouseOutAll();
				el = $('item_4');
				element =el.up('li');
				element.addClassName('act');
				child = element.descendants();
				child_2 = child[1];
				child_2.show();
			});
		}
		if(i==4) {
			Event.observe(listeElement[i],'mouseover', function(){
				mouseOutAll();
				el = $('item_5');
				element =el.up('li');
				element.addClassName('act');
				child = element.descendants();
				child_2 = child[1];
				child_2.show();
			});
		}
	}
	listeElement[0].addClassName('act');

}

function mouseOutAll() {
	for(inc=1;inc<6;inc++) {
		theId = 'item_'+inc;
		el=$(theId);
		elem =el.up('li');
		elem.removeClassName('act');
		//alert(elem.descendants());
		//child = elem.descendants();

		//child_2 = child[1];

		el.hide();
	}
}


function mouseOv(event) {
	if(event.currentTarget) {
		var element = $(event.currentTarget);
	} else if(window.event.srcElement) {
		var element = event.srcElement
	} else {
		return false;
	}
	mouseOut();
	element.addClassName('act');
	child = element.childElements();
	child_2 = child[1];
	child_2.show();
}

function mouseOut() {
	listeElement_2 = $$('li.tx-a1teasermenu-pi1');
	for (j=0;j<listeElement_2.length;j++) {
		listeElement_2[j].removeClassName('act');
		child = listeElement_2[j].childElements();
		child_2 = child[1];
		child_2.hide();
	}
}
