var lastTabId = 1;
	function tab_switch(id)
	{
		document.getElementById('section' + lastTabId).style.display = 'none';
		document.getElementById('section' + id).style.display = 'block';
		lastTabId = id;
		
		var ourTabs = document.getElementById('tab_anchors').getElementsByTagName("li");
		
		var ourTabss = document.getElementById('b');
		
		for(var i = 0; i < ourTabs.length; i++)
		{
			if ((i + 1) == id)
			{
				ourTabs[i].className = 'tabOn' + (i+1);
				ourTabss.className = 'a' + (i+1);
			}
			else
			{
				ourTabs[i].className = 'tab' + (i+1);
			}
		}
		//.anchors .tabs-selected a.a_tab1:link, .anchors .tabs-selected a.a_tab1:visited,
	}
	var go=1;
	function stop(){
	go=0;	
	}
	function play(id,max){
		if(go==1){
			id=id+1;
			$(this).delay(3500,function(){
				if(go==1){
					tab_switch(id)
				}
				if(id==max)
					play(0,max);
				else
					play(id,max);
			})
		}
	}
