
function blockview(){

            var blockNews = document.getElementById("news").getElementsByTagName("div");
            var dateNews = document.getElementById("news").getElementsByTagName("p");           
            var why = document.getElementById("why");
            var whyDiv = document.getElementById("participation").getElementsByTagName("div").item(0);
            var how = document.getElementById("how");
            var howDiv = document.getElementById("participation").getElementsByTagName("div").item(1);
                   
        how.onclick = function(){        
            if(this.className != "active"){
            
                this.className = "active";
                why.className = "";
                                
                howDiv.className = howDiv.className.replace(" none","");
                whyDiv.className += " none";
            }
        }
        why.onclick = function(){
            if(this.className != "active"){
            
                this.className = "active";
                how.className = "";
                
                whyDiv.className = whyDiv.className.replace(" none","");
                howDiv.className += " none";
                
            }    
        }
        
        
        for (i = 0; i < dateNews.length; i++) {
            if(dateNews.item(i).className.indexOf("newsTitle") != -1){                    
                 dateNews.item(i).onclick = function(){                                 
                    if(this.nextSibling.className.indexOf(" open") != -1){
                        this.className = this.className.replace(" active","");                                 
                        this.nextSibling.className = this.nextSibling.className.replace(" open","");
                    }else{  
                      for(x = 0; x < blockNews.length; x++){                                                                  
                            if(blockNews.item(x).className.indexOf(" open") != -1){
                                blockNews.item(x).previousSibling.className = blockNews.item(x).previousSibling.className.replace(" active","");                                   
                                blockNews.item(x).className = blockNews.item(x).className.replace(" open", "");                               
                        }
                      }                          
                        this.className += " active";
                        this.nextSibling.className += " open";                     
                    }                 
                }                    
            }
        }
	}
	