// Left panel quick contact form
var quickForm = {
	toggle: function(el, id) {
		var chkBox=_gel('chk'+id), isChecked=chkBox.checked;
		if (isChecked) YD.removeClass(el, 'checked');
		else YD.addClass(el, 'checked');
		chkBox.checked = !isChecked;
	},
	send: function() {
		quickForm.Req.send();		
	}
}

quickForm.Req = {	
	handleSuccess: function(o) { 
		_dsp('quickFormInput',0);
		_dsp('quickFormMsg',1);
	},
	handleFailure: function(o) { if (console) console.log(o); },
	send: function(sParams, callback) {
		_gel('quickFormSubmit').disabled = true;
		_gel('quickFormSubmit').value = 'Please wait...';
		callback = callback || { success:quickForm.Req.handleSuccess, failure:quickForm.Req.handleFailure, scope:quickForm.Req };
		YU.Connect.setForm('frmQuickContact');
		YU.Connect.asyncRequest('POST', quickForm.reqProcessor, callback, sParams);
	}
};

// Highslide settings
if (hs) {
	hs.graphicsDir = '../js/highslide/graphics/';
	hs.showCredits = false;
	hs.captionSlideSpeed = 0;
}