$(document).ready(function() {
	$(".odd tr, .odd > div, .odd > li, .even tr, .even > div, .even > li").hover(function() {
		$(this).addClass("hover");
	}, function() {
		$(this).removeClass("hover");
	});

	$("table.odd").find('tr:odd').addClass("oddEven");
	$("table.even").find('tr:even').addClass("oddEven");

	$("ol.odd").find('li:odd').addClass("oddEven");
	$("ol.even").find('li:even').addClass("oddEven");
	
	$("div.odd").find('>div:odd').addClass("oddEven");
	$("div.even").find('>div:even').addClass("oddEven");

	$("#validate").validate({
		wrapper : "p",
		rules: {
			nospam_pflicht: {
				required: true,
				remote: "/nospam/process.php"
			}
		},
		messages: {
			nospam_pflicht: "Bitte geben Sie den richtigen Sicherheitscode ein."	
		}
	});
});
hs.graphicsDir = '/highslide/graphics/';
hs.align = 'center';
hs.transitions = [ 'expand', 'crossfade' ];
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'controls-in-heading';
hs.fadeInOut = true;
// hs.dimmingOpacity = 0.75;

// Add the controlbar
if (hs.addSlideshow)
	hs.addSlideshow({
		// slideshowGroup: 'group1',
		interval : 5000,
		repeat : false,
		useControls : true,
		fixedControls : false,
		overlayOptions : {
			opacity : 1,
			position : 'top right',
			hideOnMouseOut : false
		}
	});
