function initalizeED($)
{
	$("UL#submenu-wrapper LI:last").css("border-bottom", "none");

	$("#logo").click
	(
		function()
		{
			window.location = baseURL;
		}
	);

//	$("#konsultant-online IMG").mouseover
//	(
//		function()
//		{
//			$(this).attr('src', baseURL+'media/gfx/kons_online/on.png');
//		}
//	);
//
//	$("#konsultant-online IMG").mouseout
//	(
//		function()
//		{
//			$(this).attr('src', baseURL+'media/gfx/kons_online/off.png');
//		}
//	);

	// five steps rollover
	$("#five-steps .step IMG").not(".over").mouseover
	(
		function()
		{
			$(this).siblings("IMG.over").fadeIn();
		}
	);

	$("#five-steps .step IMG.over").mouseout
	(
		function()
		{
			$(this).fadeOut();
		}
	);

	$("#five-steps .step IMG.over").click
	(
		function()
		{
			var href = $(this).siblings("A").attr("href");

			window.location = href;
		}
	);

	// --- Comments Viewer
	$(".comments_viewer").hide();

	$(".comments_viewer").each(
		function()
		{
			var topic_id = $(this).attr('data-topic-id');
			var data_ref = $(this).attr('data-ref');

			var this_ref = this;

			$.get('index.php/ksiega/ajaxGetComments/' + topic_id, {ref: data_ref}, function(data) {
					
					if (data != '')
						$(this_ref).html(data).show();	

			});
		}
	);
}

