var inter;
function inizialize(){
  moveTriangle();
}

function moveTriangle(){
  if(document.all){
    var t=document.all.puntCat;
	var c=document.all["l"+numL];
	}
  else{
    var t=document.getElementById("puntCat");
	var c=document.getElementById("l"+numL);
	}
	t.style.left=c.offsetLeft+"px";
}

function apriPopUp(inValue,inTipo,inCod){
  switch(inValue){
  case 'contatti':
		if(inTipo!='')
  		str='?tipo='+inTipo+'&l='+inCod;
		else
			str='';
  	var r=window.open('contatti.php'+str,'contatti','width=400,height=300');
  	r.focus();
	break;
	case 'credits':
  	if(inTipo!='')
  		str='?tipo='+inTipo+'&l='+inCod;
		else
			str='';
    var r=window.open('credits.php'+str,'credits','width=400,height=200');
    r.focus();
	break;
	case 'info':
    var r=window.open('info.php#'+inTipo,'credits','width=400,height=250,scrollbars=yes');
    r.focus();
	break;
	case 'privacy':
		if(inTipo!='')
  		str='?tipo='+inTipo+'&l='+inCod;
		else
			str='';
    var r=window.open('privacy.php'+str,'privacy','width=400,height=350,scrollbars=no');
    r.focus();
	break;
	case 'tipologia':
	  	var r=window.open('tipologia.php?tipo='+inTipo,'tipologia','width=400,height=350,scrollbars=yes');
	    r.focus();
	break;
  }
	return false;
}

function ordina(inValue){
	var p=window.open('ordina_foto.php?f='+inValue,'ordina','width=550,height=450,scrollbars');
	p.focus();
  return false;
}

function ascoltaAudio(inAudio){
  var p=window.open('ascolta_audio.php?file='+inAudio,'audio','width=200,height=80');
	p.focus();
  return false;
}

function guardaVideo(inVideo){
  var p=window.open('video.php?file='+inVideo,'video','width=400,height=400');
	p.focus();
  return false;
}

/**
 *
 * @access public
 * @return void
 **/
function viewS(inValue,inValue1){
	if(document.all){
		var a=document.all["dis"+inValue];
		var b=document.all[inValue1];
		for(var c=0;c<=10;c++){
			var tmp=document.all["dis"+c];
			if(tmp)
				tmp.style.display="none"
		}
	}
	else{
		var a=document.getElementById("dis"+inValue);
		var b=document.getElementById(inValue1);
		for(var c=0;c<=5;c++){
			var tmp=document.getElementById("dis"+c);
			if(tmp)
				tmp.style.display="none"
		}
	}
	if(a){
		if(document.all){
			a.style.left=(b.offsetParent.offsetLeft)+"px";
			a.style.display="block";
		}
		else{
			a.style.left=b.offsetLeft+"px";
			a.style.display="block";
		}
	}
	clearInterval(inter);
}
function viewSU(inValue){
	clearInterval(inter);
	if(document.all){
		var a=document.all["dis"+inValue];
	}
	else{
		var a=document.getElementById("dis"+inValue);
	}
	a.style.display="block";
}

function hiS(inValue,inNum){
	if(inNum!=0)
		inNum=500;
	inter=setInterval("hideSub("+inValue+")",inNum);
}

function hideSub(inValue){
	if(document.all){
		var a=document.all["dis"+inValue];
	}
	else{
		var a=document.getElementById("dis"+inValue);
	}
	a.style.display="none";
	clearInterval(inter);
}

/**
 *
 * @access public
 * @return void
 **/
function quicktime_full(inNome,inTipo,inSection){
	var p=window.open('index.php?link=quicktime_full&f='+inNome+'&tipo='+inTipo+'&sec='+inSection,'full','width=1300,height=500,scrollbars');
	p.focus();
	return false;
}