
var a=new Array(7); 
var c=new Array(7); 
 
function showhide(id,p){  
 
//alert(id); 
 
setImg(p); 
 
if (id=="saudiSubmenu" || id=="uaeSubmenu") 
{ 
document.getElementById("saudiSubmenu").style.display= 'none'; 
document.getElementById("uaeSubmenu").style.display= 'none'; 
 
} 
else 
{ 
 
    if(id=="iraq_map" || id=="kuwait_map" || id=="bahrain_map" || id=="qatar_map" || id=="oman_map") 
    { 
        document.getElementById("saudiSubmenu").style.display= 'none'; 
        document.getElementById("uaeSubmenu").style.display= 'none'; 
    } 
 
document.getElementById("countrymap").style.display= 'none'; 
document.getElementById("saudi_map").style.display= 'none'; 
document.getElementById("saudi_Qasim").style.display= 'none'; 
document.getElementById("saudi_Damman").style.display= 'none'; 
document.getElementById("saudi_Riyadh").style.display= 'none'; 
document.getElementById("saudi_Madinah").style.display= 'none'; 
document.getElementById("saudi_Jeddah").style.display= 'none'; 
document.getElementById("saudi_Asir").style.display= 'none'; 
document.getElementById("iraq_map").style.display= 'none'; 
document.getElementById("kuwait_map").style.display= 'none'; 
document.getElementById("bahrain_map").style.display= 'none'; 
document.getElementById("qatar_map").style.display= 'none'; 
document.getElementById("uae_map").style.display= 'none'; 
document.getElementById("uae_RasAlKh").style.display= 'none'; 
document.getElementById("uae_Ajman").style.display= 'none'; 
document.getElementById("uae_Fujairah").style.display= 'none'; 
document.getElementById("uae_Sharjah").style.display= 'none'; 
document.getElementById("uae_Dubai").style.display= 'none'; 
document.getElementById("uae_AlAin").style.display= 'none'; 
document.getElementById("uae_AbuDhabi").style.display= 'none'; 
document.getElementById("uae_Western").style.display= 'none'; 
document.getElementById("oman_map").style.display= 'none'; 
} 
 
 
if (document.getElementById){  
obj = document.getElementById(id);  
if (obj.style.display == "none"){  
obj.style.display = "";  
} else {  
obj.style.display = "none";  
}  
 
 
 
}  
 
 
 contentHeight = "500";
 obj2 = document.getElementById("menuLength");   
    if (id=="saudi_Qasim") 
    obj2.height=contentHeight; 
        
    else if (id=="saudi_Damman") 
    obj2.height=contentHeight; 
     
    else if (id=="saudi_map") 
    obj2.height=contentHeight; 
     
      else if (id=="saudi_Riyadh") 
    obj2.height=contentHeight; 
     
      else if (id=="saudi_Madinah") 
    obj2.height=contentHeight; 
     
      else if (id=="saudi_Jeddah") 
    obj2.height=contentHeight; 
     
      else if (id=="saudi_Asir") 
    obj2.height=contentHeight; 
     
     else if (id=="iraq_map") 
    obj2.height="350"; 
     
     else if (id=="kuwait_map") 
    obj2.height=contentHeight; 
     
    else if (id=="bahrain_map") 
    obj2.height=contentHeight; 
     
     
    else if (id=="uae_RasAlKh") 
    obj2.height=contentHeight; 
     
     
    else if (id=="uae_Ajman") 
    obj2.height=contentHeight; 
     
     
    else if (id=="uae_Fujairah") 
    obj2.height=contentHeight; 
     
     
    else if (id=="uae_Sharjah"){ 
    obj2.height=contentHeight; 
    //iframeId = 'ifuae_Sharjah'
    autoResize('ifuae_Sharjah');
     }
     
    else if (id=="uae_Dubai") 
    obj2.height=contentHeight; 
     
     
    else if (id=="uae_AlAin") 
    obj2.height=contentHeight; 
     
     
    else if (id=="uae_AbuDhabi") 
    obj2.height=contentHeight; 
     
     
    else if (id=="uae_Western") 
    obj2.height=contentHeight; 
     
     
     else if (id=="oman_map") 
    obj2.height=contentHeight; 
     
     else if (id=="qatar_map") 
    obj2.height=contentHeight; 
     
         
    else 
    obj2.height="350"; 
     
     
     
    if (id=="saudi_map" || id=="iraq_map" || id=="kuwait_map" || id=="bahrain_map" || id=="qatar_map" || id=="uae_map" || id=="oman_map" ) 
    { 
        tdHomQualMnu.innerHTML = "<a class='breadcrumb' href='home-page.htm'>Home ></a> <a class='breadcrumb' href='countries.html'>Countries ></a>"; 
    } 
    else if (id=="saudi_Qasim" || id=="saudi_Damman" || id=="saudi_Riyadh" || id=="saudi_Madinah" || id=="saudi_Jeddah" || id=="saudi_Asir" ) 
    { 
        tdHomQualMnu.innerHTML = "<a class='breadcrumb' href='home-page.htm'>Home ></a> <a class='breadcrumb' href='countries.html'>Countries ></a> <a class='breadcrumb' href='#' onclick=javascript:showhide('saudiSubmenu',1);showhide('saudi_map',1) >Saudi ></a>"; 
    } 
    else if (id=="uae_RasAlKh" || id=="uae_Ajman" || id=="uae_Fujairah" || id=="uae_Sharjah" || id=="uae_Dubai" || id=="uae_AlAin" || id=="uae_AbuDhabi" || id=="uae_Western" ) 
    { 
        tdHomQualMnu.innerHTML = "<a class='breadcrumb' href='home-page.htm'>Home ></a> <a class='breadcrumb' href='countries.html'>Countries ></a> <a class='breadcrumb' href='#' onclick=javascript:showhide('uaeSubmenu',6);showhide('uae_map',6) >UAE ></a>"; 
    } 
     
     
     
}   
 
 
function setImg(num) 
{ 
for(i=0;i<7;i++) 
{ 
    a[i]="products/arrw-n.gif"; 
    c[i]="gray" 
} 
 
 
 
a[num-1]="products/arraw1.gif"; 
c[num-1]="#3B89B0" 
 
 
document.getElementById("img1").src =a[0]; 
document.getElementById("img2").src =a[1]; 
document.getElementById("img3").src =a[2]; 
document.getElementById("img4").src =a[3]; 
document.getElementById("img5").src =a[4]; 
document.getElementById("img6").src =a[5]; 
document.getElementById("img7").src =a[6]; 
 
 
document.getElementById("Span1").style.color =c[0]; 
document.getElementById("Span2").style.color =c[1]; 
document.getElementById("Span3").style.color =c[2]; 
document.getElementById("Span4").style.color =c[3]; 
document.getElementById("Span5").style.color =c[4]; 
document.getElementById("Span6").style.color =c[5]; 
document.getElementById("Span7").style.color =c[6]; 
 
 
} 
 
 
 
 
function setImgOut() 
{ 
//a = "About-us/arrw-n.gif"; 
//c = "gray" 
 
document.getElementById("img1").src =a[0]; 
document.getElementById("img2").src =a[1]; 
document.getElementById("img3").src =a[2]; 
document.getElementById("img4").src =a[3]; 
document.getElementById("img5").src =a[4]; 
document.getElementById("img6").src =a[5]; 
document.getElementById("img7").src =a[6]; 
 
 
document.getElementById("Span1").style.color =c[0]; 
document.getElementById("Span2").style.color =c[1]; 
document.getElementById("Span3").style.color =c[2]; 
document.getElementById("Span4").style.color =c[3]; 
document.getElementById("Span5").style.color =c[4]; 
document.getElementById("Span6").style.color =c[5]; 
document.getElementById("Span7").style.color =c[6]; 
 
 
} 


