$(document).ready(function() {

  jQuery.fn.slideToggle = function(speed, easing, callback) {
	return this.animate({height: 'toggle'}, speed, easing, callback);  
  };

});

$(document).ready(function() {

  jQuery.fn.fadeToggle = function(speed, easing, callback) {
	return this.animate({opacity: 'toggle'}, speed, easing, callback);  
  };


});

//Info button hover functions
 $(document).ready(function(){
	$("img.infoimage").mouseover(function ()
	{
		$(this).attr('src', http_root+'/_img/info_button.png');
	});
	$("img.infoimage").mouseout(function ()
	{
		$(this).attr('src', http_root+'/_img/info_button_dark.png');
	});
 });

$(document).ready(function() {
	$("a.fancybox").fancybox({
		'hideOnContentClick': false,
		'frameWidth': 800,
		'frameHeight': 600
	});
});

$(document).ready(function() {
	$("a.fancybox_info").fancybox({
		'hideOnContentClick': false,
		'frameWidth': 600,
		'frameHeight': 200
	});
});

function hide_submit(){
	document.getElementById('submit').className='submitHide';
	document.getElementById('submit').setAttribute("disabled","disabled");
}

function show_submit(){
	document.getElementById('submit').className='submitShow';
	document.getElementById('submit').disabled=false;
}