<!--- Hide script from browsers that don't understand JavaScript

//   Copyright 2002- by sbv-builder - Sistema Bibliotecario del Vimercatese
var ElencoSchede = ""

// for viewing medium images
function openWindow4ImgCard(obj,tipoScheda,numScheda,PrgScheda,SizeScheda,width,height) {
	var options = "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
	if ( width==0 ) width = 250
	if ( height==0 ) height = 250
	width += 60
	height += 100;// X il titolo e il bottone
	if ( height>screen.height ) height = screen.height - 50
	options += ',width=' + width + ',height=' + height
	var top =  (screen.height-height)/2
	var left = (screen.width-width)/2
	if ( navigator.appName == "Netscape" ) {
		options += ',screenY=' + top + ',screenX=' + left;
	} else {
		options += ',top=' + top + ',left=' + left;
	}
	id_scheda = tipoScheda + numScheda + "_" + SizeScheda + PrgScheda
//	alert("width=" + width + " height=" + height + " options=" + options)
//	alert("screen.height=" + screen.height + " screen.width=" + screen.width)
//	alert("options="+options+",id_scheda="+id_scheda)
	newwindow = window.open(obj.href,id_scheda,options)
	return false
}

// for viewing full card info
function open_window4card(obj,tipoScheda,numScheda) {
//	alert(ElencoSchede)
	var options = "toolbar=no,status=no,menubar=yes,scrollbars=yes,resizable=yes"
	if ( navigator.appName == "Netscape" ) {
		var w = window.innerWidth
		var h = window.innerHeight
	} else {
		var w = document.body.offsetWidth
		var h = document.body.offsetHeight
	}
	options += ',width=' + w + ',height=' + h
	id_scheda = "card_" + tipoScheda + numScheda
//	alert("options="+options+",id_scheda="+id_scheda)
	newwindow = window.open(obj.href+"&ListCards="+ElencoSchede,id_scheda,options)
	return false
}

function add_element2Vet(tipoScheda,numScheda) {
//	alert(tipoScheda + "-" + numScheda);
	ElencoSchede += tipoScheda + "-" + numScheda + ";"
}

// End hiding -->
