if (document.images)
{
	preload_image_object = new Array();
	for(i=1; i<=6; i++){
		preload_image_object[i] = new Image();
     	preload_image_object[i].src = '/images/m/m' + i + 'h.gif';
	}
}


	var current = 0;
	var endedani = true;
	function mresiv(curr, count){
		if (current != curr && endedani){
			endedani=false;
			for (i=1; i<=count; i++){
				if (i != curr){
					$('#mena'+i).removeClass('current');
					$('#men'+i).stop().slideUp('slow');
				}
			}
			$('#mena'+curr).addClass('current');
			$('#men'+curr).stop().slideDown('slow', function(){endedani=true;});
			current = curr;
		}
	}


	function vv(nam){
		document.getElementById('Mt'+nam).className = 'Mhov';
		document.getElementById('M'+nam).src='/images/m/m'+nam+'h.gif';
	}
	function vvo(nam){
		document.getElementById('Mt'+nam).className = '';
		document.getElementById('M'+nam).src='/images/m/m'+nam+'.gif';
	}
	function vvc(lnk){
		document.location.href=lnk;
	}

	function showhide(id){
		$('#'+id).slideToggle('medium');
	}

$(document).ready(function() {
	$('.tx').focus(function() {
		if (this.value == this.defaultValue) this.value = '';
		if(this.value != this.defaultValue) this.select();
	});
	$('.tx').blur(function() {
  		if ($.trim(this.value) == '') this.value = (this.defaultValue ? this.defaultValue : '');
	});
	$('#pass').focus(function() {
		if (this.value == this.defaultValue){
			this.value = '';
			this.type = 'password';
		}
		if(this.value != this.defaultValue) this.select();
	});
	$('#pass').blur(function() {
  		if ($.trim(this.value) == ''){
			this.type = 'text';
  			this.value = (this.defaultValue ? this.defaultValue : '');
  		}
	});
});

