// JavaScript Document

 /*****************************************************************************
    The sIFR configuration should typically go in `sifr-config.js`, but in order to
    keep the config file clean, and to give a quick overview, it's done here instead.
    *****************************************************************************/
  	var afrodite = {
      src: 'afrodite.swf'
    };

    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    // sIFR.useStyleCheck = true;
    sIFR.activate(afrodite);

   
    
  	 
	 sIFR.replace(afrodite, {
      selector: 'h2',
	  wmode: 'transparent'
      ,css: [
        '.sIFR-root { color:#39779c; }'
      ]
    });
	 
	 sIFR.replace(afrodite, {
      selector: 'h3',
	  wmode: 'transparent'
      ,css: [
        '.sIFR-root { text-align: right; color:#39779c; height:90px ;}'
      ]
    });
	 
	 sIFR.replace(afrodite, {
      selector: 'h4',
	  wmode: 'transparent'
      ,css: [
        '.sIFR-root { text-align: right; color:#39779c; height:90px ;}'
      ]
    });
	 
	  sIFR.replace(afrodite, {
      selector: '.probeta',
	  wmode: 'transparent'
      ,css: [
        '.sIFR-root {color:#39779c;}'
		
      ]
    });
	  
	  
	  
	 sIFR.replace(afrodite, {selector: 'h2,h3,h4,.probeta'});
	 
	 
	 
	 function capa1(){
                document.getElementById('a').style.display = 'block';
                document.getElementById('b').style.display = 'none';
                document.getElementById('c').style.display = 'none';
            }
     function capa2(){
                document.getElementById('a').style.display = 'none';
                document.getElementById('b').style.display = 'block';
                document.getElementById('c').style.display = 'none';
            }
      function capa3(){
                document.getElementById('a').style.display = 'none';
                document.getElementById('b').style.display = 'none';
                document.getElementById('c').style.display = 'block';
            }
			
			
			
			
			function mostrardiv() {
			
			div = document.getElementById('flotante');
			
			div.style.display = '';
			
			}
			function cerrar() {
			
			div = document.getElementById('flotante');
			
			div.style.display='none';
			
			}
function email_doOnsubmit(theForm) {

                    if (theForm.name && theForm.name.value == "" && theForm.name.getAttribute("required") != "false" ) {
                        alert("¡Inserte un apellido!");
                        return false;
                    }

                    if (theForm.email && theForm.email.value == "" && theForm.email.getAttribute("required") != "false") {
                        alert("¡Inserte un correo electrónico! ");
                        return false;
                    }

                    if ( theForm.vorname && theForm.vorname.value == "" && theForm.vorname.getAttribute("required")== "true" ) {
                        alert("¡Inserte un nombre!");
                        return false;
                    }

                    if ( theForm.strasse && theForm.strasse.value == "" && theForm.strasse.getAttribute("required")== "true" ) {
                        alert("¡Inserte una calle!");
                        return false;
                    }

                    if ( theForm.ort && theForm.ort.value == "" && theForm.ort.getAttribute("required")== "true" ) {
                        alert("¡Inserte una localidad!");
                        return false;
                    }

                    if ( theForm.plz && theForm.plz.value == "" && theForm.plz.getAttribute("required")== "true" ) {
                        alert("¡Inserte un código postal!");
                        return false;
                    }

                    if ( theForm.land && theForm.land.value == "" && theForm.land.getAttribute("required")== "true" ) {
                        alert("¡Inserte un pais!");
                        return false;
                    }

                    if ( theForm.tel && theForm.tel.value == "" && theForm.tel.getAttribute("required")== "true" ) {
                        alert("¡Inserte un teléfono!");
                        return false;
                    }

                    if ( theForm.fax && theForm.fax.value == "" && theForm.fax.getAttribute("required")== "true" ) {
                        alert("¡Inserte un fax!");
                        return false;
                    }

                    if ( theForm.kommentar && theForm.kommentar.value == "" && theForm.kommentar.getAttribute("required")== "true" ) {
                        alert("¡Inserte un comentario!");
                        return false;
                    }


                    theForm.redirect.value = __path_prefix__ + theSitetree.getHREF(13201) + "?" + URL.getSessionString();
                    theForm.referrer.value = document.location.href;

                    return true;
				}