var $j = jQuery.noConflict();
$j(function(){
	 $j(".mainMenu ul > li").hover(function () {
	   $j(this).addClass("DDhover");
       }, 
      function () {
	   $j(this).removeClass("DDhover");
	   }  
    );
   $j(".mainMenu ul > li:first-child").hover( function () {	  	
		$j(this).addClass("DDOpen");
      }, 
      function () {
	  	$j(this).removeClass("DDOpen");
	   }  
    );
  
  	/******* fixing the relative position in ie ********/
	 if ($j.browser.msie) {
		var zIndexNumber = 1000;
		$j('div').each(function() {
			$j(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 10;
		});
	 }
	//$j("body").append('<div class="to-the-top"><a href="#to-the-top">Top</a></div>')
		
	/*$j('.to-the-top a[href*=#to-the-top]').click(function() {						
				if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
				&& location.hostname == this.hostname) {
				var $jtarget = $j(this.hash);
				$jtarget = $jtarget.length && $jtarget
				|| $j('[name=' + this.hash.slice(1) +']');
				if ($jtarget.length) {
				var targetOffset = $jtarget.offset().top;
				$j('html,body')
				.animate({scrollTop: targetOffset}, 1000);
				return false;
			}
		}
	});*/

});


