var seconds = '';
var minutes = '';
var hours   = '';
var days    = '';
var title	= '';

function setVars (secs, mins, hs, ds, tt) {
	seconds = secs;
	minutes = mins;
	hours	= hs;
	days	= ds;
	title	= tt;
	setCountDown();
}


function setCountDown ()
{
  seconds--;
  if (seconds < 0){
      minutes--;
      seconds = 59
  }
  if (minutes < 0){
      hours--;
      minutes = 59
  }
  if (hours < 0){
      days--;
      hours = 23
  }
  document.getElementById("countJs").innerHTML = "<p style='font-size:16px; color:#4d84df'>"+title+":</p><br /><p style='font-size:16px; color:#4d84df'><strong>"+days+"</strong> d. <strong>"+hours+"</strong> h. <strong>"+minutes+"</strong> m. <strong>"+seconds+"</strong> s.</p>";
  setTimeout ( "setCountDown()", 1000 );
}

function prevMonth(calendar) {
	curr = document.getElementById('calendar'+(calendar+1));
	prev = document.getElementById('calendar'+calendar);
	curr.style.display = 'none';
	prev.style.display = 'block';
}

function nextMonth(calendar) {
	curr = document.getElementById('calendar'+(calendar-1));
	next = document.getElementById('calendar'+calendar);
	curr.style.display = 'none';
	next.style.display = 'block';
}