$(function() { /*  <!-- This source code/ webpage is property of Reload.lt, šis puslapis yra Reload.lt nuosavybe. --> */
if (navigator.appName != "Microsoft Internet Explorer") {
	var i = 0;
	
	$("#navigation li a").each(function(){
		$(this).children("span").delay(i * 150).animate({
			paddingTop: "12px",
			backgroundPosition: "100% 8px",
			color: "#003366"
		}, 'fast');
		$(this).delay(i * 150).animate({
			backgroundPosition: "0 8px"
		}, 'fast');
		$(this).children("span").children("span").delay(i * 149).animate({
			backgroundPosition: "50% -4px"
		}, 190);
		i++;
	}).each(function() {
		if ($(this).parent("li").hasClass("active")) {
			} else {
				$(this).children("span").delay(i * 70).animate({
					paddingTop: "18px",
					backgroundPosition: "100% 45px",
					color: "#000"
				}, 'fast');
				$(this).delay(i * 70).animate({
					backgroundPosition: "0 45px"
				}, 'fast');
				$(this).children("span").children("span").delay(i * 71).animate({
					backgroundPosition: "50% 30px"
				}, 190);
				i++;
			}
	});
	
	$("#navigation li a").hover(function() {
			if ($(this).parent("li").hasClass("active")) {
				
			} else {
				$(this).children("span").stop().animate({
					paddingTop: "12px",
					backgroundPosition: "100% 8px",
					color: "#003366"
				}, 'fast');
				$(this).stop().animate({
					backgroundPosition: "0 8px"
				}, 'fast');
				$(this).children("span").children("span").stop().animate({
					backgroundPosition: "50% -4px"
				}, 190);
			};
		}, function() {
			if ($(this).parent("li").hasClass("active")) {
				
			} else {
				$(this).children("span").stop().animate({
					paddingTop: "18px",
					backgroundPosition: "100% 45px",
					color: "#000"
				}, 'fast');
				$(this).stop().animate({
					backgroundPosition: "0 45px"
				}, 'fast');
				$(this).children("span").children("span").stop().animate({
					backgroundPosition: "50% 30px"
				}, 190);
			};
		});
	}	
	$("#page_in #comments ul li:odd").each(function() {
			$(this).addClass("odd");
		});
	$("#page_in #comments ul li:last").css({"borderBottom" : "none"});
	$("#langs li a").css({"opacity" : .4}).hover(function() {
			$(this).stop().animate({ opacity: "1"});
		}, function() {
			$(this).stop().animate({ opacity: ".4"});
		});
});
