 function AreaResize()
 {
 var ScrollWdt=D.body.scrollWidth;
 var ScrollHgt=D.body.scrollHeight;
  if(isNS)  
  {
  var ScrWdt=window.innerWidth;
  var ScrHgt=window.innerHeight;
 	}
 	else
  {
  var ScrWdt=D.body.clientWidth;
  var ScrHgt=D.body.clientHeight;
 	}
 factorW = ScrWdt/ScrollWdt;
 factorH = ScrHgt/ScrollHgt;
 factorWH = Math.min(factorW,factorH);
 ScrBarHgt = ScrHgt-((50+55+55)*factorH)-56;
 VerBarHgt = ScrHgt-((50)*factorH)-56;

 ScrFactor=factor;
 MovieScr=165*ScrFactor;
 divh=hgt=wdt=195;
 	if(isNS){wdt=hgt=155}
  pad=14*ScrFactor;

 n = D.all.length;
	namList="";
  for (i=0;i<n;i++)
  {
		si=0;
		nam=D.all(i).id;
   if(nam)
   {
			elalli=D.getElementById(nam);
				if(nam.indexOf("Fws")>-1)
    {
    val=nam.replace(/[^0-9]/g,'');
 			 if(val>0)
 				elalli.style.width=val*factorW;
    }
 		 else if(nam.indexOf("Fhs")>-1)
    {
    val=nam.replace(/[^0-9]/g,'');
 			 if(val>0)
 				elalli.style.height=val*factor;
    }
    else 
    {
  		namIm=D.all(i).name;
 				if(namIm && nam==namIm+"A")
     {
 					if(D.getElementById(nam))
						{
   			elalli=D.getElementById(nam);
						Hei=elalli.height
						Wid=elalli.width
      ImgR = Hei/Wid;
 					ImgH=Hei*factorW;

       if(nam.indexOf("Logo")>-1)
 						ImgH=Hei*factorWH;
						 if(nam.indexOf("Img")>-1)
 						ImgH=Hei*factorW;
							if(Hei > 150 && nam.indexOf("ImgAmz")>-1)
  					ImgH = 150*factorH;
       if(Hei > 130 && nam.indexOf("ImgAmz")>-1 && ecranH < 765)
  					ImgH = 130*factorH;
//						 if(nam.indexOf("Ctl")>-1 && isCatal)
// 						ImgH=Hei*factorWH*0.8;
							if(ImgH>0)
 						{
		 				elalli.style.height=ImgH;
	 					elalli.style.width=ImgH/ImgR;
 						}
						}
					}//if(namIm==
    }//else
			}//if(nam
  }//for
	 if(D.getElementById("cadreB"))
  D.getElementById("cadreB").style.height=435*factorW;
 wCs=280*factorW;wCsS=150*factorW;
	 if(D.getElementById("pop"))
		{
  D.getElementById("pop").style.width=wCs;
  D.getElementById("pop_content").style.width=wCs;
		}
 elalli=D.getElementById("RszFulldoc");
	 if(elalli)
		{
  val=elalli.style.fontSize;
  val=val.replace(/[^0-9]/g,'');
		elalli.style.fontSize=(val*factor)+"%";
		}
	LaliH('MainScrBarDiv',ScrBarHgt);
	LaliH('MainVertBarTD',VerBarHgt);
	LaliH('MainVertBarTDR',VerBarHgt);
  if(elalli)
		{
  elalli.style.zIndex=3;	
  elalli.style.visibility='visible';
		}
	Dh=D.location.hash;
		if(Dh.indexOf("#")>-1)
		{
 	 if(Dh.length>1)
  	D.location.href=Dh;
  }
 }//End AreaResize
	
 function AreaFormat() { }
 function dateUpDn(Field,CntField) {DayLim = new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);
 ThisDay=D.getElementById("day").value;
 ThisHou=D.getElementById("hou").value;
 ThisMon=D.getElementById("mon").value;	 
 ThisYea=D.getElementById("Yea").value;	 
  if(Field == 'day'){ThisDay=CntField;}else if(Field == 'hou'){ThisHou=CntField;if(ThisHou > 23){ThisHou=0;ThisDay++;}else if(ThisHou < 0){ThisHou=23;ThisDay--;}}if(ThisDay > DayLim[D.getElementById("mon").value]){ThisMon++;if(ThisMon > 12){ThisMon=1;ThisYea=D.getElementById("Yea").value;ThisYea++;};ThisDay = 1;} 
 else if(ThisDay < 1)
 {ThisMon--;
 if(ThisMon < 1)
 {ThisMon=12;
 ThisYea=D.getElementById("Yea").value;ThisYea--;}
 ThisDay=DayLim[ThisMon];}
 D.getElementById("hou").value = ThisHou;D.getElementById("mon").value = ThisMon;
 D.getElementById("day").value = ThisDay;D.getElementById("HouDispl").value=ThisHou+' h';
 D.getElementById("Yea").value=ThisYea;}
 
 function countUpDn(Field,CntField,MaxLim){if(CntField != MaxLim){D.getElementById(Field).value = CntField;}}
