Event.observe(window, 'load', function() {
	$$('ul.social a').each(function(_link){
		_link.setStyle({'opacity':'0.44'})
		_link.onmouseover = function(){
			new Effect.Morph(this, {
				style: {'opacity':'1'},
				duration: 0.2
			});
			$('sid').update(this.readAttribute('alt'));
			$('sid').innerHTML;
		}
		_link.onmouseout = function(){
			new Effect.Morph(this, {
				style: {'opacity':'0.44'},
				duration: 0.2
			});
		}
	});
	$$('div.sort-holder dd.right').each(function(_holder){
		var _link = _holder.select('a.go-sort')[0];
		_link.onclick = function(){
			if (!_holder.hasClassName('active')) {
				_holder.addClassName('active');
			} else {
				_holder.removeClassName('active');
			}
			return false;
		}
	});
	$$('div.head-box').each(function(_holder){
		var _link = _holder.select('a.cart');
		_link.onclick = function(){
			if (!_holder.hasClassName('active')) {
				_holder.addClassName('active');
			} else {
				_holder.removeClassName('active');	
			}
			return false;
		}
	});
});