function autoResize(iframeId) {
    var dest = document.getElementById('container');
    
    //var Ifid = document.getElementById(iframeId);
    //var source = window.frames[0].document.body.innerHTML;
    alert(window.frames[0].document.body.innerHTML);
    //dest.innerHTML = source
    //document.getElementById(iframeid).style.display='none';
    //alert(iframeId);
} 
 
 
 
 
 
function window_onload() { 
for(i=0;i<7;i++) 
{ 
    a[i]="products/arrw-n.gif"; 
    c[i]="gray" 
     
} 
 
//---------------------------------------------------------- 
var qs = window.location.search.substring(1); 
 if (qs=='id=00'){ 
    showhide('bahrain_map',1); 
 } 
 else if (qs=='id=10'){ 
    showhide('iraq_map',2); 
 } 
 else if (qs=='id=20'){ 
    showhide('kuwait_map',3); 
 } 
 else if (qs=='id=30'){ 
    showhide('oman_map',4); 
 } 
 else if (qs=='id=40'){ 
    showhide('qatar_map',5); 
 } 
else if (qs=='id=50'){ 
    showhide('saudiSubmenu',6); 
    showhide('saudi_map',6); 
 } 
 else if (qs=='id=60'){ 
    showhide('uaeSubmenu',6); 
    showhide('uae_map',7); 
 } 
 
 
 
} 
 
 
 
 