
function divload(ziel, url )
{
	
	$(ziel).fade( {duration:1, from:1, to:0.01} ); 
	window.setTimeout( "new Ajax.Updater('" + ziel + "', '" + url + "'  , { method:'post', parameters:{ajax:'on'}, onComplete: function(){	$('" + ziel + "').fade( {from:0, to:1} );}	}  ) ; " , 1000); 
	if((url.substr(0,18)) == 'band.php?kuenstler') 
	{
		if ( geblindet == 0)
			{
				new Effect.BlindDown('eyecatcher',{ afterFinish: function(){geblindet = 1; $('eyecatcher').style.height = '';} });
				//$('spacerInhalt').style.height = '723px';
			}
	} 
	else if (geblindet == 1) 
	{
		new Effect.BlindUp('eyecatcher', { afterFinish: function(){geblindet = 0; } }); 
		//$('spacerInhalt').style.height = '353px';
	}
	return false;
	
}	

function menu (menuId)
{
	for (var i = 1; i <= 9; i++)
	{
		if(i == menuId) 
		{
			if( $('item_' + i ) ) $('item_' + i ).className = 'item_' + i + '_selected'; 
		}
		else 
		{
			if( $('item_' + i ) ) $('item_' + i ).className = 'item_' + i; 
		}
	}
}


function eyecatcherWechsel (imageSrc) {
$('eyecatcherImage').fade( {duration:1, from:1, to:0.01} ); 
window.setTimeout("document.getElementById('eyecatcherImage').src = '" + imageSrc + "'", 1000);
window.setTimeout( "$('eyecatcherImage').fade( {duration:1, from:0.01, to:1} ); ", 1000); 

}

function kuenstlerTextEinblenden (id, ziel, url) {
	ziel = 'inhalt';
	if ( geblindet == 1) eyecatcherWechsel('img/eyecatcher_' + id + '.png');
		else document.getElementById('eyecatcherImage').src = 'img/eyecatcher_' + id + '.png';
	$(ziel).fade( {duration:1, from:1, to:0.01} );
	window.setTimeout( "new Ajax.Updater('" + ziel + "', '" + url + "'  , { method:'get', parameters:{kuenstler:" + id + ", ajax: 'on'}, onComplete: function(){	$('" + ziel + "').fade( {from:0, to:1} );}	}  ) ; " , 1000); 
	if ( geblindet == 0)
			{
				new Effect.BlindDown('eyecatcher',{ afterFinish: function(){geblindet = 1; $('eyecatcher').style.height = '';} });
				//$('spacerInhalt').style.height = '723px';
			}
}


