$(function() {
    var all_imgs = $('#flash_container img');
    $flash = $('#flash_container');
/*	
    $flash.crossSlide({
        fade: 1,
        variant: true,
        easing: 'easeInOutQuad'
    }, [
        {
            src:  all_imgs[0].src,
            from: '100% 80% 1x',
            to:   '100% 0% 1.5x',
            time: 4
        }, {
            src:  all_imgs[1].src,
            from: 'top left',
            to:   'bottom right 1.5x',
            time: 4
        }, {
            src:  all_imgs[2].src,
            from: '100% 80% 1.5x',
            to:   '80% 0%',
            time: 4
        }, {
            src:  all_imgs[3].src,
            from: '100% 50%',
            to:   '30% 50% 1.5x',
            time: 4
        }
    ]);
*/
    $flash.crossSlide({
		speed: 45,
        fade: 1		
    }, [
        { src:  all_imgs[0].src, dir: 'left' }, 
        { src:  all_imgs[1].src, dir: 'right' }, 
        { src:  all_imgs[2].src, dir: 'left' }, 
        { src:  all_imgs[3].src, dir: 'right' }
    ]);   
   
    if($('#seatmeButton').length > 0) {
        $('#seatmeButton').colorbox({    
			width:"380px",
            height:"510px",
            iframe:true,
            scrolling: false,
            title:'Reserveren restaurant Lavendel'
        });
     }    
});

var curElm = 0;
var timer = 5000;
var targetElms = new Array();
$(function() {

	if($('.tw_tekst').length>0) {
	
		$('.tw_tekst ul li').show();
		
		$('.tw_tekst').vTicker({
		   speed: 2000,
		   pause: 8000,
		   showItems: 1,
		   animation: 'fade',
		   mousePause: true,
		   height: 0,
		   direction: 'down'
		});
		
		//$('.tw_tekst ul li:first').show();
	}
});
