
<!--
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];}
}

function newwin(url,name,features) {
		
  window.open(url,name,features);
}
//-->

// displays random images in header - Creativengine :: Author :: Dominic Santucci
var theImages = new Array()

theImages[0] = 'images/img/img1.jpg'
theImages[1] = 'images/img/img2.jpg'
theImages[2] = 'images/img/img3.jpg'
theImages[3] = 'images/img/img4.jpg'
theImages[4] = 'images/img/img5.jpg'
theImages[5] = 'images/img/img6.jpg'
theImages[6] = 'images/img/img7.jpg'
theImages[7] = 'images/img/img8.jpg'
theImages[8] = 'images/img/img9.jpg'
theImages[9] = 'images/img/img10.jpg'
theImages[10] = 'images/img/img11.jpg'
theImages[11] = 'images/img/img12.jpg'
theImages[12] = 'images/img/img13.jpg'
theImages[13] = 'images/img/img14.jpg'
theImages[14] = 'images/img/img15.jpg'
theImages[15] = 'images/img/img16.jpg'
theImages[16] = 'images/img/img17.jpg'
theImages[17] = 'images/img/img18.jpg'
theImages[18] = 'images/img/img19.jpg'
theImages[19] = 'images/img/img20.jpg'


var theAltText = new Array()

theAltText[0] = 'Asir region, Saudi Arabia Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[1] = 'Photo courtesy of Bob Cartledge, friend.'
theAltText[2] = 'Photo courtesy of Bob Cartledge, friend.'
theAltText[3] = 'Baby camel - Photo courtesy of Bob Cartledge, friend.'
theAltText[4] = 'Ruins of Dar\'iyah, the first Saudi capital Photo courtesy of Bob Cartledge, friend.'
theAltText[5] = 'Camel race at the AlJawf fair. Photo courtesy of Khalil Abou El-Nasr Saudi Aramco World, PADIA.'
theAltText[6] = 'Garden at King Abdulaziz Medical City, Riyadh Photo courtesy of  KAMC'
theAltText[7] = 'Camel race at the AlJawf fair. Photo courtesy of Khalil Abou El-Nasr Saudi Aramco World, PADIA.'
theAltText[8] = 'Al-Khobar beach in the Gulf at sunset Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[9] = ''
theAltText[10] = 'Wind sculpture Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[11] = 'One of the Gullf\'s more spectacular restaurants Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[12] = 'An Omani dhow Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[13] = 'A village in the Asir highlands Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[14] = 'Asir region, Saudi Arabia Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[15] = 'Camel race at the Al-Jawf fair. Photo courtesy of Khalil Abou El-Nasr /Saudi Aramco World / PADIA.'
theAltText[16] = 'Date palms and ancient walls- Muscat, Oman Photo courtesy of Tor Eigeland /Saudi Aramco World / PADIA.'
theAltText[17] = 'An old fort, Muscat Photo courtesy of Abdullah Y Al-Dobais /Saudi Aramco World / PADIA.'
theAltText[18] = 'Quba Mosque in Madinah at sunset Photo courtesy of S.M.Amin /Saudi Aramco World / PADIA.'
theAltText[19] = 'Nabatean building in solid rock  - Madain Saleh Photo courtesy of Bob Cartledge, friend.'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
	   preBuffer[i].alt = theAltText[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" alt="'+theAltText[whichImage]+'">');

}

// displays random images in header - Creativengine :: Author :: Dominic Santucci
var smallImages = new Array()

smallImages[0] = 'images/img/2img_1.jpg'
smallImages[1] = 'images/img/2img_2.jpg'
smallImages[2] = 'images/img/2img_3.jpg'
smallImages[3] = 'images/img/2img_4.jpg'
smallImages[4] = 'images/img/2img_5.jpg'
smallImages[5] = 'images/img/2img_6.jpg'
smallImages[6] = 'images/img/2img_7.jpg'
smallImages[7] = 'images/img/2img_8.jpg'
smallImages[8] = 'images/img/2img_9.jpg'

var smallAlt = new Array()

smallAlt[0] = 'UPPER IMAGE supplied courtesy of Bob Cartledtge, friend. LOWER IMAGE supplied couirtesy of Abdullah Y Al-Dobais / Saudi Aramco World / PADIA.'
smallAlt[1] = 'Photo supplied courtesy of King Abulaziz Medical City, Riyadh.'
smallAlt[2] = 'IMAGE supplied courtesy of  Robert Azz1 / Saudi Aramco World / PADIA.'
smallAlt[3] = 'IMAGE supplied courtesy of Bob Cartledtge, friend.'
smallAlt[4] = 'IMAGE supplied courtesy of Bob Cartledtge, friend.'
smallAlt[5] = 'IMAGES supplied courtesy of Bob Cartledtge, friend'
smallAlt[6] = 'UPPER IMAGE supplied courtesy of Abdullah Y Al-Dobais / Saudi Aramco World / PADIA. LOWER IMAGE supplied couirtesy of Bob Cartledtge, friend.'
smallAlt[7] = 'UPPER IMAGE supplied courtesy of Abdullah Y Al-Dobais / Saudi Aramco World / PADIA. LOWER IMAGE supplied couirtesy of Bob Cartledtge, friend.'
smallAlt[8] = 'UPPER IMAGE supplied courtesy of Abdullah Y Al-Dobais / Saudi Aramco World / PADIA. LOWER IMAGE supplied couirtesy of Bob Cartledtge, friend'

var j = 0
var p = smallImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = smallImages[i]
	 preBuffer[i].src = smallAlt[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImagesmall(){
document.write('<img src="'+smallImages[whichImage]+'" alt="'+smallAlt[whichImage]+'">');
}


	// display Flash Movie
 	function displaySWF(movie, width, height, play, loop, quality, scale, menu ){
		if ( play == "" )
			play = "true";
		if ( loop == "" )
			loop = "true";
		if ( quality == "" )
			quality = "high";
		if ( scale == "" )
			scale = "showall";
		if ( menu == "" )
			menu = "false";

		var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'WIDTH="'+width+'" HEIGHT="'+height+'"'
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0">'
		+ '<PARAM NAME="MOVIE" VALUE="'+movie+'">'
		+ '<PARAM NAME="PLAY" VALUE="'+play+'">'
		+ '<PARAM NAME="LOOP" VALUE="'+loop+'">'
		+ '<PARAM NAME="QUALITY" VALUE="'+quality+'">'
		+ '<param name="SCALE" value="'+scale+'" >'
		+ '<PARAM NAME="MENU" VALUE="'+menu+'">'
		+ '<EMBED SRC="'+movie+'"'
		+ 'WIDTH="'+width+'" HEIGHT="'+height+'"'
		+ 'PLAY="'+play+'"'
		+ 'LOOP="'+loop+'"'
		+ 'QUALITY="'+quality+'"'
		+ 'MENU="'+menu+'"'
		+ 'TYPE="application/x-shockwave-flash"'
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '<\/EMBED>'
		+ '<\/OBJECT>';
		document.write(oeTags);   // embed the flash movie
	}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
