var ord=Math.random()*10000000000000000;
var JSD = jQuery.noConflict();


JSD(document).ready(function(){
	  


var textZommContent="1";
var textLHContent="22";	
var np=5;
textZommContent=parseInt(textZommContent);
	
	
JSD("a.textZoomOut").livequery('click',function(){

if(np== 4){
JSD("a.textZoomOut img").css("opacity","0.3");
JSD("a.textZoomOut").css("cursor","default");
}


if(np>= 4){

textZommContent=textZommContent - 0.1;
textLHContent--;
JSD("div.articleContent").css("font-size","" + textZommContent.toFixed(1) + "em");
JSD("div.articleContent").css("line-height","" + textLHContent + "px");  
np--;
JSD("a.textZoomIn").css("cursor","pointer");
JSD("a.textZoomIn img").css("opacity","1");
}


return false;
});	





JSD("a.textZoomIn").livequery('click',function(){


if(np== 7){
JSD("a.textZoomIn img").css("opacity","0.3");
JSD("a.textZoomIn").css("cursor","default");
}


if(np<=7){

textZommContent=textZommContent + 0.1;

textLHContent++;


JSD("div.articleContent").css("font-size","" + textZommContent.toFixed(1) + "em"); 
JSD("div.articleContent").css("line-height","" + textLHContent + "px");
np++;
JSD("a.textZoomOut").css("cursor","pointer");
JSD("a.textZoomOut img").css("opacity","1");
}



 return false;
});	






	JSD("div#actu div#actu4 div.scrollable-v").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
});  
	
	JSD("div#actu div#actu9 div.scrollable-v").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-v  
    JSD("div#grostitres div.inner div.scrollable-v").scrollable({ 
        
		speed: 600, 
		vertical:true,
		keyboard: true,
		clickable: 'false',
		disabledClass: 'disabled1',
		activeClass: 'sel',
		nextPage: '.scrollDown',
		prevPage: '.scrollUp',
        size: 4
    }).mousewheel(100);
	
	// initialize scrollable-v  
    JSD("#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'
});

	  
	  
	    JSD("div#grostitres div.inner div.scrollable-v ul#liste-grostitres li.edito").click(function(){
	  

	
	var charg_img = new String(JSD("div#grostitres div.inner div.scrollable-v ul#liste-grostitres li.sel img").attr("src"));
	var charg_img = charg_img.replace("mini_", "");
	/*var Sous_Chaine = charg_img.substr(-4,4);
	var Pos_Chaine = charg_img.indexOf(Sous_Chaine);
	var Resultat = charg_img.substr(0,Pos_Chaine); 
	var charg_img = Resultat+"-l"+Sous_Chaine;*/
	//alert(res);
	
	
	
	
	 JSD("div#grostitres div.bigcontent").empty();
	 JSD("div#grostitres div.bigcontent").append('<a href="'+JSD("div#grostitres div.inner div.scrollable-v ul#liste-grostitres li.sel a").attr("href")+'"><img src="'+charg_img+'" alt="Cliquez ici"  height="330px" width="465px" /></a><span class="content_text"></span><span class="bg_blck"></span>');
	
	JSD("div#grostitres div.inner div.scrollable-v ul#liste-grostitres li.sel span.text").clone().insertAfter( JSD("div#grostitres div.bigcontent a img") );
	JSD("div#grostitres div.inner div.scrollable-v ul#liste-grostitres li.sel span.grandtitle").clone().insertAfter( JSD("div#grostitres div.bigcontent a img") );
	
	 JSD("div#grostitres div.inner div.scrollable-v ul#liste-grostitres li.sel ul.link_sup").clone().insertAfter( JSD("div#grostitres div.bigcontent span.bg_blck") );
	  
	  
	  return false;
	  
	  });
	  
	 
	 
	 
	 JSD("#actu ul.navbloc li a").click(function(){
	
	
	if(JSD(JSD(this).parent()).attr("class")!="sel"){
	
	JSD("#actu div.content").css({display: "none"});						
											
	JSD("#actu ul.navbloc li").removeClass("sel");	
	JSD(JSD(this).parent()).toggleClass("sel");
											
	var charg_actu = new String(JSD(this).attr("id"));
	var charg_actu = charg_actu.replace("jqy_", ""); 	
	

	
	  JSD("#"+charg_actu+"").css({display: "block"});	
	
			return false;									
	}
			});
	 
	 
	JSD("#vod .contenu #vlist ol li a").click(function(){
	
	if((JSD(this).parent()).attr("class")!="sel"){
	
	
	var ongact = new String(JSD(this).attr("id"));
	var ong_act = ongact.replace("jqy", ""); 
	
	JSD("#vod .contenu #vlist ol li.sel").removeClass("sel");
	

	JSD("#vod .contenu .I100x150").css({display: "none"});
	
	JSD("#vod .contenu " + ong_act +"").fadeIn("slow");
	
	
	
	
	JSD(JSD(this).parent()).toggleClass("sel"); return false;
	}
	
	
	
	});
 
	 
	 
	  
	  });
