function get( ID ) {
	return	document.getElementById( ID );
}

function showInfo( ID ) {
	document.body.style.overflow = "hidden";	
	document.body.style.position	=	"absolute";
	document.body.style.marginTop	=	"0";
	document.forms[ 0 ].search_id_branche.style.display	=	"none";
	document.forms[ 0 ].search_standort.style.display	=	"none";
	get( ID ).style.display = "block";
	get( 'LAYER' ).style.display = "block";
}

function closeInfo( ID ) {
	document.body.style.overflow = '';		
	document.body.style.position	=	"static";
	document.body.style.marginTop	=	"20";
	document.forms[ 0 ].search_id_branche.style.display	=	"";
	document.forms[ 0 ].search_standort.style.display	=	"";
	get( ID ).style.display = "none";
	get( 'LAYER' ).style.display = "none";
}

Marked			=	"#FAA";

function markTF( TF ) {
	if( TF.value == "" ) {
		TF.style.backgroundColor	=	Marked;
	}
	else {
		TF.style.backgroundColor	=	"";
	}
}

function markCB( CB ) {
	if( CB.checked ) {
		CB.style.backgroundColor	=	"";
	}
	else {
		CB.style.backgroundColor	=	Marked;
	}
}

function checkMail( Adr ) {
	if( Ind = Adr.indexOf(' ') ) {
		if( Ind != -1 )	{
			return	false;
		}
	}
	if( Ind = Adr.indexOf('@') ) {
		if( Ind > 0 && Ind < Adr.length - 3 ) {
			return	true;
		}
	}
	return	false;
}

function createPlayer( ID, PlaceHolder, File, Breite, Hoehe, Preview ) {
	var flashvars = {
		file:File, 
		image:Preview,
		frontcolor:"0x4C4C4E",
		lightcolor:"0xAC1929",
		autostart:"false"	
	}

	var params = {
		allowfullscreen:"true", 
		allowscriptaccess:"always"
	}

	var attributes = {
		id:ID,  
		name:ID
	}
	swfobject.embedSWF("videoplayer/mediaplayer.swf", PlaceHolder, Breite, Hoehe + 20, "9", false, flashvars, params, attributes);
}
CurrentIter	=	0;
function showContent( Iter ) {
	Counter	=	1;
	while( TR = get( "header" + Counter ) ) {
		TR2	=	get( "content" + Counter );
		if( Counter != Iter ) {
			TR.style.display	=	"none";
			TR2.style.display	=	"none";
		}
		else {
			TR.style.display	=	"block";
			TR2.style.display	=	"block";
		}
		Counter++;	
	}
}
function showNews( Iter ) {
	Counter	=	0;
	while( DIV0 = get( "newsprecontent" + Counter ) ) {
		DIV1	=	get( "newscontent" + Counter );
		if( Counter != Iter ) {
			DIV0.style.display	=	"block";
			DIV1.style.display	=	"none";
		}
		else {
			DIV0.style.display	=	"none";
			DIV1.style.display	=	"block";
		}
		Counter++;	
	}
}
function hideNews( Iter ) {
	if( DIV0 = get( "newsprecontent" + Iter ) ) {
		DIV1	=	get( "newscontent" + Iter );
		DIV0.style.display	=	"block";
		DIV1.style.display	=	"none";
	}
}
function hideOverlay() {
	if( Div = get( "layer" ) ) {
		Div.style.display	=	"none";
	}
	if( Div = get( "banner" ) ) {
		Div.style.display	=	"none";
	}
}
