/*collapse expand single item
by Leo Charre & Jesse Fergusson
Internet Connection  2004 2005 ©
www.internetconnection.net


Usage:

place this in your HEAD tags:

	<script language="JavaScript" src="/WHEREINPATH/collapse_expand_single_item.js"></script>

Place this in your HTML

	<img src="/IMAGESDIR/u.gif" name="imgfirst" width="9" height="9" border="0" >
	<a  href="#first" onClick="shoh('first');" >Customer Support</a>

	<div style="display: none;" id="first" >
			
			With its friendly solutions-oriented 
			approach, our timely and knowledgeable Technical Support Staff are 
			completely at your disposal. Our Support Technicians are highly 
			trained on the inner workings of the Internet and its associated 
			technologies. Combined with effective troubleshooting techniques, 
			we can quickly identify and resolve technical issues whether they 
			are on our end or on the client end. 		      
	
	</div>


WHEREINPATH is where you are storing this script on your account
IMAGESDIR is where on your acoount you are storing the icons for (expanded collapsed)

*/

imgout=new Image(9,9);
imgin=new Image(9,9);

/////////////////BEGIN USER EDITABLE///////////////////////////////
	imgout.src="/assets/arrow_ov.gif";
	imgin.src="/assets/arrow_down.gif";
///////////////END USER EDITABLE///////////////////////////////////

//this switches expand collapse icons
//function filter(imagename,objectsrc){
//	if (document.images){
	//	document.images[imagename]src=eval(objectsrc+".src");
//	}
//}

//show OR hide funtion depends on if element is shown or hidden
function shoh(id) { 
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			//filter(("img"+id),'imgin');			
		} else {
			//filter(("img"+id),'imgout');
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				//filter(("img"+id),'imgin');
			} else {
				//filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				//filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	}
}

