 function AreaResize()
 {
 var ScrollWdt=D.body.scrollWidth;
 var ScrollHgt=D.body.scrollHeight;
  if(isNS)  
  {
  ScrWdt=window.innerWidth;
  ScrHgt=window.innerHeight;
 	}
 	else
  {
  ScrWdt=D.body.clientWidth;
  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;
 factorImWH = Math.min(Math.min(factorW,factorH),1);//images up to x 1.20((+-)

 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
//CS

	 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;
		}

//RszFulldoc
 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(D.getElementById("Ipop") && isNS)
  D.getElementById("Ipop").style.posTop="15px";
	
  if(elalli)//fulldoc
		{
  elalli.style.zIndex=3;	
  elalli.style.visibility='visible';
		}

	Dh=D.location.hash;
		if(Dh.indexOf("#")>-1)
		{
 	 if(Dh.length>1)
  	D.location.hash=Dh;
  }
 }//End AreaResize
	
 function AreaFormat() { }
 function showImg(a,b){D.getElementById(a).style.visibility=b}
 function WLC(F,C){window.open(F,C)}
//jG MP
 function mp_stop(BAfile) {D.getElementById("MediaPlayer").style.visibility="hidden"; window.open(BAfile,"_self","replace")}; 
//end jG MP

// var initX=200;
	
	function drag_dropB(e)
 {
  if (ie4&&dragapproved)
  {
  crossobj.style.left=tempx+event.clientX-offsetx
  crossobj.style.top=tempy+event.clientY-offsety
  return false
  }
  else if (ns6&&dragapproved)
 	{
  crossobj.style.left=tempx+e.clientX-offsetx+"px"
  crossobj.style.top=tempy+e.clientY-offsety+"px"
  return false
  }
 }

 function initB_drag(e,f,g)
 {
 crossobj = ns6 ? D.getElementById(g) : D.all[g]
 var firedobj=ns6? e.target : event.srcElement
 var topelement=ns6? "html" : D.compatMode && D.compatMode!="BackCompat"? "documentElement" : "body"
  while (firedobj.tagName!=topelement.toUpperCase() && firedobj.id!=f)
  {
  firedobj=ns6? firedobj.parentNode : firedobj.parentElement
  }
  if (firedobj.id==f)
 	{
  offsetx=ie4? event.clientX : e.clientX
  offsety=ie4? event.clientY : e.clientY
 	tempx=parseInt(crossobj.style.left)
 	tempy=parseInt(crossobj.style.top)
 	dragapproved=true
 	D.onmousemove=drag_dropB
  }
 }
