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 + "'>";
		}


// APERTURA MENU TENDINA

/*

startMenu = function() {
if (document.all&&document.getElementById) {
cssmenu = document.getElementById("csstopmenu");
for (i=0; i<cssmenu.childNodes.length; i++) {
node = cssmenu.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function(){                  
this.className=this.className.replace(" over", "")
}
}
}
}
}
if (window.attachEvent)
window.attachEvent("onload", startMenu)
else
window.onload=startMenu;

*/

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

