/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


jQuery(document).ready(function() {
    // Initialize Galleria
    jQuery('#galleria').galleria();
    
    //IMAGE LOADER
    jQuery('.imgload').preloadImages({
        showSpeed: 2000,   // length of fade-in animation, 500 is default
        easing: 'easeOutQuad'   // optional easing, if you don't have any easing scripts - delete this option
    });

    // GENERAL SLIDER
    jQuery('.slider-items').after('<div id="jcycle-pager" class="jcycle-pager">').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        timeout: 8000,
        speed: 2000,
        pager:  '#jcycle-pager',
        easing: 'easeInOutExpo'
    });

    jQuery( "#tabs" ).tabs({ fx: { opacity: 'toggle' } });

})

Cufon.replace('h1, h4, .ddsmoothmenu ul li a, .teaser-text, .teaser-rm a, .huvaari-chiglel a', {
    fontFamily: 'MonFnt12',
    hover: true
});

ddsmoothmenu.init({
    mainmenuid: "smoothmenu1", //menu DIV id
    orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    classname: 'ddsmoothmenu', //class added to menu's outer DIV
    //customtheme: ["#1c5a80", "#18374a"],
    contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

