$(document).ready(function(){       
	
	// turns on the toolips for syndications
	$('.getTipsy').tipsy({fade: true, gravity:'s'});
	
	// controls the slidedown/up of custom select menus
	$('.funkyList').hover(
		function () {
	        $(this).find('ul').show();
	      }, 
	      function () {
	        $(this).find('ul').hide();
	      }
	);
	
	
	// sets the choice from a custom select to a hidden input
	var value = null;
	$('.select_item').click(function() {
		value    = $(this).attr('rel');
		var item = $(this).attr('class').split(" ");
		var text = $(this).text();
		item     = item[0];
		$('#'+item+'First').text(text);
		$(this).parent().parent().slideUp('fast');
		$('label[for*='+item+'Input]').hide(); // this is a hack that hides the jquery validation plugin's error fields upon selection.
		$('#'+item+'Input').val(value).focus().blur();
	});

});
