/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function(){
    $('.topmenu ul li').hover(
        function() {
            $(this).addClass("active");
            $(this).find('ul').slideDown();
        },
        function() {
            $(this).removeClass("active");
            $(this).find('ul').slideUp('fast');
        }
        );
});


$(document).ready(function(){
    $("#slide").easySlider({
        auto: true,
        continuous: true
    });
});

$(function(){
    // Tabs
  $("#tabs").tabs({
    selected: 2
  });
});

function isEmpty(str) {
   for (var i = 0; i < str.length; i++)
      if (" " != str.charAt(i))
          return false;
      return true;
}


function checkform(f) {
  var errMSG = ""; 
            
  for (var i = 0; i<f.elements.length; i++) 

    if (null!=f.elements[i].getAttribute("required")) 

        if (isEmpty(f.elements[i].value)) // ??????
            errMSG += "  " + f.elements[i].alt + "\n"; 
	 false     
        if ("" != errMSG) {
            alert("Заполните все поля:\n" + errMSG);
            return false;
        }
}



