/* ================= DM_HDR_SABIT: header sabitlenince yerine bosluk birak (sayfa zipplamasi/CLS onlemi) ================= */
/* Kapatmak icin: aktif:false yapin */
var DM_HDR_CFG={aktif:true};
(function(){
if(!DM_HDR_CFG.aktif)return;
var h=null,ph=null,sonH=0;
function bul(){h=document.querySelector(".headerNew");return !!h;}
function tik(){
if(!h&&!bul())return;
var sabit=h.classList.contains("fixed");
if(!sabit&&h.offsetHeight>0){sonH=h.offsetHeight;}
if(sabit&&!ph&&sonH>0){
ph=document.createElement("div");ph.id="dmHdrYer";ph.style.height=sonH+"px";
h.parentNode.insertBefore(ph,h);
}else if(!sabit&&ph){ph.parentNode&&ph.parentNode.removeChild(ph);ph=null;}
}
var dnm=0;
function kur(){
if(!bul()){if(++dnm<20)setTimeout(kur,800);return;}
try{new MutationObserver(tik).observe(h,{attributes:true,attributeFilter:["class"]});}catch(e){}
window.addEventListener("scroll",tik,{passive:true});
tik();
}
if(document.readyState!=="loading")kur();else document.addEventListener("DOMContentLoaded",kur);
})();