function toggleDiv(target) {
	var divi = document.getElementById(target);
	if(divi.style.display == "") {
		divi.style.display = "none";
	}
	else {
		divi.style.display = "";
	}
}

function ConfirmDelete(the_url)
{
	if (confirm("Really delete?"))
	{
		window.location.href=the_url;
	}
}


// >SCROLLER>

$(document).ready(
	function() {
		var slider = $('#scrollerWrapper');
		document.moveNext = function () {
			if (slider.data('moving')) return;
				var firstItem = $('#scrollerWrapper div.scrollerItem').get(0);
				slider.data('moving',true).animate(
					{ top: -firstItem.offsetHeight },1000, 'linear',
						function () {
							//move fist to last & reset offset
							slider.data('moving',false).append(firstItem).css( { top: '0px' } ) ;
						}
				);
		};

		$('#pushTop').click(
			function () {
				clearInterval(document.moveInt);
				document.moveNext();
			}
		);
		
		$('#pushBottom').click(
			function () {
				if (document.moveInt) clearInterval(document.moveInt);
					if (slider.data('moving')) return;
						var lastItem = $('#scrollerWrapper div.scrollerItem').get(2);
							slider
							.data('moving',true)
							.prepend(lastItem)
							.css( { top: -lastItem.offsetHeight+"px" } )
							.animate(
							{ top: 0 },1000, 'linear',
								function () {
									slider.data('moving',false);
								}
							);
			}
		);


		if (document.moveInt) clearInterval(document.moveInt);
			document.moveInt = setInterval( "document.moveNext()", 7000) ;
	}
);




// </SCROLLER>