function mmLoadMenus() {
  if (window.mm_menu_1029145557_0) return;
  window.mm_menu_1029145557_0 = new Menu("root",216,17,"Helvetica, san-serif",11,"#ffffff","#ffffff","#bb4539","#800000","left","middle",23,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1029145557_0.addMenuItem("Dr. Santiago","location='http://www.smilesbysantiago.com/pages/team/santiago.htm'");
  mm_menu_1029145557_0.addMenuItem("Clinical Assistants","location='http://www.smilesbysantiago.com/pages/team/clinical.htm'");
  mm_menu_1029145557_0.addMenuItem("Hygiene","location='http://www.smilesbysantiago.com/pages/team/hygiene.htm'");
  mm_menu_1029145557_0.addMenuItem("Front Desk","location='http://www.smilesbysantiago.com/pages/team/front.htm'");
  //mm_menu_1029145557_0.addMenuItem("Business Team","location='http://www.smilesbysantiago.com/pages/team/business.htm'");
  mm_menu_1029145557_0.hideOnMouseOut=true;
  mm_menu_1029145557_0.bgColor='#db9c95';
  mm_menu_1029145557_0.menuBorder=1;
  mm_menu_1029145557_0.menuLiteBgColor='#cccccc';
  mm_menu_1029145557_0.menuBorderBgColor='#c7675d';
  window.mm_menu_1029150336_1 = new Menu("root",234,17,"Helvetica, san-serif",11,"#ffffff","#ffffff","#bb4539","#800000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1029150336_1.addMenuItem("Gum Care","location='http://www.smilesbysantiago.com/pages/healthySmiles/gumCare.htm'");
  mm_menu_1029150336_1.addMenuItem("Periodontal Disease & Gum Health","location='http://www.smilesbysantiago.com/pages/healthySmiles/periodontalDisease.htm'");
  mm_menu_1029150336_1.addMenuItem("Flossing","location='http://www.smilesbysantiago.com/pages/healthySmiles/flossing.htm'");
  mm_menu_1029150336_1.addMenuItem("Maintaining Good Oral Health","location='http://www.smilesbysantiago.com/pages/healthySmiles/maintainOralHealth.htm'");
  mm_menu_1029150336_1.addMenuItem("Restorations (Fillings)","location='http://www.smilesbysantiago.com/pages/healthySmiles/restorations.htm'");
  mm_menu_1029150336_1.addMenuItem("Root Canals","location='http://www.smilesbysantiago.com/pages/healthySmiles/rootCanals.htm'");
  mm_menu_1029150336_1.addMenuItem("Emergencies","location='http://www.smilesbysantiago.com/pages/healthySmiles/emergencies.htm'");
  mm_menu_1029150336_1.addMenuItem("Dental Anxiety","location='http://www.smilesbysantiago.com/pages/healthySmiles/dentalAnxiety.htm'");
  mm_menu_1029150336_1.addMenuItem("Safety Precautions","location='http://www.smilesbysantiago.com/pages/healthySmiles/safetyPrecautions.htm'");
  mm_menu_1029150336_1.hideOnMouseOut=true;
  mm_menu_1029150336_1.bgColor='#db9c95';
  mm_menu_1029150336_1.menuBorder=1;
  mm_menu_1029150336_1.menuLiteBgColor='#cccccc';
  mm_menu_1029150336_1.menuBorderBgColor='#cd776f';
  window.mm_menu_1029151048_2 = new Menu("root",229,17,"Helvetica, san-serif",11,"#ffffff","#ffffff","#bb4539","#800000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1029151048_2.addMenuItem("Teeth Whitening","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/whitening.htm'");
  mm_menu_1029151048_2.addMenuItem("Veneers","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/veneers.htm'");
  mm_menu_1029151048_2.addMenuItem("Composite Resin/Artistry/Bonding","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/composites.htm'");
  mm_menu_1029151048_2.addMenuItem("Crowns,  Onlays, & Inlays","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/crowns.htm'");
  mm_menu_1029151048_2.addMenuItem("Invisible Braces","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/invisableBraces.htm'");
  mm_menu_1029151048_2.addMenuItem("Implants","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/implants.htm'");
  mm_menu_1029151048_2.addMenuItem("Bridges","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/bridges.htm'");
  mm_menu_1029151048_2.addMenuItem("Smile Design&nbsp;/&nbsp;Smile&nbsp;Analysis","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/smileDesign.htm'");
  mm_menu_1029151048_2.addMenuItem("Gum Plastic Surgery","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/gumPlasticSurgery.htm'");
  mm_menu_1029151048_2.addMenuItem("Instant Orthodontics (see veneers)","location='http://www.smilesbysantiago.com/pages/beautifulSmiles/instantOrtho.htm'");
  mm_menu_1029151048_2.hideOnMouseOut=true;
  mm_menu_1029151048_2.bgColor='#db9c95';
  mm_menu_1029151048_2.menuBorder=1;
  mm_menu_1029151048_2.menuLiteBgColor='#cccccc';
  mm_menu_1029151048_2.menuBorderBgColor='#c7675d';
  window.mm_menu_1029151811_3 = new Menu("root",212,17,"Helvetica, san-serif",11,"#ffffff","#ffffff","#bb4539","#800000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1029151811_3.addMenuItem("Cosmetic Reconstruction","location='http://www.smilesbysantiago.com/pages/afterCare/cosmetic.htm'");
  mm_menu_1029151811_3.addMenuItem("Crown & Bridge Appointments","location='http://www.smilesbysantiago.com/pages/afterCare/crown_bridge.htm'");
  mm_menu_1029151811_3.addMenuItem("New Dental Work","location='http://www.smilesbysantiago.com/pages/afterCare/dental_work.htm'");
  mm_menu_1029151811_3.addMenuItem("Fillings","location='http://www.smilesbysantiago.com/pages/afterCare/fillings.htm'");
  mm_menu_1029151811_3.addMenuItem("Root&nbsp;Canals","location='http://www.smilesbysantiago.com/pages/afterCare/rootcanals.htm'");
  mm_menu_1029151811_3.addMenuItem("Extraction","location='http://www.smilesbysantiago.com/pages/afterCare/extraction.htm'");
  mm_menu_1029151811_3.hideOnMouseOut=true;
  mm_menu_1029151811_3.bgColor='#db9c95';
  mm_menu_1029151811_3.menuBorder=1;
  mm_menu_1029151811_3.menuLiteBgColor='#cccccc';
  mm_menu_1029151811_3.menuBorderBgColor='#c7675d';
  window.mm_menu_1029152032_4 = new Menu("root",188,17,"Helvetica, san-serif",11,"#ffffff","#ffffff","#bb4539","#800000","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_1029152032_4.addMenuItem("Your First Visit","location='http://www.smilesbysantiago.com/pages/newPat/firstVisit.htm'");
  mm_menu_1029152032_4.addMenuItem("New Patient Form","location='http://www.smilesbysantiago.com/pages/newPat/newPatientForms.htm'");
  mm_menu_1029152032_4.addMenuItem("Map & Directions","location='http://www.smilesbysantiago.com/pages/newPat/quickRefMap.htm'");
  mm_menu_1029152032_4.addMenuItem("Contact Us With Questions","location='http://www.smilesbysantiago.com/pages/newPat/contactUsQuestions.htm'");
  mm_menu_1029152032_4.addMenuItem("Office Tour","location='http://www.smilesbysantiago.com/pages/newPat/tour.htm'");
  mm_menu_1029152032_4.hideOnMouseOut=true;
  mm_menu_1029152032_4.bgColor='#db9c95';
  mm_menu_1029152032_4.menuBorder=1;
  mm_menu_1029152032_4.menuLiteBgColor='#cccccc';
   mm_menu_1029152032_4.menuBorderBgColor='#c7675d';

mm_menu_1029152032_4.writeMenus();
}


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_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_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];}
}
