function ScanCookie(variable)
   {
    cook = document.cookie;
    variable += "=";
    place = cook.indexOf(variable,0);
    if (place <= -1)
        return("0" );
    else
       {
        end = cook.indexOf(";",place)
        if (end <= -1) return(unescape(cook.substring(place+variable.length,cook.length)));
        else return(unescape(cook.substring(place+variable.length,end)));
       }
   }
function CreationCookie(nom,valeur,permanent)
   {
    if(permanent)
       {
        dateExp = new Date(2020,11,11);
        dateExp = dateExp.toGMTString();
            ifpermanent = '; expires=' + dateExp + ';';
       }
    else
        ifpermanent = '';
    document.cookie = nom + '=' + escape(valeur) + ifpermanent;
   }
if(ScanCookie("dejapopup")==0)
   {
    $.getScript("js/disclamer.js");
   }
   
$(document).ready( function() {
	$('.acteurs').each( function() {
		var new_cycle_id = $(this).attr('id').substr(3);
		$("#sc_"+new_cycle_id).cycle({ 
			fx:     'blindX', 
			speed:  750, 
			timeout: 0, 
			next:   '.nx_'+new_cycle_id,
			prev:   '.pv_'+new_cycle_id
		});
	});
	
	$('.acteurs2').each( function() {
		var new_cycle_id = $(this).attr('id').substr(3);
		$("#sc_"+new_cycle_id).cycle({ 
			fx:     'blindX', 
			speed:  750, 
			timeout: 0, 
			next:   '.nx_'+new_cycle_id,
			prev:   '.pv_'+new_cycle_id
		});
	});	
});

