var g_iStep = 0;

		function OnImgUpdate( iProgress )
		{   
			if( (iProgress >= 1) && (iProgress <= 10) && (iProgress > g_iStep) )
			{   
				 g_iStep++;
				 var oSpan = document.getElementById( "sDot" + iProgress + "" );
				 oSpan.className = 'FullDot';
			}
		}

		function OnCompletion()
		{   
			document.location.replace('index.php');
		}

		function StartPreload()
		{
			var szImages = new Array("/img/noticias/not7.jpg","/img/noticias/not7big.jpg","/img/noticias/not9.jpg","/img/noticias/not9big.jpg",",/img/noticias/not1.jpg","/img/noticias/not1big.jpg","/img/inicial/teia09.jpg","/img/inicial/forum.jpg","/img/inicial/foto09.jpg","/img/inicial/quemsomos.jpg","/img/inicial/blog-cineolho.jpg","/img/inicial/paponasubida.jpg","/img/inicial/logo.png","/img/inicial/rodlogo.jpg","/img/inicial/menu.jpg","/img/inicial/jovemtudo.jpg","/img/inicial/megafone.jpg","/img/inicial/mevenatv.jpg","/img/inicial/barriga.jpg","/img/inicial/conversabot.jpg","/img/inicial/santodecasa.jpg","/img/inicial/perfil.jpg")
			// Execute Image Preloader
			var oPreload = new ImagePreload( szImages, OnImgUpdate, OnCompletion );
		}
		
		function ImagePreload( p_aImages, p_pfnPercent, p_pfnFinished )
		{   // Call-back routines
			this.m_pfnPercent = p_pfnPercent;
			this.m_pfnFinished = p_pfnFinished;

			// Class Member Vars
			this.m_nLoaded = 0;
			this.m_nProcessed = 0;
			this.m_aImages = new Array;
			this.m_nICount = p_aImages.length;

			// Preload Array of Images
			for( var i = 0; i < p_aImages.length; i++ )
				 this.Preload( p_aImages[i] );
		}

		ImagePreload.prototype.Preload = function( p_oImage )
		{   var oImage = new Image;
			this.m_aImages.push( oImage );

			oImage.onload = ImagePreload.prototype.OnLoad;
			oImage.onerror = ImagePreload.prototype.OnError;
			oImage.onabort = ImagePreload.prototype.OnAbort;

			oImage.oImagePreload = this;
			oImage.bLoaded = false;
			oImage.source = p_oImage;
			oImage.src = p_oImage;
		}

		ImagePreload.prototype.OnComplete = function()
		{   this.m_nProcessed++;
			if ( this.m_nProcessed == this.m_nICount )
				 this.m_pfnFinished();
			else
				 this.m_pfnPercent( Math.round( (this.m_nProcessed / this.m_nICount) * 10 ) );
		}

		ImagePreload.prototype.OnLoad = function()
		{   // 'this' pointer points to oImage Object
			this.bLoaded = true;
			this.oImagePreload.m_nLoaded++;
			this.oImagePreload.OnComplete();
		}

		ImagePreload.prototype.OnError = function()
		{   // 'this' pointer points to oImage Object
			this.bError = true;
			this.oImagePreload.OnComplete();
		}

		ImagePreload.prototype.OnAbort = function()
		{   // 'this' pointer points to oImage Object
			this.bAbort = true;
			this.oImagePreload.OnComplete();
		}