var ie=document.all?1:0; var lbottom; var docmode=false; function sesliSunum_kapat(){ if (document.getElementById){ var flashObj = document.getElementById("SesliSunumFlash"); flashObj.parentNode.removeChild(flashObj); } } function sesliSunum_closeBTN(){ var r=confirm("Sunumu kapatmak istiyormusunuz?"); if (r==true) { if (document.getElementById){ var flashObj = document.getElementById("SesliSunumFlash"); flashObj.parentNode.removeChild(flashObj); } } } function SesliSunum_addHTML (html) { if (document.all) document.body.insertAdjacentHTML("beforeEnd", html); else if (document.createRange) { var range = document.createRange(); range.setStartAfter(document.body.lastChild); var cFrag = range.createContextualFragment(html); document.body.appendChild(cFrag); } else if (document.layers) { var X = new Layer(window.innerWidth); X.document.open(); X.document.write(html); X.document.close(); X.top = document.height; document.height += X.document.height; X.visibility = "show"; } } function SesliSunum_checkScrolled(){ document.getElementById("divSesliSunum").style.bottom = (parseInt(lbottom)-eval(scrolled)); } function SesliSunum_get_doctype(){ var doctype = document.body.parentNode.parentNode.firstChild.nodeValue; if (!doctype){ return false; } if (doctype.indexOf("DOCTYPE") > -1){ return true; } return false; } function SesliSunum_SesliSunumInit(){ if (ie){ docmode = SesliSunum_get_doctype(); if (docmode){ document.getElementById("divSesliSunum").style.position="fixed"; } else { scrolled="document.body.scrollTop"; lbottom = document.getElementById("divSesliSunum").style.pixelBottom; window.onscroll=SesliSunum_checkScrolled; } } else { document.getElementById("divSesliSunum").style.position="fixed"; } document.body.appendChild(document.getElementById("divSesliSunum")); document.getElementById("divSesliSunum").style.visibility="visible"; } function SesliSunum_createAll(){ SesliSunum_addHTML(''); SesliSunum_SesliSunumInit(); } window.onload=SesliSunum_createAll