$(document).ready(function() {
  $("#showcase").awShowcase({
    content_width:  940,
    content_height: 350,
    auto: true,
    interval: 5000,
    transition: 'fade',
    continuous: true
  });

  $('input[data-title]').autoclear();

  $('#submit-login').click(function() {
    $('#members-login-form').submit();
  });
});

var shutterSettings = {
  msgLoading: "Loading...",
  msgClose: "Click to Close",
  imageCount: "1"
};

var screen_res = "";
function writeCookie(name,value,hours) {
  var the_cookie = name+"="+escape(value)+"; expires=";
  var expires = "";
  hours=hours+0; //convert to number
  if (hours > 0) { //0==expires on browser close
    var cdate = new Date();
    cdate.setTime(cdate.getTime()+(hours*60*60*1000));
    expires = expires+cdate.toGMTString();
  }
  document.cookie = the_cookie+expires+"; path=/; domain=";
}
screen_res = screen.width+" x "+screen.height;
if (screen_res==" x ") screen_res = window.screen.width+" x "+window.screen.height;
if (screen_res==" x ") screen_res = screen.availWidth+" x "+screen.availHeight;
if (screen_res!=" x ") {
  writeCookie("wassup_screen_res",screen_res,"48"); //keep 2 days
} else {
  screen_res = "";
}

var ngg_ajax = {
  path: "http://www.creativedancearts.org/wp-content/plugins/nextgen-gallery/",
  callback: "http://www.creativedancearts.org/index.php?callback=ngg-ajax",
  loading: "Loading"
};

