<!--

var imagenumber = 10 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = "images/sideimx_01.jpg"
images[2] = "images/sideimx_02.jpg"
images[3] = "images/sideimx_03.jpg"
images[4] = "images/sideimx_04.jpg"
images[5] = "images/sideimx_05.jpg"
images[6] = "images/sideimx_06.jpg"
images[7] = "images/sideimx_07.jpg"
images[8] = "images/sideimx_08.jpg"
images[9] = "images/sideimx_09.jpg"
images[10] = "images/sideimx_10.jpg"
var image = images[rand1]




function validEmail(email) {
	invalidChars = " /:"
	if (email == "") {
		return (false);
	}
	for (i=0; i < invalidChars.length; i++) {
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0) != -1) {
			return (false);
		}
	}
	atPos = email.indexOf("@", 1)
	if (atPos == -1) {
		return (false);
	}
	periodPos = email.indexOf(".", atPos)
	if (periodPos == -1) {
		return (false);
	}
	if (periodPos + 3 > email.length) {
		return (false);
	}
	return (true);
}


function WinOpen(theURL, Name, popW, popH, scroll)
	{ // V 1.0
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',noresize'
	Win = window.open(theURL, Name, winProp)
	if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}

function init() {
	//==========================================================================================
	// if supported, initialize TransMenus
	//==========================================================================================
	// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
	// This is better than server-side checking because it will also catch browsers which would
	// normally support the menus but have javascript disabled.
	//
	// If supported, call initialize() and then hook whatever image rollover code you need to do
	// to the .onactivate and .ondeactivate events for each menu.
	//==========================================================================================
	if (TransMenu.isSupported()) {
		TransMenu.initialize();

		// hook all the highlight swapping of the main toolbar to menu activation/deactivation
		// instead of simple rollover to get the effect where the button stays hightlit until
		// the menu is closed.
		menu1.onactivate = function() { document.getElementById("liguria").className = "hover"; };
		menu1.ondeactivate = function() { document.getElementById("liguria").className = ""; };
		menu2.onactivate = function() { document.getElementById("lonsum").className = "hover"; };
		menu2.ondeactivate = function() { document.getElementById("lonsum").className = ""; };
	}
}


//-->
