// JavaScript Document

$(document).ready(function(){

		  //hide the all of the element with class lounge_navigation
  $(".secrets_box").hide();
  $(".style_box").hide();
  $(".news_box").hide();
  $(".friends_box").hide();
  $(".secrets_box_fr").hide();
  $(".style_box_fr").hide();
  $(".news_box_fr").hide();
  $(".friends_box_fr").hide();
  
  //make rollover for more link
  	$(".more_secrets").mouseover(function() {
		$(this).removeClass("more_secrets");
		$(this).addClass("more_secrets_over");
	});
	$(".more_secrets").mouseout(function() {
  		$(this).removeClass("more_secrets_over");
		$(this).addClass("more_secrets");
	});
	
	$(".more_style").mouseover(function() {
		$(this).removeClass("more_style");
		$(this).addClass("more_style_over");
	});
	$(".more_style").mouseout(function() {
  		$(this).removeClass("more_style_over");
		$(this).addClass("more_style");
	});
	
	$(".more_news").mouseover(function() {
		$(this).removeClass("more_news");
		$(this).addClass("more_news_over");
	});
	$(".more_news").mouseout(function() {
  		$(this).removeClass("more_news_over");
		$(this).addClass("more_news");
	});
  
  
  	$(".more_friends").mouseover(function() {
		$(this).removeClass("more_friends");
		$(this).addClass("more_friends_over");
	});
	$(".more_friends").mouseout(function() {
  		$(this).removeClass("more_friends_over");
		$(this).addClass("more_friends");
	});
	
	// french
	
	$(".more_secrets_fr").mouseover(function() {
		$(this).removeClass("more_secrets_fr");
		$(this).addClass("more_secrets_over_fr");
	});
	$(".more_secrets_fr").mouseout(function() {
  		$(this).removeClass("more_secrets_over_fr");
		$(this).addClass("more_secrets_fr");
	});
	
	$(".more_style_fr").mouseover(function() {
		$(this).removeClass("more_style_fr");
		$(this).addClass("more_style_over_fr");
	});
	$(".more_style_fr").mouseout(function() {
  		$(this).removeClass("more_style_over_fr");
		$(this).addClass("more_style_fr");
	});
	
	$(".more_news_fr").mouseover(function() {
		$(this).removeClass("more_news_fr");
		$(this).addClass("more_news_over_fr");
	});
	$(".more_news_fr").mouseout(function() {
  		$(this).removeClass("more_news_over_fr");
		$(this).addClass("more_news_fr");
	});
  
  
  	$(".more_friends_fr").mouseover(function() {
		$(this).removeClass("more_friends_fr");
		$(this).addClass("more_friends_over_fr");
	});
	$(".more_friends_fr").mouseout(function() {
  		$(this).removeClass("more_friends_over_fr");
		$(this).addClass("more_friends_fr");
	});
  
  //toggle the div visable or not
  $(".more_secrets").click(function()
  {
    $(".secrets_box").slideToggle(600);
	$(this).text($(this).text() == '++ more' ? '-- less' : '++ more');
  });
  
   $(".more_style").click(function()
  {
    $(".style_box").slideToggle(600);
	$(this).text($(this).text() == '++ more' ? '-- less' : '++ more');
  });
   
    $(".more_news").click(function()
  {
    $(".news_box").slideToggle(600);
	$(this).text($(this).text() == '++ more' ? '-- less' : '++ more');
  });
	
	   $(".more_friends").click(function()
  {
    $(".friends_box").slideToggle(600);
	$(this).text($(this).text() == '++ more' ? '-- less' : '++ more');
  });
	   //french
	   
	 $(".more_secrets_fr").click(function()
  {
    $(".secrets_box_fr").slideToggle(600);
	$(this).text($(this).text() == '++ plus' ? '-- moins' : '++ plus');
  });
  
   $(".more_style_fr").click(function()
  {
    $(".style_box_fr").slideToggle(600);
	$(this).text($(this).text() == '++ plus' ? '-- moins' : '++ plus');
  });
   
    $(".more_news_fr").click(function()
  {
    $(".news_box_fr").slideToggle(600);
	$(this).text($(this).text() == '++ plus' ? '-- moins' : '++ plus');
  });
	
	   $(".more_friends_fr").click(function()
  {
    $(".friends_box_fr").slideToggle(600);
	$(this).text($(this).text() == '++ plus' ? '-- moins' : '++ plus');
  });
  
	

		
});