$(document).ready(function(){

  var html          
	html = "<form action='"+location.href+"' method='post'>"
	html += "<label>Поля, помеченные * обязательны к заполнению</label><br />"
  html += "<input type='text' name='name'       onFocus=\"javascript:if(this.value=='Название компании*')this.value=''\"        onBlur=\"javascript:if(this.value=='')this.value='Название компании*'\" value=\"Название компании*\" />"
  html += "<input type='text' name='name'       onFocus=\"javascript:if(this.value=='Ваше имя*')this.value=''\"                 onBlur=\"javascript:if(this.value=='')this.value='Ваше имя*'\" value=\"Ваше имя*\" />"
  html += "<input type=\"text\" name=\"phone\"  onFocus=\"javascript:if(this.value=='Ваш телефон*')this.value=''\"              onBlur=\"javascript:if(this.value=='')this.value='Ваш телефон*'\" value=\"Ваш телефон*\" />" 
  html += "<input type=\"text\" name=\"email\"  onFocus=\"javascript:if(this.value=='Ваш email*')this.value=''\"                onBlur=\"javascript:if(this.value=='')this.value='Ваш email*'\" value=\"Ваш email*\" />"
  html += "<textarea name=\"email\"             onFocus=\"javascript:if(this.innerText=='Ваше сообщение*')this.innerText=''\"   onBlur=\"javascript:if(this.innerText=='')this.innerText='Ваше сообщение*'\">Ваше сообщение*</textarea>" 
  html += "<br /><input type=\"image\" src=\"images/send.jpg\" /></form>"
  $("#mail-form").html(html) 
  
  //opacity:1;
    //  filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
      //-moz-opacity: 1;
  $('.cat-wr').mouseover(function(){
     $(this).stop(true)
    // $(this).animate({opacity:0},100)
  })
  $('.cat-wr').mouseout(function(){
     //$(this).stop(true, true)
     //$(this).css('opacity','')
  })
  $('.cat-wr').click(function(){
    
  })

})
