// JavaScript Document

//SUB MENU//

function ShowTab(intid){

	$(".submenu_wrapper").slideDown("slow");
         
}

function HideTab(intid){

	$(".submenu_wrapper").slideUp("slow");
         
}

//****************************//

//DOC//

function ShowDoc(intid){
	
	$("#divDoc").slideDown("slow");
	$("#btnDoc").fadeOut(500);
  	$("#btnDocActive").fadeIn(500);
}

function HideDoc(intid){
	
	$("#divDoc").slideUp("slow");
	$("#btnDocActive").fadeOut(500);
  	$("#btnDoc").fadeIn(500);
}
//****************************//


//BLOG//

function ShowBlog(intid){
	
	$("#divBlog").slideDown("slow");
	$("#btnBlog").fadeOut(500);
  	$("#btnBlogActive").fadeIn(500);
}

function HideBlog(intid){
	
	$("#divBlog").slideUp("slow");
	$("#btnBlogActive").fadeOut(500);
  	$("#btnBlog").fadeIn(500);
}
//****************************//



//LANGUAGE//

function ShowLanguage(intid){
	
	$("#slideLang").slideDown("slow");
	$("#btnLang").fadeOut(500);
  	$("#btnLangActive").fadeIn(500);
         
}


function HideLanguage(intid){
	
    $("#btnLangActive").fadeOut(500);
  	$("#btnLang").fadeIn(500);
	$("#slideLang").slideUp("slow");
}


//****************************//


//MOVE VIDEO//


function MoveVideoLeft() {
	if ($("#videoBar").css("left")=="-920px"){
		$("#videoBar").animate({ left: "0px" }, 2000);
 
	}
	
	if ($("#videoBar").css("left")=="-1840px"){
		$("#videoBar").animate({ left: "-920px" }, 2000);
 
	}
}



function MoveVideoRight() {
	if ($("#videoBar").css("left")=="0px"){
		$("#videoBar").animate({ left: "-920px" }, 2000);
 
	}
	
	if ($("#videoBar").css("left")=="-920px"){
		$("#videoBar").animate({ left: "-1840px" }, 2000);
 
	}
	
	if ($("#videoBar").css("left")=="-1840px"){
		$("#videoBar").animate({ left: "0px" }, 1500);
 
	}
}

//****************************//


//VIDEO BTN//


function HoverVideoLeft(intid){
  	$("#vla").fadeIn(200);
    $("#vl").fadeOut(200);

}

function HoverVideoRight(intid){
  	$("#vra").fadeIn(200);
    $("#vr").fadeOut(200);

}

function OutVideoLeft(intid){
  	$("#vl").fadeIn(200);
    $("#vla").fadeOut(200);

}

function OutVideoRight(intid){
  	$("#vr").fadeIn(200);
    $("#vra").fadeOut(200);

}
//****************************//







//HEADER//

setTimeout("header2();", 8000);
   
   
function header1(){
    $("#header05").fadeOut(200);
    $("#header01").fadeIn(2000);
	setTimeout("header2();", 8000);
}
function header2(){
    $("#header01").fadeOut(200);
    $("#header02").fadeIn(2000);
    setTimeout("header3();", 8000);
}
function header3(){
    $("#header02").fadeOut(200);
    $("#header03").fadeIn(2000);
    setTimeout("header4();", 8000);
}
function header4(){
    $("#header03").fadeOut(200);
    $("#header04").fadeIn(2000);
    setTimeout("header5();", 8000);
}

function header5(){
    $("#header04").fadeOut(200);
    $("#header05").fadeIn(2000);
    setTimeout("header1();", 8000);
}
//****************************//



//SHOW 01//


function Show1() {
	
		$("#header02").fadeOut(200);
		$("#header03").fadeOut(200);
		$("#header04").fadeOut(200);		
		$("#header05").fadeOut(200);
		$("#header01").fadeIn(200);


}

//****************************//


//SHOW 02//


function Show2() {
	
		$("#header01").fadeOut(200);
		$("#header03").fadeOut(200);
		$("#header04").fadeOut(200);		
		$("#header05").fadeOut(200);
		$("#header02").fadeIn(200);


}

//****************************//


//SHOW 03//


function Show3() {
	
		$("#header01").fadeOut(200);
		$("#header02").fadeOut(200);
		$("#header04").fadeOut(200);		
		$("#header05").fadeOut(200);
		$("#header03").fadeIn(200);


}

//****************************//


//SHOW 04//


function Show4() {
	
		$("#header01").fadeOut(200);
		$("#header02").fadeOut(200);
		$("#header03").fadeOut(200);		
		$("#header05").fadeOut(200);
		$("#header04").fadeIn(200);


}

//****************************//


//SHOW 05//


function Show5() {
	
		$("#header01").fadeOut(200);
		$("#header02").fadeOut(200);
		$("#header03").fadeOut(200);		
		$("#header04").fadeOut(200);
		$("#header05").fadeIn(200);


}

//****************************//













//****************************//


function SetStyleOverviewOver(intId) {

    if ($("#MenuOverview_" + intId).attr("class") == "MenuOverviewOpen") {

    }
    else {
        $("#MenuOverview_" + intId).attr("class", "MenuOverviewOver");
        $("#ImageMenuOverview_" + intId).attr("class", "MenuOverviewImageOver");
        $("#TextMenuOverview_" + intId).attr("class", "MenuOverviewTekstOver");

    }
    
   
}

function SetStyleOverviewOut(intId) {
    if ($("#MenuOverview_" + intId).attr("class") == "MenuOverviewOpen") {

    }
    else {
        $("#MenuOverview_" + intId).attr("class", "MenuOverview");
        $("#ImageMenuOverview_" + intId).attr("class", "MenuOverviewImage");
        $("#TextMenuOverview_" + intId).attr("class", "MenuOverviewTekst");

    }


}






//VIDEO PLAYER//



	    function HideAll() {
	        document.getElementById('transparant_layer').style.display = "none";
	        document.getElementById('popup').style.display = "none";
			document.getElementById('popup_photo').style.display = "none";
	    }
	    
	    function ShowVideo() {
	        document.getElementById('transparant_layer').style.display = "block";
	        document.getElementById('popup').style.display = "block";
	        scroll(0, 0);
	        var so = new SWFObject('player.swf', 'mpl', '470', '350', '9');
	        so.addParam('allowfullscreen', 'true');
	        so.addParam('allowscriptaccess', 'always');
	        so.addParam('wmode', 'opaque');
	        so.addVariable('file', 'flv/Orlyendevoets.flv');
	        //so.addVariable('controlbar', 'none');
	        so.addVariable('image', 'images/bg_videoplayer.gif');
	        so.addVariable('autostart', 'true');
	        so.write('player');
	    }


//****************************//


//PHOTO//


	
	    
	    function ShowPhoto(strFoto) {
	       // document.getElementById('transparant_layer').style.display = "block";
	        //document.getElementById('popup_photo').style.display = "block";

	        $("#transparant_layer").css("display", "block");
	        $(".popup_photo_visual").attr("innerHTML", "<img style='width:750px' src='_images/user/groot/"+strFoto+"' />")
	        $("#popup_photo").css("display", "block");
	        // $("#form1").scrollTo(0, 80);
	    }


//****************************//


