// oddeven.js: add odd or even and odd_hover or even_hover to class oddeven in elements 
// comment: disable doclick moet worden verwijderd of worden verbeterd in geval van lightbox.

$(document).ready(function(){

  $('.eddovon:odd').addClass('odd')
    .mouseover(function(){
      $(this).removeClass('odd');
      $(this).addClass('odd_hover');
    })
    .mouseout(function(){
      $(this).addClass('odd');
      $(this).removeClass('odd_hover');
    })
    .click(function() {
	document.location.href = $('a:first', this).attr('href');
    });

  $('.eddovon:even').addClass('even')
    .mouseover(function(){
      $(this).removeClass('even');
      $(this).addClass('even_hover');
    })
    .mouseout(function(){
      $(this).addClass('even');
      $(this).removeClass('even_hover');
    })
    .click(function() {
	document.location.href = $('a:first', this).attr('href');
    });

});
