

/*document.oncontextmenu=new Function("return false");*/

function protect_imgs()
{
	for (i = 0; i < document.images.length; i++)
		document.images[i].oncontextmenu=new Function("return false");
}

function show_at(layer,pos,offx,offy)
{
  var obj = document.getElementById(pos);
  var left = 0;
  var top = 0;

  do
    {
      left += obj.offsetLeft;
      top += obj.offsetTop;
      obj = obj.offsetParent;
    }
  while (obj != null);

  var lay = document.getElementById(layer);
  lay.style.left =  570; /*(left + offx) + "px"; */
  lay.style.top =   (top + offy) + "px";
  lay.style.visibility = "visible";
}

function show_at_toggle(layer,pos,offx,offy)
{
	if (document.getElementById(layer).style.visibility == "visible")
		rank_hide(layer);
	else
		show_at(layer,pos,offx,offy);
}

function show_mid(layer,helper)
{
show_at(layer,helper,-document.getElementById(layer).offsetWidth,0);
}

function show_on(layer,helper)
{
show_at(layer,helper,-document.getElementById(layer).offsetWidth,-document.getElementById(layer).offsetHeight+100);
}

function rank_show(layer)
{
  var lay = document.getElementById(layer);
  show_at(layer,"cell_" + layer,- 5 - lay.offsetWidth,5);
}

function top_show(layer)
{
  var obj = document.getElementById("row_" + layer);
  var lay = document.getElementById(layer);
  show_at(layer,"row_" + layer, obj.offsetWidth - lay.offsetWidth + 200, obj.offsetHeight - 50);
}

function rank_hide(layer)
{
  document.getElementById(layer).style.visibility = "hidden";
}

function load_minificha (pos, url)
{
	show_at('ficha_comments_div',pos,100,-50);
	window.frames['ficha_comments_iframe'].location.href='http://fotos.gentemsn.com/minificha.php?' + url;
}

function show_legal()
{
	var colors = ['ff7f7f','ffcc7f','e5ff7f','99ff7f','7fffb2','7fffff','7fb2ff','997fff','e57fff','ff7fcc'];

	document.writeln("<font color=\"#" + colors[Math.floor(Math.random() * 10)] + "\"><br><br>Ley Orgánica 11/1999:<br> Artículo 181. [...] se consideran abusos sexuales no consentidos los que se ejecuten sobre menores de trece años [...]. <br> Artículo 182. 1. En todos los casos del artículo anterior, cuando el abuso sexual consista en acceso carnal por vía vaginal, anal o bucal, o introducción de objetos por alguna de las dos primeras vías el responsable será castigado con la pena de prisión de cuatro a diez años. [...]<br> Artículo 183. 1. El que, interviniendo engaño, cometiere abuso sexual con persona mayor de trece años y menor de dieciséis, será castigado con la pena de prisión de uno a dos años, o multa de doce a veinticuatro meses. [...]<br><br> Notas de los webmasters: A ver, punto uno, los pederastas ya se pueden ir al psiquiatra, o nos encargaremos nosotros de mandaros <a href=\"http://www.policia.es\" target=\"_blank\">profesionales cualificados</a> para que os atiendan. Punto dos, a las jovencitas que tontean con chicos mucho mucho mas mayores, buscaros a alguien de vuestra edad, es mejor no tener malas experiencias. Y tercero, a los que no cumplan la ley les caen un chorron de años por delito + agravantes y conservantes. Y por si a caso alguien tiene dudas (lssi): El administrador del servidor no será responsable del contenido ilícito alojado en él si no tiene conocimiento efectivo de la ilicitud de las actividades que se llevan a cabo a través de ese canal.</font>");
}

if (window != window.top) top.location.href = location.href;

var hdi = ['menu/Chicas1.png','menu/Chicos1.png','menu/Top251.png','menu/Top101.png','menu/Zona1.png','menu/Buscar1.png','menu/Chat1.png','menu/foro1.png','Go01in.gif','menu/Contacta1.png','menu/FAQ1.png','menu/Registrar1.png'];

var hda = new Array();

function preload_imgs ()
{
	return;
 for(i=0; i<hdi.length; i++)
 {
   hda[i] = new Image;
   hda[i].src='http://fotos.gentemsn.com/img/' + hdi[i];
 }
}

function rs_img (dest)
{
	return;
	document.getElementById(dest).src = document.getElementById(dest).xSrc;
}

function swap_img (dest)
{
	return;
	document.getElementById('hd' + dest).xSrc = new Image;
	document.getElementById('hd' + dest).xSrc = document.getElementById('hd' + dest).src;
	document.getElementById('hd' + dest).src = hda[dest - 1];
}

function hdd (text)
{
  document.getElementById('hdtext').innerHTML = text;
}

