// DIV Auf- und Zuklappen
function doAnimation2(index, bodyC) {
	var currentAnimation;
  	
    switch(index) {
      case 1:
        currentAnimation = dojo.fx.wipeOut({node: bodyC,duration: 1000});    
        break;
      case 2: 
        currentAnimation = dojo.fx.wipeIn({node: bodyC,duration: 500});
        break;
      case 3:
        //Chain two animations to run in sequence.
        //Note the array passed as an argument.
        currentAnimation = dojo.fx.chain([wipeOut, wipeIn, wipeOut, wipeIn]);
        break;
    }
	
	//Play the animation. Without this call, it will not run.
    currentAnimation.play();
 }
 
function doAnimation(index, bodyC) {
	var currentAnimation;
  	
    switch(index) {
      case 1:
        currentAnimation = dojo.fx.wipeOut({node: bodyC,duration: 1000});    
        break;
      case 2: 
        currentAnimation = dojo.fx.wipeIn({node: bodyC,duration: 1000});
    	dijit.byId('Button' + bodyC).domNode.style.visibility = 'hidden';
        break;
      case 3:
        //Chain two animations to run in sequence.
        //Note the array passed as an argument.
        currentAnimation = dojo.fx.chain([wipeOut, wipeIn, wipeOut, wipeIn]);
        break;
    }
	
	//Play the animation. Without this call, it will not run.
    currentAnimation.play();
 }
 
 // Kommentar hinzufügen Popup öffnen
 function addComment(news_id) {
 	
 	// Hidden Field in Formular setzen (News ID)
 	dojo.byId('form_news_id').value = news_id;
 	
 	// Kommentar Popup schliessen
 	dijit.byId('dialogComment' + news_id).hide();
 	
 	// Popup öffnen
 	dijit.byId('addComment').show()
 }
 
 // Kommentare Anzeigen Popup öffnen
 function showComment(news_id) {
 	
 	// Popup öffnen
 	dijit.byId('dialogComment' + news_id).show();
 }
 
 // Kontaktformular Popup Anzeigen
 function showContactForm() {
 
 	dijit.byId('contactFormDialog').show();
 }