var render = function(block) {
    var simple = new Leap.App.Ext.Simple({});
        simple.render(block);
    var fancybox = new Leap.App.Ext.Fancybox({
        overlayOpacity	: 0.5,
        overlayColor    : '#000'
    });
        fancybox.render(block);
}


Leap.App.Run(new Leap.App.Ext.Slider({
    animationGap      : 40,
    animationSpeed    : 1000,
    slideshowDelay    : 5000    // Set "0" for stop slide show
}));

Leap.App.Run(new Leap.App.Ext.Cusel({
    visRows : 4, // Visible rows
    scrollArrows : true, // Show arrows
    arrowSize : 20 // Arrows height
}));

Leap.App.Run(new Leap.App.Ext.Simple({}));
Leap.App.Run(new Leap.App.Ext.Fancybox({
    overlayOpacity	: 0.5,
    overlayColor    : '#000'
}));

Leap.App.Run(new Leap.App.Ext.Carousel({
    'vertical' : {	
        vertical    : true,
        textScroll  : true,
        mousewheel  : true,   
        visible     : 3, 
        scroll      : 1, 
        animation   : 900
    }
    , 'photos-list' : {
        visible		: 3,
        scroll		: 2,
        animation	: 600,
        mousewheel 	: true,
        callback	: function(){
            var gallery = new Leap.App.Ext.Gallery({});
                gallery.load();
        }
    }
}));

Leap.App.Run(new Leap.App.Ext.Scroller({
    animationSpeed    : 1000
}));

Leap.App.Run(new Leap.App.Ext.Borders({
    wrapperPad    : 10,
    borderSource  : 'templates/default/img/backgrounds/border',
    cornerWidth   : 20,
    cornerHeight  : 20 
}));

Leap.App.Run(new Leap.App.Ext.Gallery({}));
Leap.App.Run(new Leap.App.Ext.Forms({}));
Leap.App.Run(new Leap.App.Ext.Shedule({}));
