﻿$(document).ready(function(){
		$('li.headlink').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); });
	
	
	var subnavT, dropdownT, activeNav, activeSubNav;
	$('.dropdown').hover(
	    function() {
			//$('.topnav > li').find('li.dropdown').removeClass('subnavactive');  // hides the dropdown if opened from a tab focus on a mouseover
        	//$('.topnav .secondlvl').find('li .thirdlvl li a').blur();  // removes the tab focus from an element on a mouseover
	    	$(this).addClass('navactive');
	    },  // over
	    function() {
	    	$(this).removeClass('navactive');
	    }   // out
	);
	
	$(function() {
		$('div.subMenu').each(function() {
			$(this).css('display', 'block');
		});
	});
	
	$(function() {
		var zIndexNumber = 1000;
		$('li').each(function() {
			$(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 10;
		});
	});

});

function clearform(el)
{
if(el.V) {
if (el.value == el.V) {
el.value = '';
}
} else {
el.V = el.value;
el.value = '';
}
}