/* eyecandys */
anim_menu = new function() {};
anim_menu.holderOver = document.createElement('div'); 
anim_menu.holderOver.id = 'holderOver'; 
anim_menu.holderOut = document.createElement('div'); 
anim_menu.holderOut.id = 'holderOut';
anim_menu.over = function(obj) {
	var holderOver; 
	if(!document.getElementById("holderOver-"+obj.parentNode.className.split(" ",1)[0])) {
		holderOver = document.createElement('div');
		holderOver.id = "holderOver-"+obj.parentNode.className.split(" ",1)[0];	
	}
	var Anim = YAHOO.util.Anim;
	attributes = {
		top: { from: 0, to: 20, unit:'%' },
		color: { to: '#5f5c5b' }		
	};
	anim = new Anim(anim_menu.holderOver, attributes, 0.3, YAHOO.util.Easing.easeOut); 
	anim.onTween.subscribe(function() { 
		obj.style.backgroundPosition = '100% ' + anim_menu.holderOver.style.top; 
	}, anim, true);	
	anim.animate();
/* 	obj.style.backgroundPosition = '100% 20%'; */
};
anim_menu.out = function(obj) {
	if(!document.getElementById("holderOut-"+obj.parentNode.className.split(" ",1)[0])) {
		holderOut = document.createElement('div');
		holderOut.id = "holderOut-"+obj.parentNode.className.split(" ",1)[0];	
	}
	var Anim = YAHOO.util.Anim;
	attributes = {
		top: { from: 20, to: 0, unit:'%' },
		color: { to: '#a6bdcd' }
	};
	anim = new Anim(anim_menu.holderOut, attributes, 0.3, YAHOO.util.Easing.easeOut); 
	anim.onTween.subscribe(function() { 
		obj.style.backgroundPosition = '100% ' + anim_menu.holderOut.style.top; 
	}, anim, true);	
	anim.animate();
	//obj.style.backgroundPosition = '100% 0%';
};


