var pippo;
var win_height='100%';
var win_width='100%';

function center_me(w,h){
	if(navigator.appName.indexOf('Explorer')+1){
		var win_width=w;
		var win_height=h;
	} else {
		var win_width=window.outerWidth;
		var win_height=window.outerHeight;
	}
	var pos_x=(screen.width-win_width)/2;
	var pos_y=(screen.height-win_height)/2;
	moveTo(pos_x,pos_y);
}


function open_01(url,w,h){
	v1=window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=yes,scrollbars=yes');
}

function open_02(url,w,h){
	v1=window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}

function open_pop(url,w,h){
	if(pippo) pippo.close();
	pippo= window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=yes');
}

function open_pop_02(url,w,h){
	if(pippo) pippo.close();
	pippo= window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=yes');
}

function close_pop(){
	if(pippo) pippo.close();
}

function apriImg(nomeImmagine) {
		    tagImg.innerHTML = "<img src='" + nomeImmagine + "'>";
		}


/*####################################################*/



function prodotti(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



/*####################################################*/


			
function bookmark(url,title){
if ((navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4)) {
window.external.AddFavorite(url,title);
} else if (navigator.appName == "Netscape") {
window.sidebar.addPanel(title,url,"");
} else {
alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
}
}


function showhide(id){
	document.getElementById('design').style.display = 'none';
	document.getElementById('web').style.display = 'none';
	document.getElementById('communication').style.display = 'none';
	obj = document.getElementById(id);
	obj.style.display = "";
}
