// JavaScript Document
window.addEvent('domready',function(){
	
	/* Jó tudni */
	if($chk($('jo-tudni')))
	{
	var jo_tudni = new Fx.Tween('jo-tudni', {property: 'color', duration: 'normal'});
	
	$('jo-tudni').addEvent('mouseover', function(){
		jo_tudni.cancel();
		jo_tudni.start('#009900');
	})
	
	$('jo-tudni').addEvent('mouseout', function(){
		jo_tudni.cancel();
		jo_tudni.start('#725232');
	});
	}
	
	/* Belső tér */
	if($chk($('belso-ter')))
	{
	var belso_ter = new Fx.Tween('belso-ter', {property: 'color', duration: 'normal'});
	
	$('belso-ter').addEvent('mouseover', function(){
		belso_ter.cancel();
		belso_ter.start('#009900');
	})
	
	$('belso-ter').addEvent('mouseout', function(){
		belso_ter.cancel();
		belso_ter.start('#725232');
	});
	}
	
	/* Mi a matyó? */
	if($chk($('mi-a-matyo')))
	{
	var mi_a_matyo = new Fx.Tween('mi-a-matyo', {property: 'color', duration: 'normal'});
	
	$('mi-a-matyo').addEvent('mouseover', function(){
		mi_a_matyo.cancel();
		mi_a_matyo.start('#009900');
	})
	
	$('mi-a-matyo').addEvent('mouseout', function(){
		mi_a_matyo.cancel();
		mi_a_matyo.start('#725232');
	});
	}
	
	/* Óra */
	var oraLink = new Fx.Tween('oraLink', {property: 'color', duration: 'normal'});
	
	$('oraLink').addEvent('mouseover', function(){
		oraLink.cancel();
		oraLink.start('#009900');
	})
	
	$('oraLink').addEvent('mouseout', function(){
		oraLink.cancel();
		oraLink.start('#000000');
	});
	
	/* Kézi vagy gépi? */
	if($chk($('kezi-vagy-gepi')))
	{
	var kezi_vagy_gepi = new Fx.Tween('kezi-vagy-gepi', {property: 'color', duration: 'normal'});
	
	$('kezi-vagy-gepi').addEvent('mouseover', function(){
		kezi_vagy_gepi.cancel();
		kezi_vagy_gepi.start('#009900');
	})
	
	$('kezi-vagy-gepi').addEvent('mouseout', function(){
		kezi_vagy_gepi.cancel();
		kezi_vagy_gepi.start('#725232');
	});
	}
	
	/* Népművészet */
	if($chk($('nepmuveszet')))
	{
	var nepmuveszetLink = new Fx.Tween('nepmuveszet', {property: 'color', duration: 'normal'});
	
	$('nepmuveszet').addEvent('mouseover', function(){
		nepmuveszetLink.cancel();
		nepmuveszetLink.start('#009900');
	})
	
	$('nepmuveszet').addEvent('mouseout', function(){
		nepmuveszetLink.cancel();
		nepmuveszetLink.start('#725232');
	});
	}
	
	/* Rólunk */
	if($chk($('rolunkLink')))
	{
	var rolunkLink = new Fx.Tween('rolunkLink', {property: 'color', duration: 'normal'});
	
	$('rolunkLink').addEvent('mouseover', function(){
		rolunkLink.cancel();
		rolunkLink.start('#009900');
	})
	
	$('rolunkLink').addEvent('mouseout', function(){
		rolunkLink.cancel();
		rolunkLink.start('#725232');
	});
	}
	
	/* Garancia */
	var garanciaLink = new Fx.Tween('garancia', {property: 'color', duration: 'normal'});
	
	$('garancia').addEvent('mouseover', function(){
		garanciaLink.cancel();
		garanciaLink.start('#009900');
	})
	
	$('garancia').addEvent('mouseout', function(){
		garanciaLink.cancel();
		garanciaLink.start('#725232');
	});
});
