if ( typeof(Libero) == "undefined" ) {
	Libero = {
		Version: '1.0.0'
    };
}

Libero.Stash = {};

// test prototype library
if ( typeof(Prototype) == "undefined" ) {
	var Class = {
		create: function() {
			return function() {
				this.initialize.apply(this, arguments);
			}
		}
	};
	Object.extend = function(destination, source) {
		for (var property in source) {
			destination[property] = source[property];
  		}
		return destination;
	};
}

// Libero.HF: header footer class utilities  
Libero.HF = Class.create();

Libero.HF.show = function (id) {
	if (document.getElementById) {
		var el = document.getElementById(id);
		if (el) {
			el.style.display = 'block';
		}
	}
}

Libero.HF.hide = function (id) {
	if (document.getElementById) {
		var el = document.getElementById(id);
		if (el) {
			el.style.display = 'none';
		}
	}
}

Libero.HF.toggle = function(id){
	if (document.getElementById) {
		var el = document.getElementById(id);
		if (el) {
			if (el.style.display == 'block') {
				el.style.display = 'none';
			}
			else {
				el.style.display = 'block';
			}
		}
	}
}

// Adv
function adv_flashDisp (flashobj) {
	if (typeof(flashobj)!='undefined'&&flashobj!='') {
		document.write(flashobj);
	}
}


function hfrm_nel_web() {
	document.hfrm.action='http://arianna.libero.it/search/abin/integrata.cgi';
	document.hfrm.submit();
}
function hfrm_nelle_news() {
	document.hfrm.action='http://notizie.libero.it/ricerca.php';
	document.hfrm.submit();
}
function hfrm_in_share() {
	document.hfrm.q.value=document.hfrm.query.value;
	document.hfrm.action='http://digiland.libero.it/ricerca_tutti.php';
	document.hfrm.submit();
}
