// JavaScrjpt Document
	MAX_PICTERS=3  <!--max picters to show  in gallery -->
	MAX_IMG_VIEW=3 <!--max picters to show in one row-->
	<!--don't  touch the code bellow to correct work of the gallery-->
	MIN_PICTERS=1 
	count=1	
	function header_gallery_load(){
				
		if (MAX_IMG_VIEW>MAX_PICTERS){MAX_IMG_VIEW=MAX_PICTERS}
		for (j=1;j<=MAX_IMG_VIEW;j++){
			document.getElementById('header_gallery').innerHTML+='<img src="images/header_gallery_img_'+j+'.jpg" alt="" id="gal_image'+j+'" />';
		};
	}
	
	function header_gallery(){	
		if (MAX_IMG_VIEW>MAX_PICTERS){MAX_IMG_VIEW=MAX_PICTERS}	
		document.getElementById('header_gallery').innerHTML='';
		id=1;
		
		for (i=count;i<(count+MAX_IMG_VIEW);i++){
			number_of_img=i;
			if (number_of_img>MAX_PICTERS){number_of_img=(i-MAX_PICTERS)}
			document.getElementById('header_gallery').innerHTML+='<img src="images/header_gallery_img_'+number_of_img+'.jpg" alt="" id="gal_image'+id+'" />';
			id++;
		}			
		
	}
	
	function header_left(){						
		count--;
		if (count<(MIN_PICTERS)){count=MAX_PICTERS}					
		header_gallery();												
	}
	function header_right(){	
		count++;
		if (count>MAX_PICTERS){count=MIN_PICTERS}	
		header_gallery();	
	}


	function left_btn(){
		count1=count1-2;
		if (count1<(MIN_PICTERS1)){count1=MAX_PICTERS1}					
		gallery();												
	}
	function right_btn(){	
		count1=count1+2;
		if (count1>MAX_PICTERS1){count1=MIN_PICTERS1}	
		gallery();	
	}
