/**
 * @author Profitroom
 */

var offerImages = new Class({
            		options:{
            			mainId:'ramHolder',
            			holderId:'.SpecOffertIn',
            			boxId:'.przenikanie',
            			link:'a.SpecOffertLink'
            		},
            		initialize:function(options)
            		{
            			this.setOptions(options);
            			this.offerHolders = $(this.options.mainId).getElements(this.options.holderId);
	            		this.boxes = this.offerHolders.getElements(this.options.boxId);
	            		this.offerActivators = this.offerHolders.getElements(this.options.link);
	            		
	            		this.offerActivators.each(function(el,i)
	            		{
	            			this.boxes[i].setStyle('opacity','0');
	            				            			
	            			el.index = i;
	            			el.addEvent('mouseenter',(function()
	            			{
	            				this.boxes[el.index].fade('0.7');
	            			}).bind(this));    
	            			
	            			el.addEvent('mouseleave',(function()
	            			{
	            				this.boxes[el.index].fade('0');
	            			}).bind(this));
	            			        			
	            			
	            		},this);
            		}
            	
            	});
            	offerImages.implement(new Options());




