 function MM_swapImgRestore() {
      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_preloadImages() {
      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_findObj(n, d) {
      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() {
      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 flvS3(v1){
    var v2=MM_findObj(v1),v3=0,v4=0,v5=0,v6=0;if (!v2){this.x=this.y=this.h=this.w=0;return;}var v7=(document.layers)?v2:v2.style;v3=v7.left;v4=v7.top;if ((v3==""||v4=="")&&document.all&&!window.opera){if (v3==""){v3=v2.offsetLeft;}if (v4==""){v4=v2.offsetTop;}}if (v2.offsetHeight){v5=v2.offsetHeight;v6=v2.offsetWidth;}else if (document.layers){v5=v7.clip.height;v6=v7.clip.width;}this.x=parseInt(v3);this.y=parseInt(v4);this.h=parseInt(v5);this.w=parseInt(v6);}
    
    function flvS8(v1,v2,v3){
    var v4=(document.layers)?v1:v1.style;var v5=flvS5();eval("v4.left='"+v2+v5+"'");eval("v4.top='"+v3+v5+"'");}
    
    function flvS5(){
    var v1=((parseInt(navigator.appVersion)>4||navigator.userAgent.indexOf("MSIE")>-1)&&(!window.opera))?"px":"";return v1;}
    
    function flvXAS1() {
       var v1=arguments,v2=v1.length,v3='AutoScrollContainer',v4='AutoScrollContent';var v5=MM_findObj(v3),v6=MM_findObj(v4);if (!v5){return;}if (v5.XAS1!=null){clearTimeout(v5.XAS1);}var v7=(v2>0)?parseInt(v1[0]):1;if (v7){var v8=(v2>1)?parseInt(v1[1]):1,v9=(v2>2)?parseInt(v1[2]):50,v10=(v2>3)?parseInt(v1[3]):1;var v11=new flvS3(v3),v12=new flvS3(v4);var v13=v12.x,v14=v12.y,v15=0,v16=0;if (v10==1){var v17=-1*v12.h;v15=v12.x;if (v14>=v17){v16=v12.y-v8;}else {v16=v11.h;}}else {var v18=-1*v12.w;v16=v12.y;if (v13>=v18){v15=v12.x-v8;}else {v15=v11.w;}}flvS8(v6,v15,v16);v5.XAS1=setTimeout("flvXAS1("+v7+","+v8+","+v9+","+v10+")",v9);}}

    function remote(){
        win2=window.open("ask_dubai.htm","","width=430,height=400,scrollbars")
        win2.creator=self
    }

    function openDEG() {
        window.open("http://www.dubai.ae/ar.portal","");           
    }


    //-->
  
  
    
    function MM_preloadImages() {
      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_findObj(n, d) {
      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() {
      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 flvS3(v1){
    var v2=MM_findObj(v1),v3=0,v4=0,v5=0,v6=0;if (!v2){this.x=this.y=this.h=this.w=0;return;}var v7=(document.layers)?v2:v2.style;v3=v7.left;v4=v7.top;if ((v3==""||v4=="")&&document.all&&!window.opera){if (v3==""){v3=v2.offsetLeft;}if (v4==""){v4=v2.offsetTop;}}if (v2.offsetHeight){v5=v2.offsetHeight;v6=v2.offsetWidth;}else if (document.layers){v5=v7.clip.height;v6=v7.clip.width;}this.x=parseInt(v3);this.y=parseInt(v4);this.h=parseInt(v5);this.w=parseInt(v6);}
    
    function flvS8(v1,v2,v3){
    var v4=(document.layers)?v1:v1.style;var v5=flvS5();eval("v4.left='"+v2+v5+"'");eval("v4.top='"+v3+v5+"'");}
    
    function flvS5(){
    var v1=((parseInt(navigator.appVersion)>4||navigator.userAgent.indexOf("MSIE")>-1)&&(!window.opera))?"px":"";return v1;}
    
    function flvXAS1() {
       var v1=arguments,v2=v1.length,v3='AutoScrollContainer',v4='AutoScrollContent';var v5=MM_findObj(v3),v6=MM_findObj(v4);if (!v5){return;}if (v5.XAS1!=null){clearTimeout(v5.XAS1);}var v7=(v2>0)?parseInt(v1[0]):1;if (v7){var v8=(v2>1)?parseInt(v1[1]):1,v9=(v2>2)?parseInt(v1[2]):50,v10=(v2>3)?parseInt(v1[3]):1;var v11=new flvS3(v3),v12=new flvS3(v4);var v13=v12.x,v14=v12.y,v15=0,v16=0;if (v10==1){var v17=-1*v12.h;v15=v12.x;if (v14>=v17){v16=v12.y-v8;}else {v16=v11.h;}}else {var v18=-1*v12.w;v16=v12.y;if (v13>=v18){v15=v12.x-v8;}else {v15=v11.w;}}flvS8(v6,v15,v16);v5.XAS1=setTimeout("flvXAS1("+v7+","+v8+","+v9+","+v10+")",v9);}}

    function remote(){
        win2=window.open("ask_dubai.htm","","width=430,height=400,scrollbars")
        win2.creator=self
    }

    function openDEG() {
        window.open("http://www.dubai.ae/ar.portal","");           
    }

      function changeStyle(value) {
      if(value == '3'){
        window.location="/dp/main.jsp?change_bgColor=false&changeStyle=true&style=" + value;
        
        document.getElementById('stylesheet').href = value;
      }else if(value == '5'){
        window.location="/dp/main.jsp?change_bgColor=true&changeStyle=true&style=" + value;
        
        document.getElementById('stylesheet').href = value;
      }else{

        window.location="/dp/main.jsp?changeStyle=true&style=" + value;
        
        document.getElementById('stylesheet').href = value;
        }
      }
      

 var min=12;
var max=15;
var max1=18;
var min1=15;

function loadFontSize() {





   var p = document.getElementsByTagName("td");
    var p1 = document.getElementsByTagName("font");
   
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));

      } else {
         var s = 12;

      }
      if(s!=max) {
         s += 0;
      }
      p[i].style.fontSize = s+"px";
   }
   
   for(i=0;i<p1.length;i++) {
      if(p1[i].style.fontSize) {
         var s = parseInt(p1[i].style.fontSize.replace("px",""));

      } else {
         var s = 15;

      }
      if(s!=max1) {
         s += 0;
      }
      p1[i].style.fontSize = s+"px";
   }
}



function ChangeColor() {
    
   var p = document.getElementsByTagName("a");
   
   for(i=0;i<p.length;i++) {
       p[i].style.color = "#ffffff";
       //p[i].style.background = "#000000";
   }
   
   
  var p2 = document.getElementsByTagName("td");
   for(i=0;i<p2.length;i++) {
       p2[i].style.color = "#ffffff";
       p2[i].style.background = "#000000";  
       
       if ( p2[i].className == 'Block_text2' ) {
          p2[i].style.color = "#ffffff";
          p2[i].style.background = "background-image: url('Styles/black/images/block_bg.gif') repeat";
          
       }
       
       if ( p2[i].className == 'otherLinks' ) {
          p2[i].style.color = "#ffffff";
          p2[i].style.background = "background-image: url('Styles/black/images/header_lines.jpg') repeat";
          
       }
       
       if ( p2[i].className == 'Block_text3' ) {
          p2[i].style.color = "#ffffff";
          p2[i].style.background = "background-image: url('Styles/black/images/news_main_hdr_black.gif') repeat";
          
       }
       if ( p2[i].className == 'Bg_Menu' || p2[i].className == 'Menu_footer1' || p2[i].className == 'separat') {
          p2[i].style.color = "#ffffff";
          p2[i].style.background = "background-image: url('Styles/black/images/block_bg.gif') repeat";
          
       }
        if ( p2[i].className == 'footerTest' ) {
          p2[i].style.color = "#ffffff";
          p2[i].style.background = "background-image: url('Styles/black/images/footer_internet_v2_02.gif') repeat";
          
       }
       if ( p2[i].className == 'headerTest' ) {
          p2[i].style.color = "#ffffff";
          p2[i].style.background = "background-image: url('Styles/black/images/main_banner_02.jpg') repeat";
          
       }
       if ( p2[i].className == 'portlet_title' ) {
          p2[i].style.color = "#ffffff";
          p2[i].style.background = "background-image: url('Styles/black/images/block_bg.gif') repeat";
          
       }
       
   }

   
   var p3 = document.getElementsByTagName("font");
   for(i=0;i<p3.length;i++) {
       p3[i].style.color = "#ffffff";
       
   }
   
//   var p4 = document.getElementsByTagName("div");
//   for(i=0;i<p4.length;i++) {
//       p4[i].style.color = "#ffffff";
//       p4[i].style.background = "#000000";
//       
//       if ( p4[i].className == 'portlet_title' ) {
//          p2[i].style.color = "#ffffff";
//          p2[i].style.background = "background-image: url('Styles/black/images/block_bg.gif') repeat";
//          
//       }
//   }   
}


function normalColor(){

location.reload(true);
}


function increaseFontSize() {

   var p = document.getElementsByTagName("td");
   
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));

      } else {
         var s = 12;

      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px";
   }
   
   
/////////////////////////////////////////////////
   var p2 = document.getElementsByTagName("font");
   for(i=0;i<p2.length;i++) {
      
      
      if(p2[i].style.fontSize) {
               var s = parseInt(p2[i].style.fontSize.replace("px",""));

      } else {
         var s = 15;

      }
      if(s!=max1) {
         s += 1;
      }
      p2[i].style.fontSize = s+"px";
   }

/////////////////////////////////////////////////


}
function decreaseFontSize() {
   var p = document.getElementsByTagName("td");
   
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px";
     
   }
   

   
   //////////////////////////////////
   var p2 = document.getElementsByTagName("font");
   for(i=0;i<p2.length;i++) {
      if(p2[i].style.fontSize) {
         var s = parseInt(p2[i].style.fontSize.replace("px",""));
      } else {
         var s = 15;
      }
      if(s!=min1) {
         s -= 1;
      }
      p2[i].style.fontSize = s+"px";
   }     
   }
   
   /////////////////////////////////
