var GB_ROOT_DIR = "http://"+window.location.hostname+"/greybox/"; function noframe(){ if (top.location != self.location)top.location = self.location;}
function include(file_path){ var j = document.createElement("script"); j.type = "text/javascript"; j.src = file_path; document.body.appendChild(j);}
function include_once(file_path){ var sc = document.getElementsByTagName("script"); for (var x in sc)
if (sc[x].src != null && sc[x].src.indexOf(file_path) != -1) return; include(file_path);}
function estfavorito(nomsitio){ var surl = "'http://"+window.location.hostname+"'"; var txt = 'Agregar a sus favoritos'; var ver = navigator.appName; var num = parseInt(navigator.appVersion); surl += ',' + "'" + nomsitio + "'"; if ((ver == 'Microsoft Internet Explorer')&&(num >= 4)) { document.write('<a href="javascript:window.external.AddFavorite('+surl+');" '); document.write('return true title="Agregue este sitio a sus favoritos, haciendo clic en este enlace">' + txt + '</a>');} else { txt += " pulse (Ctrl+D)"; document.write(txt);}
}
function estpaginicio(){ if (document.all){ document.write('<a href="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.rosariosexo.com.ar\');" title="En Firefox u Opera: arrastre el enlace hacia el botón de inicio del explorador para hacer esta, su p&aacute;gina de inicio.">Hacer esta su p&aacute;gina de inicio</a>');}
else if (document.getElementById){ document.write('<a href="http://www.rosariosexo.com.ar" title="En Firefox u Opera: arrastre el enlace hacia el botón de inicio del explorador para hacer esta, su p&aacute;gina de inicio.">Hacer esta su p&aacute;gina de inicio</a>');}
}
function isPPC() { if (navigator.appVersion.indexOf("PPC") != -1) return true; else return false;}
function estenvnota(){ if (isPPC()) { document.write('<a href=\"mailto:\?subject\=Ver esta pagina del sitio de Rosario Sexo.' + '?body=Se puede ver esta p&aacute;gina en: ' + window.location + '\" onMouseOver="window.status=\'Envié el enlace de esta pagina por correo electrónico\'; return true" title="Envié el enlace de esta pagina por correo electrónico.">Enviar enlace por e-mail<\/a>');}
else { document.write('<a href=\"mailto:\?body\=Ver esta pagina del sitio de Rosario Sexo.' + ' Se puede ver esta pagina en: ' + window.location + '\" onMouseOver="window.status=\'Envié el enlace de esta pagina por correo electrónico\'; return true" title="Envié el enlace de esta pagina por correo electrónico.">Enviar enlace por e-mail<\/a>');}
}
function obtfecha(modo){ var dfecha = new Date(); var monthNames = new MakeArray(12); var daysNames = new MakeArray(7); monthNames[1] = "Enero"; monthNames[2] = "Febrero"; monthNames[3] = "Marzo"; monthNames[4] = "Abril"; monthNames[5] = "Mayo"; monthNames[6] = "Junio"; monthNames[7] = "Julio"; monthNames[8] = "Agosto"; monthNames[9] = "Septiembre"; monthNames[10] = "Octubre"; monthNames[11] = "Noviembre"; monthNames[12] = "Diciembre"; daysNames[1] = "Domingo"; daysNames[2] = "Lunes"; daysNames[3] = "Martes"; daysNames[4] = "Miercoles"; daysNames[5] = "Jueves"; daysNames[6] = "Viernes"; daysNames[7] = "Sábado"; if (modo == 'a'){ return dfecha.getFullYear();}
if (modo == 'c'){ sdia = dfecha.getDate().toString(); if (sdia.length == 1){sdia = "0" + sdia;}
nmes = dfecha.getMonth()+1; smes = nmes.toString(); if (smes.length == 1){smes = "0" + smes;}
return sdia + '/' + smes + '/' + dfecha.getFullYear();}
if (modo == 'l'){ sdia = dfecha.getDate().toString(); if (sdia.length == 1){sdia = "0" + sdia;}
return daysNames[dfecha.getDay() +1] + ", " + sdia + "  de " + monthNames[dfecha.getMonth() +1] + " del " + dfecha.getFullYear();}
if (modo == 'm'){ sdia = dfecha.getDate().toString(); if (sdia.length == 1){sdia = "0" + sdia;}
return sdia + "  de " + monthNames[dfecha.getMonth() +1];}
}
function MakeArray(n) { this.length = n; return this
}
function validarCampos(valor, tipo, largo) { var bRet = false; if (tipo == "V") { if (valor == "")
bRet = true;}
if (tipo == "L") { if (valor.length < largo)
bRet = true;}
return bRet;}
function esEmail(valor) { if ((valor == "" || valor.indexOf('@', 0) == -1) || valor.indexOf('.') == -1) { return false;}
else { return true;}
}
function esURL(valor) { if ((valor == "" || valor.indexOf("http://") == -1) || valor.indexOf(".") == -1) { return false;}
else { return true;}
}
var mdirToolTip = 0; function enableTooltips(id, direc){ var links,i,h; if(!document.getElementById || !document.getElementsByTagName) return; AddCss(); h=document.createElement("span"); h.id="btc"; h.setAttribute("id","btc"); h.style.position="absolute"; document.getElementsByTagName("body")[0].appendChild(h); if(id==null) links=document.getElementsByTagName("a"); else links=document.getElementById(id).getElementsByTagName("a"); for(i=0;i<links.length;i++){ Prepare(links[i],direc);}
}
function Prepare(el, mydireccion){ var tooltip,t,b,s,l; t=el.getAttribute("title"); if(t==null || t.length==0) t="link:"; el.removeAttribute("title"); if (mydireccion==0){ tooltip=CreateEl("span","tooltip");}
else{ tooltip=CreateEl("span","tooltip_1");}
s=CreateEl("span","top"); s.appendChild(document.createTextNode(t)); tooltip.appendChild(s); b=CreateEl("b","bottom"); l=el.getAttribute("href"); if(l.length>30) l=l.substr(0,27)+"..."; tooltip.appendChild(b); setOpacity(tooltip); el.tooltip=tooltip; el.onmouseover=showTooltip; el.onmouseout=hideTooltip; el.onmousemove=Locate;}
function showTooltip(e){ document.getElementById("btc").appendChild(this.tooltip); var direccion=document.getElementById("btc").appendChild(this.tooltip).className; if (direccion=="tooltip"){ mdirToolTip=0;}
if (direccion=="tooltip_1"){ mdirToolTip=1;}
Locate(e);}
function hideTooltip(e){ var d=document.getElementById("btc"); if(d.childNodes.length>0) d.removeChild(d.firstChild);}
function setOpacity(el){ el.style.filter="alpha(opacity:87)"; el.style.KHTMLOpacity="0.87"; el.style.MozOpacity="0.87"; el.style.opacity="0.87";}
function CreateEl(t,c){ var x=document.createElement(t); x.className=c; x.style.display="block"; return(x);}
function AddCss(){ var l=CreateEl("link"); l.setAttribute("type","text/css"); l.setAttribute("rel","stylesheet"); l.setAttribute("href","http://"+window.location.hostname+"/bt.css"); l.setAttribute("media","screen"); document.getElementsByTagName("head")[0].appendChild(l);}
function Locate(e){ var posx=0,posy=0; if(e==null) e=window.event; if(e.pageX || e.pageY){ posx=e.pageX; posy=e.pageY;}
else if(e.clientX || e.clientY){ if(document.documentElement.scrollTop){ posx=e.clientX+document.documentElement.scrollLeft; posy=e.clientY+document.documentElement.scrollTop;}
else{ posx=e.clientX+document.body.scrollLeft; posy=e.clientY+document.body.scrollTop;}
}
if (mdirToolTip==0) { document.getElementById("btc").style.top=((posy+10))+"px";}
if (mdirToolTip==1) { document.getElementById("btc").style.top=((posy+5)-108)+"px";}
document.getElementById("btc").style.left=(posx-20)+"px";}
