$(function() {
	$('.expandable tr:odd').addClass("odd");
	$('.expandable tr:not(.odd)').hide();
	$('.expandable tr:first-child').show();
	$('.expand').click(function() {
	if( $(this).hasClass('hidden') )
		$('img', this).attr("src", "../js/jExpand/down.gif");
	else 
		$('img', this).attr("src", "../js/jExpand/up.gif");
	$(this).toggleClass('hidden');
	$(this).parent().next().toggle();
	});
	$('img.showHide').click(function() {
	var metaContentLang = $('meta[http-equiv=Content-Language]').attr("content")
	if( metaContentLang == 'en-gb' ) {
		if( $(this).hasClass('hidden') )
			$(this).attr({src: '../icons/show.gif', title: 'show further details'});
		else 
			$(this).attr({src: '../icons/hide.gif', title: 'hide further details'});
		}
	else if( metaContentLang == 'fr' ) {
		if( $(this).hasClass('hidden') )
			$(this).attr({src: '../icons/show.gif', title: 'afficher plus d\'informations'});
		else 
			$(this).attr({src: '../icons/hide.gif', title: 'masquer plus d\'informations'});
		}
	else if( metaContentLang == 'es' ) {
		if( $(this).hasClass('hidden') )
			$(this).attr({src: '../icons/show.gif', title: 'visualizar más información'});
		else 
			$(this).attr({src: '../icons/hide.gif', title: 'tapar más información'});
		}
	else if( metaContentLang == 'it' ) {
		if( $(this).hasClass('hidden') )
			$(this).attr({src: '../icons/show.gif', title: 'show further details'});
		else 
			$(this).attr({src: '../icons/hide.gif', title: 'hide further details'});
		}
	if( $(this).hasClass('hidden') ) {
		$('img', '.expand').attr("src", "../js/jExpand/down.gif");
		$('.expandable tr:not(.odd)').hide();
		$('.expandable tr:first-child').show();
		}
	else {
		$('img', '.expand').attr("src", "../js/jExpand/up.gif");
		$('.expandable tr:not(.odd)').show();
		}
	$(this).toggleClass('hidden');
	});
});

