/* Submit & Close Button Rollovers */

submit_on = new Image();
submit_off = new Image();
close_on = new Image();
close_off = new Image();

submit_on.src = "/site/shoinfo/lodging_university/image-panel/submit_button_over.gif";
submit_off.src = "/site/shoinfo/lodging_university/image-panel/submit_button.gif";

close_on.src = "/site/shoinfo/lodging_university/image-panel/close_button_over.gif";
close_off.src = "/site/shoinfo/lodging_university/image-panel/close_button.gif";

function showOverState(button_name) {

	$(button_name).src = eval ( button_name + "_on.src" );
}

function hideOverState(button_name) {

	$(button_name).src = eval ( button_name + "_off.src" );	
}

function toggleDropdown(id) {

	if ($(id).visible()) {
		$(id).hide();
	}
	else {
		$(id).show();
	}
}

function showOverlay() {
	
	$('registration_form-background').show();
	$('registration_form-holder').show();	
		
	if (!Prototype.Browser.IE) { 
		$('registration_form-foreground').setStyle("opacity: 0");
	} 
	
	$('registration_form-foreground').show();
	
	if (!Prototype.Browser.IE) { 
		new Effect.Opacity('registration_form-foreground', { duration:.5, from: 0, to: 1 })
	}  
	
}

function hideOverlay() {
	$('registration_form-background').fade();
	$('registration_form-holder').hide();
	$('registration_form-foreground').hide();
}		


function showOverlayThx() {
	
	$('registration_form-background').show();
	$('registration_formthx-holder').show();	
		
	if (!Prototype.Browser.IE) { 
		$('registration_formthx-foreground').setStyle("opacity: 0");
	} 
	
	$('registration_formthx-foreground').show();
	
	if (!Prototype.Browser.IE) { 
		new Effect.Opacity('registration_formthx-foreground', { duration:.5, from: 0, to: 1 })
	} 
	
}

function hideOverlayThx() {
	$('registration_form-background').fade();
	$('registration_formthx-holder').hide();
	$('registration_formthx-foreground').hide();
}		