
	// jquery scripts
	$(document).ready(function () {

		// lightbox laten werken
		$('a.lightbox').lightBox();
		
		$('#slideshow').cycle({ 
		    fx:    'fade', 
		    speed:  3000,
		    pause: 	1 
		 });


		$("a.prettyPhoto").prettyPhoto();
		$("a#prettyphotofiframe").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 5, /* padding for each side of the picture */
				opacity: 0.35, /* Value betwee 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
				callback: function(){}
			
		});

		 
		// als er een videoplayer container is, mag de player worden aangeroepen.
		if ( $("#videoplayer").length > 0 ) {
			createPlayer(sInitialVideo);
		}	

		$("div#foto-albums ul li.albumNormal").mouseover(function(){
			if($(this).attr('class') == 'albumNormal'){
				$(this).css("background-color","#3A7113");
			}
		});	
		
		$("div#foto-albums ul li.albumNormal").mouseout(function(){
			if($(this).attr('class') == 'albumNormal'){
				$(this).css("background-color","#55A417");
			}
		});

		$("div#foto-albums ul li").click(function(){
			if($(this).attr('class') == 'albumNormal'){
				$(this).css("background-color","#55A417");

				
				$("div#foto-albums ul li.albumActive").addClass("albumNormal");
				$("div#foto-albums ul li.albumActive").css("background-color","");			
		        $("div#foto-albums ul li.albumActive").removeClass("albumActive");
		        				
				
		        $(this).removeClass("albumNormal");
		        $(this).addClass("albumActive");
		        
		        var sAlbumid = $(this).attr('id');
		        var iAlbumid = sAlbumid.substr(6);
		        
		        showAlbum(iAlbumid);
		        			
			}
		});			
  
	});
	
	function showAlbum(iId){
		$('div.foto-thumbs').hide();
		$('div#thumbs-'+ iId).show();
	}

	// player object aanmaken en plaatsen
	function createPlayer(sFile) {
		if(sFile == undefined || sFile == '')
		{
			sFile = sInitialVideo;
		}
		else 
		{
			sFile = sFile;
		}

		var flashvars = {
			file:"http://www.artiestenreizen.com/upload/video/"+ sFile, 
			autostart:"true"
		}
		var params = {
			allowfullscreen:"true", 
			allowscriptaccess:"always"
		}
		var attributes = {
			id:"player1",  
			name:"player1"
		}
		swfobject.embedSWF("swf/mediaplayer.swf", "videoplayer", "610", "363", "9.0.115", false, flashvars, params, attributes);
	}

	// video wijzigen
	function changeVid(mediaURL)
	{
        var player = document.getElementById("player1");
        player.sendEvent("LOAD", mediaURL);
	}	
	
	// Cufon('h1')('h2')('#mainmenu ul li a')('#submenu ul li a');	
