	var ny = new Class({
		Implements: [Options, Events],
		options: {
			factor: null,
			id: null
		},
		initialize: function(options){
			this.setOptions(options);
			this.nymath();
			this.setbox();
			this.setlogo();
			this.settext();
			this.job();
		},
		nymath: function(options){
			var X = window.getSize();
			this.Wide = X.x;
			this.High = X.y;
			this.Y = null;
			if(this.Wide >= this.High){this.Y = this.High;} else{this.Y = this.Wide;}
			this.Z = (this.Y/this.options.factor);
			this.medida = Math.round(this.Z*this.options.factor).toInt();
		},
		setbox: function(options){
			var nybox = new Element('div', {
				'id': 'nybox',
				styles: {
					'position': 'absolute',
					'overflow': 'hidden',
					width: this.medida + 'px',
					height: this.medida + 'px',
					left: Math.round((this.Wide-(this.medida))*0.5).toInt() + 'px',
					top: Math.round((this.High-(this.medida))*0.5).toInt() + 'px'
				}
			});
			nybox.inject(document.body, 'top');
		},
		setlogo: function(options){
			var fecha = new Date();
			var dia = fecha.getDay();
			this.logopng = 'n'+dia+'.png';
			this.logotop = Math.round(this.Z*250).toInt() + 'px';
			var logo = new Element('div', {
				'id': 'logo',
				styles: {
					'position': 'absolute',
					'overflow': 'hidden',
					width: Math.round(this.Z*500).toInt() + 'px',
					height: Math.round(this.Z*500).toInt() + 'px',
					left: Math.round(this.Z*250).toInt() + 'px',
					top: '-' + Math.round(this.Z*500).toInt() + 'px'
				},
				html: '<img id="logopng" src="ny.png"/>'
			});
			logo.inject(document.id('nybox'), 'top');
		},
		settext: function(options){
			var text = new Element('div', {
				'id': 'text',
				styles: {
					'position': 'absolute',
					'overflow': 'hidden',
					'border': 'none',
					'font-family': 'f',
					'font-size': Math.round(this.Z*50).toInt() +'px',
					'text-align':'center',	
					'color': '#cacaca',
					width: Math.round(this.Z*500).toInt() + 'px',
					height: Math.round(this.Z*120).toInt() + 'px',
					left: Math.round(this.Z*250).toInt() + 'px',
					top: Math.round(this.Z*750).toInt() + 'px'
				},
				html: 'we make your web'
			});
			text.inject(document.id('nybox'), 'top');
			document.id('text').fade('hide');
		},
		job: function(options){
			var imagen = this.logopng;
			var nyZ = this.Z;
			var divel = document.id(this.options.id);
			var imgel = divel.getElement('img');
			var txtel = document.id('text');
			var nyfx = new Fx.Tween('logo', {
				duration: 500,
				transition: 'bounce:out',
				link: 'cancel',
				property: 'top'
			});
			var eventos = function(){
				divel.addEvents({
					click: function(){
						document.id('text').set('text', 'not yet, sorry...');
					},
					mouseenter: function(){
						imgel.set('src', imagen);
						txtel.fade('show');
					},
					mouseleave: function(){
						imgel.set('src', 'ny.png');
						txtel.fade('hide');
						txtel.set('text', 'we make your web');
					}
				});
				document.body.addEvent('contextmenu',function(e) {
					$('logo').set('tween', {transition: Fx.Transitions.Bounce.easeOut});
					$('logo').tween('top', '-' + Math.round(nyZ*500).toInt() + 'px', Math.round(nyZ*250).toInt() + 'px');
					e.stop();
				});
				document.body.addEvent('keydown',function(e) {
				if(e.key!='space'){return false;}else{
					$('logo').set('tween', {transition: Fx.Transitions.Bounce.easeOut});
					$('logo').tween('top', '-' + Math.round(nyZ*500).toInt() + 'px', Math.round(nyZ*250).toInt() + 'px');
					e.stop();
				}});
				document.body.addEvent('keydown',function(e) {
				if(e.key!='esc'){return false;}else{
					imgel.set('src', 'ny.png');
					txtel.fade('hide');
					txtel.set('text', 'we make your web');
					e.stop();
				}});
				divel.setStyle('cursor', 'pointer');
			};
			nyfx.start(Math.round(this.Z*250).toInt() + 'px');
			eventos.delay(500);
		}
	});
