
/***************************************************/
/* indexitengine.js                                */
/* gestione pagina indexit.html                    */
/* Ra.M. Software - Agosto 2006                    */
/***************************************************/

/********************** testo scorrevole **************************/

var   nextevStr;                    // stringa scorrevole
var   nextevStrLen;                 // lunghezza stringa scorrevole
var   nextevSubStr;                 // sottostringa scorrevole
var   indexStr = 0;                 // indice iniziale stringa scorrevole

// gestione scorrimento

function nextevRefresh()
{
   if (indexStr == nextevStrLen)
   {
      indexStr = 0;
   }
   nextevSubStr = nextevStr.substring(indexStr, nextevStrLen);
   document.nextevForm.nextevInp.value = nextevSubStr;
   indexStr++;
}

/**************** gestione topmenu *****************/

/* cursore fuori dall'area pulsante */

function topmenu_onmouseout(topmenuId)
{
   document.getElementById(topmenuId).style.background = "#1D51B3";
   document.getElementById(topmenuId).style.color = "white";
}

/* cursore sull'area pulsante */

function topmenu_onmouseover(topmenuId)
{
   document.getElementById(topmenuId).style.background = "white";
   document.getElementById(topmenuId).style.color = "#1D51B3";
}

/* click sul pulsante */

function topmenu_onclick(topmenuIndex)
{
	if (topmenuIndex == 0)
	{
   	top.location = "index.html";
   }
   else if (topmenuIndex == 1)
   {
      top.location = "chisiamo/chisiamo.html";
   }
   else if (topmenuIndex == 2)
   {
      top.location = "ilcostume/ilcostume.html";
   }
   else if (topmenuIndex == 3)
   {
      top.location = "iballi/iballi.html";
   }
   else if (topmenuIndex == 4)
   {
      top.location = "curriculum/curriculum.html";
   }
   else if (topmenuIndex == 5)
   {
      top.location = "attivita/attivita.html";
   }
   else if (topmenuIndex == 6)
   {
      top.location = "contatti/contatti.html";
   }
   else if (topmenuIndex == 7)
   {
      top.location = "guestbook/guestbook.html";
   }
   else if (topmenuIndex == 8)
   {
      top.location = "links/links.html";
   }
   else if (topmenuIndex == 9)
   {
      top.location = "ovodda/ovoddait.html";
   }
   else
   {          
      window.alert("Sezione inesistente");
   }
}

/**************** gestione sidemenu ****************/

/* cursore fuori dall'area pulsante */

function sidemenu_onmouseout(sidemenuId)
{
   document.getElementById(sidemenuId).style.background = "white";
   document.getElementById(sidemenuId).style.color = "#1D51B3";
}

/* cursore sull'area pulsante */

function sidemenu_onmouseover(sidemenuId)
{
   document.getElementById(sidemenuId).style.background = "#1D51B3";
   document.getElementById(sidemenuId).style.color = "white";
}

/* click sul pulsante */

function sidemenu_onclick(sidemenuIndex)
{
	if (sidemenuIndex == 0)
	{
   	top.location = "index.html";
   }
   else if (sidemenuIndex == 1)
   {
      top.location = "chisiamo/chisiamo.html";
   }
   else if (sidemenuIndex == 2)
   {
      top.location = "ilcostume/ilcostume.html";
   }
   else if (sidemenuIndex == 3)
   {
      top.location = "iballi/iballi.html";
   }
   else if (sidemenuIndex == 4)
   {
      top.location = "curriculum/curriculum.html";
   }
   else if (sidemenuIndex == 5)
   {
      top.location = "attivita/attivita.html";
   }
   else if (sidemenuIndex == 6)
   {
      top.location = "contatti/contatti.html";
   }
   else if (sidemenuIndex == 7)
   {
      top.location = "guestbook/guestbook.html";
   }
   else if (sidemenuIndex == 8)
   {
      top.location = "links/links.html";
   }
   else if (sidemenuIndex == 9)
   {
      top.location = "ovodda/ovoddait.html";
   }
   else
   {          
      window.alert("Sezione inesistente");
   }
}

/* click sulla foto Parliamo di ... */

function parliamodi_onclick()
{
var   parldiWinId;

   parldiWinId = window.open('parldishow.html', 'parldiId', 'scrollbars=yes,resizable=yes,status=yes,width=1010,height=760');
   parldiWinId.focus();
}
