/* Switch Effekt....*/
   var activeElement = 'NULL';
   var nextElement = 'NULL';

function switchIt(obj){
  try{
     if(activeElement != 'NULL'){
        activeElement.style.display = "block";
        activeElement.nextSibling.style.display = "none";
     }
     obj.style.display = "none";
     obj.nextSibling.style.display = "block";
     activeElement = obj;
     nextElement = obj.nextSibling;
  }catch(e){
     alert('inna Switch Function: ' + e);
  }
}

window.onload = function(){
  var myframe = document.getElementById('topNewsBox');
  try{
      myframe.firstChild.style.display = "none";
      myframe.firstChild.nextSibling.style.display = "block";
      activeElement = myframe.firstChild;
      nextElement = myframe.firstChild.nextSibling;
  }catch(e){
      alert('window.onload: '+e);
  }
}

function showCategorie(obj, txt){
 
    try{   obj.parentNode.lastChild.innerHTML  =  txt;
    }catch(e){alert(e);}    
     
}
function clearCategorie(obj){

    try{   obj.parentNode.lastChild.innerHTML  =  "&nbsp;";
    }catch(e){alert(e);}   
      
}
function resetCategorie(obj){

    try{   obj.lastChild.innerHTML  =  "&nbsp;";
    }catch(e){alert(e);}   
      
}
/* funktion für den Transition Effekt....*/
/* window.onload = function()
{
		
	var stretchers = document.getElementsByClassName('topnewscontent');
	var toggles = document.getElementsByClassName('topnewsShortContent');
		
	var myAccordion = new fx.Accordion( 
		toggles, stretchers, {
			opacity: true,
			duration: 400,
			onBackground: function(o) {
			   try{
      				 // window.alert('bg ' + o.parentNode.tagName);
      				o.className = 'topnewsShortContent sichtbar';
      				o.setAttribute('class', 'topnewsShortContent sichtbar');

      				//o.parentNode.setAttribute('style', 'padding:0px; margin:0px; border:1px solid green; background-color:blue;');
      	}catch(e){alert('ERROR: ' + e);}
			},
			onActive: function(o) {
    			try{ 
    			 //  alert('Ausgabe: ' + o.tagName);
    			  
    			  o.className = 'topnewsShortContent unsichtbar';
    			  o.setAttribute('class', 'topnewsShortContent unsichtbar test');

    			}catch(e){alert('ERROR: '.e);}
			}	
		}

		
	);
  
		try{
       document.getElementById('topNewsHeadline').style.display = 'none';
       document.getElementById('topNewsBox').style.display = 'block';
     //  document.getElementById('topNewsBox').firstChild.nextSibeling.setAttribute('class', ' topnewscontent sichtbar');
       
    }catch(e){alert('error: ' + e);}
	//myAccordion.showThisHideOpen(stretchers[0]);
}
*/
