/*
$(document).ready(function() {

	$("ul#topnav li").hover(function() { 
	$(this).css({ 'background' : 'url(images/menu-li-hover.jpg) no-repeat'}); 
	$(this).find("span").slideDown('fast'); 

} , function() { 

	$(this).css({ 'background' : 'none'});
	$(this).find("span").slideUp('slow');

});
	$("#topnav li:first-child a").css('background-image','none')

	

    $('#image_news_2').hide();
	$('#image_news_3').hide();

	

    $('.slide-rotator').cycle({

		fx: 'fade' 

	});

	

});

*/


function GE(id){ return document.getElementById(id);}

var last=1;



function changePicture(next)

{

	if(next!=last){

		$('#image_news_'+last).animate({width: 'hide' },function(){});

			$('#image_news_'+next).animate({opacity: 'show' });		

		last=next;

		}

}

/*    
    $(function() {
        $('.lightbox').lightBox();
    });
*/

function show_section(id)
{
	if(document.getElementById("section_"+id).style.display!="none")
	{
		document.getElementById("section_"+id).style.display = "none";
		document.getElementById("img_"+id).src = "/bitrix/templates/PD_copy/images/arrow.gif";
	}
	else
	{
		document.getElementById("section_"+id).style.display = "block";
		document.getElementById("img_"+id).src = "/bitrix/templates/PD_copy/images/arrowup.gif";
	}
}
