// JavaScript Document
//var v = jQuery.noConflict();
$(document).ready(function() {




/* START MAIN MENU */	

$('#main_menu ul.mlist li').find('a[class]').click(function() {
return false;
});

	$('#main_menu ul.mlist li').hover(
		function() {
			$(this).find('a.m1').addClass("ac1");
			$(this).find('.sub1').fadeIn('fast');

			$(this).find('a.m2').addClass("ac2");
			$(this).find('.sub2').fadeIn('fast');

			$(this).find('a.m3').addClass("ac3");
			$(this).find('.sub3').fadeIn('fast');

			$(this).find('a.m4').addClass("ac4");
			$(this).find('.sub4').fadeIn('fast');

			$(this).find('a.m5').addClass("ac5");
			$(this).find('.sub5').fadeIn('fast');

			$(this).find('a.m6').addClass("ac6");
			$(this).find('.sub6').fadeIn('fast');

		},
		function() {
			$(this).find('a.m1').removeClass("ac1");
			$(this).find('.sub1').fadeOut('fast');

			$(this).find('a.m2').removeClass("ac2");
			$(this).find('.sub2').fadeOut('fast');

			$(this).find('a.m3').removeClass("ac3");
			$(this).find('.sub3').fadeOut('fast');

			$(this).find('a.m4').removeClass("ac4");
			$(this).find('.sub4').fadeOut('fast');

			$(this).find('a.m5').removeClass("ac5");
			$(this).find('.sub5').fadeOut('fast');

			$(this).find('a.m6').removeClass("ac6");
			$(this).find('.sub6').fadeOut('fast');
		}
      );

/* END MAIN MENU */

var activeNews=1;

$('#btext').css('background', 'url(../i/hot_block1.png) no-repeat left top');
/*
$('#hpic2').hide('fast');
$('#hpic3').hide('fast');
*/
$('#hpic2').css('display', 'none');
$('#hpic3').css('display', 'none');

//$('#hpic1').show(fast);
$('.new1').mouseenter(
function() {
	if(activeNews!=1) {
	activeNews=1;
$('.news_pic').fadeOut('slow');
$('#hpic1').fadeIn('slow');
$('#btext').css('background', 'url(../i/hot_block1.png) no-repeat left top');
	}
});

$('.new2').mouseenter(
function() {
	if(activeNews!=2) {
		activeNews=2;
$('.news_pic').fadeOut('slow');
$('#hpic2').fadeIn('slow');
$('#btext').css('background', 'url(../i/hot_block2.png) no-repeat left top');
	}
});

$('.new3').mouseenter(
function() {
	if(activeNews!=3) {
		activeNews=3;
$('.news_pic').fadeOut('slow');
$('#hpic3').fadeIn('slow');
$('#btext').css('background', 'url(../i/hot_block3.png) no-repeat left top');
	}
});

});
