
	var clubid = 0;
	var timer = new Array();
	var clubclose = 0; 
	var clubname = new Array();


	function klappe( uid, url )
	{
		with( document.getElementById( 'klappeZu' + uid ) )
		{
			if( style.display != 'none' )
			{
				style.display = 'none';
			}
			else
			{
				style.display = 'block';
			}
		}

		with( document.getElementById( 'klappeAuf' + uid ) )
		{
			if( style.display != 'none' )
			{
				style.display = 'none';
			}
			else
			{
				if( 1) //url && innerHTML == '' )
				{
					//ajax_open( url, 'klappeAuf' + uid, 1 );
					if( document.getElementById('imgflow' + uid) )
					{
//						document.getElementById('imgflow' + uid).style.display = 'block';
					}
				}
				innerHTML = '<iframe src="' + url + '" width="530" height="260" style="border: 0;" scrolling="no" frameborder="0"></iframe>';

				style.display = 'block';
			}
		}
	}
	
	
	function naviklapp( )
	{
		naviklappClose();
		clubclose = 0;
		
		document.getElementById( 'clubnavi-' + clubid ).style.display = 'block';
	}
	
	function naviklappOut( id )
	{
		timer = window.setTimeout( 'naviklappClose()', 200 );
		clubclose = id;
	}
	function naviOut( id )
	{
		timer = window.setTimeout( 'naviklappClose()', 200 );
		clubclose = id;
	}
	
	function naviklappIn( id )
	{
		clubclose = 0;
	}
	
	function naviklappClose()
	{
		//confirm( clubclose + ' / ' + clubid );
		if( clubclose )
		{
			document.getElementById( 'clubnavi-' + clubclose ).style.display = 'none';
			document.getElementById( 'navi-' + clubclose ).src='data/img/navi/' + clubname[ clubclose ] + '.jpg';
			
			if( clubclose == clubid )
			{
				clubid = 0;
			}
			clubclose = 0;
		}
		
		if( timer[ clubclose ] )
		{
			clearTimeout( timer[ clubclose ] );
			timer[ clubclose ] = 0;
		}
		
	}
	
	function naviOver( id, name )
	{
		if( timer[ id ] )
		{
			window.clearTimeout( timer[ id ] );
		}
		
		if( clubclose == id )
		{
			clubclose = 0;
		}
		else if( clubid && clubid != id )
		{
			clubclose = clubid;
		}		
		
		if( clubid != id )
		{
			clubid = id;
			clubname[ id ] = name;
			document.getElementById( 'navi-' + clubid ).src='data/img/navi/' + clubname[ id ] + '-aktiv.jpg';
			naviklapp( clubid );
		}
	}
	
	function log( str )
	{
		with( document.getElementById( 'debug' ) )
		{
			innerHTML = str + "<br />" + innerHTML;
		}
	}
	
		