jQuery(function() {
	var currentId = '';
	jQuery('select').selectbox({debug: false});
	jQuery('.data tr:even').addClass('alt');
	
	jQuery('.selectbox').click(function() {
		// $(this).parent().find('.selectbox').css('z-index', '3');
		// $(this).parent().find('.selectbox').css('background', 'url(img/list-bg-hover.png) no-repeat');
		
		if(jQuery(this).parent().find('.selectbox').hasClass('selectbox-hover') == false) {
			jQuery(this).parent().find('.selectbox').addClass('selectbox-hover');
		}
	});
	
	jQuery('.help-button').click(function() {
		jQuery(this).parent().parent().find('.help-close').fadeIn(500);
		var help = jQuery(this).parent().parent().find('.help');
		if(help.css('display') == 'block') {
			help.slideUp(500);
			jQuery('.help-close').fadeOut(500);
		} else {
			help.slideDown(500);
		}
	});
	
	jQuery('.help-close').click(function() {
		jQuery(this).fadeOut(500);
		var help = jQuery(this).parent().parent().find('.help');
		help.slideUp(500);
	});
	
	jQuery.each(jQuery.browser, function(i, val) {
	  	if(i=="mozilla" && jQuery.browser.version.substr(0,5)=="1.9.0") {
			jQuery('.help-button').css('margin-top', '-33px');
			jQuery('.help-close').css('margin-top', '-33px');
		}
	});
	
});
