// Programming History
// Bruce Koch
//
// Ver  1.0
// Date 12/09/2009


//================== L A N D I N G   P A G E ==========================

var browserVer=getInternetExplorerVersion();
var menu_top_over_color = "#4d4d4d";
var menu_top_up_color = "#108a82";


//==== Orthodontics =========================

nav_ortho = new Array();
nav_ortho[0] = "jovan_images/btn_ortho_up.png";
nav_ortho[1] = "jovan_images/btn_ortho_over.png";	

nav_ortho_img = new Array();

for ( var i = 0; i < nav_ortho.length; i++ )
{
	nav_ortho_img[i] = new Image();
	nav_ortho_img[i].src = nav_ortho[i];								
} 

//==== Prosthodontics =========================

nav_prosth = new Array();
nav_prosth[0] = "jovan_images/btn_prosth_up.png";
nav_prosth[1] = "jovan_images/btn_prosth_over.png";	

nav_prosth_img = new Array();

for ( var i = 0; i < nav_prosth.length; i++ )
{
	nav_prosth_img[i] = new Image();
	nav_prosth_img[i].src = nav_prosth[i];								
} 

//==== Landing Page (lp) swap image function ====

function lp_swapImg( imgName, imgNum, btn ) {
	switch (btn) {
	  case 1:
			document[imgName].src = nav_ortho_img[imgNum].src;
			break;
	  case 2:
			document[imgName].src = nav_prosth_img[imgNum].src;
			break;
	}
}

function startImg_Display() {
  t=setTimeout("rotate_thru_Images()",timeDelay);
}


function rotate_thru_Images() {	
  
  FadeInImage('foreground_img',imgs_headers[img_counter],'foreground_img_dv');
  
  if (img_counter == img_max) {
    img_counter = 0;
  }
  else {
    img_counter = img_counter + 1;
  }
  t=setTimeout("rotate_thru_Images()",timeDelay);

}

//====================== Beg: Image Swap With Transistions ================================

// Opacity and Fade in script.
// Script copyright (C) 2008 http://www.cryer.co.uk/.
// Script is free to use provided this copyright header is included.

function SetOpacity(object,opacityPct) {
  // IE.
  object.style.filter = 'alpha(opacity=' + opacityPct + ')';
  // Old mozilla and firefox
  object.style.MozOpacity = opacityPct/100;
  // Everything else.
  object.style.opacity = opacityPct/100;
}

function ChangeOpacity(id,msDuration,msStart,fromO,toO) {
  var element=document.getElementById(id);
  var opacity = element.style.opacity * 100;
  var msNow = (new Date()).getTime();
  opacity = fromO + (toO - fromO) * (msNow - msStart) / msDuration;
  if (opacity<0) 
    SetOpacity(element,0)
  else if (opacity>100)
    SetOpacity(element,100)
  else
  {
    SetOpacity(element,opacity);
    element.timer = window.setTimeout("ChangeOpacity('" + id + "'," + msDuration + "," + msStart + "," + fromO + "," + toO + ")",1);
  }
}

function FadeIn(id) {
  var element=document.getElementById(id);
  if (element.timer) window.clearTimeout(element.timer); 
  var startMS = (new Date()).getTime();
  element.timer = window.setTimeout("ChangeOpacity('" + id + "',1000," + startMS + ",0,100)",1);
}

function FadeOut(id) {
  var element=document.getElementById(id);
  if (element.timer) window.clearTimeout(element.timer); 
  var startMS = (new Date()).getTime();
  element.timer = window.setTimeout("ChangeOpacity('" + id + "',1000," + startMS + ",100,0)",1);
}

function FadeInImage(foregroundID,newImage,backgroundID) {
  var foreground=document.getElementById(foregroundID);
  if (backgroundID)
  {
    var background=document.getElementById(backgroundID);
    if (background)
    {
      background.style.backgroundImage = 'url(' + foreground.src + ')';
      background.style.backgroundRepeat = 'no-repeat';
    }
  }
  SetOpacity(foreground,0);
  foreground.src = newImage;
  if (foreground.timer) window.clearTimeout(foreground.timer); 
  var startMS = (new Date()).getTime();
  foreground.timer = window.setTimeout("ChangeOpacity('" + foregroundID + "',1000," + startMS + ",0,100)",10);
}

