// JavaScript Document
function update_slide()
	{ 	var iframe_source ='<iframe src="slideshow.php" frameborder="0" vspace="0" marginheight="0" marginwidth="0"';
	iframe_source += 'scrolling="no"	height="580" width="1018" ></iframe>';
		$("#slide_show").html(iframe_source);
	 }
	 
function goTO(targets)
{
	if ( targets == "contact" )
	{
		$("#content" ).animate({ 
        marginTop:"-850px"
      }, 1000 );
	$("#header" ).hide();
	return false;
	}
	
	if ( targets == "home" )
	{
		$("#content" ).animate({ 
        marginTop:"0px"
      }, 1000 );	
	$("#header" ).show();
	return false;
	}
	
}
function slideSwitch() {
    var $active = $('#voorbeeld IMG.active');

    if ( $active.length == 0 ) $active = $('#voorbeeld IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#voorbeeld IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 6000, function() {
            $active.removeClass('active last-active');
        });
    
		
		
}

function colorSwitcth(obj,color1,color2)
{
	
$(obj).animate({ Color: color1 }, 7000);
$(obj).animate({ Color: color2 }, 7000);
	
}


function switch_now(divid)
{
	var $active = $('#voorbeeld IMG.active');

    if ( $active.length == 0 ) $active = $('#voorbeeld IMG:last');

    // use this to pull the images in the order they appear in the markup
    
		$active.addClass('last-active');
		divid = "#" + divid;
	 
    $(divid).css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

