



function auf1() {
var feld1;
var bild1;

feld1 = document.getElementById('feld1');
bild1 = document.getElementById('bild1');

if(feld1.style.display == 'block') {
feld1.style.display = 'none';
bild1.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf1.gif';
} else {
feld1.style.display = 'block';
bild1.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu1.gif';
}
}





function auf2() {
var feld2;
var bild2;

feld2 = document.getElementById('feld2');
bild2 = document.getElementById('bild2');

if(feld2.style.display == 'block') {
feld2.style.display = 'none';
bild2.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf2.gif';
} else {
feld2.style.display = 'block';
bild2.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu2.gif';
}
}


function auf3() {
var feld3;
var bild3;

feld3 = document.getElementById('feld3');
bild3 = document.getElementById('bild3');

if(feld3.style.display == 'block') {
feld3.style.display = 'none';
bild3.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf3.gif';
} else {
feld3.style.display = 'block';
bild3.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu3.gif';
}
}




function auf4() {
var feld4;
var bild4;

feld4 = document.getElementById('feld4');
bild4 = document.getElementById('bild4');

if(feld4.style.display == 'block') {
feld4.style.display = 'none';
bild4.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf4.gif';
} else {
feld4.style.display = 'block';
bild4.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu4.gif';
}
}



function auf5() {
var feld5;
var bild5;

feld5 = document.getElementById('feld5');
bild5 = document.getElementById('bild5');

if(feld5.style.display == 'block') {
feld5.style.display = 'none';
bild5.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf5.gif';
} else {
feld5.style.display = 'block';
bild5.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu5.gif';
}
}



function auf6() {
var feld6;
var bild6;

feld6 = document.getElementById('feld6');
bild6 = document.getElementById('bild6');

if(feld6.style.display == 'block') {
feld6.style.display = 'none';
bild6.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf6.gif';
} else {
feld6.style.display = 'block';
bild6.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu6.gif';
}
}


function auf7() {
var feld7;
var bild7;

feld7 = document.getElementById('feld7');
bild7 = document.getElementById('bild7');

if(feld7.style.display == 'block') {
feld7.style.display = 'none';
bild7.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf7.gif';
} else {
feld7.style.display = 'block';
bild7.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu7.gif';
}
}

function auf8() {
var feld8;
var bild8;

feld8 = document.getElementById('feld8');
bild8 = document.getElementById('bild8');

if(feld8.style.display == 'block') {
feld8.style.display = 'none';
bild8.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf8.gif';
} else {
feld8.style.display = 'block';
bild8.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu8.gif';
}
}



function auf9() {
var feld9;
var bild9;

feld9 = document.getElementById('feld9');
bild9 = document.getElementById('bild9');

if(feld9.style.display == 'block') {
feld9.style.display = 'none';
bild9.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf9.gif';
} else {
feld9.style.display = 'block';
bild9.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu9.gif';
}
}


function auf10() {
var feld10;
var bild10;

feld10 = document.getElementById('feld10');
bild10 = document.getElementById('bild10');

if(feld10.style.display == 'block') {
feld10.style.display = 'none';
bild10.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf10.gif';
}
else {
feld10.style.display = 'block';
bild10.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu10.gif';
}
}



function auf11() {
var feld11;
var bild11;

feld11 = document.getElementById('feld11');
bild11 = document.getElementById('bild11');

if(feld11.style.display == 'block') {
feld11.style.display = 'none';
bild11.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf11.gif';
} else {
feld11.style.display = 'block';
bild11.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu11.gif';
}
}


function auf12() {
var feld12;
var bild12;

feld12 = document.getElementById('feld12');
bild12 = document.getElementById('bild12');

if(feld12.style.display == 'block') {
feld12.style.display = 'none';
bild12.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf12.gif';
} else {
feld12.style.display = 'block';
bild12.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu12.gif';
}
}




function auf13() {
var feld13;
var bild13;

feld13 = document.getElementById('feld13');
bild13 = document.getElementById('bild13');

if(feld13.style.display == 'block') {
feld13.style.display = 'none';
bild13.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf13.gif';
} else {
feld13.style.display = 'block';
bild13.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu13.gif';
}
}





function auf14() {
var feld14;
var bild14;

feld14 = document.getElementById('feld14');
bild14 = document.getElementById('bild14');

if(feld14.style.display == 'block') {
feld14.style.display = 'none';
bild14.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf14.gif';
} else {
feld14.style.display = 'block';
bild14.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu14.gif';
}
}





function auf15() {
var feld15;
var bild15;

feld15 = document.getElementById('feld15');
bild15 = document.getElementById('bild15');

if(feld15.style.display == 'block') {
feld15.style.display = 'none';
bild15.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf15.gif';
} else {
feld15.style.display = 'block';
bild15.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu15.gif';
}
}


function auf16() {
var feld16;
var bild16;

feld16 = document.getElementById('feld16');
bild16 = document.getElementById('bild16');

if(feld16.style.display == 'block') {
feld16.style.display = 'none';
bild16.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf15.gif';
} else {
feld16.style.display = 'block';
bild16.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu15.gif';
}
}

function auf17() {
var feld17;
var bild17;

feld17 = document.getElementById('feld17');
bild17 = document.getElementById('bild17');

if(feld17.style.display == 'block') {
feld17.style.display = 'none';
bild17.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf15.gif';
} else {
feld17.style.display = 'block';
bild17.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu15.gif';
}
}


