/**
 * @require jquery.min.js
 * @require artDialog.js
 */
jQuery().ready(function(){
  var btn1 = [{
    name: 'Sign up',
    callback: function () {
        location.href='en/login';
        return false;
    }},{
    name: 'Register',
    callback: function () {
      jQuery('.fastregist:first').click();
    },
    focus: true
  }];
  var btn2 = [{
    name: 'Sign up',
    callback: function () {
      location.href='en/login';
        return false;
    },
    focus: true
    },{
    name: 'Register',
    callback: function () {
      jQuery('.fastregist:first').click();
    }
  }];
  jQuery('#author_regist').click(function(){
    art.dialog({
      title: 'Register in minutes',
      width: 300,
      content: '<p style="font-size:14px;">To simply the system, YeeDao use your primary email as the account. You also could login the system use Windows Live account or Tencent QQ account directly. Try it now to have personalized service.</p>',
      icon: 'succeed',
      button: btn1
    }).lock();
  });
  jQuery('#author_submission').click(function(){
    art.dialog({
      title: 'One click to upload',
      width: 300,
      content: '<p style="font-size:14px;">Fill in, upload, and confirm-only three steps to submit your contribution quickly. You even could upload the abstract firstly to occupy the unique position to share your idea.</p>',
      icon: 'succeed',
      button: btn2
    }).lock();
  });
  jQuery('#author_track').click(function(){
    art.dialog({
      title: 'Track the status anywhere anytime',
      width: 300,
      content: '<p style="font-size:14px;">Ignore the long long waiting, track the review status anywhere anytime. Keep yourself update by subscribing the email.Login the system to discuss with the reviewer online.</p>',
      icon: 'succeed',
      button: btn2
    }).lock();
  });
  jQuery('#author_pay').click(function(){
    art.dialog({
      title: 'Pay in safety',
      width: 300,
      content: '<p style="font-size:14px;">Pay online quickly, simply and securely. We accept e_currency payments (paypal,credit cards,alipay), Postal Remittance, Western Unions which provides u a quick,safe and easy alternative way to pay.It enables you to check payment status,bill post details online anytime.</p>',
      icon: 'succeed',
      button: btn2
    }).lock();
  });
  jQuery('#author_trip').click(function(){
    art.dialog({
      title: 'Lovely trip',
      width: 300,
      content: '<p style="font-size:14px;">Make the new friends and keep the old, all-round exchanges.Intention to discuss academic issues, happy to enjoy the city. The system provides a full range of travel management about scholar calendar,online booking, conference tourism etc.</p>',
      icon: 'succeed',
      button: btn2
    }).lock();
  });
});
