// JavaScript Document
function bookNow(source)
{
	alert("Please note that NOT all of our services can be booked online.\nIf you do not see your desired service, therapist, or preferred day/time, or need to schedule an appointment within the next 12 hours,\nplease contact us @ (202) 525-SOTH (7684).  Thanks!");

	try{
		pageTracker._initData();
		setTimeout(pageTracker._trackEvent('Links', 'Book Now '+ source), 100);
	} catch(err) {}
}

function trackStuff(dest)
{
	try{
		pageTracker._initData();
		setTimeout(pageTracker._trackEvent('Links', dest), 100);
	} catch(err) {}
}

function newsletter()
{
	try{
		pageTracker._initData();
		setTimeout(pageTracker._trackEvent('Links', 'Newsletter'), 100);
	} catch(err) {}
	window.open('http://visitor.constantcontact.com/d.jsp?m=1102261742104&amp;p=oi','','width=600px,height=400px');
}

function goNav(dest)
{
	location.href=dest;	
}

function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
function checkVersion()
{
  var ver = getInternetExplorerVersion();
  return ver;
}

function bookAppt(serviceID)
{
	try{
		pageTracker._initData();
		setTimeout(pageTracker._trackEvent('Appointments', serviceID), 100);
	} catch(err) {}
	
	window.open('http://www.genbook.com/bookings/slot/reservationpop/30028596/'+serviceID+'?bookingContactId=154259681','new','status=0,toolbar=0,height=450,width=500,resizable=1');

}

function bookCat(catID)
{
	window.open('http://www.genbook.com/bookings/slot/reservationpop/30028596?bookingContactId=26930035&category='+catID,'new','status=0,toolbar=0,height=450,width=500,resizable=1');
}

function togvis(id) {
   var e = document.getElementById(id);
   if(e.style.display == 'block')
	  e.style.display = 'none';
   else
	  e.style.display = 'block';
}
