$(document).ready(function(){
//READY START


// MAIN MENU FX BEGIN
$('table#mainMenu table td[class!=current]')
.hover(
  function(){$(this).css('background-position','right -46px');},
  function(){$(this).css('background-position','right 0px');}
)
.click(
  function(){$(this).css('background-position','right -92px');}
);
// MAIN MENU FX END


// CALLBACK FORM TIP BEGIN
$('#callBackForm input[type=text]')
.focus(
  function(){
    if($(this).attr('tmp') == undefined)
      $(this).attr('tmp',$('input[type=hidden][name=H'+$(this).attr('name')+']').val());
	if($(this).val() == $(this).attr('tmp'))
	$(this).val('');
  }
)
.blur(
  function(){
    if($(this).val() == '')
	  $(this).val($(this).attr('tmp'));
  }
);
// CALLBACK FORM TIP END


// CALLBACK FORM SUBMIT FX BEGIN
$('#callBackForm input[type=submit]')
.hover(
  function(){if($(this).attr('disabled') != 'disabled')$(this).css('background-position','0px -35px');},
  function(){if($(this).attr('disabled') != 'disabled')$(this).css('background-position','0px 0px');}
);
// CALLBACK FORM SUBMIT FX END


// CALLBACK FORM SUBMIT BEGIN
$('form#callBackForm')
.submit(
  function(){
    var c 	= {form:$(this)};
    c.btn 	= $('#callBackForm input[type=submit]');
    c.ldr 	= $('#loader');
    c.post	= c.form.serialize();
    c.btn.css('background-position','0px -70px').attr('disabled','disabled');
	c.ldr.show();
    $.post(c.form.get(0).action,c.post,
    function(data){
	  alert(data.MSG);
      c.btn.css('background-position','0px 0px').attr('disabled','');
	  c.ldr.hide();
	  if(data.ERR === '0')
	    c.form.get(0).reset();
	},'json');
    return false;
  }
);
// CALLBACK FORM SUBMIT END


//READY END
});
