// JavaScript Document

//newsticker
var newsitems;
var curritem=0;

$(document).ready(function(){
    newsitems = $("#news li").hide().size();
    $("#news li:eq("+curritem+")").show();
    setInterval(ticknews,5000); //time in milliseconds

});

function ticknews() {
    $("#news li:eq("+curritem+")").fadeOut();
    curritem = ++curritem%newsitems;
    $("#news li:eq("+curritem+")").fadeIn();

} 

//lightbox prettyPhotos
$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 40, /* padding for each side of the picture */
				opacity: 0.35, /* Value betwee 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
				callback: function(){}
			});
		});


