

//##################::..MENU LINKS..::##############################################

nOpac = 81
nPlus = 2
nMin = 1
speed = 30
timer = null; 
timer2 = null;

var ie5=(document.all && document.getElementById);
var ns6=(!document.all && document.getElementById);

function fadeImg2(teller)
{
 apl[teller][1] = "Up";
 changes();
}

function fadeImgend2(teller)
{
 apl[teller][1] = "Down";
 setTimeout("changes()",100);
}

function changes()
{
 next_loop = true;
 for (i=0;i<apl.length;i++)
 {
  obj = link_table.rows[i].cells[0];
  opacity = apl[i][0]
  if (apl[i][1] == "Down")
  {
     opacity += nPlus;
     apl[i][0] = opacity;
     if (apl[i][0] > 100) 
      {apl[i][1] = "";}
     else
     {next_loop = false;}
	 nOpac = opacity;
  }
  else
  {
  if (apl[i][1] == "Up")
  {
     opacity -= nMin;
     apl[i][0] = opacity;
     if (apl[i][0] < 81) 
      {apl[i][1] = "";}
     else
     {next_loop = false;}
	 nOpac = opacity;
  }
  }
  if(ie5){ 
	obj.style.filter="alpha(opacity="+opacity+")";
    }
  if(ns6){ 
   	obj.style.MozOpacity = opacity + '%';
   }
 }
 if (next_loop == false)
  {
   timer = setTimeout("changes()",speed);
  }
  else
  {
   clearTimeout(timer);
  }
}

//for each link option you need to make a new Array;
var apl = new Array();
apl[0] = new Array(100,"");
apl[1] = new Array(100,"");
apl[2] = new Array(100,"");
apl[3] = new Array(100,"");
apl[4] = new Array(100,"");
apl[5] = new Array(100,"");
apl[6] = new Array(100,"");

//expl: apl[6] = new Array(60,"");



function button_over(eButton){
	if (eButton.style.borderBottom != "black 1px solid")
	{
	eButton.style.borderBottom = "#333333 solid 1px";
	eButton.style.borderLeft = "#333333 solid 1px";
	eButton.style.borderRight = "#333333 solid 1px";
	eButton.style.borderTop = "#333333 solid 1px";
	}
}

function button_out(eButton){
	eButton.style.border = "1px #333333 solid";
}

//#########################################################################

menu_status = new Array(); 
function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

//#########################################################################
