$(document).ready(function(){
$('#cs_social_bookmarks_container').hover(
	function()
	{
		$('#cs_social_bookmarks_container').stop().animate({left: '-5px', opacity:'1.0' },1000);
	},
	function()
	{
		$('#cs_social_bookmarks_container').stop().animate({left: '-25px' , opacity:'0.5'},3000);
	});
	
$("#submenu ul li a").addClass('smoothhover');

    $('.smoothhover').mouseover(function(){
      $(this).stop().animate({paddingLeft: "30px"
	  }, 700 );
	});
    $('.smoothhover').mouseout(function(){
      $(this).stop().animate({paddingLeft: "0px"
	  }, 1000 );
	});	
	
        $('#submenu ul li a').click(function () {
            $(this).addClass('selected');
        });


  var anzHrefs = $('#submenu ul li').find('a').length;
  for (var i = 0; i <= anzHrefs - 1; i++)
  {
 var elhref = $('#submenu ul li a:eq('+i+')').attr('href');
 var urlel = 'http://'+document.location.hostname+'/'+elhref;
 var akthref = document.location.href;
// alert(urlel+' '+akthref);
    if (akthref == urlel)
 {
      $('#submenu ul li a:eq('+i+')').addClass('selected');
    }
  }
});
 






