window.addEvent('domready', function() {

	if($("chisiamohome")) chisiamohome();
	if($("prodottihome")) prodottihome();
	if($("dovesiamohome")) dovesiamohome();
	if($("newshome")) newshome();
	if($("referenzehome")) referenzehome();
	if($("contattihome")) contattihome();
	
	
	
	if($("scuderieCorsia")) scuderieCorsia();
	if($("scuderieLinea")) scuderieLinea();
	if($("boxInterni")) boxInterni();
	if($("Maneggi")) Maneggi();
	
	if($("Paddock")) Paddock();
	if($("Modelli")) Modelli();
	if($("recinzioniTondini")) recinzioniTondini();
	if($("Accessori")) Accessori();
});

function chisiamohome()
{
	$$('#chisiamohome a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}



function prodottihome()
{
	$$('#prodottihome a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}



function dovesiamohome()
{
	$$('#dovesiamohome a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}



function newshome()
{
	$$('#newshome a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}



function referenzehome()
{
	$$('#referenzehome a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}



function contattihome()
{
	$$('#contattihome a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}














function scuderieCorsia()
{
	$$('#scuderieCorsia a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}

function scuderieLinea()
{
	$$('#scuderieLinea a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}

function boxInterni()
{
	$$('#boxInterni a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}

function Maneggi()
{
	$$('#Maneggi a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}


function Paddock()
{
	$$('#Paddock a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}

function Modelli()
{
	$$('#Modelli a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}


function recinzioniTondini()
{
	$$('#recinzioniTondini a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}


function Accessori()
{
	$$('#Accessori a img').each(function(item, index) {

		var duration = 500;

		item.addEvent('mouseover', function(){
			this.fade(0.1);
		});

		item.addEvent('mouseout', function(){
			this.fade(1);
		});

	});
}







