<!-- 
/*
////////////Popup Bild
function PopupFenster(bild,masse) {
////////////////////////////////////////////////////////height=120,width=200,
	var wert;
	var heihgt_neu="";
	var wight_neu="";
	var temp="";
	temp = new Image();
	temp.src = bild;
	heihgt_neu= temp.height+60;
	wight_neu=temp.width+30;
	Ausgabe = open("", "POPUP",'height=1px', 'width=1px', 'menubar=no,toolbar=no,directories=no,scrollbars=no,resizable=no,status=no,location=no');
	Ausgabe.close();
	Ausgabe = open("", "POPUP",'height='+(heihgt_neu)+'px, width='+(wight_neu)+'px', 'menubar=no,toolbar=no,directories=no,scrollbars=no,resizable=no,status=no,location=no');
	testseite = Ausgabe.document;
	Inhalt = "<html><head><style><link rel='stylesheet' type=\'text/css\' href='css/css1.css'></style><script src='scripte/pic_set.js' language='JavaScript'></script><title>Bild</title></head><body bgcolor='' ><table><tr><td><img src="+[bild]+" align='left'></td></tr><tr><td align='center'><a href='javascript:this.close()'  style='color : #1A3C54; font-family : arial;font-size : 8pt;	text-decoration : underline;font-weight : bold;'>Schlie&szlig;en!</a></td></tr></table></body></html>";
	testseite.open();
	testseite.write(Inhalt);

}  */
function PopupFenster(bild,masse) {
////////////////////////////////////////////////////////height=120,width=200,
	var wert;
	var height_neu="";
	var width_neu="";
	var temp="";
	temp = new Image();
	temp.src = bild;
	height_neu= temp.height;
	width_neu= 300;
    var myObject = new Object();
	myObject.bild=bild;
	window.showModalDialog("bild_popup.html",myObject, "dialogHeight:500px; dialogWidth =550px; dialogLeft:500px; dialogTop:200px;");


}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//Hold window object for the color picker dialog
var color_dialog;
//Used to store the color selected on the color picker window
var pp;
function RestoreImage(){ //v2.0
	nCount = document.OriginImage.length;
	ImgArray = document.OriginImage;

	if (document.OriginImage != null)
		for (i = 0; i < (nCount - 1); i += 2)
			ImgArray[i].src = ImgArray[i+1];
	document.OriginImage = null;
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function ReplaceImage(){ //v2.0
	j = 0;
	ImgArray = new Array;
	oldImgArray = document.OriginImage;

	for (i = 0; i < ReplaceImage.arguments.length; i += 2) {
		obj=ReplaceImage.arguments[i]
		ImgArray[j++] = obj;
		if (oldImgArray == null || oldImgArray[j-1] != obj)
			ImgArray[j++] = obj.src;
		else
			ImgArray[j++] = oldImgArray[j];
		obj.src = ReplaceImage.arguments[i + 1];
	}
	if (document.OriginImage == null)
		document.OriginImage = ImgArray;
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function versuch(bild) {
	maineditor.document.getElementById("hintergrund_tab_links").style.background ="url('bilderanzeigen.php?id="+bild+"')";
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

function leuchten (leucht1,leucht2){ 
	event.srcElement.style.backgroundColor=leucht1; 
	event.srcElement.style.color=leucht2; 
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/////////////Original Function
function leuchten_neu (leucht1,leucht2,op,up){ 
	if(document.getElementById(op)){
		document.getElementById(op).style.backgroundColor=leucht1; 
	}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function leuchten_aus_neu (leucht1,leucht2,op,up){ 
	if(document.getElementById(op)){
		document.getElementById(op).style.backgroundColor=leucht1; 
	} 
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function leuchten_aus (leucht_aus1,leucht_aus2){ 
	event.srcElement.style.backgroundColor=leucht_aus1; 
	event.srcElement.style.color=leucht_aus2; 
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function checkBrowser() {isIE4=(document.all)?true:false; isNN4=(document.layers)?true:false; }
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function verstecken(hallo,err){
	checkBrowser();
	var wert= hallo;
	if(isIE4){
		window.setTimeout("verstecken_anf('"+wert+"')",1);
	}else{
		verstecken_anf(wert);
	}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function bub(wert1,wert2,name){
	document.getElementById("teste").style.visibility = "hidden";
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function versuch(asert){
	document.getElementById(asert).style.visibility = "hidden";
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
//////////Functionen  Navigation
////////////////////////////////
function verstecken_anf_left(durchlauf){
	checkBrowser();
	for(var i = 1; i <= durchlauf; i++){
		neu='div_3_left'+i;
		if(document.getElementById(neu)){
			document.getElementById(neu).style.visibility = "hidden";
		}
	}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
//////////////Das ist die Originale
function verstecken_anf(durchlauf){
	checkBrowser();
	for(var i = 1; i <= durchlauf; i++){
		neu='div_3'+i;
	if(document.getElementById(neu)){
			document.getElementById(neu).style.visibility = "hidden";
		}
	}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function sichtbar(nam,durchlauf){
	for(var i = 1; i <= durchlauf; i++){
		neu='div_3'+i;
		if(nam != neu){
			document.getElementById(neu).style.visibility = "hidden";
		}
	}
	document.getElementById(nam).style.visibility = "visible";
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function sichtbar_left(nam,durchlauf){
	for(var i = 1; i <= durchlauf; i++){
		neu='div_3_left'+i;
		if(document.getElementById(neu)){
			if(nam != neu){
				document.getElementById(neu).style.visibility = "hidden";
			}
		}	
	}
		if(document.getElementById(nam)){
			document.getElementById(nam).style.visibility = "visible";
		}
}
////----Ende Function Navigation-----
//----------------------------------------------------------------------------------------------------------------------------------------------------------
function verstecken_neu(hallo,err){
	var a = window.event.toElement.id ;
	var wert= hallo;
	if(a != "hallo") {
		window.setTimeout("verstecken_anf('"+wert+"')",200);
	}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
//Style einfügen
if(document.all){
	document.write('<link rel="stylesheet" type=\"text/css\" href="css/css1.css">');
}else{ 
	document.write('<link rel="stylesheet" type=\"text/css\" href="css/css1.css">');
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
//Bild einfügen
function zurueck_1(bild,ausw,mb,bildername) {
	thumbpfad=zurueck_1.arguments[5];
	//alert(thumbpfad);
	var my_array = window.dialogArguments;
	my_array[12]=thumbpfad;
	my_array[6]=bildername;
	my_array[8]=bild;
	//alert(my_array[11]);
	//alert(my_array);
	if(ausw == 6 &&  my_array[1]!="normal" && my_array[1]!="pop")
	{
     var pageproperty=my_array[1];
	 var wert_url=my_array[2];

	  b_id_1="bild_id_oben_1";
	  b_id_2="bild_id_links_1";
	  b_id_3="bild_id_1";
		for(z=1;z<=100;z++){
				inhalt_1= wert_url.lastIndexOf(b_id_1);
				if(inhalt_1 != -1){		
				  bld_alt = b_id_1;
				}
				inhalt_2= wert_url.lastIndexOf(b_id_2);
				if(inhalt_2 != -1){
				  bld_alt = b_id_2;
				}
				inhalt_3= wert_url.lastIndexOf(b_id_3);
				if(inhalt_3 != -1){
				  bld_alt = b_id_3;
				}
			wert=z+1;	
			b_id_3="bild_id_"+wert;
			b_id_1="bild_id_oben_"+wert;	
			b_id_2="bild_id_links_"+wert;
		}
    	//*auswahl der Function
		if(my_array[1]=="Creat_bilderwechsel"){
		    Creat_bilderwechsel(bild,wert_url,bld_alt);
	  	}else
		{
		 // CreatePop_Link(bild,wert_url);
		}
	}
		close();
	//if(zurueck_1.arguments[4]==1){
	 // alert("Los");
	//window.opener.windows.dokument.b_loesch=bild;
	//}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
//Bewegen Menue Start
var an=0;
function start()
	{
	if(an==0) an=1;
		else an =0;
	}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
//Bewegen Menue
function bewegen(obj_1,obj_2)
	{
	if(an==1){
		x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
		y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
		w = document.getElementById(obj_2).width/2;
		h = document.getElementById(obj_2).height/2;
		document.getElementById(obj_1).style.left = (x-w) + "px";
		document.getElementById(obj_1).style.top = (y-h) + "px";
	}
}
//----------------------------------------------------------------------------------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
function CountMax()
{
var wert,max;
max = 1500;
wert = max-document.eingabe.nachricht.value.length;
if (wert < 0) {
alert("Sie haben die maximale Zeichenanzahl von " + max + " Buchstaben erreicht!");
document.eingabe.nachricht.value = document.eingabe.nachricht.value.substring(0,max);
wert = max-document.eingabe.nachricht.value.length;
document.eingabe.counter.value = wert;

} else {
document.eingabe.counter.value = max - document.eingabe.nachricht.value.length;
}
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------
// --> 

























