var logowidth=124
var logoheight=89
var logoimage=new Image(logowidth,logoheight)
logoimage.src="../imagenes/boton.gif"
var alttext="Haga clic para acceder al MAPA INTERACTIVO"
var Hoffset=600
var Voffset=20

////////////////////////////////////////////////////////////////////////////

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1

var watermark_obj=ie? document.all.watermarklogo : document.getElementById? document.getElementById("watermarklogo") : document.watermarklogo
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function insertimage(){
if (ie||document.getElementById)
watermark_obj.innerHTML='<img src="'+logoimage.src+'" width="'+logowidth+'" height="'+logoheight+'" border=2 alt="'+alttext+'">'
else if (document.layers){
watermark_obj.document.write('<img src="'+logoimage.src+'" width="'+logowidth+'" height="'+logoheight+'" border=0 alt="'+alttext+'">')
watermark_obj.document.close()
}
}
function positionit(){
var dsocleft=ie? document.body.scrollLeft : pageXOffset
var dsoctop=ie? document.body.scrollTop : pageYOffset
var window_width=ie? document.body.clientWidth : window.innerWidth-20
var window_height=ie? document.body.clientHeight : window.innerHeight
if (ie||document.getElementById){
watermark_obj.style.left=parseInt(dsocleft)+parseInt(window_width)-logowidth-Hoffset
watermark_obj.style.top=parseInt(dsoctop)+parseInt(window_height)-logoheight-Voffset
}
else if (document.layers){
watermark_obj.left=dsocleft+window_width-Hoffset-logowidth
watermark_obj.top=dsoctop+window_height-logoheight-Voffset
}
}
function hidewatermark(){
if (document.layers)
watermark_obj.visibility="hide"
else
watermark_obj.style.visibility="hidden"
clearInterval(watermarkinterval)
}
function beingwatermark(){
watermarkinterval=setInterval("positionit()",50)
insertimage()
}
if (ie||document.getElementById||document.layers)
window.onload=beingwatermark
