		function changeBox(id, action)
		{
			if(action == 'over') 	 { id.style.backgroundColor = '#e6e6e6'; } 
			else if(action == 'out') { id.style.backgroundColor = '#ffffff'; }

			return true;
		}	
		
		function changeButton(id, action)
		{
			if(action == 'over') 	 { id.className = 'blockIndexButtonOver'; } 
			else if(action == 'out') { id.className = 'blockIndexButton'; }

			return true;
		}
		
		function backButton(id, action)
		{
			if(action == 'over') 	 { id.className = 'elementButtonBackOver'; } 
			else if(action == 'out') { id.className = 'elementButtonBackClass'; }

			return true;
		}
		
		function changeImage(id,filename)
		{
			id.src = filename; 
			
			return true;
		}		
		
		function changeNews(id, idButton, action, type)
		{
			if(action == 'over') 	 
			{ 
				id.className 	   = 'typeOver'; 
				//idButton.className = 'typeButtonOver';
			} 
			else if(action == 'out') 
			{ 
				if(type == 'type1')
				{
					id.className 	   = 'type1';
					//idButton.className = 'typeButton1';
				}
				else
				{
					id.className 	   = 'type2';
					//idButton.className = 'typeButton2';
				}
			}

			return true;			
			
		}
		
		function changeImage(id, type)
		{						
			if(id >= arrayTitles.length) id = 0;
			if(id < 0) id = arrayTitles.length - 1;
			
			if(type == 'auto' && changeImageManual == true) { changeImageManual = false; return true; } 			
			if(type == 'manual') changeImageManual = true;
			
			// hide text
			if(document.getElementById('text_random_' + arrayTitles[currentImageIndex]))
			{			
				document.getElementById('text_random_' + (arrayTitles[currentImageIndex])).style.display = 'none';			
				//Effect.BlindUp('text_random_' + (arrayTitles[currentImageIndex]), {duration: 1.2,  queue: { position: 'end', scope: 'imageTitle'}});
			}							
						
			// change image & text
			if(document.getElementById('randomImageName_' + arrayTitles[id])) 
			{
				var randomImage = document.getElementById('randomImageName_' + arrayTitles[id]).innerHTML;			
				document.getElementById('headerImage').style.backgroundImage = "url('/Files/Templates/Designs/Navipartner/images/Random/" + randomImage + ".jpg')";
			}
			
			if(document.getElementById('text_random_' + arrayTitles[id])) 
			{ 
				//Effect.Appear('text_random_' + arrayTitles[id], {duration: 1.2, queue: { position: 'end', scope: 'imageTitle'}}); 
				document.getElementById('text_random_' + arrayTitles[id]).style.display = '';
			}
			
			// change active link
			if(document.getElementById('loop_' + arrayTitles[currentImageIndex])) document.getElementById('loop_' + arrayTitles[currentImageIndex]).className = 'loopIndex';
			if(document.getElementById('loop_' + arrayTitles[id])) 				  document.getElementById('loop_' + arrayTitles[id]).className = 'activeLoopIndex';
			
			currentImageIndex = id;
			
		}
		
	// Index images
	var currentImageIndex = 0;
	var changeImageManual = false;
	
		
	// Count item news
	var countNewsItems = 0;
	var arrayParametersNews = new Array();
	var contReferencesOnline = 0;
	
	
		
