var ord=Math.random()*10000000000000000;


$(document).ready(function(){
	  






/*	$("div#actu div#actu4 div.scrollable").scrollable({

interval: 0,
items: '.items',
clickable: 'false',
hoverClass: 'hover',
speed: 600, 
next: 'div#actu4 span.nav_right',
prev: 'div#actu4 span.nav_left',
size: 1
});  */



 // initialize scrollable  
    $("div#grostitres div.inner div.scrollable").scrollable({ 
        
		speed: 600, 
		vertical:true,
		keyboard: true,
		clickable: 'false',
		disabledClass: 'disabled',
		activeClass: 'sel',
		nextPage: '.scrollDown',
		prevPage: '.scrollUp',
        size: 4
    }).mousewheel(100);
	
	// initialize scrollable  
/*    $("#shopping #shopscroller").scrollable({ 
        
		speed: 600, 
		keyboard: true,
		clickable: 'false',
		loop: true,
		nextPage: '#shopping span.navdot span.suiv',
		prevPage: '#shopping span.navdot span.prec',
        size: 1
    }).navigator({ 
    navi:'ul.navigation',
	activeClass: 'sel'
});*/

	  
	  
	    $("div#grostitres div.inner div.scrollable ul#liste-grostitres li.edito").click(function(){
	
	var charg_img = new String($("div#grostitres div.inner div.scrollable ul#liste-grostitres li.sel img").attr("src"));
	var charg_img = charg_img.replace("small", "big"); 
	
	 $("div#grostitres div.bigcontent").empty();
	 //$("div#grostitres div.bigcontent").append('<a href="'+$("div#grostitres div.inner div.scrollable ul#liste-grostitres li.sel a").attr("href")+'"><img src="'+charg_img+'" alt="Cliquez ici" /></a><span class="content_text"></span><span class="bg_blck"></span>');
	$("div#grostitres div.bigcontent").append('<a href="'+$("div#grostitres div.inner div.scrollable ul#liste-grostitres li.sel a").attr("href")+'"><img src="'+charg_img+'" alt="Cliquez ici" /></a>');
	//$("div#grostitres div.inner div.scrollable ul#liste-grostitres li.sel span.text").clone().insertAfter( $("div#grostitres div.bigcontent a img") );
	//$("div#grostitres div.inner div.scrollable ul#liste-grostitres li.sel span.grandtitle").clone().insertAfter( $("div#grostitres div.bigcontent a img") );
	
	// $("div#grostitres div.inner div.scrollable ul#liste-grostitres li.sel ul.link_sup").clone().insertAfter( $("div#grostitres div.bigcontent span.bg_blck") );
	  
	  
	  return false;
	  
	  });
	  
	 
	 
	 
/*	 $("#actu ul.navbloc li a").click(function(){
	
	
	if($($(this).parent()).attr("class")!="sel"){
	
	$("#actu div.content").css({display: "none"});						
											
	$("#actu ul.navbloc li").removeClass("sel");	
	$($(this).parent()).toggleClass("sel");
											
	var charg_actu = new String($(this).attr("id"));
	var charg_actu = charg_actu.replace("jqy_", ""); 	
	

	
	  $("#"+charg_actu+"").css({display: "block"});	
	
			return false;									
	}
			});*/
	 
	 
	//$("#vod .contenu #vlist ol li a").click(function(){
	
	//if(($(this).parent()).attr("class")!="sel"){
	
	
	//var ongact = new String($(this).attr("id"));
	//var ong_act = ongact.replace("jqy", ""); 
	
	//$("#vod .contenu #vlist ol li.sel").removeClass("sel");
	

	//$("#vod .contenu .I100x150").css({display: "none"});
	
	//$("#vod .contenu " + ong_act +"").fadeIn("slow");
	
	
	
	
	//$($(this).parent()).toggleClass("sel"); return false;
	//}
	
	
	
	//});
 
	 
	 
	  
	  });

