var ord=Math.random()*10000000000000000;


$(document).ready(function(){
	  


var textZommContent="1";
var textLHContent="22";	
var np=3;
textZommContent=parseInt(textZommContent);
	
	
$("a.textZoomOut").livequery('click',function(){

if(np== 2){
$("a.textZoomOut img").css("opacity","0.3");
$("a.textZoomOut").css("cursor","default");
}


if(np>= 2){

textZommContent=textZommContent - 0.1;
textLHContent--;
$("div.articleContent").css("font-size","" + textZommContent.toFixed(1) + "em");
$("div.articleContent").css("line-height","" + textLHContent + "px");  
np--;
$("a.textZoomIn").css("cursor","pointer");
$("a.textZoomIn img").css("opacity","1");
}


return false;
});	





$("a.textZoomIn").livequery('click',function(){


if(np== 5){
$("a.textZoomIn img").css("opacity","0.3");
$("a.textZoomIn").css("cursor","default");
}


if(np<=5){

textZommContent=textZommContent + 0.1;

textLHContent++;


$("div.articleContent").css("font-size","" + textZommContent.toFixed(1) + "em"); 
$("div.articleContent").css("line-height","" + textLHContent + "px");
np++;
$("a.textZoomOut").css("cursor","pointer");
$("a.textZoomOut img").css("opacity","1");
}



 return false;
});	






	$("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
});  
	
	$("div#actu div#actu9 div.scrollable").scrollable({

interval: 0,
items: '.items',
clickable: 'false',
hoverClass: 'hover',
speed: 600, 
next: 'div#actu9 span.nav_right',
prev: 'div#actu9 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: 3
    }).mousewheel(100);
	
// initialize scrollable  
    $("div#grostitres2 div.inner div.scrollable").scrollable({ 
        
		speed: 600, 
		vertical:true,
		keyboard: true,
		clickable: 'false',
		disabledClass: 'disabled',
		activeClass: 'sel',
		nextPage: '.scrollDown',
		prevPage: '.scrollUp',
        size: 3
    }).mousewheel(100);

	  
	  
	    $("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("mini_", ""); 
	var charg_img = charg_img.replace("icons/", ""); 
	
	
	
	 $("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")+'" class=none2><img src="'+charg_img+'" alt="Cliquez ici" /></a><span class="content_text"></span><span class="bg_blck"></span>');
	
	$("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;
	  
	  });
	  
	 
	 $("div#grostitres2 div.inner div.scrollable ul#liste-grostitres li.edito").click(function(){
	  

	
	var charg_img = new String($("div#grostitres2 div.inner div.scrollable ul#liste-grostitres li.sel img").attr("src"));
	var charg_img = charg_img.replace("icons/", ""); 
	
	
	
	
	 $("div#grostitres2 div.bigcontent").empty();
	 $("div#grostitres2 div.bigcontent").append('<a href="'+$("div#grostitres2 div.inner div.scrollable ul#liste-grostitres li.sel a").attr("href")+'" class=none2><img src="'+charg_img+'" alt="Cliquez ici" /></a><span class="content_text"></span><span class="bg_blck"></span>');
	
	$("div#grostitres2 div.inner div.scrollable ul#liste-grostitres li.sel span.text").clone().insertAfter( $("div#grostitres2 div.bigcontent a img") );
	$("div#grostitres2 div.inner div.scrollable ul#liste-grostitres li.sel span.grandtitle").clone().insertAfter( $("div#grostitres2 div.bigcontent a img") );
	
	 $("div#grostitres2 div.inner div.scrollable ul#liste-grostitres li.sel ul.link_sup").clone().insertAfter( $("div#grostitres2 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;
	}
	
	
	
	});
 
	 
	 
	  
	  });
