﻿// JScript File

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function callExternalInterface1(blocks) {
    getMovieName("extInt").HTML_RigaBigliettoIn(blocks);
	
}

function callExternalInterface2(blocks) {
	getMovieName("extInt").HTML_RigaBigliettoOut(blocks); 
}


function getMovieName(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        //return window[movieName]
        return document[movieName]
   }
   else {
       return document[movieName]
   }
}

function hhTML_RigaBigliettoIn(row, blocks) {
    try
    {
        if (blocks != '') 
        {
           row.className="Nts100Selected";
           callExternalInterface1(blocks);
        }
    }
    //catch (e) {
    //    xmlhttpElenco = null;
    //    if (bDebug) alert('Errore in loadXMLDocElenco');
    //}
    finally {}

    
  
}

function hhTML_RigaBigliettoOut(row, blocks) {
    try
    {

        if (blocks != '') 
        {
	        row.className=" ";
	        callExternalInterface2(blocks);
        }
    }
    //catch (e) {
    //    xmlhttpElenco = null;
    //    if (bDebug) alert('Errore in loadXMLDocElenco');
    //}
    finally {}
        

}
      
      
      
         
function Swf_BloccoMouseIn(myTR) {
//Scatenata dal primo fla al passaggio del mouse 
//su un blocco 
	for ( keyVar in trArray ) {
  		 MM_findObj(trArray[keyVar]).className=" "
	}

	if (trArray[myTR]!=null)
	    MM_findObj(trArray[myTR]).className="Nts100Selected";
}

function Swf_BloccoSelezionato(blocco) {
//Scatenata dal primo fla su click
    if (blocco != "undefined" )
	    alert(blocco);
}