function auf50() {
var feld50;
var bild50;
var feld51;
var bild51;

feld50 = document.getElementById('feld50');
bild50 = document.getElementById('bild50');

if(feld50.style.display == 'block') {
feld50.style.display = 'none';
bild50.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/auf15.gif';
} else {
feld50.style.display = 'block';
bild50.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/zu15.gif';
}
}










 var W3CDOM = (document.createElement && document.getElementsByTagName);

function initFileUploads()
{
	if (!W3CDOM) return;
	var fakeFileUpload = document.createElement('div');
	fakeFileUpload.className = 'fakefile';
	fakeFileUpload.appendChild(document.createElement('input'));
	var image = document.createElement('img');
	image.src='fileadmin/d_i_e_tmpl_de/template/ext/ct_manager/divein_button.gif';
	fakeFileUpload.appendChild(image);
	var x = document.getElementsByTagName('input');
	for (var i=0;i<x.length;i++)
	{
		if (x[i].type != 'file') continue;
		if (x[i].parentNode.className != 'fileinputs') continue;
		x[i].className = 'file hidden';
		var clone = fakeFileUpload.cloneNode(true);
		x[i].parentNode.appendChild(clone);
		x[i].relatedElement = clone.getElementsByTagName('input')[0];
		x[i].onchange = x[i].onmouseout = function () {
			this.relatedElement.value = this.value;
		}
	}
}



function submitForm(s) {
s.value = "Vielen Dank!";
return true;
}
 




function swapImage() { 

  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}


function swapImgRestore() { 

  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}


var resetRolls = new Object();

function resetimage(src)
{
this.src=src;
this.confirm=true;
this.alt="Reset";
this.write=resetimage_write;
}



function resetimage_write()
{
document.write('<A ');
if (this.rollover)
    {
    if (! this.name)
        {
        alert('to create a rollover you must give the image a name');
        return;
        }
    resetRolls[this.name] = new Object();
    resetRolls[this.name].over = new Image();
    resetRolls[this.name].over.src=this.rollover;
    resetRolls[this.name].out = new Image();
    resetRolls[this.name].out.src=this.src;
    document.write(

        ' onMouseOver="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].over.src"' + 
        ' onMouseOut="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].out.src"'
        );
    }
document.write(' HREF="javascript:');
if (this.confirm)
    document.write('if(confirm(\'sicher ?\'))');
document.write(
    'document.forms[' + 
    (document.forms.length - 1) + '].reset();void(0);">');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '"');
document.write(' BORDER=0');
if (this.name)document.write(' NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' '+ this.otheratts);
document.write('></A>');
}





function resetimage_en(src)
{
this.src=src;
this.confirm=true;
this.alt="Reset";
this.write=resetimage_write_en;
}



function resetimage_write_en()
{
document.write('<A ');
if (this.rollover)
    {
    if (! this.name)
        {
        alert('to create a rollover you must give the image a name');
        return;
        }
    resetRolls[this.name] = new Object();
    resetRolls[this.name].over = new Image();
    resetRolls[this.name].over.src=this.rollover;
    resetRolls[this.name].out = new Image();
    resetRolls[this.name].out.src=this.src;
    document.write(

        ' onMouseOver="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].over.src"' + 
        ' onMouseOut="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].out.src"'
        );
    }
document.write(' HREF="javascript:');
if (this.confirm)
    document.write('if(confirm(\'are you sure ?\'))');
document.write(
    'document.forms[' + 
    (document.forms.length - 1) + '].reset();void(0);">');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '"');
document.write(' BORDER=0');
if (this.name)document.write(' NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' '+ this.otheratts);
document.write('></A>');
}






function resetimage_es(src)
{
this.src=src;
this.confirm=true;
this.alt="Reset";
this.write=resetimage_write_es;
}



function resetimage_write_es()
{
document.write('<A ');
if (this.rollover)
    {
    if (! this.name)
        {
        alert('to create a rollover you must give the image a name');
        return;
        }
    resetRolls[this.name] = new Object();
    resetRolls[this.name].over = new Image();
    resetRolls[this.name].over.src=this.rollover;
    resetRolls[this.name].out = new Image();
    resetRolls[this.name].out.src=this.src;
    document.write(

        ' onMouseOver="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].over.src"' + 
        ' onMouseOut="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].out.src"'
        );
    }
document.write(' HREF="javascript:');
if (this.confirm)
    document.write('if(confirm(\'es usted seguro ?\'))');
document.write(
    'document.forms[' + 
    (document.forms.length - 1) + '].reset();void(0);">');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '"');
document.write(' BORDER=0');
if (this.name)document.write(' NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' '+ this.otheratts);
document.write('></A>');
}




		function repositionMenu1()
		{
			var newLeft = getWindowWidth1() / 2 + myOffset1;
			myMenu1.container.style ? myMenu1.container.style.left = newLeft + "px" : myMenu1.container.left = newLeft;
		}

		function getWindowWidth1()
		{
			return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
		}	

		function repositionMenu2()
		{
			var newLeft = getWindowWidth2() / 2 + myOffset2;
			myMenu2.container.style ? myMenu2.container.style.left = newLeft + "px" : myMenu2.container.left = newLeft;
		}
    	 
		function getWindowWidth2()
		{
			return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
		}	

		
		
		
		function conf(text)
 {
 if(confirm(text))
  {
  document.docresult=true;
  }
 else
  {
  document.docresult=false;
  }
 }
