  jQuery(function() {
    jQuery( "#dialog-login" ).dialog({
			resizable: false,
			height:260,
			modal: true,
      autoOpen: false,
			buttons: {
				"LogIn": function() {
          jQuery("#dialog-login > form#loginform").submit();
					jQuery( this ).dialog( "close" );
				},
				Cancel: function() {
					jQuery( this ).dialog( "close" );
				}
			}
		});
    
    /*
    jQuery( "#dialog-register" ).dialog({
			resizable: false,
			height:220,
			modal: true,
      autoOpen: false,
			buttons: {
				"Ok": function() {
					jQuery( this ).dialog( "close" );
				},
				Cancel: function() {
					jQuery( this ).dialog( "close" );
				}
			}
		});
    */
    
  });
    
  jQuery(document).ready(function() {
    jQuery('#splash-container').crossSlide({
      fade: 1
      }, [
        {
          src:  '/wp-content/themes/ftp/images/header/1.jpg',
          from: '100% 80% 1.0x',
          to:   'top left 1.0x',
          time: 10
        }, {
          src:  '/wp-content/themes/ftp/images/header/2.jpg',
          from: '100% 70% 1x',
          to:   '100% 20% 1x',
          time: 12
        }, {
          src:  '/wp-content/themes/ftp/images/header/8.jpg',
          from: '80% 0% 0.8x',
          to:   '0% 80%',
          time: 10
        }, {
          src:  '/wp-content/themes/ftp/images/header/5.jpg',
          from: '0% 100% 1.0x',
          to:   '90% 30%',
          time: 12
        }, {
          src:  '/wp-content/themes/ftp/images/header/9.jpg',
          from: 'bottom left 1.0x',
          to:   'top right 1.5x',
          time: 10
        }, {
          src:  '/wp-content/themes/ftp/images/header/10.jpg',
          from: 'top left 1.0x',
          to:   'bottom right 1.0x',
          time: 10
        }, {
          src:  '/wp-content/themes/ftp/images/header/11.jpg',
          from: 'bottom left 1.0x',
          to:   'top right 1.0x',
          time: 10
        }
      ]);
      
    jQuery( "a.login" ).click( function() {
      jQuery( "#dialog-login" ).dialog( "open" );
    });
    
    /*
    jQuery( "#header a.Tregister" ).click( function() {
      jQuery( "#dialog-register" ).dialog( "open" );
    });
    
    jQuery( "a.register" ).click( function() {
      jQuery( "#dialog-register" ).dialog( "open" );
    });
    */
      
  });
