var currentab=1;
function hideFormText() {
	var _inputs = document.getElementsByTagName('input');
	var _txt = document.getElementsByTagName('textarea');
	var _value = [];
	
	if (_inputs) {
		for(var i=0; i<_inputs.length; i++) {
			if (_inputs[i].type == 'text' || _inputs[i].type == 'password') {
				
				_inputs[i].index = i;
				_value[i] = _inputs[i].value;
				
				_inputs[i].onfocus = function(){
					if (this.value == _value[this.index])
						this.value = '';
				}
				_inputs[i].onblur = function(){
					if (this.value == '')
						this.value = _value[this.index];
				}
			}
		}
	}
	if (_txt) {
		for(var i=0; i<_txt.length; i++) {
			_txt[i].index = i;
			_value['txt'+i] = _txt[i].value;
			
			_txt[i].onfocus = function(){
				if (this.value == _value['txt'+this.index])
					this.value = '';
			}
			_txt[i].onblur = function(){
				if (this.value == '')
					this.value = _value['txt'+this.index];
			}
		}
	}
}
function highlightTab()
{
	$(this).addClass('active');
	$(this).siblings("li").children('ul').hide();
	$(this).children('ul').show();
	$(this).siblings("li").removeClass("active");
	
}

$(document).ready(function() {
	hideFormText();
	$('#l_1').mouseenter(highlightTab);
	$('#l_2').mouseenter(highlightTab);
	$('#l_3').mouseenter(highlightTab);
	$('#l_4').mouseenter(highlightTab);
	$('#l_5').mouseenter(highlightTab);
	$('#l_6').mouseenter(highlightTab);
	$('#l_7').mouseenter(highlightTab);	
});
