$(document).ready(function(){

	/* SpanLink conduct declaration */
	$(".spanlink").hover(function (){if ( $(this).hasClass('spanlink') ){$(this).removeClass('spanlink');} $(this).addClass('spanlinkSel');}, function (){if ( $(this).hasClass('spanlinkSel') ){$(this).removeClass('spanlinkSel');} $(this).addClass('spanlink');});
	$(".spanlink").click(function (){if ( ( $(this).attr('target') != null ) ){if ( (( $(this).attr('target').text != '' ) && ( $(this).attr('target').text != 'undefined' ) ) ){if ( $(this).attr('target').substr(0,4) == 'http' ){window.open($(this).attr('target'));}else document.location=$(this).attr('target');}}else if ( ( $(this).attr('function') != null ) ){if (( $(this).attr('function').text != '' ) && ( $(this).attr('function').text != 'undefined' )){eval( $(this).attr('function') );}}});

	/* LiveInternet counter */

    $('#topmenu ul li').hover(
        function() {
			{
				$(this).find('a').addClass("active");
				$(this).find('ul').css({left: $(this).find('a').position().left });
				$(this).find('ul').css({top: $(this).find('a').position().top + 17 });
				$(this).find('ul').addClass("active");
			}
            $(this).find('ul').stop(true, true);
            $(this).find('ul').slideDown(0);
        },
        function() {
            $(this).find('a').removeClass("active");
            $(this).find('ul').slideUp(0);
        }
    );
});