
// *******************************
// FAQ START
// *******************************
$(document).ready(function(){
    jQuery(".faqtoggle").next(".faqhidden").hide();
    jQuery(".faqtoggle").click(function() {
        $('.active').not(this).toggleClass('active').next('.faqhidden').slideToggle(300);
        $(this).toggleClass('active').next().slideToggle("fast");
    });
});

// *******************************
// FAQ SLUT
// *******************************


// *******************************
// FANEBLADE START
// *******************************
$(document).ready(function(){
$(".fanemenu > li").click(function(e) {
var show = e.target.id;
$(".active").removeClass("active");
$(this).addClass("active");
$(".fanecontent").hide();
$("." + show).fadeIn();
return false;
})
});

// *******************************
// FANEBLADE SLUT
// *******************************

// *******************************
// ZEBRASTRIBER PÅ TABEL START
// *******************************

$(document).ready(function(){
   $("table.TabelZebra tr:nth-child(even)").addClass("zebraulige");
   $("table.TabelZebra tr:nth-child(odd)").addClass("zebralige");

$("table.TabelZebra tr:nth-child(even)").mouseover(function(){
$(this).addClass("zebraon")
});

$("table.TabelZebra tr:nth-child(even)").mouseout(function(){
$(this).removeClass("zebraon")
});

$("table.TabelZebra tr:nth-child(odd)").mouseover(function(){
$(this).addClass("zebraon")
});

$("table.TabelZebra tr:nth-child(odd)").mouseout(function(){
$(this).removeClass("zebraon")
});

});

// *******************************
// ZEBRASTRIBER PÅ TABEL START
// *******************************


// *******************************
// MOUSEOVER PÅ BILLEDER START
// *******************************

$(document).ready(function() {
$("img.highraise").css({opacity:.7}); 						   
$('img.highraise').hover(function(){
		$(this).stop().animate({opacity:1,top:'-5px'},500)
	},function(){
		$(this).stop().animate({opacity:.7,top:0},500)
	})


$('img.highraiseslow').hover(function(){
		$(this).stop().animate({opacity:1,top:'-2px'},200)
	},function(){
		$(this).stop().animate({opacity:1,top:0},200)
	})

});


// *******************************
// MOUSEOVER PÅ EMNEOVERSIGTER SLUT
// *******************************



// *******************************
// GALLERIPOPUP SLUT
// *******************************

	hs.graphicsDir = '/cm-fotoarkiv/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'controls-in-heading';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.85;
 
	// define the restraining box
	hs.useBox = false;
	hs.width = 640;
	hs.height = 480;
	// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 6000,
		repeat: true,
		useControls: true,
		fixedControls: false,
		overlayOptions: {
			opacity: 1,
			position: 'top right',
			hideOnMouseOut: false
		}
	});

// *******************************
// GALLERIPOPUP SLUT
// *******************************


// **********************************************
// DEBAT GEM GRP ABB START
// **********************************************
$(document).ready(function() { 
 $('#abbgem').ajaxForm({ 
    }); 
});
// **********************************************
// DEBAT GEM GRP ABB SLUT
// **********************************************

// **********************************************
// DEBAT GEM EMNE ABB START
// **********************************************
$(document).ready(function() { 
 $('#abbemnegem').ajaxForm({ 
    }); 
});
// **********************************************
// DEBAT GEM EMNE ABB SLUT
// **********************************************


