$(document).ready(function()
{	
	
	
	$("div.sidemenu ul.right li a span").hover(function()
	{
		//hover over
		$(this).animate(
		{
			backgroundPosition: 95
		}, "normal"	
		);
		
	},function()
	{
		//hover out
		$(this).animate(
		{
			backgroundPosition: 77
		}, "normal" 
		)
	});
	
	$("div.sidemenu ul.left li a span").hover(function()
	{
		//hover over
		$(this).animate(
		{
			backgroundPosition: -18
		}, "normal"	
		);
	},function()
	{
		//hover out
		$(this).animate(
		{
			backgroundPosition: -2
		}, "normal" 
		)
	});
	
});

$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};

function urlCleanFormat(s) {
	alert("s: " + s);
	s = s.replace(/\s/g, "").toLowerCase();
	s = s.replace(/\//g, ""); 
	s = s.replace(/'/g, ""); 
	s = s.replace(/&amp;/g, ""); 
	s = s.replace(/&/g, ""); 
	return s;
};
