$(function() {
    // run this when the HTML is done downloading

var newsoption1 = {
firstname: "mynews",
secondname: "showhere",
thirdname:"news_display",
fourthname:"news_button",
playingtitle:"En cours:",
nexttitle:"Prochain:",
prevtitle:"Précédent:",
newsspeed:'8000',
effectis:'0'
}
$.init_news(newsoption1);

var myoffset=$('#news_button').offset();

var mytop=myoffset.top-1;

$('#news_button').css({top:mytop});

    $("#MainNA_RL1").hover(
      function () {
        $(".MainNA_RL").css("background","none");
        $(this).css("background-color","#e6e6e6");
        $("#MainNA_Rubriques").css("background","url(/images/homepage_intro_01.jpg) no-repeat");
      }, 
      function () {
       // $(this).find("span:last").remove();
      }
    );
    $("#MainNA_RL2").hover(
      function () {
        $(".MainNA_RL").css("background","none");
        $(this).css("background-color","#e6e6e6");
        $("#MainNA_Rubriques").css("background","url(/images/homepage_intro_02.jpg) no-repeat");      
      }, 
      function () {
       // $(this).find("span:last").remove();
      }
    );
     $("#MainNA_RL3").hover(
      function () {
        $(".MainNA_RL").css("background","none");
        $(this).css("background-color","#e6e6e6");
        $("#MainNA_Rubriques").css("background","url(/images/homepage_intro_03.jpg) no-repeat");
      }, 
      function () {
       // $(this).find("span:last").remove();
      }
    );
    $("#MainNA_RL4").hover(
      function () {
        $(".MainNA_RL").css("background","none");
        $(this).css("background-color","#e6e6e6");
        $("#MainNA_Rubriques").css("background","url(/images/homepage_intro_04.jpg) no-repeat");
      }, 
      function () {
       // $(this).find("span:last").remove();
      }
    ); 
     $("#MainNA_Rubs_Links").hover(
      function () {
      }, 
      function () {
       $(".MainNA_RL").css("background","none");
       $("#MainNA_Rubriques").css("background","url(/images/homepage_intro.jpg) no-repeat");
      }
    );          
});

function CityOffers(incity) {
   $("#inpCity").val(incity);

}	
