/*
 * jQuery dropDown plugin
 */

var timeOut      = 500;
var closeTimer   = 0;
var dropDownItem = 0;

function DropDownOpen() {
	DropDownCancelTimer();
	DropDownClose();
	dropDownItem = jQuery(this).find('ul.subMenu').css('visibility', 'visible');
}

function DropDownClose() {
	if(dropDownItem) dropDownItem.css('visibility', 'hidden');
}

function DropDownTimer() {
	closeTimer = window.setTimeout(DropDownClose, timeOut);
}

function DropDownCancelTimer() {
	if(closeTimer) {
		window.clearTimeout(closeTimer);
		closeTimer = null;
	}
}

