$(document).ready(function(){
$(".gorefs").css("color","#848484");
$(".gorefs a").css("text-decoration","none").css("color","#848484").css({opacity: 1});
$(".gorefs a").hover(function(){$(this).css({ color:"#ffffff" });},function(){$(this).css("color","#848484")});
/*$(".gorefs a").hover(	
	function(){$(this).animate({color:"#ffffff", opacity: 1 }, 500 )},
	function(){$(this).animate({color:"#848484", opacity: 0.6 }, 500 )}
);
*/



$(".selector li , .selector li.active, ").css("background","none");
$(".selector li a").css("color","#848484");
//$(".selector li").hover(function(){$(this).css("background", "url(img/plashka_shadow.png) bottom center no-repeat");})
$(".selector li").hover(function(){$(this).css("background", "url(img/bg_line.png) bottom center no-repeat");})




  $("li#html_t").hover(function(){
	   $("#html_t").attr("class", "active");
	   $("#flash_t").removeAttr("class");
$(".selector li a, .selector li").css("color","#848484").css("background","none");
$(".selector li.active a").css("color","#ffffff");
$(this).css("background", "url(img/bg_line.png) bottom center no-repeat");
	   $("#flash_t").css("z-index", "-10000");
	   $("#html_t").css("z-index", "20000");
	   
	  $("#flash_p").fadeTo("slow", 0.1).css("display", "none");
	   $("#html_p").fadeTo(1500, 0.9);
	   
	});
  $("li#flash_t").hover(function(){
	   $("#flash_t").attr("class", "active");
	   $("#html_t").removeAttr("class");
$(".selector li a, .selector li").css("color","#848484").css("background","none");
$(".selector li.active a").css("color","#ffffff");
$(this).css("background", "url(img/bg_line.png) bottom center no-repeat");

		$("#html_t").css("z-index", "-10000");
	   $("#flash_t").css("z-index", "20000");
	   
	  $("#html_p").fadeTo("slow", 0.1).css("display", "none");
	   $("#flash_p").fadeTo(1500, 0.9);
	});
  
});

function show(obj){
	if(obj == 'html'){
	
	   
	   
		/*aa = document.getElementById('html_p');
		aa.style.display = "block";
		aa = document.getElementById('flash_p');
		aa.style.display = "none";
		aa = document.getElementById('html_t');
		aa.className = "active";
		 
		aa.style.zIndex  = "20000";
		aa = document.getElementById('flash_t');
		aa.className = "";
		aa.style.zIndex  = "-10000";*/
	
	}else{
		/*aa = document.getElementById('flash_p');
		aa.style.display = "block";
		aa = document.getElementById('html_p');
		aa.style.display = "none";
		aa = document.getElementById('flash_t');
		aa.className = "active";
		aa.style.zIndex  = "20000";
		aa = document.getElementById('html_t');
		aa.className = "";
		aa.style.zIndex  = "-10000";*/
	}
	
	
	
}

