// JavaScript Document
jQuery(document).ready(function($){
 
    $(".sidebar-banner-box .sidebar-banner-content a.youtube").click(function() {
         $.fancybox({
          'padding'             : 0,
          'autoScale'   : false,
		  'overlayShow'	: false,
          'transitionIn'        : 'elastic',
          'transitionOut'       : 'elastic',
          'title'               : this.title,
          'width'               : 480,
          'height'              : 390,
          'href'                : this.href = this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
          'type'                : 'swf',    // <--add a comma here
		  'swf'                 : {'allowfullscreen':'true', 'wmode':'transparent'}
          });       
		  return false;
	});
    
    $('.your-name #name').val('Ваше имя...');
    $('.your-text #text').val('Ваше сообщение...');
    $('.your-email #email').val('Ваш e-mail...');
    
    $('.your-name #name').focus(function() {
        if($(this).val() == 'Ваше имя...'){
            $(this).val('');
        }      
    });
    
    $('.your-text #text').focus(function() {
        if($(this).val() == 'Ваше сообщение...'){
            $(this).val('');
        }      
    });
    
    $('.your-email #email').focus(function() {
        if($(this).val() == 'Ваш e-mail...'){
            $(this).val('');
        }      
    });
    
    $('.your-name #name').blur(function() {
        if($(this).val() == ''){
            $(this).val('Ваше имя...');
        }      
    });
    
    $('.your-text #text').blur(function() {
        if($(this).val() == ''){
            $(this).val('Ваше сообщение...');
        }      
    });
    
    $('.your-email #email').blur(function() {
        if($(this).val() == ''){
            $(this).val('Ваш e-mail...');
        }      
    });
});	
