

$(document).ready(function() {
	
	$('div#sfeerbeelden').innerfade({
		speed: 3000,
		timeout: 3000,
		type: 'random_start',
		containerheight: '204px'
	});
	
	  $().piroBox({
      my_speed: 300, //animation speed
      bg_alpha: 0.5, //background opacity
      radius: 4, //caption rounded corner
      scrollImage : false, // true == image follows the page _|_ false == image remains in the same open position
                           // in some cases of very large images or long description could be useful.
      slideShow : 'true', // true == slideshow on, false == slideshow off
      slideSpeed : 3, //slideshow duration in seconds(3 to 6 Recommended)
      pirobox_next : 'piro_next', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
      pirobox_prev : 'piro_prev', // Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
      close_all : '.piro_close' // add class .piro_overlay(with comma)if you want overlay click close piroBox
      });
	
	Cufon.replace('h1');
	Cufon.replace('#fotokader a', { hover: true });
	Cufon.replace('div.contactgegevens');
	
	document.getElementById('sfeerbeelden').style.display = 'block';
});



function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

 
function StopFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	if(flashMovie)
	{
		flashMovie.StopPlay();
	}
}
 
function PlayFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	
	if(flashMovie)
	{
		flashMovie.Play();
	}
	//embed.nativeProperty.anotherNativeMethod();
}
 
function RewindFlashMovie()
{
	var flashMovie=getFlashMovieObject("myFlashMovie");
	
	if(flashMovie)
	{
		flashMovie.Rewind();
	}
}

function RePlayFlashMovie()
{
	PlayFlashMovie();
}
 
