/**
 * @author trochette
 */
var Logiciels = new Class({
	selectedLogiciel:null,
	
    initialize: function(options){
	 	this._initEvents();
		this._initFlash();
		this.selectedLogiciel = $$('#screenshot .selected');
    },
	
	_initEvents:function() {
		$$('#screenshot li').each(function(el) {
			el.refClass = this;
			el.addEvent('mouseenter', this.screenshotRollOverHandler);
			el.set('tween', {duration:500, transition:Fx.Transitions.Back.easeOut});
		}, this);
		
	},
	
	screenshotRollOverHandler:function() {
		this.refClass.selectedLogiciel.tween('width', 130);
		this.refClass.selectedLogiciel = this;
		this.refClass.selectedLogiciel.tween('width', 350);			
	},
	
	_initFlash:function() {
		var obj = new Swiff('/assets/swfs/productsSlide.swf', {
			id: 'productsSlide',
			width: 860,
			height: 390,
			container:'slideshow_logiciels',
			params: {
				wmode: 'transparent',
				bgcolor: '#ff3300'
			},
			vars: {
				rootPath: "http://www.ellicom.com/",
				productsSlidePath: "assets/file_library/productsSlide/",
				productFolder: productFolder + "/", 
				lang:langue,
				expressinstall : "/assets/swfs/expressInstall.swf",
				version : "9"
			}
		});
	}	
	
});

/**
 * Add window ready event
 */
window.addEvent('domready', function() {
	var logiciels = new Logiciels();
});

