/*
 * @Author: Ricard Catalan Díaz
 * @Version: 1.0
 * @License: GNU
 */
var Enotificacion = new Class({
     Extends: Moodalbox,
     /* OPTION extends from Moodalbax option */
     option: {
          url: 'http://www.gestoriaonline.com/files/descargas/e-notificacion/',
          flash: null
     },
     init: function(){
          el = this.initModal(); // Call a parent method to create a modal box
          this.embed='<object width="'+this.option.width+'" height="'+this.option.height+'"><param value="'+this.option.url+this.option.flash+'" name="movie"/>';
          this.embed+='<param value="high" name="quality"/><param value="#" name="bgcolor"/><param value="opaque" name="wmode"/>'
          this.embed+='<embed height="'+this.option.height+'" width="'+this.option.width+'" allowscriptaccess="never" type="application/x-shockwave-flash" bgcolor="#" swliveconnect="TRUE" wmode="opaque" quality="high" src="'+this.option.url+this.option.flash+'"/></object>';
          this.header = new Element('div', {
               'class': 'select',
               'html':  this.embed
          });
          this.header.injectTop( el );
     }
});
window.addEvent('load',function(){
     document.id('modalclik').addEvent('click', function(){
          var enot = new Enotificacion(640, 516, '', 'upper'); // Cambiamos el tamaño por defecto
          enot.option.title = document.id('modalclik').getProperty('title');
          enot.option.lang = 'es'; // [optional] Change language
          /* Options for Enotificacion */
          enot.option.flash = document.id('modalclik').getProperty('href').substring(1, document.id('modalclik').getProperty('href').length)+'.swf';
          enot.init(); // Create a moodal box with Gallery.
     });
});
