		function hideLoading()
		{
				//Coprobar en qué página está y apacgar o encender la música
				if (typeof(parent.contenido2) != "undefined")
				{
					//parent.contenido2.document.body.style.overflow = 'hidden';
					var contenidoPar = parent.contenido2.location.href;
		
					if (contenidoPar.indexOf('makingof_springfield.asp') != -1)
					{
						top.parent.sig('musicoff');					
					}
					else
					{
						if (musicaoff == 0)
						{
							top.parent.sig('musicon');
						}
					}
				}

				document.getElementById("precarga").style.display = "none";
				document.getElementById("precargaimg").style.display = "none";
				//alert(parent.contenido2.document.body.clientHeight);
				
				//document.getElementById("contenido2").style.height = '689px';
			
		}
		
		function showLoading()
		{
				document.getElementById("precarga").style.display = "block";
				document.getElementById("precargaimg").style.display = "block";
		}
		
	

 function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
  }

  function findPosY(obj)
  {
    var curtop = 0;
    if(obj.offsetParent)
		{
        while(1)
        {
          curtop += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
		}
    else if(obj.y)
		{
        curtop += obj.y;
		}
    return curtop;
  }