var counter=0;
var op_a=0;
var op_b=0;
var op_c=0;
var op_d=0;
var op_e=0;
var op_f=0;
var op_g=0;
var op_h=0;
var op_i=0;

function fader(){
	var itema=document.getElementById('content_a');
	var itemb=document.getElementById('content_b');
	var itemc=document.getElementById('content_c');
	
	var itemd=document.getElementById('content_d');
	var iteme=document.getElementById('content_e');
	var itemf=document.getElementById('content_f');
	
	var itemg=document.getElementById('content_g');
	var itemh=document.getElementById('content_h');
	var itemi=document.getElementById('content_i');
	
	itema.style.display='block';
	itemb.style.display='block';
	itemc.style.display='block';
	itemd.style.display='block';
	iteme.style.display='block';
	itemf.style.display='block';
	itemg.style.display='block';
	itemh.style.display='block';
	itemi.style.display='block';
	
	counter++;
	if(counter>1200){
		counter=0;
	}
	if(op_a<0){
		op_a=0;
	}
	if(op_b<0){
		op_b=0;
	}
	if(op_c<0){
		op_c=0;
	}
	if(op_d<0){
		op_d=0;
	}
	if(op_e<0){
		op_e=0;
	}
	if(op_f<0){
		op_f=0;
	}
	if(op_g<0){
		op_g=0;
	}
	if(op_h<0){
		op_h=0;
	}
	if(op_i<0){
		op_i=0;
	}
			
	if(counter>0 && counter<100){op_a++;}
	if(counter>300){op_a--;}
	
	if(counter>300 && counter<400){op_b++;}
	if(counter>600){op_b--;}
	
	if(counter>600 && counter<700){op_c++;}
	if(counter>900){op_c--;}
		
		
	if(counter>100 && counter<200){op_d++;}
	if(counter>400){op_d--;}
	
	if(counter>400 && counter<500){op_e++;}
	if(counter>700){op_e--;}
	
	if(counter>700 && counter<800){op_f++;}
	if(counter>1000){op_f--;}
	
	
	if(counter>200 && counter<300){op_g++;}
	if(counter>500){op_g--;}
	
	if(counter>500 && counter<600){op_h++;}
	if(counter>800){op_h--;}
	
	if(counter>800 && counter<900){op_i++;}
	if(counter>1100){op_i--;}
	
	
	itema.style.opacity=(op_a/100);//for firefox
	itema.style.filter = "alpha(opacity:"+op_a+")";//for ie
	
	itemb.style.opacity=(op_b/100);//for firefox
	itemb.style.filter = "alpha(opacity:"+op_b+")";//for ie
	
	itemc.style.opacity=(op_c/100);//for firefox
	itemc.style.filter = "alpha(opacity:"+op_c+")";//for ie
	
	itemd.style.opacity=(op_d/100);//for firefox
	itemd.style.filter = "alpha(opacity:"+op_d+")";//for ie
	
	iteme.style.opacity=(op_e/100);//for firefox
	iteme.style.filter = "alpha(opacity:"+op_e+")";//for ie
	
	itemf.style.opacity=(op_f/100);//for firefox
	itemf.style.filter = "alpha(opacity:"+op_f+")";//for ie
	
	itemg.style.opacity=(op_g/100);//for firefox
	itemg.style.filter = "alpha(opacity:"+op_g+")";//for ie
	
	itemh.style.opacity=(op_h/100);//for firefox
	itemh.style.filter = "alpha(opacity:"+op_h+")";//for ie
	
	itemi.style.opacity=(op_i/100);//for firefox
	itemi.style.filter = "alpha(opacity:"+op_i+")";//for ie
	
	setTimeout('fader()',20);
}
