function getInternetExplorerVersion(){var rv=-1;if(navigator.appName=='Microsoft Internet Explorer'){var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null)rv=parseFloat(RegExp.$1)}return rv}var ver=getInternetExplorerVersion();function getObject(obj){var o;if(document.getElementById)o=document.getElementById(obj);else if(document.all)o=document.all.obj;return o}function fade(amt){if(amt<=100){setFade(amt);amt+=10;setTimeout("fade("+amt+")",5)}}function setFade(amt){var obj=getObject("popwindiv");amt=(amt==100)?99.999:amt;obj.style.filter="alpha(opacity:"+amt+")";obj.style.KHTMLOpacity=amt/100;obj.style.MozOpacity=amt/100;obj.style.opacity=amt/100}_movePopWindowTrigger=false;_isPopup=false;_popWindowOffsetX=0;_popWindowOffsetY=0;_lastPopWindowLeft=0;_lastPopWindowTop=0;function popWindow(url,w,h,gui){w=w?w:430;h=h?h:250;if(!document.getElementById('popwindiv')){popwindiv=document.createElement('DIV');popwindiv.id='popwindiv';popwindiv.style.position=(document.all&&ver<7)?'absolute':'fixed';popwindiv.style.zIndex=200;popwindiv.style.visibility='hidden';document.getElementsByTagName('body')[0].appendChild(popwindiv);if(gui!==false){popwingui=document.createElement('DIV');popwingui.id='popwingui';popwingui.style.textAlign='right';popwingui.innerHTML="<a href=\"javascript:void(0);\" onclick=\"javascript:_close();\"><img src=\"/img/btFecha.jpg\" style=\"display: inline; margin: 0 0 0 auto\" width=\"18\" height=\"17\"/></a>";popwindiv.appendChild(popwingui)}schedule_item=document.createElement('DIV');schedule_item.id='schedule_item';popwindiv.appendChild(schedule_item)}else{_isPopup=true;popwindiv=document.getElementById('popwindiv');popwingui=document.getElementById('popwingui');schedule_item=document.getElementById('schedule_item')}schedule_item.innerHTML="";schedule_item.className='wait1';popwindiv.style.width=w+'px';popwindiv.style.height=(h+parseInt(popwingui.offsetHeight))+'px';schedule_item.style.width=w-2+'px';schedule_item.style.height=h-2+'px';if(!_isPopup){if(document.all){if(ver<7){popwindiv.style.top=_lastPopWindowTop=(parseInt((document.body.clientHeight/2)-(parseInt(popwindiv.style.height)/2))+document.body.scrollTop)+'px';popwindiv.style.left=_lastPopWindowLeft=(parseInt((document.body.clientWidth/2)-(parseInt(popwindiv.style.width)/2))+document.body.scrollLeft)+'px';window.onscroll=window.onresize=_MSIEpositionPopWindow}else{popwindiv.style.top=(parseInt(document.body.clientHeight/2)-(h/2))+'px';popwindiv.style.left=(parseInt(document.body.clientWidth/2)-(w/2))+'px'}}else{popwindiv.style.top=((window.innerHeight/2)-(h/2))+'px';popwindiv.style.left=((window.innerWidth/2)-(w/2))+'px'}document.onmousedown=_movePopWindow;document.onmouseup=new Function('_movePopWindowTrigger=false;')}setFade(0);popwindiv.style.visibility='';fade(0);if(window.XMLHttpRequest){req=new XMLHttpRequest()}else if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP")}req.open("GET",url,true);req.onreadystatechange=function(){if(req.readyState==4){var response=req.responseText;schedule_item.className='';schedule_item.innerHTML=response}};req.send(null)}function _MSIEpositionPopWindow(){popwindiv=document.getElementById('popwindiv');if(popwindiv){popwindiv.style.top=(parseInt(_lastPopWindowTop)+document.body.scrollTop)+'px';popwindiv.style.left=(parseInt(_lastPopWindowLeft)+document.body.scrollLeft)+'px'}}function _movePopWindow(e){bar=(document.all)?event.srcElement.id:e.target.id;if(bar=='popwingui'){_popWindowOffsetX=document.all?event.clientX:e.clientX;_popWindowOffsetY=document.all?event.clientY:e.clientY;popwindiv=document.getElementById('popwindiv');tempx=parseInt(popwindiv.style.left);tempy=parseInt(popwindiv.style.top);_movePopWindowTrigger=true;document.onmousemove=_dragPopWindow}}function _dragPopWindow(e){if(_movePopWindowTrigger==true){popwindiv=document.getElementById('popwindiv');if(document.all){popwindiv.style.left=_lastPopWindowLeft=(tempx+(event.clientX-_popWindowOffsetX))+'px';popwindiv.style.top=_lastPopWindowTop=(tempy+(event.clientY-_popWindowOffsetY))+'px'}else{popwindiv.style.left=_lastPopWindowLeft=(tempx+(e.clientX-_popWindowOffsetX))+'px';popwindiv.style.top=_lastPopWindowTop=(tempy+(e.clientY-_popWindowOffsetY))+'px'}}return false}function _close(){var to_del=document.getElementById('popwindiv');to_del.removeChild(to_del.childNodes[0]);to_del.parentNode.removeChild(to_del);_isPopup=false}
