if (Cufon) { Cufon.replace('h1', {fontFamily:'HeliosLight'}); }

var scrollIE = true;



$(document).ready(function(){
	/*$('.scroll-pane').jScrollPane({
		showArrows:true, 
		scrollbarWidth:31, 
		dragMaxHeight:54
	});*/
	
	if(ie6) {
		$('.health').hover(function(){
			$(this).addClass('health_hover');
		}, function(){
			$(this).removeClass('health_hover');
		});
		
		$('#main_menu li ul').css('opacity',0.7);
		
		$('.bnt input').hover(function(){
			$(this).css('background', '#bab9b9');
		}, function(){
			$(this).css('background', '#b9ce26');
		}
		);
		
		$('#wallpapers li').hover(function(){
			$(this).find('.img_rnd_br').hide();
			$(this).find('.img_rnd_br_hover').show();
		}, function(){
			$(this).find('.img_rnd_br').show();
			$(this).find('.img_rnd_br_hover').hide();
		}
		);
	}
	// left menu 
	$('.l_menu li').hover(
	function(){
		$(this).stop(true);
		var w = 11 + 15 + $(this).find('a').width();
		$(this).find('span').css('height', 7+$(this).find('a').height());
		$(this).find('span').show();
		
		$(this).find('a').animate({paddingRight:'17px', color:'#fff'}, {duration:300});
		$(this).find('span').animate({width: 10+w }, 300);
		$(this).find('a').animate({paddingRight:'11px'}, {duration:300});
		$(this).find('span').animate({width: w }, 300);
	},function(){
		$(this).find('span').hide();
		$(this).find('a').animate({paddingRight:'7px', color:'#a6a6a6'}, {duration:300});
		$(this).find('span').animate({width: 0}, 300);
		$(this).find('a').animate({paddingRight:'11px'}, {duration:300});
	});
	
	$('#main_menu > ul').children('li').hover(function(){
		var leftOffset = $(this).offset().left - $(this).parent().offset().left;
		$('#menu_sel').stop(true);
		$('#menu_sel').animate({left: leftOffset}, {duration:400, easing:'swing'});

		$(this).find('ul').fadeIn('fast');
	},function(){
		$(this).find('ul').fadeOut('fast');
	}
	);
	
	$(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 5,
		auto:500,
		speed:3000
	});
});


