function overMenu(item, state)
{
	var expl="";
	
	if(state) document.getElementById("imenu"+item).className="over";
	else document.getElementById("imenu"+item).className="";
	
	if(!state) document.getElementById('explanation').innerHTML='';
	else
	{
		switch(item)
		{
			case 1: expl="Pagina de inceput a portalului.<br> Urmatoarele evenimente, ultimele stiri, anunturi etc. <br>"; break;
			case 2: expl="Pagina cu evenimetele postate pe SASORI.ro.<br> Puteti gasi aici urmatoarele evenimente sau anunturi legate atat de clubul SASORI cat si postate de vizitatorii nostri. <br>Puteti posta chiar dumneavoastra un anunt gratuit pe SASORI.ro. Mai multe detalii in sectiune. <br>"; break;
			case 3: expl="Pagina cu stirile postate pe SASORI.ro.<br> Cititi cele mai noi stiri din lumea artelor martiale pe SASORI.ro <br>"; break;
			case 4: expl="Pagina cu fisierele media postate pe SASORI.ro.<br> Imagini, clipuri video, tutoriale, demonstratii, concursuri <br>"; break;
			case 5: expl="Pagina cu stilurile si sistemele postate pe SASORI.ro.<br> Un nomenclator complex de stiluri si sisteme! Informeaza-te! Cauta-ti stilul! Intra si afla mai multe.. <br>"; break;
			case 6: expl="Pagina de prezentare a clubului SASORI.<br> Afla mai multe despre clubul SASORI, membrii sai si urmareste un album foto cu membrii clubului SASORI.<br>"; break;
			case 7: expl="Pagina de contact a SASORI.ro.<br> Vrei sa ne adresezi o intrebare? Doresti un raspuns la o problema? Scrie-ne si vom incerca sa te ajutam! <br>"; break;
			case 8: expl="Intra pe forum! Participa la noile discutii!"; break;
			case 9: expl="SASORI.ro va propune un subiect original, acela legat de personalitatile si maestrii din lumea artelor martiale, cine au fost si, mai ales, care a fost contributia lor la dezvoltarea artelor martiale.<br>Un volum intreg de informatii va asteapta in aceasta sectiune."; break;
		}
		
		document.getElementById('explanation').innerHTML=expl;
	}
}

function redirect(url)
{
	window.location=url;
}

function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}


