function stripeTable(t) {
   var i, odd = true;
   for (i=0; i<t.rows.length; i++) {
      t.rows[i].className += odd ? ' odd' : ' even';
      odd = !odd;
      }
   }
function reference_hover(){
	if ($('items'))
	if ($('items').getElements('.ref_list_foto')){
	
	$('items').getElements('.ref_list_foto').addEvent('mouseover', function(e) {
		new Event(e).stop();
		
		var pf = new PulseFade(this,{
		min: .90,
		max: 1,
		duration: 100,
		times: 2
	   });
	  pf.start();
	  
	});
	}
	if ($('ajax_main_update'))
	if ($('ajax_main_update').getElements('.ref_foto')){
	
	$('ajax_main_update').getElements('.ref_foto').addEvent('mouseover', function(e) {
		new Event(e).stop();
		var pf = new PulseFade(this,{
		min: .90,
		max: 1,
		duration: 100,
		times: 2
	   });
	  pf.start();
	  
	});
	}
}

function texty_tooltips(){
window.addEvent('domready', function(){
		if ($('list_admin')){
			
				$('list_admin').getElements('.bub').each(function(item){
						item.addEvent('click', function(e){
							new Event(e).stop();
							return false;
						});
				});
			
			
		}
		var Tips_help = new Tips($$('.tip_text'),{
			
			showDelay: 100,
			hideDelay: 300,
			className: 'tip_text',
			offsets: {'x': 150, 'y': -20},
			fixed: true
	}); 
});
}

function reference_tooltips(){
window.addEvent('domready', function(){
		var Tips_help = new Tips($$('.tip_reference'),{
			showDelay: 100,
			hideDelay: 300,
			className: 'tip_reference',
			offsets: {'x': 150, 'y': -20},
			fixed: true
	}); 
});
}

function carrousel(){
  document.addEvent("domready",function()
{
var options = {
id: 'carrousel',
itemsWrapper: 'listItems',
itemClass: '.item',
mode: 'horizontal',
buttonPrev: 'butPrev',
buttonNext: 'butNext',
fadeIn: true,
hideControls: true,
duration: 'normal'
};
var carrousel = new Carrousel(options);
});
/*
$('butRight').addEvent('click', function(e){
});
*/	

}
