		/*----  change speed of animation here*/
		 
		 
		var speedFreeTools1=16500;
		var speedTutorials1=17650;
				
		var tutorialActive1="";
		var lastTutorial1="";
		var freeItemActive1="";
		var lastFreeItem1="";
		
		var itemNumber1=0
		var lastitemNumber1=0;
		
		var btPause1Enabled1=false;
		var myAnimation1=""
		
		$(document).ready(function(){	
			
			/*---- initiate animations*/	
			//animateTutorials("#tutorial1")
			animateFreeTools1("#parentalControl1")
			
			/*---- free tools buttons*/			
			$("#btNext1").click(function(){
				 document.getElementById('contentFilters1').style.display='none';
				document.getElementById('parentalControlTV1').style.display='none';
				document.getElementById('parentalControl1').style.display='none';
			clearTimeout(myAnimation1);
				switch(freeItemActive1)
						{
						case "#parentalControl1":
						  itemNumber1+=1;
						   document.getElementById('contentFilters1').style.display='block';
						  animateFreeTools1("#contentFilters1")  
						  break;    
						case "#contentFilters1":
						   itemNumber1+=1;
						   document.getElementById('parentalControlTV1').style.display='block';
						  animateFreeTools1("#parentalControlTV1")	  
						  break;
						case "#parentalControlTV1":
						  itemNumber1=0;
						   document.getElementById('parentalControl1').style.display='block';
						  animateFreeTools1("#parentalControl1")
						  break;
						default:
						  itemNumber1+=1;
						  animateFreeTools1("#contentFilters1")  
						}
			});
			$("#btPrev1").click(function(){
					document.getElementById('contentFilters1').style.display='none';
				document.getElementById('parentalControlTV1').style.display='none';
				document.getElementById('parentalControl1').style.display='none';
			clearTimeout(myAnimation1);
				switch(freeItemActive1)
						{
						case "#parentalControl1":
						  itemNumber1+=1;
						   document.getElementById('contentFilters1').style.display='block';
						  animateFreeTools1("#contentFilters1")  
						  break;    
						case "#contentFilters1":
						   itemNumber1+=1;
						   document.getElementById('parentalControlTV1').style.display='block';
						  animateFreeTools1("#parentalControlTV1")	  
						  break;
						case "#parentalControlTV1":
						  itemNumber1=0;
						   document.getElementById('parentalControl1').style.display='block';
						  animateFreeTools1("#parentalControl1")
						  break;
						default:
						  itemNumber1+=1;
						  animateFreeTools1("#contentFilters1")  
						}
			});
			$("#btPause1").click(function(){
				btPause1Enabled1=!btPause1Enabled1;
				if(btPause1Enabled1==true){
					$("#btPause1").attr("title", "Enable the autoplay feature");
					clearTimeout(myAnimation1);
					$("#btPause1").css({ backgroundPosition:'0px -75px'});
					
				 }
				 else{
				 	$("#btPause1").attr("title", "Disable the autoplay feature");
				 	$("#btPause1").css({ backgroundPosition:'0px -25px'});
					
					/*---- restart animation*/
					myAnimation1=setTimeout(function(){
													 document.getElementById('contentFilters1').style.display='none';
				document.getElementById('parentalControlTV1').style.display='none';
				document.getElementById('parentalControl1').style.display='none';
						switch(freeItemActive1)
						{
						case "#parentalControl1":
						  itemNumber1+=1;
						   document.getElementById('contentFilters1').style.display='block';
						  animateFreeTools1("#contentFilters1")  
						  break;    
						case "#contentFilters1":
						   itemNumber1+=1;
						   document.getElementById('parentalControlTV1').style.display='block';
						  animateFreeTools1("#parentalControlTV1")	  
						  break;
						case "#parentalControlTV1":
						  itemNumber1=0;
						   document.getElementById('parentalControl1').style.display='block';
						  animateFreeTools1("#parentalControl1")
						  break;
						default:
						  itemNumber1+=1;
						  animateFreeTools1("#contentFilters1")  
						}
					}, speedFreeTools);
				 }	
			});
		
		});

	function animateFreeTools1(myDiv1) {
		/*---- animate last item*/
		if (freeItemActive1!=""){
			$(lastFreeItem1).animate( { opacity:'0'}, 100, "easeout");
			$(lastFreeItem1).css({ zIndex:10 });
			/*animate red dot*/
			$("#itemRed1 img:eq(" + lastitemNumber1 +")").animate( { opacity:'0' } , 400, "easeout");
		}
		
		/*---- animate new item*/
		setTimeout(function(){
			$(myDiv1).animate( { opacity:'1' } , 300, "easeout", function() {if ($.browser.msie)this.style.removeAttribute('filter');});
		}, 100);
		$(myDiv1).css({ zIndex:100 });
		/*animate red dot*/
		$("#itemRed1 img:eq(" + itemNumber1 +")").animate( { opacity:'1' } , 400, "easeout");
		freeItemActive1=myDiv1;
		
		/*---- call new item: loop*/
		if (btPause1Enabled1==false){
			myAnimation1=setTimeout(function(){
				document.getElementById('contentFilters1').style.display='none';
				document.getElementById('parentalControlTV1').style.display='none';
				document.getElementById('parentalControl1').style.display='none';
				switch(myDiv1)
				{
				case "#parentalControl1": 
				  itemNumber1+=1;
		          document.getElementById('contentFilters1').style.display='block';
				  animateFreeTools1("#contentFilters1");		
				  break;    
				case "#contentFilters1":
				   itemNumber1+=1;
				   document.getElementById('parentalControlTV1').style.display='block';
				   animateFreeTools1("#parentalControlTV1");
				  break;
				case "#parentalControlTV1":
				 itemNumber1=0;
				 document.getElementById('parentalControl1').style.display='block';
				 animateFreeTools1("#parentalControl1");
					break;
				default:
			    itemNumber1+=1;
			  animateFreeTools1("#contentFilters1");
				}
			}, speedFreeTools1);
		}
		lastitemNumber1=itemNumber1;
		lastFreeItem1=freeItemActive1;
	};	