	var addthis_config = {
	  data_use_flash: false
	}
	$(function(){

	$('#newsletter_help').qtip({content: 'Sign-up to our free twice-weekly newsletter and receive the latest news from across the industry as well as information on new products, events and the lastest job opportunities.', style: {border: {width:2,radius:6}, padding:10, name:'light', tip:'topRight'}, position: {corner: {target: 'bottomLeft', tooltip: 'topRight'}}
	});

	$('a[tooltip]').each(function() {
		$(this).qtip({content: $(this).attr('tooltip'), style: {name:'light', tip:'bottomLeft'},position:{corner: {target:'topMiddle', tooltip: 'bottomLeft'}}
		});
	});

	$("ul.sf-menu").superfish();

	$('input[title!=""]').hint();

	$('.close').click(function() {
		   $(this).parent().fadeOut("slow");
			return false;
			});
	$('.hide').hide();
	$('.toggle').toggle(
	        function() {
	            $(this).next().show();
	         $(this).removeClass('min').addClass('max');
	     },
	      function() {
	            $(this).next().hide();
	         $(this).removeClass('max').addClass('min');
	     }
	   );
	$(".fg-button:not(.ui-state-disabled)")
		.hover(
			function(){ 
				$(this).addClass("ui-state-hover"); 
			},
			function(){ 
				$(this).removeClass("ui-state-hover"); 
			}
		)
	});

	(function($) {
        $.extend($.fn, {
            defaultButton: function(selector) {
                this.keypress(function(e) {
                    if (e.which == 13 && e.target.type != 'textarea') {
                        var tmpBtn = $(this).find(selector);
                        if (tmpBtn[0].type == 'submit')
                            tmpBtn[0].click();
                        else if ($(tmpBtn[0]).attr('onclick')) 
                        {
                            var ret = $(tmpBtn[0]).attr('onclick')();
                            if(ret)
                                eval(ret);
                        }
                        else
                            eval(unescape(tmpBtn[0].href));
                        return false;
                    }
                });
            }
        });
    })(jQuery);
$(function(){
$('#search').defaultButton('#search-submit');
});

