/*
 * FancyBox - jQuery Plugin
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 * 
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 * 
 * Version: 1.3.4 (11/11/2010)
 * Requires: jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

jQuery(document).ready(function() {
	jQuery('#photosjoueur').jcarousel();
	
});

 function mycarousel_initCallback(carousel) {
     jQuery('#mycarousel-next').bind('click', function() {
        carousel.next();
        return false;
    });
 
    jQuery('#mycarousel-prev').bind('click', function() {
        carousel.prev();
        return false;
    });
};
jQuery(document).ready(function() {
    jQuery('#filinfos').jcarousel({
        vertical: true,
		initCallback: mycarousel_initCallback,
        scroll: 4,
		buttonNextHTML: null,
        buttonPrevHTML: null
    });
	
        
        
        
        

            
            $('#select_redirect_url').change(function()
            {
               var url = $(this).attr('value');

               $(location).attr('href',url);


            });
});

$(document).ready(function() {

        $('#partenaires').cycle({

                    fx: 'scrollLeft',

					speed:   300,

					timeout: 3000,

                    cleartypeNoBg: true

            });
});

// Detection iPad iPhone pour FLASH
if(navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i))
  {document.write ('<style type="text/css"><!--#flashheader{display:none;} .flashvid{display:none;}--></style>')
}
else
 document.write('<style type="text/css"><!--#noflashheader{display:none;} .noflashvid{display:none;}--></style>')
