﻿function mmLoadMenus() {
  if (window.mm_menu_0124103655_0) return;
        window.mm_menu_0124103655_0 = new Menu("root",157,17,"Arial, Helvetica, sans-serif",11,"#333333","#700C3E","#F0F0F0","#CCCCCC","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0124103655_0.addMenuItem("Overview","location='/english/about_us/history.html'");
  mm_menu_0124103655_0.addMenuItem("Vision&nbsp;&&nbsp;Mission","location='/english/about_us/mission.html'");
  mm_menu_0124103655_0.addMenuItem("Organization&nbsp;Structure","location='/english/about_us/structure.html'");
  mm_menu_0124103655_0.addMenuItem("Work&nbsp;Strategy","location='/english/about_us/workstrategy.html'");
   mm_menu_0124103655_0.fontWeight="bold";
   mm_menu_0124103655_0.hideOnMouseOut=true;
   mm_menu_0124103655_0.bgColor='#676767';
   mm_menu_0124103655_0.menuBorder=0;
   mm_menu_0124103655_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0124103655_0.menuBorderBgColor='#777777';

  window.mm_menu_0124104356_0 = new Menu("root",150,17,"Arial, Helvetica, sans-serif",11,"#333333","#700C3E","#F0F0F0","#CCCCCC","center","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  
  mm_menu_0124104356_0.addMenuItem("Latest&nbsp;News","location='/english/media_center/index.aspx'");
  mm_menu_0124104356_0.addMenuItem("QOIC&nbsp;in&nbsp;Media","location='/english/media_center/inmedia.html'");
  mm_menu_0124104356_0.addMenuItem("Financial&nbsp;Statements","location='/english/media_center/stock_news.html'");
  //mm_menu_0124104356_0.addMenuItem("Photo&nbsp;Gallery","location='4.asp'");
  //mm_menu_0124104356_0.addMenuItem("Newsletter","location='5.asp'");
   mm_menu_0124104356_0.fontWeight="bold";
   mm_menu_0124104356_0.hideOnMouseOut=true;
   mm_menu_0124104356_0.bgColor='#676767';
   mm_menu_0124104356_0.menuBorder=0;
   mm_menu_0124104356_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0124104356_0.menuBorderBgColor='#777777';

mm_menu_0124104356_0.writeMenus();
} // mmLoadMenus()

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];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



///****view image*****////
function ViewImage(ifile,ix,iy,ititle) { 
var win;
var sWidth;
var sHeight;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,left=100,top=60,toolbar=no,scrollbars=no");

win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body topmargin=0 leftmargin=0>");
win.document.write("<table border=0 cellpadding=0 cellspacing=0><tr><td width=100% valign=top>");
win.document.write("<img border=0 src="+ifile+"></td></tr></table>");
win.document.write("</body></html>");
win.document.close();
}

///****end view image*****////


function validemail()
{
	var flag;
	if(form1.txtEmail.value == "" || form1.txtEmail.value=="أدخل بريدك الإلكتروني")
	{
		alert("Please Insert Your E-mail");
		flag = false;
	}
		else if((form1.txtEmail.value.length!=0) && (form1.txtEmail.value.indexOf("@")==-1 || form1.txtEmail.value.indexOf(".")==-1))
	{
		alert("Please Insert Correct E-mail");
		flag = false;	
	}
	else
	{
		
	}
	
	return flag;
}

////////////////Raed///////////////


function TopMainMenu()
{
var top = "";
top="<table width='900' cellspacing='0' cellpadding='0' border='0'>";

top+="	<tr>";
top+="		<td><object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='900' height='162'>";
top+="			<param name='movie' value='/english/swf/top.swf'>";
top+="			<param name='quality' value='High'>";
top+="			<embed src='/english/swf/top.swf' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='obj1' width='900' height='162'></object>";
top+="		</td>";
top+="	</tr>";
top+="	<tr>";
top+="		<td valign='top'>";
top+="		<table width='900' height='40' cellspacing='0' cellpadding='0' border='0'>";
top+="			<tr>";
top+="				<td valign='top'><a href='/english/index.html'><img src='/english/images/home.gif' width='146' height='40' alt='' border='0' id='Imagehome' onMouseOver=MM_swapImage('Imagehome','','/english/images/homeO.gif',1) onMouseOut=MM_swapImgRestore()></td>";
top+="				<td valign='top'><a href='/english/about_us/history.html'><img src='/english/images/about.gif' alt='' border='0' name='image1' width='130' height='40' id='Image1' onMouseOver=MM_swapImage('Image1','','/english/images/aboutO.gif',1);MM_showMenu(window.mm_menu_0124103655_0,-13,40,null,'image1') onMouseOut=MM_swapImgRestore();MM_startTimeout();></a></td>";
top+="				<td valign='top'><a href='/english/financial_results/index.html'><img src='/english/images/result.gif' alt='' border='0' width='143' height='40' id='Image2' onMouseOver=MM_swapImage('Image2','','/english/images/resultO.gif',1) onMouseOut=MM_swapImgRestore()></a></td>";
top+="		<td valign='top'><a href='/english/media_center/index.html'><img src='/english/images/center.gif' alt='' border='0' name='image2' width='117' height='40' id='Image3' onMouseOver=MM_swapImage('Image3','','/english/images/centerO.gif',1);MM_showMenu(window.mm_menu_0124104356_0,-13,40,null,'image2') onMouseOut=MM_swapImgRestore();MM_startTimeout();></a></td>";
top+="				<td valign='top'><a href='/english/usefull_link/index.html'><img src='/english/images/faq.gif' alt='' border='0' width='98' height='40' id='Image4' onMouseOver=MM_swapImage('Image4','','/english/images/faqO.gif',1) onMouseOut=MM_swapImgRestore()></a></td>";
top+="				<td valign='top'><a href='/english/careers/job_list.asp'><img src='/english/images/job.gif' alt='' border='0' width='157' height='40' id='Image5' onMouseOver=MM_swapImage('Image5','','/english/images/jobO.gif',1) onMouseOut=MM_swapImgRestore()></a></td>";
top+="				<td valign='top'><a href='/english/contact_us/index.html'><img src='/english/images/contactus.gif' alt='' border='0' width='109' height='40' id='Image6' onMouseOver=MM_swapImage('Image6','','/english/images/contactusO.gif',1) onMouseOut=MM_swapImgRestore()></a></td>";
top+="			</tr>";
top+="		</table>";
top+="		</td>";
top+="	</tr>";
top+="	<tr>";
top+="		<td valign='top'>";
top+="		<table style='width: 900px;height:21px;' cellspacing='0' cellpadding='0'>";
top+="			<tr>";
top+="				<td valign='top'><img src='/english/images/index_09.gif' width='20' height='21' alt=''></td>";
top+="				<!--td valign='top'><img src='/english/images/banner.gif' width='864' height='21' alt=''-->";

top+="<td width='864' height='21' background='/english/images/index_06.jpg' valign='top'>";
	top +="<marquee id='MyMarquee' scrolldelay='100' style='font-family: VERDANA; font-size: 10pt; color: #515151; text-align: right; direction: rtl; font-weight:600; padding-top:1px;' height='20'>";
top +="000";
top +="</marquee>";
	
			
top+="</td>";

top+="				<td valign='top'><img src='/english/images/index_11.gif' width='16' height='21' alt=''></td>";
top+="			</tr>";
top+="		</table>";
top+="		</td>";
top+="	</tr>";
top+="</table>";

document.write(top);
getFile("/english/FetchMarquee.aspx");

}





function getFile(XmlUrl) 
{  if (window.XMLHttpRequest) 
    {
        xmlhttp=new XMLHttpRequest();
        eval('xmlhttp.onreadystatechange=raw;');
        xmlhttp.open("GET", XmlUrl, true); 
        xmlhttp.send(null);
    } 

else if (window.ActiveXObject) 
{ 
    xmlhttp=new ActiveXObject('Microsoft.XMLHTTP'); 
    if (xmlhttp) 
    {
        eval('xmlhttp.onreadystatechange=raw;');
        xmlhttp.open('GET', XmlUrl, false);
        xmlhttp.send();
    }
}
}


function raw() 
{
if (xmlhttp.readyState==4)
{

if (xmlhttp.status==200)
 {
  document.getElementById("MyMarquee").innerHTML = xmlhttp.responseText;
  

 }

 }

 }

