$(document).ready( function()
{ 	
	// MENU
	
	$('#static-menu > ul li.active img').each(function() 
    {
        this.src = this.src.replace("_passive","_active");
    });
	
	$('#static-menu > ul li.hover img').hover(
        function(){
            this.src = this.src.replace("_passive","_active");
        },function(){
            this.src = this.src.replace("_active","_passive");
        }
	);
	
	$('#main-menu > ul li.active img').each(function() 
    {
        this.src = this.src.replace("_passive","_active");
    });
	
	$('#main-menu > ul li.hover img').hover(
        function(){
            this.src = this.src.replace("_passive","_active");
        },function(){
            this.src = this.src.replace("_active","_passive");
        }
	);
	
	$('a img.ro').each(function() 
    {
        this.src = this.src.replace("_active","_passive");
    });
	
	$('a img.ro').hover(
        function(){
            this.src = this.src.replace("_passive","_active");
        },function(){
            this.src = this.src.replace("_active","_passive");
        }
	);
     			
});


/* ENCRYPT EMAIL */
function UnCryptMailto(s, shift) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(shift)); 
	}
	return r;
}

function linkTo_UnCryptMailto(s, shift)	{
	location.href=UnCryptMailto(s, shift);
}

function deleteFocus(clickItem) {
    clickItem.blur();
    return false;
}
