﻿function change(){
	$(".image_text").fadeTo("slow", 0.3).fadeTo("slow", 1.0);
}
function loadingTable() {
	if ($("#links").is(":hidden")) {
		$("#links").slideDown(1000);
	} else {
		$("#links").hide();
	}
}
$(function() {
		$("#links").load("live_/index.php div.block");
		setTimeout("loadingTable()", 2000);
		setInterval("change()", 5000);
		$(window).scroll(function(){
			if($(this).scrollTop() >20 ) {
				$("#mainblock").css("opacity","0.35");

				if(!jQuery.support.opacity){
				$("#mainblock").css("opacity","0.2");
				$("#ordinary").css("opacity","0");
				$("#coverphoto").css("opacity","0.55");
				$("#vertical_scroller_auto").css("opacity","0.55");
				}

				$("body").css("background-image","none");
			}
			if($(this).scrollTop() ==0 ) {
				$("#mainblock").css("opacity","1");

				$("#ordinary").css("opacity","1");
				$("#coverphoto").css("opacity","1");
				$("#vertical_scroller_auto").css("opacity","1");

				$("body").css("background","#000 url(shared/images/bg/alpha/bg_556.png) 0 0 repeat-x fixed");
			}


//	$("#news_000901").css("background-image","url(201191_S.png)");
	$(".anticrime").appendTo("#news_000901"); // check append() examples

		});

		$("#table-live td.log-right").live("mouseover", 
			function(){
				$(this).css("opacity","1")
			}
		);
		$("#table-live td.log-right").live("mouseout", 
			function(){
			//	$("#table-live td").css("opacity","0.7")
				$(this).css("opacity","0.7")
			}
		);

		$(".Reply").colorbox();
		$(".FromHARRY").colorbox({width:"80%", height:"80%", iframe:true});

});

