
	var currnews = 0;
	
	var flag = 1;
	var flag2 = 2;
	var tmp=5;
			$(document).ready(function(){
					$(".points").live('click',function(){
						
						currnews = parseInt($(this).attr('id').replace('point', '')) ;
						
						
						$(".images").hide();
						$("#image"+currnews).show();
						flag = 0;
					});
					
					$(".points2").live('click',function(){
						
						tmp = parseInt($(this).attr('id').replace('point_', ''));
						$(".images2").hide();
						$("#image"+tmp).show();
						flag2 = 0;
					});

				setTimeout("changeContent()",9000);
				setTimeout("changeContent2()",9000);
				
			});
			
			function changeContent(){
				if (flag){
					if (currnews == 4){
						currnews = 0;
					}else{
						currnews+= 1;
					}
					
					
					$(".images").hide();
					$("#image"+currnews).show();
					
				}else{
					flag = 1;
				}
				setTimeout("changeContent()",9000);						
			}
			
			
			function changeContent2(){
				if (flag2){
					if (tmp == 7){
						tmp = 5;
					}else{
						tmp+= 1;
					}
					
					
					$(".images2").hide();
					$("#image"+tmp).show();
					
				}else{
					flag2 = 1;
				}
				setTimeout("changeContent2()",9000);						
			}
	

	

