
function aprifinestra(str) {        searchWin = window.open(str,'aprifiestra','top=0,left=0,width=650,scrollbars=yes,resizable=yes,status=no,location=no,toolbar=yes');}
function modulo(i){	var s;	switch (i)	{		case '1':			s = 'merchandising';			break;		case '2':			s = 'documentazione';			break;		case '3':			s = 'nominativi';			break;	}		popup = window.open("../../" + s + "/", "popup", "width=750,height=600,resizable=no,scrollbars=yes,status=yes");	popup.focus();}


function visualSub (obj) {
	var mc = $(obj);
	if (mc.getStyle('display') == 'none') {
		//new Effect.BlindDown(mc);
		mc.style.display = "";
	} else {
		//new Effect.BlindUp(mc);
		mc.style.display = "none";
	}
}

var myGlobalHandlers = {	onCreate: function(){		Element.hide('desc');		Element.show('s');	},	onComplete: function() {		if(Ajax.activeRequestCount == 0){			Element.hide('s');			Element.show('desc');		}	}};Ajax.Responders.register(myGlobalHandlers);

function goAnchor() {
	window.location.href = '#initMenu';
}function changeDesc(code){
		var url = "cerca.php";	var pars = 'id=' + code;		var myAjax = new Ajax.Updater(		'desc',		url, 		{			method: 'post', 			parameters: pars		});
		
	goAnchor();}function showResponse(originalRequest){	//put returned XML in the textarea	//console.log('funziona ^__^');	$('result').value = originalRequest.responseText;}function mostra(obj, old) {	my_obj = $(obj);	my_old = $(old);	my_obj.style.display = "";	my_old.style.display = "none";}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open('./pages_popup/' + theURL,winName,'menubar=no,scrollbars=yes,resizable=no,' + features);}

function openFlash(theURL,winName,features) { //v2.0  window.open('./pages_popup/' + theURL,winName,'menubar=no,scrollbars=no,resizable=no,' + features);}