//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/ar/about.html">مقدمه</a>'
about[1]='<a href="http://www.elseref.com/ar/about.html#objectives">الأهداف</a>'
about[2]='<a href="http://www.elseref.com/ar/about.html#vision">رؤيتنا</a>'
about[3]='<a href="http://www.elseref.com/ar/about.html#values">مبادئنا وقيمنا</a>'

//Contents for About El Seref Menu
var project=new Array()
project[0]='<a href="http://www.elseref.com/ar/project">مقدمه</a>'
project[1]='<a href="http://www.elseref.com/ar/project/phases.html">المرحلة الأولى</a>'
project[2]='<a href="http://www.elseref.com/ar/project/phases.html#phase2">المرحلة الثانية</a>'
//El Seref Home Menu
var homelink = '<a href="http://www.elseref.com/ar/index.html" ONMOUSEOVER="window.status=\'السرف - الصفحه الرئيسيه \';return true">الصفحه الرئيسيه</a>'

//Invest in El Seref Menu
var invest = '<a href="http://www.elseref.com/ar/invest" ONMOUSEOVER="window.status=\'إستثمر فى السرف \';return true">إستثمر في السرف</a>'

//Bids and Tenders Menu
var bids ='<a href="http://www.elseref.com/ar/bids" ONMOUSEOVER="window.status=\'عطاأت و اعمال\';return true">عطاأت و اعمال</a>'

//Jobs Menu
var jobs ='<a href="http://www.elseref.com/ar/jobs" ONMOUSEOVER="window.status=\'وظائف السرف\';return true">وظائف</a>'



function ProjectMenu( on ) {
	document.write('<table BORDER="0" CELLSPACING="0" CELLPADDING="0" 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" 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>')	
	}
}