<!--

function confirm_del(del_script,text)
{
	if (confirm(text))
	{
		parent.location = del_script;
	}
}
/////////////////////////////
// Для слайдшоу
function slideSwitch() {
    var $active = $('#slideshow IMG.active');
// Или так, чтобы не по кругу
//    var $next = $active.next();
// Или так, чтобы по кругу
	if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
	var $next =  $active.next().length ? $active.next() : $('#slideshow IMG:first');
	$active.addClass('last-active');
	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 1000, function() {	$active.removeClass('active last-active'); });
}

$(function() { setInterval( "slideSwitch()", 5000 ); });
/////////////////////////////
function OpenWindow(url,width,height,scroll)
{
	agent = navigator.userAgent;
	windowName = "big";
	params = "";
	params += "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars="+scroll+",";
	params += "resizable=1,";
	params += "width="+width+",";
	params += "height="+height+",";
	params += "screenX=300,";
	params += "screenY=300,";
	params += "left=100,";
	params += "top=100";
	win = window.open(url, windowName , params);
		if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1)	{
				win = window.open(url, windowName , params);
		}
		if (win.opener == null)	{
				win.opener = window;
		}
	win.focus();
} // end of OpenWindow function

//-->

