var setLinks = Class.create();
setLinks.prototype = {
	initialize:function(parent, img){
		this.parent = $(parent);
		this.img = img;
		this.init();
		this.actClass = document.body.className;
	},

	init:function(){
		var as = $A(this.parent.getElementsByTagName('a'));		
		as.each(
			function(item){
				Event.observe(item,'mouseover',this.over.bindAsEventListener(this));
				Event.observe(item,'mouseout',this.out.bindAsEventListener(this));						
			}.bind(this)
		)					
	},

	over:function(e){
		var src = Event.element(e);				
		if(this.actClass == src.id) return;
		src.style.backgroundImage = 'url(' + ROOT + 'css/'+LANG+'/' + src.id + '_ON.gif)';
	},

	out:function(e){
		var src = Event.element(e);
		if(this.actClass == src.id) return;
		src.style.backgroundImage = 'url(' + ROOT + 'css/'+LANG+'/' + src.id + '_OFF.gif)';		
	}	
}