//number of menu sections
var sections=3;

//menu titles
var sect=new Array('Introducere','Expozitii','Suport','Contact','Recomandari');

//menu contents
var menu0=new Array('Cuvant de inceput','Activitatea artistica');
var links0=new Array('index','activitate_artistica');
var menu1=new Array('Nicolae Chirca','Constantin Cojanu','Nelu Constantin','Constant Damboianu','Ionel Damboianu','Dan Edu','Irinel Dragos Ionescu','Ligia Irimescu','Maria Proca-Jinga','Diana Leca','Alexandru Marinescu','Nicolae Mihaila','Gheorghe Mitroiu','Stelian Mosoiu','Gheorghe Paulian','Augustin Patru','Nicoale Patru','Bogdan Petry','Cezar Petry','Marian Petry','Andreea Sima','Elena Toma','Dan Ungureanu','Albert A. Damboianu','Victor Spatarus','Marinela si Florinel Barbu','Zizica Mihai');
var links1=new Array('nicolae_chirca','constantin_cojanu','nelu_constantin','constant_damboianu','ionel_damboianu','dan_edu','irinel_dragos_ionescu','ligia_irimescu','maria_proca_jinga','diana_leca','alexandru_marinescu','nicolae_mihaila','gheorghe_mitroiu','stelian_mosoiu','gheorghe_paulian','augustin_patru','nicolae_patru','bogdan_petry','cezar_petry','marian_petry','andreea_sima','elena_toma','dan_ungureanu','albert_a_damboianu','victor_spatarus','barbu','zizica_mihai');
var menu2=new Array('Modalitati de contact','Vreau sa cumpar!');
var links2=new Array('contact','formular_on_line');
var menu3=new Array('Galeria Pardon-Mersi','Muscel.ro');
var links3=new Array('pardon_mersi','muscel');

//build up menu URL's
function goToPage(theSect, thePage) {
	thePath=eval('links' + theSect + '[' + thePage + ']');
	if (theSect==0){ 
	newPath=thePath + ".htm";
	self.location.href=newPath;
	}
	else if (theSect==1){
	newPath=thePath + ".htm";
	self.location.href=newPath;
	}
	else if (theSect==2) {
	newPath=thePath + ".htm";
	self.location.href=newPath;
	}
	else if (theSect==3){
	newPath=thePath + ".htm";
	self.location.href=newPath;
	}		
}

//loop to build menu links and populate menu titles
function addLinks(whichMenu, whichSect) {
arrayLength=whichMenu.length;
var i=0;
var m=whichMenu;

	for (var i=0; i<arrayLength; i++){
	document.write("<td bgcolor='#BBBBBB'><img src='images/spacer.gif' width='7'><a class='Vmenu4' href='javaScript: goToPage(" + whichSect + ", " + i + ")'>" + m[i] + "</a></td></tr><tr>")
	}
document.write("</tr><tr><td><img src='images/spacer.gif'></td></tr><tr>");
}

//loop to build menu titles
function createTable(){
document.write("<table width='151' cellspacing='0' cellpadding='0' border='0'><tr>");
	for (var i=0; i<sections; i++){	
		document.write("<td bgColor='#CCCCCC' height='20'><img src='images/spacer.gif' width='7'><span class='Vmenu4'>" + sect[i] + "</td></tr><tr>");		
		addLinks(eval("menu" + i), i);	
	}	
document.write("</td></tr></table>");
}