var iframes_change_filter = new Array("Iframe_I1",   "I1", "I2", "I3", "I4",  "iframe1",   "iframe_slide"  );
 

function setColorFunc()
	{
			  var j = 0;
			  var ahr = "";
              var filters = document.getElementsByTagName( "div" );
              for( j = 0 ; j < filters.length ; j++ )
              {
                            if ( filters[j].className == null || filters[j].className != "colouring" ) continue;

                
                var ahr = filters[j].getElementsByTagName('a');

                i = 0;
				for( i = 0 ; i < ahr.length ; i++ )
                {
                        ahr[i].onfocus = function(event)
                        {
                                var filters = document.getElementsByTagName( "div" );
                                for( j = 0 ; j < filters.length ; j++ )
                                {
                                        if ( filters[j].className == null || filters[j].className != "colouring" ) continue;
                                        
                                        var ahr = filters[j].getElementsByTagName('a');
                                        for( i = 0 ; i < ahr.length ; i++ )
                                        {
                                                ahr[i].style.backgroundColor='#C0C0C0';
                                                ahr[i].style.color='#707070';
                                         }  
                                        this.style.backgroundColor='#FF0000'; // 6B7CB6(dunkelblau) FF0000(rot) 00FF00(grün)
                                        this.style.color='#000000';
                                 }  
                         }  
                 }  
         }  
   }  
  


function setColor( hrf )
{
	var filters = document.getElementsByTagName( "div" );
	for( j = 0 ; j < filters.length ; j++ )
		{
		if ( filters[j].className == null || filters[j].className != "colouring" ) continue;

		var ahr = filters[j].getElementsByTagName('a');
		for( i = 0 ; i < ahr.length ; i++ )
			{
			if ( ahr[i].href == hrf )
				{
				ahr[i].style.backgroundColor='#FF0000'; // 6B7CB6(dunkelblau) FF0000(rot) 00FF00(grün)
				ahr[i].style.color='#000000';
				}  
			else
				{
				ahr[i].style.backgroundColor='#c0c0c0';
				ahr[i].style.color='#707070';
				}  
			}  
		}  
}   

 
  
function sendColorToIframe()
	{
        var parent_match = 0;
        if ( typeof(iframes_change_filter) != 'undefined' && parent.window )
       for ( var x = 0 ; x < iframes_change_filter.length ; x++ )


             if ( parent.frames[iframes_change_filter[x]])
         {
                parent.frames[iframes_change_filter[x]].setColor( parent.window.location );
                parent_match++;
        }
        
        if ( parent_match == 0 && parent.frames['x'] )
         parent.frames['x'].setColor( window.location );
	}
  
  
  
  
  
  function sendColorToMenu( hrf )
{
if ( parent.frame['I1'] ) parent.frames['I1'].setColor( hrf ); // sendColorToIframe ?
} 

 