
function addLoadEvent(func) {
	var oldonload = window.onload;
	if(typeof window.onload != "function")
		window.onload = func;
	else
		window.onload = function() {
			oldonload();
			func();
		}
}

function initMyMarque(func) {
	marqueeInit({
		uniqueid: 'mycrawler',
		style: {
			'padding': '0px',
			'width': '920px',
			'height':'240px',
			'background': '#e3e0d9',
			'border': '5px solid #e3e0d9'
		},
		inc: 1, //speed - pixel increment for each iteration of this marquee's movement
		mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
		moveatleast: 2,
		noAddedSpace: true,
		neutral: 150,
		savedirection: true
	});
}


LightboxOptions= Object.extend ({
    fileLoadingImage:        '/include/lb2/images/loading.gif',     
    fileBottomNavCloseImage: '/include/lb2/images/closelabel.gif',
    overlayOpacity: 0.8,   // controls transparency of shadow overlay

    animate: true,         // toggles resizing animations
    resizeSpeed: 7,        // controls the speed of the image resizing animations (1=slowest and 10=fastest)

    borderSize: 10,         //if you adjust the padding in the CSS, you will need to update this variable

	// When grouping images this is used to write: Image # of #.
	// Change it for non-english localization
	labelImage: "Immagine",
	labelOf: "di"
});

function checkCookie() {
	 if(!(testCookies())){
	    alert("Browser non abilitato ad accetare i Cookies: impossibile utilizzare i servizi on-line");
	 }
}

addLoadEvent( initMyMarque );
addLoadEvent( checkCookie );

