
/*
Filename: julia_lang.js
	This file is the part of Julia 1.40 - Simply Programming Universe.

License:
	Please do not use any part of julia without written permission by the authors.

Copyright:
	Copyright (c) 2009 (www.e-future.pl).
*/

window.addEvent('load',function(){
    $$('.changeLang').each(function(e){
          e.setStyle('opacity',0.4);
          e.addEvent('mouseover',function(){
            this.setStyle('opacity',1);
          });
          e.addEvent('mouseout',function(){
            if(!this.hasClass('ActiveLang'))this.setStyle('opacity',0.4);
          });
		//var lang = e.getProperty('class');
//		var lang = lang.split(' ')[1];
		
       // e.addEvent('click',function(){
//			var cookie =  Cookie.write('juliaLang_'+julia_APP_NAME,lang,{duration: 365});
//        });
    });
    
    $$('.'+default_language).each(function(e){
    	e.setStyle('opacity',1);
		e.addClass('ActiveLang');
    })
    
});
