	var hideHelpInvoked=false;    
  
	function hideQuickHelp(){
		hideHelpInvoked=true;
		var a=document.getElementById("helpID");
		if(a!=null){
			a.style.display="none";
			a.style.visibility="hidden"
		}
	}
	
	 function showDivContent(a){
	 	if(a!=null&&!hideHelpInvoked){
	 		a.style.display="block";
			a.style.visibility="visible"
		}
	}
	
	function showQuickHelp(c,a){
		hideHelpInvoked=false;
		var b=document.getElementById("helpID");
		if(b==null){return}
		var d;

		if(c.target!=null){
			d=c.target
		}else{
			if(c.srcElement!=null){
				d=c.srcElement
			} else {return}
		}

		b.innerHTML=helpTextArray[a];
		showHelpById(d,b);
		showDivContent(b)
	}
	
	function getOffsetLeft(c){
		var b=c.offsetLeft;
		var a=c.offsetParent;
		while(a){
			b+=a.offsetLeft;
			a=a.offsetParent
		}
		return b
	}
	
	function showHelp(c){
		//alert("show Help");
		var b=c.offsetTop;
		var a=c.offsetParent;
		while(a){
			b+=a.offsetTop;
			a=a.offsetParent
		}
		return b
	}
	
	function getScrollY(){
		var a=0;
		if(typeof(window.pageYOffset)=="number"){
			a=window.pageYOffset
		}else{
			if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
				a=document.body.scrollTop
			}else{
				if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
					a=document.documentElement.scrollTop
				}
			}
		}return a
	}

	function showHelpById(g,d){
		if(d){
			var a=560;
			var f=getOffsetLeft(g);
			var e=(window.innerWidth)?window.innerWidth-25:document.body.clientWidth;
			if((f+a)>e){
				f=e-a
			}
			newX=f;
			var b=d.offsetHeight;
			var c=showHelp(g)+g.offsetHeight;
			var h=(window.innerHeight)?window.innerHeight-25:document.body.clientHeight;
			if((c+b)>h+getScrollY()){
				c=showHelp(g)-b
			}
			newY=c;
            newX-=160;
            newY-=160;
			d.style.top=newY+"px";
			d.style.left=newX+"px";
			d.left=newX+"px";
			d.left=newY+"px"
		}
	}
    
var helpTextArray={}
helpTextArray["allSpecialty"]="<table><tr><td><b>General Dentist</b> - provides a full range of services for the entire family.</td></tr><tr><td><b>Oral Surgeon</b> - removes impacted teeth and repairs fractures of the jaw and other damage to the bone structure around the mouth.</td></tr><tr><td><b>Endodontist</b> - specializes in diseases of the tooth pulp, performing such services as root canals.</td></tr><tr><td><b>Orthodontist</b> - correct misaligned teeth and jaws, usually by applying braces.</td></tr><tr><td><b>Pedodontist</b> - specializes in the treatment of children and special needs patients.</td></tr><tr><td><b>Periodontist</b> - treat diseases of the gums.</td></tr><tr><td><b>Prosthodontist</b> - generally specializes in replacing missing natural teeth with bridges and dentures.</td></tr><tr><td><b>Oral Pathologist</b> - treats the abnormal conditions and diseases affecting the tissues of the oral cavity.</td></tr></table>";
helpTextArray["General Dentist"]="General Dentist - provides a full range of services for the entire family.";
helpTextArray["Oral Surgeon"]="Oral Surgeon - removes impacted teeth and repairs fractures of the jaw and other damage to the bone structure around the mouth.";
helpTextArray["Endodontist"]="Endodontist - specializes in diseases of the tooth pulp, performing such services as root canals.";
helpTextArray["Orthodontist"]="Orthodontist - corrects misaligned teeth and jaws, usually by applying braces.";
helpTextArray["Pedodontist"]="Pedodontist - specializes in the treatment of children and special needs patients.";
helpTextArray["Periodontist"]="Periodontist - treat diseases of the gums.";
helpTextArray["Prosthodontist"]="Prosthodontist - generally specializes in replacing missing natural teeth with bridges and dentures.";
helpTextArray["Oral Pathologist"]="Oral Pathologist - treats the abnormal conditions and diseases affecting the tissues of the oral cavity.";
helpTextArray["allHours"]="<table><tr><td><b>Morning</b> open before 8AM</td></tr><tr><td><b>Evening</b> open after 5PM</td></tr><tr><td><b>Saturday</b> open on Saturdays</td></tr></table>"; 
helpTextArray["MOR"]="Open before 8AM"; 
helpTextArray["EVE"]="Open after 5PM"; 
helpTextArray["WKD"]="Open on Saturdays"; 
helpTextArray["Premier"]="<b>Delta Dental Premier&reg;</b> is one of our three contracted national network based programs. Participating dentists agree to adhere to Delta Dental processing policies and are prohibited from billing a patient above the pre-negotiated fee, accepting billing under these terms as payment in full. This avoids merely shifting costs and results in real savings to the group and enrollees.<br><br>And with more than four out of every five of the country's dentists participating, Delta Dental Premier provides an unmatched level of patient protection.";
helpTextArray["PPO"]="<b>Delta Dental PPO<sup>SM</sup></b> is one of our three contracted national network based programs. Participating dentists agree to fee schedules as payment in full. These Delta Dental PPO schedules provide deeper discounts that result in savings to the group and enrollees.<br><br>As with all of the Delta Dental networks, dentists agree to processing policies and are prohibited from billing and collecting fees in excess of the agreed upon schedule. This product allows enrolled patients to visit any dentist but offers additional savings when visiting a Delta Dental PPO network dentist.";
helpTextArray["DeltaCare"]="<b>DeltaCare&reg; USA</b> is Delta Dental's national Dental Health Maintenance Organization (DHMO). Enrolled patients select from a panel of primary care dentists. These dentists manage their patients' comprehensive dental needs, including referrals to specialists, which earns each dentist a monthly capitation amount.<br><br>This product provides another option for those seeking group dental coverage with lower costs, an emphasis on preventive care and access to a pre-selected network of dentists evaluated based on experience, range of services, location, accessibility and their ability to accommodate new patients. Enrolled patients enjoy minimal or no co-payments for preventive care - and claims are filed directly by in-network dentists.";
helpTextArray["PPOplusPremier"]="<b>PPO plus Premier</b> A national product that affords all of the benefits of Delta Dental PPO. Plus, enrollees who access a participating Delta Dental Premier dentist (who is not in the PPO network) receive the benefit of that dentist's contracted fee.";
