function create(htmlStr) { var frag = document.createDocumentFragment(), temp = document.createElement('div'); temp.innerHTML = htmlStr; while (temp.firstChild) { frag.appendChild(temp.firstChild); } return frag; } var css = '#MtoL{display:block;position:absolute;z-index:999999;width:880px;left:50%;top:-24px;margin-left:-440px;}#MtoL A{display:block;float:left;text-align:center;width:146px;color:#FFFFFF;padding:8px 10px;text-transform:uppercase;}'; var head = document.head || document.getElementsByTagName("head")[0]; var style = document.createElement('style'); style.type = 'text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); var fragment = create('
PašvaldībaKontaktiKultūraTūrismsSportsUzņēmējdarbība
'); setTimeout(function(){ document.body.insertBefore(fragment, document.body.childNodes[0]); if($){ $("#MtoL").mouseenter(function(){ $(this).stop(1,0).animate({top:0},200); }).mouseleave(function(){ $(this).stop(1,0).animate({top:-24},200); }).css("top","-40px").animate({top:-24},200); } },500);