function onMenTop(n,m) {
}

function offMenTop(n,m) {

}

function showdropmenu(j) {
	if (isPlaced) {
		for (var i=1 ; i<=8 ; i++) {
			document.getElementById("dropdown_"+i).style.visibility = (i==j) ? "visible" : "hidden" ;
		}
	}
}

function hidedropmenu(onum,minx,maxx,miny,maxy) {
	if (isPlaced) {
		if (xr<=minx || xr>=maxx || yr<=miny || yr>=maxy) document.getElementById("dropdown_"+onum).style.visibility = "hidden" ;
	}
}

function hidedropmenufromtop(onum) {
	if (isPlaced) {
		if (yr<=45 || xr <= 54 || xr >=742) document.getElementById("dropdown_"+onum).style.visibility = "hidden" ;
	}
}
	
function startAll() {
	if (ajaxuse) async_start() ;
	isPlaced = true ;
}


function setColor(obj, mbackcolor, mforecolor, mbordercolor) {

	if (typeof mbackcolor != "undefined") obj.style.backgroundColor  = mbackcolor ;
	if (typeof mforecolor != "undefined") obj.style.color = mforecolor ;
	if (typeof mbordercolor != "undefined") obj.style.borderColor  = mbordercolor ;

}

function ifrLocate(url) {

		if (document.all) top.document.frames["ifrbase"].location.href = url ;
		else if (document.getElementById && !document.all) top.document.getElementById("ifrbase").contentDocument.location.href = url ;
		
}

function viewgal(id) {

	var w = 700 ;
	var h = 500 ;
	
	switch (id) {
	
		case 1:
		
			w = 800 ;
			h = 600 ;
		break ;
		
		case 2:
		case 4:
		case 8:
		case 13:
		case 14:
		case 15:
		case 16:
		case 17:

			w = 700 ;
			h = 460 ;		

		break ;
		
		case 3:
		case 5:
		case 6:
		case 7:
		case 9:
		case 10:
		case 11:
		case 12:
		case 12:
		
			w = 440 ;
			h = 720 ;	

		break ;
	}

	wpop("galview.php?id="+id,w,h,0,1) ;

}



function wpop(murl,mwidth,mheight,mscroll,mresiz) {
	if (typeof murl != "undefined") {
		if (typeof mwidth == "undefined") var mwidth=640 ;
		if (typeof mheight == "undefined") var mwidth=480 ;
		if (typeof mscroll == "undefined") var mscroll=0 ;
		if (typeof mresiz == "undefined") var mresiz=1 ;
		
		var mpop = window.open (murl,"mpop","width="+mwidth+",height="+mheight+",scrollbars="+mscroll+",resizable="+mresiz) ;
		mpop.focus() ;
		
	}
}

function nospam (muser,mdomain) {
	if (typeof mdomain == "undefined") var mdomain="relaismonforte.it" ;
	location.href = "mailto:"+muser+"@"+mdomain ;
}

