
// opens menu section - do not alter
function openMenu(cat) {
thisPage='Despre noi.html';
this.cat = cat;
document.write('<span class = "level1">');
// link-urile de la nivelul 1 al meniului; afiseaza tot main.html dar cu meniul coresp. desfacut
document.write('<a href = "' + thisPage + '?page=null" target="_self">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1OpName +'" width="' + lev1OpWidth + '" height="' + lev1OpHeight + '"border="0">');
}
document.write('<font color="#FF0000">' + cat + '</font></a><span><br><hr>');

// inceput cod sublinkuri Prezentare
 if (page=='prez'){

// Submeniu Generalitati
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }

  if (subpage=='prez_soc') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=prez_soc " target="_self"><font color="#FF0000">Generalit&#259;&#355;i</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=prez_soc" target="_self">Generalit&#259;&#355;i</a><span><br><hr>');
	}

// Submeniu Realizari	
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }

if (subpage=='real') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=real " target="_self"><font color="#FF0000">Realiz&#259;ri 2000 - 2006</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=real" target="_self">Realiz&#259;ri 2000 - 2006</a><span><br><hr>');
	}

// Submeniu Investitii	
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 
if (subpage=='invst') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=invst " target="_self"><font color="#FF0000">Investi&#355;ii 2007</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=invst" target="_self">Investi&#355;ii 2007</a><span><br><hr>');
	}

} 
// sfarsit cod sublinkuri Prezentare 


// inceput cod sublinkuri Servicii
 if (page=='serv'){

// Termice
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 // link-urile de la nivelul 2 al meniului;cele care afiseaza propriu-zis noile pagini 

 // adaugare cod pt culori sublinkuri
  if (subpage=='term') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=term " target="_self"><font color="#FF0000">Termice</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=term" target="_self">Termice</a><span><br><hr>');
	}

//Electrice
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 // link-urile de la nivelul 2 al meniului;cele care afiseaza propriu-zis noile pagini 

// old: document.write('<a href="'  + thisPage + '?page=' + page + '&subpage=' + 'elec' + '" target="_self">' + 'Electrice' + '</a><span><br><hr>');  
if (subpage=='elec') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=elec " target="_self"><font color="#FF0000">Electrice</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=elec" target="_self">Electrice</a><span><br><hr>');
	}
	
// Diverse
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 // link-urile de la nivelul 2 al meniului;cele care afiseaza propriu-zis noile pagini 

// old: document.write('<a href="'  + thisPage + '?page=' + page + '&subpage=' + 'elec' + '" target="_self">' + 'Electrice' + '</a><span><br><hr>');  
if (subpage=='div') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=div " target="_self"><font color="#FF0000">Diverse</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=div" target="_self">Diverse</a><span><br><hr>');
	}	
	
} 
// sfarsit cod sublinkuri Servicii 

// inceput cod sublinkuri Certificari
 if (page == 'cert'){
// Sublink Nationale
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 // link-urile de la nivelul 2 al meniului;cele care afiseaza propriu-zis noile pagini 
if (subpage=='opt1') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=opt1 " target="_self"><font color="#FF0000">Na&#355;ionale</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=opt1" target="_self">Na&#355;ionale</a><span><br><hr>');
	}
  // old document.write('<a href="'  + thisPage + '?page=' + page + '&subpage=' + 'opt1' +' " target="_self">' + 'Optiune 1' + '</a><span><br><hr>');

// Sublink Internationale
document.write('<span class = "level2">');
 if (lev2img=='yes') {
 document.write('&nbsp;&nbsp;<img src="' + imgPath + lev2Name +'" width="' + lev2Width + '" height="' + lev2Height + '">');
 }
 if (lev2Char=='yes') {
 document.write(bullet);
 }
 // link-urile de la nivelul 2 al meniului;cele care afiseaza propriu-zis noile pagini 
if (subpage=='opt2') {
  document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=opt2 " target="_self"><font color="#FF0000">Interna&#355;ionale</font></a><span><br><hr>');}
  	else {
	document.write(' <a href="'  + thisPage + '?page=' + page + '&subpage=opt2" target="_self">Interna&#355;ionale</a><span><br><hr>');
	}
// old: document.write('<a href="'  + thisPage + '?page=' + page + '&subpage=' + 'opt2' + '" target="_self">' + 'Optiune 2' + '</a><span><br><hr>');  
} 
// sfarsit cod sublinkuri Certificari
}

function closeMenu(cat,pass) {
this.cat = cat;
this.pass = pass;
document.write('<span class = "level1">');
document.write('<a href = "' + thisPage + '?page=' + pass + '" target="_self">');
if (lev1img=='yes') {
document.write('<img src="' + imgPath + lev1ClosName +'" width="' + lev1ClosWidth + '" height="' + lev1ClosHeight + '"border="0">');
}
document.write(cat + '</a><span><br><hr>');
}
