/**************************************
*  GUI functions tool kit (non obscruptive js)

*  required jQuery
*      
* author:  erational(http://www.erational.org)
* version: 0.1
* date:    201010.10
* licence: GPL 2.0    
***********************************/


$(document).ready(function(){

    
     // slideshow with perso pager
     // http://malsup.com/jquery/cycle/pager3.html
     $('#home_focus_container').cycle({ 
        fx:     'scrollLeft', 
        speed:  'slow', 
        timeout: 5000
    });
          
     /* version 2009 avec pager 
     $('#home_focus_container').cycle({ 
        fx:     'scrollLeft', 
        speed:  'slow', 
        timeout: 5000, 
        pager:  '#home_focus_thumb', 
        pagerAnchorBuilder: function(idx, slide) { 
            // return selector string for existing anchor 
            return '#home_focus_thumb li:eq(' + idx + ') a'; 
        } 
    });
    
    */
    
    // fix z-index conflit between cycle and menu
    // FIXME (cf rte / map_home.js)
    /*
    $('#home_focus_container').css("z-index","12");
    $('#home_focus_container').css("overflow","overflow");
    $('#navbar').css("z-index","9999");
    $('.submenu').css("z-index","9999");
    */

    
});