//====================== End: Image Swap With Transistions ================================


//==== O R T H O D O N T I C S   A N D   P R O S T H O D O N T I C S  S I T E ===


//================ Orthodontics And Prosthodontics ==============================

function menu_item_over(menu_item) {
	switch (menu_item) {
	  case 0:
		  	getElm('menu_home_id').style.backgroundColor = menu_top_over_color;
		  	break;
	  case 1:
		  	getElm('menu_welcome_id').style.backgroundColor = menu_top_over_color;
		  	break;				
	  case 2:
  		  getElm('menu_meet_id').style.backgroundColor = menu_top_over_color;
		 		break;
	  case 3:
  		  getElm('menu_services_id').style.backgroundColor = menu_top_over_color;
		 		break;
	  case 4:
  		  getElm('menu_faq_id').style.backgroundColor = menu_top_over_color;
		 		break;
	  case 5:
  		  getElm('menu_ins_id').style.backgroundColor = menu_top_over_color;
		 		break;				
	  case 6:
  		  getElm('menu_forms_id').style.backgroundColor = menu_top_over_color;
		 		break;			
	  case 7:
  		  getElm('menu_directions_id').style.backgroundColor = menu_top_over_color;
		 		break;			
	  case 8:
  		  getElm('menu_contact_id').style.backgroundColor = menu_top_over_color;
		 		break;		  
	  default:

	}
}

function menu_item_out(menu_item) {
	switch (menu_item) {
	  case 0:
		  	getElm('menu_home_id').style.backgroundColor = menu_top_up_color;
		  	break;		
	  case 1:
		  	getElm('menu_welcome_id').style.backgroundColor = menu_top_up_color;
		  	break;
	  case 2:
  		  getElm('menu_meet_id').style.backgroundColor = menu_top_up_color;
		 		break;
	  case 3:
  		  getElm('menu_services_id').style.backgroundColor = menu_top_up_color;
		 		break; 
	  case 4:
  		  getElm('menu_faq_id').style.backgroundColor = menu_top_up_color;
		 		break; 
	  case 5:
  		  getElm('menu_ins_id').style.backgroundColor = menu_top_up_color;
		 		break;				
	  case 6:
  		  getElm('menu_forms_id').style.backgroundColor = menu_top_up_color;
		 		break;			
	  case 7:
  		  getElm('menu_directions_id').style.backgroundColor = menu_top_up_color;
		 		break; 			
	  case 8:
  		  getElm('menu_contact_id').style.backgroundColor = menu_top_up_color;
		 		break;		  
	  default:

	}
}

