// JavaScript Document
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function open_win(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// Function to Clear intial value in a form field
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
function close_window() {
    window.close();
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// Begin Drop Menus
var mmOpenContainer = null;
var mmOpenMenus = null;
var mmHideMenuTimer = null;
var menuTimer = null;

function killMenuTimeOut(){
  if (menuTimer) clearTimeout(menuTimer);
   menuTimer = null;
}

function MM_menuStartTimeout(hideTimeout) {
	mmHideMenuTimer = setTimeout("MM_menuHideMenus()", hideTimeout);	
}

function MM_menuResetTimeout() {
	if (mmHideMenuTimer) clearTimeout(mmHideMenuTimer);
	mmHideMenuTimer = null;
}

function MM_menuHideMenus() {
	MM_menuResetTimeout();
	if(mmOpenContainer) {
		var c = document.getElementById(mmOpenContainer);
		c.style.visibility = "hidden";
		mmOpenContainer = null;
	}
	if( mmOpenMenus ) {
		for(var i in mmOpenMenus) {
			var m = document.getElementById(mmOpenMenus[i]);
			m.style.visibility = "hidden";			
		}
		mmOpenMenus = null;
	}
}

function MM_menuHideSubmenus(menuName) {
	if( mmOpenMenus ) {
		var h = false;
		var c = 0;
		for(var i in mmOpenMenus) {			
			if( h ) {
				var m = document.getElementById(mmOpenMenus[i]);
				m.style.visibility = "hidden";
			} else if( mmOpenMenus[i] == menuName ) {
				h = true;
			} else {
				c++;
			}
		}
		mmOpenMenus.length = c+1;
	}
}

function MM_menuOverMenuItem(menuName, subMenuSuffix) {
	MM_menuResetTimeout();
	MM_menuHideSubmenus(menuName);
	if( subMenuSuffix ) {
		var subMenuName = "" + menuName + "_" + subMenuSuffix;
		MM_menuShowSubMenu(subMenuName);
	}
}

function MM_menuShowSubMenu(subMenuName) {
	//MM_menuResetTimeout();
	
	var e = document.getElementById(subMenuName);
	e.style.visibility = "inherit";
	if( !mmOpenMenus ) {
		mmOpenMenus = new Array;
	}
	mmOpenMenus[mmOpenMenus.length] = "" + subMenuName;
}

function MM_menuShowMenu(containName, menuName, xOffset, yOffset, triggerName) {
	
	MM_menuResetTimeout();

	menuTimer = setTimeout(function() 
	{
	MM_menuHideMenus();
	
	MM_menuShowMenuContainer(containName, xOffset, yOffset, triggerName);
   
    MM_menuShowSubMenu(menuName);
   }, 250);

   //menuTimer = setTimeout("MM_menuShowMenuContainer('" + containName + "','" + xOffset + "','" + yOffset + "','" + triggerName + "');",1000);
	//menuTimer = setTimeout(function() {MM_menuShowMenuContainer(containName, xOffset, yOffset, triggerName);},1000);

}

function MM_menuShowMenuContainer(containName, x, y, triggerName) {	
	
	
	var c = document.getElementById(containName);
	var s = c.style;
	s.visibility = "inherit";
	
	mmOpenContainer = "" + containName;
}
// End Drop Menus

// Copyright year snippet
function setCopyright(element)
{
theSpan = document.getElementById(element);
var date = parseInt(theSpan.innerHTML);
var year = new Date().getFullYear();
if(year > date)
theSpan.innerHTML = year;
else
theSpan.innerHTML = date;
}

// Random Testimonial Quotes
var quotes = new Array();

quotes[0] = '<p>&quot;<span class="dropCap">I</span> can now see patients more quickly and have all patient information right at my fingertips. The Workflow.com solution has made practicing medicine much more enjoyable.&quot;<br><em>Randy Schwartzberg, MD.<br>Orlando Orthopaedic Center - Orlando, Florida</em></p>';
quotes[1] = '<p>&quot;<span class="dropCap">W</span>orkflow.com was with me the entire process of going electronic and ensured no surprises; they were very reactive to my requests and kept me informed.&quot;<br><em>Ameer Kabour, MD.<br>Toledo Cardiology Consultants - Toledo, Ohio</em></p>';
quotes[2] = '<p>&quot;<span class="dropCap">W</span>orkflow.com allows me to look at patients records from home, on the road, or at the surgery center, I can get what I need the moment I need it.&quot;<br><em>Malcolm Paul, MD.<br>Aesthetic Plastic Surgeon - Newport Beach, California</em></p>';
quotes[3] = '<p>&quot;<span class="dropCap">I</span> love how easy the system was to get up and running and we started seeing benefits immediately. The company is great to work with.&quot;<br><em>Steven Goldman, MD.<br>Beachwood Plastic Surgery and Laser Center - Beachwood, Ohio</em></p>';
quotes[4] = '<p>&quot;<span class="dropCap">I</span> came from a large practice running another big name system that I was quite comfortable with; however I came to prefer working with Workflow.com and their solution. The staff and doctors really like it and the support is incredible.&quot;<br><em>Kevin Joyce, Executive Director.<br>Orlando Orthopaedic Center - Orlando, Florida</em></p>';
quotes[5] = '<p>&quot;<span class="dropCap">W</span>orkflow.com has made my staff so efficient that I can add a new provider with a full load and only need to add one new staff person.&quot;<br><em>George White, MD.<br>Orlando Hand Surgery - Orlando, Florida</em></p>';
quotes[6] = '<p>&quot;<span class="dropCap">W</span>e like Workflow.com because when we call, they treat us like we are their only customer.&quot;<br><em>Cassandra Ganster, Records Manager, Orlando Hand Surgery - Orlando, Florida</em></p>';
quotes[7] = '<p>&quot;<span class="dropCap">W</span>orkflow.com\'s EHR solution made starting a new practice much easier - we highly recommend them!&quot;<br><em>Dr. Joyce Lender, M.D.<br>Dermatology and Aesthetic Services - Elyria, Ohio</em></p>';
quotes[8] = '<p>&quot;<span class="dropCap">W</span>ith Workflow.com Electronic Health Records we can see about 100 more patients per month.&quot;<br><em>Lee Elmore, Executive Director, North Coast Health Ministries - Cleveland, Ohio</em></p>';
quotes[9] = '<p>&quot;<span class="dropCap">W</span>orkflow.com allows us to automatically share data among all the people involved in a patient\'s care.&quot;<br><em>Philip E. Tomsik, M.D. and Medical Director, North Coast Health Ministries - Cleveland, Ohio</em></p>';
quotes[10] = '<p>&quot;<span class="dropCap">W</span>orkflow.com has helped our department work much more efficiently by streamlining paperwork and condensing our medical files.&quot;<br><em>Marty Lauzon, Head Athletic Trainer, Cleveland Browns - Cleveland, Ohio</em></p>';
quotes[11] = '<p>&quot;<span class="dropCap">W</span>orkflow is a truly customizable program that meets the needs of this practice perfectly.&quot;<br><em>Kim Bishop, Medical Aesthetician, Dermatology and Aesthetic Services - Elyria, Ohio</em></p>';
quotes[12] = '<p>&quot;<span class="dropCap">A</span>fter using Workflow.com for more than one year, I am very satisfied. My notes are completed as soon as I finish the encounter.&quot;<br><em>Dr. Joyce Lender, M.D.<br>Dermatology and Aesthetic Services - Elyria, Ohio</em></p>';
quotes[13] = '<p>&quot;<span class="dropCap">W</span>orkflow.com treats us like partners, not customers.&quot;<br><em>Shelly Senders, M.D., Dr. Senders and Associates Pediatrics - Beachwood, Ohio</em></p>';
quotes[14] = '<p>&quot;<span class="dropCap">A</span>s a community health clinic, one of the best things about workflowEHR is how easily our users have adopted it. The training was so simple that all of our volunteers, no matter their age, are using it with ease.&quot;<br><em>Lee Elmore, Executive Director, North Coast Health Ministries - Cleveland, Ohio</em></p>';
quotes[15] = '<p>&quot;<span class="dropCap">W</span>orkflow.com quickly responds to my concerns; it is great working with them.&quot;<br><em>Anita Bartel, Senior Administrative Assistant, Dr. Senders and Associates Pediatrics - Beachwood, Ohio</em></p>';


function randomQuote() {
	var num = Math.floor(Math.random()*quotes.length);
	document.write(quotes[num]);
}
function setQuote(num) {
	document.write(quotes[num]);	
}