jQuery.noConflict();
jQuery(document).ready(function() {
  var newsOverX;
  jQuery("a > img").parent().addClass('img');
  jQuery("ul#languages li:first-child").addClass("first-child");
  jQuery("ul.subsection li:first-child").addClass("first-child");

  jQuery("div#recent_news").append("<div id='left'></div><div id='right'></div>");
  jQuery('div#recent_news span#text').marquee('marquee');
//  jQuery('div#recent_news span#text').marquee('marquee').mouseout(function () {
//      newsOverX = 0;
//      jQuery(this).trigger('unpause');
//  }).mousemove(function (event) {
//    jQuery(this).trigger('pause');
//    if (event.clientX - newsOverX < -1) {
//      this.scrollLeft -= (event.clientX - newsOverX)*4;
//    } else if (event.clientX - newsOverX > 1) {
//      this.scrollLeft += (newsOverX - event.clientX)*4;
//    }
//    newsOverX = event.clientX;
//  }).mouseover(function (event) {
//    newsOverX = event.clientX;
//  });  

  jQuery("ul.menu li.notactive b").each(function() {
    jQuery(this).hide();
  });
  
  jQuery("ul.menu li.notactive").hover(function() {
    jQuery(this).children("b").width(jQuery(this).width() + 30);
    jQuery(this).children("b").fadeIn("fast");
  }, function() {
    jQuery(this).children("b").fadeOut("fast");
    jQuery(this).children("b").hide();
  });
  
  
  jQuery("ul.menu li").click(function() {
    document.location.href = jQuery(this).children("a").attr("href");
    
  });
  

  jQuery("div#recent_news").hover(function() {
    jQuery(this).children(" span#date").children("a").stop();
    jQuery(this).children(" span#date").children("a").animate({ 
        opacity: 1
    }, 250 );
  }, function() {
    jQuery(this).children(" span#date").children("a").stop();
    jQuery(this).children(" span#date").children("a").animate({ 
        opacity: 0.4
    }, 250 );
  });
  
  
  
  jQuery("div.inside div.center_footer ul.sub_menu li.sub_menu_item:first-child").css("border-left", 0);
  
  jQuery("ul.menu").parent().children("div.center_footer_bottom_part").css("top", 44);
  
  jQuery("ul.sub_menu li:first-child").css("border-left", 0);
  jQuery("ul.sub_menu").parent().children("div.center_footer_bottom_part").css("top", 85);
  jQuery("ul.sub_menu").parent().parent().children("div.content").css("padding-top", 100);

//  if (jQuery.browser.msie && jQuery.browser.version < 7) {
//
//
//      jQuery("img").each(function() {
//          var imgSrc = jQuery(this).attr('src');
//          if(imgSrc.indexOf(".png")!=-1){
//              jQuery(this).attr('src', imgSrc.replace(/.png$/, '.gif'));
//          }
//      });
//
//      jQuery(this).find("*").each(function(){
//          var bgIMG = jQuery(this).css('background-image');
//          if(bgIMG.indexOf(".png")!=-1){
//              jQuery(this).addClass('iepng');
//          }
//      });
//      
//      jQuery("iepng").each(function(){
//          var bgIMG = jQuery(this).css('background-image');
//
//          if(bgIMG.indexOf(".png")!=-1){
//            jQuery(this).css('background-image', bgIMG.replace(/.png$/, '.gif'));
//          }
//      });
//  
//  }


});

