onload = function(){
	initSifr();
}

// sIFR
function initSifr(){
	
	if(typeof sIFR == "function"){
		sIFR.replaceElement(named({sSelector:"h2", sWmode: "transparent", sFlashSrc:"/sifr/sifr.swf", sColor:"#665543", sLinkColor:"#3f4140", sBgColor:"#fff"}));
		sIFR.replaceElement(named({sSelector:"span.subTitle", sWmode: "transparent", sFlashSrc:"/sifr/sifr.swf", sColor:"#BE065F", sLinkColor:"#3f4140", sBgColor:"#fff"}));
		sIFR.replaceElement(named({sSelector:"h3.rightContent", sWmode: "transparent", sFlashSrc:"/sifr/sifr.swf", sColor:"#002D56", sLinkColor:"#3f4140", sBgColor:"#fff"}));
	}

}

// Fotoboek, springen naar pagina's
function gotoPageNumber(baseURL, Page){
	window.location = baseURL + Page + "/#scrollDown";
}

$(document).ready( function(){
    $(".question .title:first").parent().children(".answer").slideDown('fast', function(){
        $(this).parent().children(".title").addClass("active");
    });

    
    $(".faq .question .title").click( function(){
        if($(this).hasClass("active")){
            $(this).parent().children(".answer").slideUp('fast', function(){
                $(this).parent().children(".title").removeClass("active");
            });
        }else{
            $(".active").parent().children(".answer").slideUp('fast', function(){
                $(this).parent().children(".title").removeClass("active");
            });
            
            $(this).parent().children(".answer").slideDown('fast', function(){
                $(this).parent().children(".title").addClass("active");
            });
        }
    });
});
