
//function clear the field with intial description text, see login



function clearField(field){
if (field.defaultValue==field.value);
field.value = "";

}


//Author of this form hack Nick Rigby www.alistapart.com
if( document.addEventListener )
document.addEventListener( 'DOMContentLoaded', myForm, false);


function myForm(){
  // Hide forms
  $( 'form.myForm' ).hide().end();

  // Processing
  $( 'form.myForm' ).find( 'li/label' ).not( '.nocmx' )
.each( function( i ){
    var labelContent = this.innerHTML;
    var labelWidth = document.defaultView.
getComputedStyle( this, '' ).getPropertyValue( 'width' );
    var labelSpan = document.createElement( 'span' );
        labelSpan.style.display = 'block';
        labelSpan.style.width = labelWidth;
        labelSpan.innerHTML = labelContent;
    this.style.display = '-moz-inline-box';
    this.innerHTML = "";
    this.appendChild( labelSpan );
  } ).end();

  // Show forms
  $( 'form.myForm' ).show().end();
}


		
	
		 $(document).ready(function() {
// hides the slickbox as soon as the DOM is ready
// (a little sooner than page load)
$('#describeDv').hide();
$('#moreDetailsDv').hide();
$('#moreEmailsDv').hide();
$('#moreMessengerDv').hide();
$('#morepicsDv').hide();
$('#datenschutzDv').hide();
$('#sichtbarDv').hide();
$('#wemDv').hide();
$('#wem1Dv').hide();
$('#wem2Dv').hide();
$('#wem3Dv').hide();
$('#tagDv').hide();
$('#videoDv').hide();
$('#pswsicherheitDv').hide();
$('#stadtDv').hide();
$('#anoDv').hide();


// toggles the slickbox on clicking the noted link
$('a#anoClick').click(function() {
 $('#anoDv').toggle(500);
return false;
});

// toggles the slickbox on clicking the noted link
$('a#stadtClick').click(function() {
 $('#stadtDv').toggle(500);
return false;
});

// toggles the slickbox on clicking the noted link
$('a#describeClick').click(function() {
 $('#describeDv').toggle(500);
return false;
});

 // toggles the slickbox on clicking the noted link
 $('a#morepicsClick').click(function() {
 $('#morepicsDv').toggle(500);
 return false;
 });

 // toggles the slickbox on clicking the noted link
 $('a#moreDetailsClick').click(function() {
 $('#moreDetailsDv').toggle(500);
 return false;
 });
 // toggles the slickbox on clicking the noted link
 $('a#moreEmailsClick').click(function() {
 $('#moreEmailsDv').toggle(500);
 return false;
 });
 // toggles the slickbox on clicking the noted link
 $('a#moreMessengerClick').click(function() {
 $('#moreMessengerDv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#datenschutzClick').click(function() {
 $('#datenschutzDv').toggle(500);
 return false;
 });
 // toggles the slickbox on clicking the noted link
 $('a#sichtbarClick').click(function() {
 $('#sichtbarDv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#wemClick').click(function() {
 $('#wemDv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#wem1Click').click(function() {
 $('#wem1Dv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#wem2Click').click(function() {
 $('#wem2Dv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#wem3Click').click(function() {
 $('#wem3Dv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#tagClick').click(function() {
 $('#tagDv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#videoClick').click(function() {
 $('#videoDv').toggle(500);
 return false;
 });
  // toggles the slickbox on clicking the noted link
 $('a#pswsicherheitClick').click(function() {
 $('#pswsicherheitDv').toggle(500);
 return false;
 });
});
		 
	
		 