var dragapproved=false; var initialwidth,initialheight; var ie5=document.all&&document.getElementById; var ns6=document.getElementById&&!document.all; var inlineBoxId = "DayBox"; var inlineAdActive = false; function iecompattest(){ return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body; } function drag_drop(e){ if (ie5&&dragapproved&&event.button==1){ document.getElementById(inlineBoxId).style.left = tempx+event.clientX-offsetx+"px"; document.getElementById(inlineBoxId).style.top = tempy+event.clientY-offsety+"px"; } else if (ns6&&dragapproved){ document.getElementById(inlineBoxId).style.left = tempx+e.clientX-offsetx+"px"; document.getElementById(inlineBoxId).style.top = tempy+e.clientY-offsety+"px"; } } function stopdrag(){ dragapproved=false; document.getElementById(inlineBoxId).onmousemove=null; } function initializedrag(e){ offsetx=ie5? event.clientX : e.clientX; offsety=ie5? event.clientY : e.clientY; tempx=parseInt(document.getElementById(inlineBoxId).style.left); tempy=parseInt(document.getElementById(inlineBoxId).style.top); dragapproved=true; document.getElementById(inlineBoxId).onmousemove=drag_drop; } function mousePos(e) { if(!e) e = window.event; var body = (window.document.compatMode && window.document.compatMode == "CSS1Compat") ? window.document.documentElement : window.document.body; return { // Position im Dokument top: e.pageY ? e.pageY : e.clientY + body.scrollTop - body.clientTop, left: e.pageX ? e.pageX : e.clientX + body.scrollLeft - body.clientLeft }; } function DayBox(){ } DayBox.close = function(){ var box = document.getElementById("DayBox"); box.className = "invisibleBox"; } DayBox.show = function(srcUrl, title, pos){ var boxTitle = document.getElementById("DayBoxTitle"); var yy = title.substr(0,4); var mm = title.substr(5,2); var dd = title.substr(8,2); boxTitle.innerHTML = "Eventos en "+dd+"/"+mm+"/"+yy; var boxContent = document.getElementById("DayBoxContent"); boxContent.innerHTML = "