//JavaScript functions for image_swap effects.
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


//Contents for About El Seref Menu
var about=new Array()
about[0]='<a href="http://www.elseref.com/en/about.html">Introduction</a>'
about[1]='<a href="http://www.elseref.com/en/about.html#objectives">Objectives</a>'
about[2]='<a href="http://www.elseref.com/en/about.html#vision">Vision</a>'
about[3]='<a href="http://www.elseref.com/en/about.html#values">Principles and values</a>'

//Contents for About El Seref Menu
var project=new Array()
project[0]='<a href="http://www.elseref.com/en/project">Introduction</a>'
project[1]='<a href="http://www.elseref.com/en/project/phases.html">Phase I</a>'
project[2]='<a href="http://www.elseref.com/en/project/phases.html#phase2">Phase II</a>'

//El Seref Home Menu
var homelink = '<a href="http://www.elseref.com/en/index.html" ONMOUSEOVER="window.status=\'El Seref Home Page \';return true">Home</a>'

//Invest in El Seref Menu
var invest = '<a href="http://www.elseref.com/en/invest" ONMOUSEOVER="window.status=\'El Seref Project \';return true">Invest in El Seref</a>'

//Bids and Tenders Menu
var bids ='<a href="http://www.elseref.com/en/bids" ONMOUSEOVER="window.status=\'El Seref bids and tenders\';return true">Bids and Tenders</a>'

//Jobs Menu
var jobs ='<a href="http://www.elseref.com/en/jobs" ONMOUSEOVER="window.status=\'El Seref Project \';return true">El Seref Jobs</a>'



function ProjectMenu( on ) {
	document.write('<table BORDER="0" CELLSPACING="0" CELLPADDING="0" width="150" align="center">');
	for (i=0; i<project.length; i++){
		if ( on == i){
			document.write ('<tr><td VALIGN="middle" class="BoxActive">'+project[i]+'</td></tr>')	
		}
		else {
			document.write ('<tr><td  VALIGN="middle" class="Box" >'+project[i]+'</td></tr>')	
		}
	}
	document.write ('<tr><td class="MenuEnd"></td></tr>')
    document.write('</table>	');
}

function AboutMenu( on ) {
	document.write('<table BORDER="0" CELLSPACING="0" CELLPADDING="0" width="150" align="center">');
	for (i=0; i<about.length; i++){
		if ( on == i){
			document.write ('<tr><td VALIGN="middle" class="BoxActive">'+about[i]+'</td></tr>')	
		}
		else {
			document.write ('<tr><td  VALIGN="middle" class="Box" >'+about[i]+'</td></tr>')	
		}
	}
	document.write ('<tr><td class="MenuEnd"></td></tr>')	
    document.write('</table>	');
}

function BidsMenu( on ) {
	if ( on == 1){
		document.write ('<tr><td VALIGN="middle" class="MainActive">'+bids+'</td></tr>')	
	}
	else {
		document.write ('<tr><td  VALIGN="middle" class="Main" >'+bids+'</td></tr>')	
	}
}

function JobsMenu( on ) {
	if ( on == 1){
		document.write ('<tr><td VALIGN="middle" class="MainActive">'+jobs+'</td></tr>')	
	}
	else {
		document.write ('<tr><td  VALIGN="middle" class="Main" >'+jobs+'</td></tr>')	
	}
}

function InvestMenu( on ) {
	if ( on == 1){
		document.write ('<tr><td VALIGN="middle" class="MainActive">'+invest+'</td></tr>')	
	}
	else {
		document.write ('<tr><td  VALIGN="middle" class="Main" >'+invest+'</td></tr>')	
	}
}

function HomeMenu( on ) {
	if ( on == 1){
		document.write ('<tr><td VALIGN="middle" class="MainActive">'+homelink+'</td></tr>')	
	}
	else {
		document.write ('<tr><td  VALIGN="middle" class="Main" >'+homelink+'</td></tr>')	
	}
}