
// This is a modification of the contact_form.js script
// to hide the Quick Contact form automatically but allow
// for it to be toggled open


document.observe("dom:loaded", function (e) {
	var ol = $('homeForm');
	if(ol) {
		$('homeForm').hide();
	}
});


function qc_toggle(){
	if(!qc_is_open()){
		open_qc();
	}
	else if(qc_is_open()){
		close_qc();
	}
}


function open_qc() {
		$('qc-show').innerHTML='Contact the Firm';
		new Effect.BlindDown ('homeForm', {duration: 1});
		//return $('qc-open').hide();
}


function close_qc() {
		$('qc-show').innerHTML='Contact the Firm';
		new Effect.BlindUp('homeForm', {duration: 1});
}


function qc_is_open() {
		return $('homeForm').visible();
}


