 /*
   Layer pozíciók beállítása
 */
 function initPos(layerName,L,T){
   if ( NS6 || IE ) {
  	 eval('var obj=document.getElementById("'+layerName+'");');
	   obj.style.left=L;
	   obj.style.top=T;
     obj.style.visibility="visible";
   }else if ( NS4 ){
      eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left=L');
      eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top=T');
      eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
    }
 }
 
 // layer csoportok vizszintes konstans meretei
 var Search_TOP_NS6=146;
 var Search_TOP_NS4=146;
 var Search_TOP_IE=147;
 
 function InitLayersIE(){
   var Cwidth=document.body.clientWidth;
   if ( Cwidth<900 ){ Cwidth=901; }
   var CenterW=Math.round(Cwidth/2);
   initPos('Lsearch',CenterW-22,Search_TOP_IE);
 }
 
 function InitLayersNS4(){
   var Cwidth=window.innerWidth;
   var Cheight=window.innerHeight;
   if ( Cwidth<900 ){ Cwidth=900; }
   var CenterW=Math.round(Cwidth/2);
   initPos('Lsearch',CenterW-22,Search_TOP_NS4);
 }
 
 function InitLayersNS6(){
   var Cwidth=window.innerWidth;
   if ( Cwidth<900 ){ Cwidth=900; }
   var CenterW=Math.round(Cwidth/2);
   initPos('Lsearch',CenterW-35,Search_TOP_NS6);
 }
 
 function InitLayers(){
   if ( IE ){ InitLayersIE(); }
   else if ( NS4 ){ InitLayersNS4(); }
        else if ( NS6 ){ InitLayersNS6(); }
 }
