function localLayout()
{
var dimensions = $('bgholder').getDimensions(); 

  $('tickernewsimg').absolutize(); 
  $('tickernewsimg').setStyle({top:topheight-5 + 'px',left:'10px'});  
 

  $('ticker').absolutize(); 
  $('ticker').setStyle({top:'135px',left:'10px',backgroundColor:'#5e5e5e'});  
  $('ticker').style.width=$('tickercontent').getWidth() +  "px"
  $('ticker').style.height=$('tickercontent').getHeight()  + "px"
  $('ticker').setOpacity(0.85)
  
  $('tickercontent').absolutize(); 
  $('tickercontent').clonePosition($('ticker'),{setWidth:false,setHeight:false});
  $('tickercontent').setStyle({backgroundColor:'transparent',direction:'rtl'});    
  $('tickercontent').setOpacity(1)


  $('fb_bg').absolutize();
  $('fb_bg').setStyle({ top: $('ticker').getHeight() + 138+ 'px', left: '10px', backgroundColor: '#5e5e5e' });
  $('fb_bg').style.width = $('fb_content').getWidth() + "px"
  $('fb_bg').style.height = $('fb_content').getHeight() + "px"
  $('fb_bg').setOpacity(0.85)

  $('fb_content').absolutize();
  $('fb_content').clonePosition($('fb_bg'), { setWidth: false, setHeight: false });
  $('fb_content').setStyle({ backgroundColor: 'transparent', direction: 'rtl' });
  $('fb_content').setOpacity(1)


  $('hptextbg').absolutize(); 
  $('hptextbg').setStyle({top:'120px',backgroundColor:'#141414'});  
  $('hptextbg').style.width=$('hptext').getWidth() + 20 + "px"
  $('hptextbg').style.height=$('hptext').getHeight() + 20 + "px"
  $('hptextbg').style.left=(docw-70-$('hptextbg').getWidth()) + 'px';
  $('hptextbg').setOpacity(0.85)
  
  
  $('hptext').absolutize(); 
  $('hptext').clonePosition($('hptextbg'),{setWidth:false,setHeight:false,offsetLeft: 10, offsetTop: 10});
  $('hptext').setStyle({backgroundColor:'transparent',direction:'rtl'});    
  $('hptext').setOpacity(1)
  

var dimensions = $('bgholder').getDimensions();



  $('bottommenubg').absolutize(); 
  $('bottommenubg').setStyle({height: '84px',backgroundColor:'#30b7fc'});  
  $('bottommenubg').style.width=(docw) + 'px';
  $('bottommenubg').style.top=(doch-84-bottomheight) + 'px';
  $('bottommenubg').setOpacity(0.85)
  

  $('bottommenu').absolutize(); 
  $('bottommenu').clonePosition('bottommenubg');
  $('bottommenu').setStyle({backgroundColor:'transparent',direction:'ltr'});    
  $('bottommenu').setOpacity(1)

  var a = $('fade');
  a.absolutize();
  a.setOpacity(0.8);
  //a.style.display = 'block';
  a.style.width = (docw) + 'px';
  a.style.height = (doch) + 'px';
  //a.style.display = 'none';
  //new Effect.Hide($('fade'), { from: 0.0, to: 0.8, duration: 3.0 })

  var b = $('light');
  //b.style.display = 'block';
  b.style.width = (550) + 'px';
  b.style.height = (400) + 'px';
  b.style.top = (doch - 400) / 2;
  b.style.left = (docw - 550) / 2;
  //b.style.display = 'none';
  
  }
  
function calcLocalHeight()
{
var h1 = document.viewport.getHeight()
var h2 = $('hptextbg').getHeight() + topheight + bottomheight + 84 + 10 // 84 is the slogen // 10 allow spacing
var h3 = $('ticker').getHeight() + $('fb_bg').getHeight() + 5 + 120 + bottomheight + 84 + 10 // 120 is the top location for that element //84 is the slogen // 30 allow spacing


h2 = (h2>h3)?h2:h3;
if (h2 > h1 )
	doch = h2 + 5
else
	doch = h1 -3
	


//	active window height= (document.viewport.getHeight()  );
//	98 is the top menu!

}   
