jQuery (function (){
	
	
	$(".widget_body ul li").hover(
		function () {
			if ($.browser.mozilla){
				$(this).addClass("mouse_over");
			}
		}, 
		function () {
			if ($.browser.mozilla){ $(this).removeClass("mouse_over"); }
		}
	);
	
	
	$(".widget").each (function(){
		$(this).find("ul li:odd").css ("margin-left","6px");
	})
	
	$(".copyright").corner ("bl br round 6px")
	if (!jQuery.browser.msie){
		$(".button").corner("6px");
	}
	//$(".show-thumb .imagePreview").corner ("5px");
	$(".round_pane .round_Preview .round_Inside .round_Inside2").corner("round 5px").parent().css('padding', '1px').corner("round 6px");
	
	//$(".fotNav a, .fotNav span").corner ("6px");
	
	/*var content = $("#content").height();
	var mainObj = $("#main-wrap").height();
	var postObj = $("#post-sidebar").height ();//Getting AdSpace
	var widgetS = $("#wrap-widget").height ();
	var adSpace = content - mainObj; //Getting AdSpace
	var postTag = mainObj-postObj;
	var metaHeight = content-widgetS;
	
	$("#wrap-one").height(mainObj-10)
	$("#wrap-tags").height(postTag-26);
	//$("#wrap-meta").height (metaHeight-60);*/


	$("#tab-1").css({position: 'absolute', zIndex: 4, left: "-340px"});
	$("#tab-2").css({position: 'absolute', zIndex: 4, left: "-340px"});
	$("#tab-3").css({position: 'absolute', zIndex: 4, left: "-340px"});
	$("#img2").animate({opacity: "hide"}, 1);
	$("#img3").animate({opacity: "hide"}, 1);
	
	var i=4;
	var k=5;
	var j=20;
	
	$("#tabs").find(".label").each(function(ii) {
		$("#label-" + (ii+1)).hover(function(x){
			if($("#tab-1").hasClass("animated")!=true && $("#tab-2").hasClass("animated")!=true && $("#tab-3").hasClass("animated")!=true){
				$("#tab-" + (ii+1)).addClass("animated");
				$("#label-1").css({zIndex: ++j});
				$("#label-2").css({zIndex: ++j});
				$("#label-3").css({zIndex: ++j});
				$("#tab-1").css({zIndex: ++k});
				$("#tab-2").css({zIndex: ++k});
				$("#tab-3").css({zIndex: ++k});
				$("#img" + (ii+1)).css({zIndex: ++i});
				if (ii!=0) {
					$("#img1").animate({opacity: "hide"}, 300);
				}
				if (ii!=1) {
					$("#img2").animate({opacity: "hide"}, 300);
				}
				if (ii!=2) {
					$("#img3").animate({opacity: "hide"}, 300);
				}
				$("#img" + (ii+1)).animate({opacity: "show"}, 300, "swing",  function(){$("#tab-" + (ii+1)).removeClass("animated");});
				$("#tab-" + (ii+1)).animate({left: "0px"}, 300);
			}
		},function(x){
			$("#tab-" + (ii+1)).animate({left: "-340px"}, 300);
		})
	});




	
})