$j = jQuery.noConflict();

$j(document).ready(function() {
	$j("#head div.nav ul li").each(function() {
		if ($j(this).hasClass("hasSubMenu")) {
			$j(this).mouseover(function() {
				$j(this).find("ul").show();
			});
			$j(this).mouseout(function() {
				$j(this).find("ul").hide();
			});
		}
	});
});

function MM_openBrWindow(theURL, winName, features) { // v2.0
	window.open(theURL, winName, features);
}

function setValueCheckbox(o)
{
	if ($j(o).checked) {
		$j(o).val(true);
	}
	else {
		$j(o).val("");
	}
}

ajaxResponse = function(d,t) {
	if (!d.length) {
		// Submit form
		
		//var a = $j("input[name=action]").val();

		//$j("input[name=action]").remove();
		$j("#recaptcha_widget_div").remove();
		
		//document.forms[0].action = a;
		document.forms[0].submit();
		
	} else {
		alert(d);
	}	
}
