isIE=0;
if (navigator.appName=="Netscape"){
isIE=0;
}else{
isIE=1;
}

overPic= new makeArray(4)
normalPic= new makeArray(4)
overPic[0].src="images/model-range-ov.gif"
overPic[1].src="images/styling-&-technology-m-ov.gif"
overPic[2].src="images/Alkhayyat-Group-ov.gif"
overPic[3].src="images/Promotions-&-Offers-m-ov.gif"

normalPic[0].src="images/model-range.gif"
normalPic[1].src="images/styling-&-technology-m-n.gif"
normalPic[2].src="images/Alkhayyat-Group.gif"
normalPic[3].src="images/Promotions-&-Offers-m-n.gif"

function makeArray(n){
 this.length=n;
 for(i=0;i<=n;i++)
   this[i]=new Image();
   return this;
}


if (navigator.appName=="Netscape")
   IE=false;
 else
   IE=true



function mouseover(picName,picNumber)
{
 if(IE)
  document.images[picName].src = overPic[picNumber].src
 else
  document.layers['div1'].document.images[picName].src = overPic[picNumber].src

}

function mouseout(picName,picNumber)
{
 if(IE)
   document.images[picName].src = normalPic[picNumber].src
 else
   document.layers['div1'].document.images[picName].src = normalPic[picNumber].src
}

function changePicture(picturePath){
  document.getElementById("contentArea").innerHTML="<img src=\""+picturePath+"\">"
}

function changeFlash(){
tempHtml="<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""
tempHtml=tempHtml+" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\""
tempHtml=tempHtml+" WIDTH=553 HEIGHT=262>"
tempHtml=tempHtml+" <PARAM NAME=movie VALUE=\"images/Default.swf\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#000000>" 
tempHtml=tempHtml+"	<EMBED src=\"images/Default.swf\" quality=high scale=exactfit bgcolor=#000000  WIDTH=553 HEIGHT=262 TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>"
tempHtml=tempHtml+"</OBJECT>  "
document.getElementById("contentArea").innerHTML=tempHtml
}