function menu_item_click(menu_item,doctor,level) {
	
	if (doctor == 1) {
		switch (menu_item) {
			case 0:
					getElm('menu_home_id').style.backgroundColor = menu_top_over_color;
					document.location = "index.html";
					break;
			case 1:
					getElm('menu_welcome_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_home.html";
					break;					
			case 2:
					getElm('menu_meet_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_meet_doctor.html"  ;
					break;
			case 3:
					getElm('menu_services_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_services_early_treatment.html";
					break;
			case 4:
					getElm('menu_faq_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_faq.html";
					break;
			case 5:
					getElm('menu_ins_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_insurance.html";
					break;					
			case 6:
					getElm('menu_forms_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_forms.html";
					break;				
			case 7:
					getElm('menu_directions_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_directions.html";
					break;		  
			case 8:
					getElm('menu_contact_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_orthodontics_contact.html";
					break;		  
			default:
		}
	}
	else if (doctor == 2) {
		switch (menu_item) {
			case 0:
					getElm('menu_home_id').style.backgroundColor = menu_top_over_color;
					document.location = "index.html";
					break;			
			case 1:
					getElm('menu_welcome_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_home.html";
					break;
			case 2:
					getElm('menu_meet_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_meet_doctor.html";
					break;
			case 3:
					getElm('menu_services_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_services_veneers.html";
					break;
			case 4:
					getElm('menu_faq_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_faq.html";
					break;					
			case 5:
					getElm('menu_forms_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_insurance.html";
					break;				
			case 6:
					getElm('menu_ins_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_forms.html";
					break;
			case 7:
					getElm('menu_directions_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_directions.html";
					break;							
			case 8:
					getElm('menu_contact_id').style.backgroundColor = menu_top_over_color;
					document.location = "jovan_prosthodontics_contact.html";
					break;		  
			default:
		}	
	}
}

function menu_left_over(menu_item) {
	switch (menu_item) {
	  case 1:
		  	getElm('menu_1').style.backgroundColor = menu_top_over_color;
		  	break;
	  case 2:
  		  getElm('menu_2').style.backgroundColor = menu_top_over_color;
		 		break;
	  case 3:
  		  getElm('menu_3').style.backgroundColor = menu_top_over_color;
		 		break;
	  case 4:
  		  getElm('menu_4').style.backgroundColor = menu_top_over_color;
		 		break;			
	  case 5:
  		  getElm('menu_5').style.backgroundColor = menu_top_over_color;
		 		break;			
	  case 6:
  		  getElm('menu_6').style.backgroundColor = menu_top_over_color;
		 		break;
	  case 7:
  		  getElm('menu_7').style.backgroundColor = menu_top_over_color;
		 		break;
	  case 8:
  		  getElm('menu_7').style.backgroundColor = menu_top_over_color;
		 		break;					
	  default:

	}
}

function menu_left_out(menu_item) {
	switch (menu_item) {
	  case 1:
		  	getElm('menu_1').style.backgroundColor="";
		  	break;
	  case 2:
  		  getElm('menu_2').style.backgroundColor="";
		 		break;
	  case 3:
  		  getElm('menu_3').style.backgroundColor="";
		 		break; 
	  case 4:
  		  getElm('menu_4').style.backgroundColor="";
		 		break;			
	  case 5:
  		  getElm('menu_5').style.backgroundColor="";
		 		break; 			
	  case 6:
  		  getElm('menu_6').style.backgroundColor="";
		 		break;
	  case 7:
  		  getElm('menu_7').style.backgroundColor="";
		 		break;
	  case 8:
  		  getElm('menu_8').style.backgroundColor="";
		 		break;				
	  default:

	}
}

function menu_left_click(menu_item,doctor) {
	var services_title_obj = "services_title_id";
	var services_sub_title_obj = "services_sub_title_id";	
	var services_obj = "services_id";
	if (doctor == 1) {
		switch (menu_item) {
			case 1:
				document.location = "jovan_orthodontics_services_early_treatment.html";
				break;
			case 2:
				document.location = "jovan_orthodontics_services_adult_treatment.html";
				break;
			case 3:
				document.location = "jovan_orthodontics_services_invisalign_braces.html";				
				break;
			case 4:
				document.location = "jovan_orthodontics_services_traditional_braces.html";	
				break;				
			case 5:
				document.location = "jovan_orthodontics_services_jaw_surgey.html";
				break;
			case 6:
				document.location = "";
				break;
			case 7:
				document.location = "";
				break;	
			case 8:
				document.location = "";
				break;				
			default:
		}
	}
	else if (doctor == 2) {
		switch (menu_item) {
			case 1:
				document.location = "jovan_prosthodontics_services_veneers.html";
				break;
			case 2:
				document.location = "jovan_prosthodontics_services_crowns_bridges.html"  ;
				break;
			case 3:
				document.location = "jovan_prosthodontics_services_implants.html";
				break;
			case 4:
				document.location = "jovan_prosthodontics_services_dentures.html";
				break;				
			case 5:
				document.location = "jovan_prosthodontics_services_reconstruction.html";
				break;		  
			case 6:
				document.location = "jovan_prosthodontics_services_sleep_apnea.html";
				break;		
			case 7:
				document.location = "jovan_prosthodontics_services_tmj_tmd_disorder.html";
				break;
			case 8:
				document.location = "";
				break;				
			default:
		}	
	}
}

function orthodontics_prosthodontics_header() {
	with (document) {
		writeln('<div id="ortho_header_main_dv">');		
		writeln('<table style="table-layout:fixed;" width="960" height="180" border="0" cellspacing="0" cellpadding="0" hspace="0" vspace="0">');
		writeln('<col width="16" />');
		writeln('<col width="206" />');
		writeln('<col width="271" />');
		writeln('<col width="451" />');
		writeln('<col width="16" />');

		writeln('<tr>');
		writeln('<td class="top_corner" width="16" height="25"></td>');
		writeln('<td class="top_bar" width="928" height="25" colspan="3" valign="top" align="left" alt="" ></td>');
		writeln('<td class="top_corner2" width="16" height="25"></td>');
		writeln('</tr>');

		writeln('<tr>');
		writeln('<td width="16"  height="155" align="left" valign="top" class="left_bar"></td>');

		writeln('<td width="206" height="155" align="left" valign="top">');
    writeln('<div id="foreground_img_dv">');
    writeln('<img id="foreground_img" src="jovan_images/child-mother.jpg" width="206" height="155" border="0" alt="People" />');
		writeln('</div>');
		writeln('</td>');

		writeln('<td width="271" height="155" align="left" valign="top"><img src="jovan_images/jovan-ortho-prosth-logo.jpg" ');
		writeln('border="0" width="271" height="155" alt="Jovan Orthodontics-Prosthodontics" /></td>');
		
		writeln('<td width="451" height="155" align="left" valign="top" class="header_bkgd" >');

		writeln('<div class="header_text3" width="390" height="164">');
		writeln(g_jovan_address);
		writeln('<br />');
		writeln(g_jovan_city + ', ' + g_jovan_state + ' ' + g_jovan_zip);
		writeln('<br /><br />');
		writeln(g_dr_sarah_phone + '&nbsp;&nbsp;' + g_dr_sarah_name);
		writeln('<br />');
		writeln(g_dr_ace_phone + '&nbsp;&nbsp;' + g_dr_ace_name);
		writeln('<br /><br />');
		writeln('<strong>' + g_dr_sarah_message_header + '</strong>');
		writeln('</div>');
		
	
	
		writeln('</td>');
		writeln('<td width="16" height="155" align="left" valign="top" class="right_bar"></td>');
		writeln('</tr>');
		writeln('</table>');
		writeln('</div>');
	}
}

function orthodontics_header() {
	with (document) {
		
		writeln('<div id="ortho_header_main_dv" >');		
		writeln('<table style="table-layout:fixed;" width="960" height="180" border="0" cellspacing="0" cellpadding="0" hspace="0" vspace="0" >');
		writeln('<col width="16" />');
		writeln('<col width="206" />');
		writeln('<col width="271" />');
		writeln('<col width="451" />');
		writeln('<col width="16" />');

		writeln('<tr>');
		writeln('<td class="top_corner" width="16" height="25"></td>');
		writeln('<td class="top_bar" width="928" height="25" colspan="3" valign="top" align="left" alt="" ></td>');
		writeln('<td class="top_corner2" width="16" height="25"></td>');
		writeln('</tr>');

		writeln('<tr>');
		writeln('<td width="16"  height="155" align="left" valign="top" class="left_bar"></td>');
		writeln('<td width="206" height="155" align="left" valign="top"><img src="jovan_images/child-mother.jpg" width="206" height="155" border="0" alt="child and mother" /></td>');
		writeln('<td width="271" height="155" align="left" valign="top"><img src="jovan_images/jovan-orthodontics-logo.jpg" border="0" width="271" height="155" alt="Jovan Orthodontics" /></td>');


		writeln('<td width="451" height="155" align="left" valign="top" class="header_bkgd">');

		writeln('<div class="header_text3" width="390" height="164">');
		writeln(g_jovan_address);
		writeln('<br />');
		writeln(g_jovan_city + ', ' + g_jovan_state + ' ' + g_jovan_zip);
		writeln('<br /><br />');
		writeln(g_dr_sarah_phone + '&nbsp;&nbsp;' + g_dr_sarah_name);
		writeln('<br /><br />');
		writeln('<strong>' + g_dr_sarah_message_header + '</strong>');
		writeln('</div>');
		writeln('<div class="header_icons" width="70" height="100">');
		writeln('<a href="' + g_dr_sarah_facebook + '"><img src="jovan_images/facebook-icon-32x32.png" width="32" height="32" border="0" alt="facebook" /></a>');
		writeln('<a href="' + g_dr_sarah_twitter + '"><img src="jovan_images/twitter-icon-32x32.png" width="32" height="32" border="0" alt="twitter" />');
		writeln('</div>');			
	
		writeln('</td>');
		writeln('<td width="16" height="155" align="left" valign="top" class="right_bar"></td>');
		writeln('</tr>');
		writeln('</table>');
		writeln('</div>');		
	}
}

function prosthodontics_header() {
	with (document) {
		
		writeln('<div id="prosth_header_main_dv">');		
		writeln('<table style="table-layout:fixed;" width="960" height="180" border="0" cellspacing="0" cellpadding="0" hspace="0" vspace="0">');
		writeln('<col width="16" />');
		writeln('<col width="206" />');
		writeln('<col width="271" />');
		writeln('<col width="451" />');
		writeln('<col width="16" />');

		writeln('<tr>');
		writeln('<td class="top_corner" width="16" height="25"></td>');
		writeln('<td class="top_bar" width="928" height="25" colspan="3" valign="top" align="left" alt="" ></td>');
		writeln('<td class="top_corner2" width="16" height="25"></td>');
		writeln('</tr>');

		writeln('<tr>');
		writeln('<td width="16"  height="155" align="left" valign="top" class="left_bar"></td>');
		writeln('<td width="206" height="155" align="left" valign="top"><img src="jovan_images/elderly-couple.jpg" width="206" height="155" border="0" alt="elderly couple" /></td>');
		writeln('<td width="271" height="155" align="left" valign="top"><img src="jovan_images/jovan-prosthodontics-logo.jpg" border="0" width="271" height="155" alt="Jovan Prosthodontics" /></td>');
		writeln('<td width="451" height="155" align="left" valign="top" class="header_bkgd">');

		writeln('<div class="header_text3" width="390" height="164">');
		writeln(g_jovan_address);
		writeln('<br />');
		writeln(g_jovan_city + ', ' + g_jovan_state + ' ' + g_jovan_zip);
		writeln('<br /><br />');
		writeln(g_dr_ace_phone + '&nbsp;&nbsp;' + g_dr_ace_name);
		writeln('<br /><br />');
		writeln('<strong>' + g_dr_ace_message_header + '</strong>');
		writeln('</div>');
		writeln('<div class="header_icons" width="70" height="100">');
		
		writeln('<a href="' + g_dr_ace_facebook + '"><img src="jovan_images/facebook-icon-32x32.png" width="32" height="32" border="0" alt="facebook" /></a>');
		writeln('<a href="' + g_dr_ace_twitter + '"><img src="jovan_images/twitter-icon-32x32.png" width="32" height="32" border="0" alt="twitter" />');
		writeln('</div>');			
	
		writeln('</td>');
		writeln('<td width="16" height="155" align="left" valign="top" class="right_bar"></td>');
		writeln('</tr>');
		writeln('</table>');
		writeln('</div>');		
	}
}

//============================ O R T H O D O N T I C S -- M A I N -- M E N U =========================================

function orthodontics_menu(frame_size) {
  with (document) {
	  if (frame_size==1) {
		  writeln('<div id="navcontainer1">');
	  }
	  else {
		  writeln('<div id="navcontainer2">');
	  }
	  writeln('<form name="NewsletterN" action="jovan-ortho-signup-form.php" target="_blank" method="post">');
	  writeln('<ul id="navlist">');
	  writeln('</li>');
	  writeln('<li><a href="index.html" onFocus="if(this.blur)this.blur()" id="current">Home</a></li>');
	  writeln('<li><a href="jovan_orthodontics_home.html" onFocus="if(this.blur)this.blur()">Welcome</a></li>');
	  writeln('<li><a href="jovan_orthodontics_meet_doctor.html" onFocus="if(this.blur)this.blur()">Meet Doctor</a></li>');
	  writeln('<li><a href="jovan_orthodontics_services_early_treatment.html" onFocus="if(this.blur)this.blur()">Services</a></li>');
	  writeln('<li><a href="jovan_orthodontics_faq.html" onFocus="if(this.blur)this.blur()">FAQ</a></li>');
	  writeln('<li><a href="jovan_orthodontics_insurance.html" onFocus="if(this.blur)this.blur()">Insurance</a></li>');
	  writeln('<li><a href="jovan_orthodontics_forms.html" onFocus="if(this.blur)this.blur()">Forms</a></li>');
	  writeln('<li><a href="jovan_orthodontics_directions.html" onFocus="if(this.blur)this.blur()">Directions</a></li>');
	  writeln('<li><a href="jovan_orthodontics_contact.html" onFocus="if(this.blur)this.blur()">Contact</a></li>');
	  writeln('</ul>');
	  writeln('</form>');
	  writeln('</div>');
  }
}

//============================ P R O S O T H O D O N T I C S -- M A I N -- M E N U =========================================

function prosthodontics_menu(frame_size) {
	  with (document) {
		  if (frame_size==1) {
			  writeln('<div id="navcontainer1">');
		  }
		  else {
			  writeln('<div id="navcontainer2">');
		  }
	  writeln('<form name="NewsletterN" action="jovan-prosth-signup-form.php" target="_blank" method="post">');
	  writeln('<ul id="navlist">');
		  writeln('<li><a href="index.html" onFocus="if(this.blur)this.blur()" id="current">Home</a></li>');
		  writeln('<li><a href="jovan_prosthodontics_home.html" onFocus="if(this.blur)this.blur()">Welcome</a></li>');
		  writeln('<li><a href="jovan_prosthodontics_meet_doctor.html" onFocus="if(this.blur)this.blur()">Meet Doctor</a></li>');
		  writeln('<li><a href="jovan_prosthodontics_services_veneers.html" onFocus="if(this.blur)this.blur()">Services</a></li>');
		  writeln('<li><a href="jovan_prosthodontics_insurance.html" onFocus="if(this.blur)this.blur()">Insurance</a></li>');
		  writeln('<li><a href="jovan_prosthodontics_forms.html" onFocus="if(this.blur)this.blur()">Forms</a></li>');
		  writeln('<li><a href="jovan_prosthodontics_directions.html" onFocus="if(this.blur)this.blur()">Directions</a></li>');
		  writeln('<li><a href="jovan_prosthodontics_contact.html" onFocus="if(this.blur)this.blur()">Contact</a></li>');
		  writeln('</ul>');
		  writeln('</form>');
		  writeln('</div>');
	  }
	}


//============================ O R T H O D O N T I C S -- L E F T  S I D E -- M E N U --------------------------------------------

function ortho_left_side_menu() {
	with (document) {
    writeln('<table height="26" width="183" cellspacing="0" cellpadding="0" vspace="0" hspace="0" >');
    writeln('<col width="183" />');
    writeln('<tr>');
    writeln('<td class="side_menu_label" width="183" height="16" halign="left" valign="top"><b>Orthodontic Services</b></td>');
    writeln('</tr>');		
    writeln('<tr>');
    writeln('<td height="2" width="183" valign="top" colspan="2"><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');      
    writeln('</tr>');
      
		//=== Menu Item 1 ===
    writeln('<tr>');
    writeln('<td id="menu_1" class="side_menu_label_1" height="25" width="177" valign="top" ');
    writeln('onmouseover="menu_left_over(1)" onmouseout="menu_left_out(1)" onclick="menu_left_click(1,1)">Early Treatment</td>');
    writeln('</tr>');   
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
      
    //=== Menu Item 2 ===
    writeln('<tr>'); 
    writeln('<td id="menu_2" class="side_menu_label_1" height="25" width="177" valign="top" align="left" ');
    writeln('onmouseover="menu_left_over(2)" onmouseout="menu_left_out(2)" onclick="menu_left_click(2,1)">Adult Treatment</td>');
    writeln('</tr>');    
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
      
    //=== Menu Item 3 ===         
    writeln('<tr>');   
    writeln('<td id="menu_3" class="side_menu_label_1" height="25" width="177" valign="top" ');
		writeln('onmouseover="menu_left_over(3)" onmouseout="menu_left_out(3)" onclick="menu_left_click(3,1)">Invisalign & Clear Braces</td>');    				
		writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
            
    //=== Menu Item 4 ===          
    writeln('<tr>');   
    writeln('<td id="menu_4" class="side_menu_label_1" height="25" width="177" valign="top" '); 
    writeln('onmouseover="menu_left_over(4)" onmouseout="menu_left_out(4)" onclick="menu_left_click(4,1)">Traditional Braces</td>');
    writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');  
      
    //=== Menu Item 5 ===       
    writeln('<tr>');   
    writeln('<td id="menu_5" class="side_menu_label_1" height="25" width="177" valign="top" '); 
    writeln('onmouseover="menu_left_over(5)" onmouseout="menu_left_out(5)" onclick="menu_left_click(5,1)">Orthognathic &quot;Jaw&quot; Surgery</td>');
    writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183" valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');                   
    writeln('</table>');
	}
}


//============================ P R O S T H O D O N T I C S -- L E F T  S I D E -- M E N U --------------------------------------------

function prosth_left_side_menu() {
	with (document) {
    writeln('<table height="26" width="183" cellspacing="0" cellpadding="0" vspace="0" hspace="0" >');
    writeln('<col width="183" />');
    writeln('<tr>');
    writeln('<td class="side_menu_label" width="183" height="16" valign="top"><b>Prosthodontics Services</b></td>');
    writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183" valign="top" colspan="2"><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');      
    writeln('</tr>');
      
		//=== Menu Item 1 - Veeners ===
    writeln('<tr>');
    writeln('<td id="menu_1" class="side_menu_label_1" height="25" width="177" valign="top" ');
    writeln('onmouseover="menu_left_over(1)" onmouseout="menu_left_out(1)" onclick="menu_left_click(1,2)">Veneers</td>');
    writeln('</tr>');   
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
      
    //=== Menu Item 2 - Crowns / Bridges ===
    writeln('<tr>'); 
    writeln('<td id="menu_2" class="side_menu_label_1" height="25" width="177" valign="top" align="left" ');
    writeln('onmouseover="menu_left_over(2)" onmouseout="menu_left_out(2)" onclick="menu_left_click(2,2)">Crowns / Bridges</td>');
    writeln('</tr>');    
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
      
    //=== Menu Item 3 - Implants ===         
    writeln('<tr>');   
    writeln('<td id="menu_3" class="side_menu_label_1" height="25" width="177" valign="top" ');
	  writeln('onmouseover="menu_left_over(3)" onmouseout="menu_left_out(3)" onclick="menu_left_click(3,2)">Implants</td>');    				
		writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
            
    //=== Menu Item 4 - Dentures / Partial Dentures ===          
    writeln('<tr>');   
    writeln('<td id="menu_4" class="side_menu_label_1" height="25" width="177" valign="top" '); 
    writeln('onmouseover="menu_left_over(4)" onmouseout="menu_left_out(4)" onclick="menu_left_click(4,2)">Dentures / Partial Dentures</td>');
    writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');  
      
    //=== Menu Item 5- Extensive Reconstruction / Full mouth rehabilitation  ===       
    writeln('<tr>');   
    writeln('<td id="menu_5" class="side_menu_label_2" height="35" width="177" valign="top" '); 
    writeln('onmouseover="menu_left_over(5)" onmouseout="menu_left_out(5)" ');
	  writeln('onclick="menu_left_click(5,2)">Extensive Reconstruction / Full Mouth Rehabilitation</td>');
    writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
		
    //=== Menu Item 6 - Sleep Apnea / Snoring ===          
    writeln('<tr>');   
    writeln('<td id="menu_6" class="side_menu_label_1" height="25" width="177" valign="top" '); 
    writeln('onmouseover="menu_left_over(6)" onmouseout="menu_left_out(6)" onclick="menu_left_click(6,2)">Sleep Apnea / Snoring</td>');
    writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>');
		
    //=== Menu Item 7 - TMJ / TMD Disorder ===          
    writeln('<tr>');   
    writeln('<td id="menu_7" class="side_menu_label_1" height="25" width="177" valign="top" '); 
    writeln('onmouseover="menu_left_over(7)" onmouseout="menu_left_out(7)" onclick="menu_left_click(7,2)">TMJ / TMD Disorder</td>');
    writeln('</tr>');
    writeln('<tr>');
    writeln('<td height="2" width="183"  valign="top" colspan="2" ><img src="jovan_images/border_btn.png" width="183" height="2" /></td>');
    writeln('</tr>'); 		
				
    writeln('</table>');
	}
}


function footer(doctor,version) {
	if (doctor==1) {
		doctor_type = "orthodontics";
	}
	else if (doctor==2) {
		doctor_type = "prosthodontics";		
	}
	else if (doctor==3) {
		doctor_type = "ortho-prosth";		
	}	
		
	with (document) {
		writeln('<div id="footer">');
		writeln('<img src="jovan_images/spacer.gif" width="310" height="20" />');
		writeln(g_jovan_address + ', ' + g_jovan_city + ', ' + g_jovan_state + ' ' + g_jovan_zip + '<br />');
		writeln('<img src="jovan_images/spacer.gif" width="190" height="20" />');
		writeln('(p) ' + g_dr_sarah_phone + '&nbsp;' + g_dr_sarah_name + '&nbsp;&nbsp;&nbsp; (p) ' + g_dr_ace_phone + '&nbsp;' + g_dr_ace_name + '<br />');
		writeln('<img src="jovan_images/spacer.gif" width="210" height="20" />');
		writeln('copyright 2009-2014&nbsp;&nbsp;&nbsp;');
		writeln('<a class="a_link" href=\'javascript:alert("'+version+'");\'>version</a>&nbsp;&nbsp;');
		writeln('<a class="a_link" href=\'javascript:launchPage("jovan_' + doctor_type + '_links.html");\'>links</a>&nbsp;&nbsp;');
		writeln('<a class="a_link" href=\'javascript:launchPage("jovan_'  + doctor_type + '_site_map.html");\'>site map</a>&nbsp;&nbsp;');
		writeln('<a class="a_link" href=\'http://www.jovandental.com/jovan-blog/index.php\'>blog</a>&nbsp;&nbsp;');
		writeln('<a class="a_link" href=\'http://www.jovandental.com/press.html\'>press</a>&nbsp;&nbsp;');
		writeln('<a class="a_link" href=\'javascript:launchPage("index.html");\'>' + g_jovan_domain + '</a>&nbsp;&nbsp;');
		writeln('<br /><br /><br /><br /><br /><br /><br /><br />');
		writeln('</div>');
	}
  
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'  type='text/javascript'%3E%3C/script%3E"));

  try {
  	var pageTracker = _gat._getTracker("UA-11433857-1");
  	pageTracker._trackPageview();
  } catch(err) {}
}
