<!--
function pg_hed(txt) {
  document.writeln("<div style=\"line-height:114%;margin-top:16px;margin-left:16px;margin-bottom:-8px;font-weight:bold;font-style:italic;font-size:18px;border-bottom:1px dotted #842c63;border-top:1px dotted #842c63;background-color:#e0e0e8;padding:6px;\">"+txt+"</div>");
}

function footer() {
  document.writeln(""+
	"<tr><td colspan=\"99\" style=\"padding-top:18px;\">"+	//border:1px solid red;
	  "<img height=\"39\" width=\"396\" src=\"images/blendtitle.gif\"></td></tr>"+
	"<tr><td align=\"center\" colspan=\"99\" style=\"padding-top:15px; padding-bottom:10px;\">"+	//border:1px solid red;
	  "<font face=\"Arial,Helvetica\" size=\"-1\">"+
	  "<font color=#842c63><b>Orthodontist Dr. Michael Bubon &amp; Associates</b></font><br>"+
	  "<font style=\"font-weight:bold;font-style:italic;background-color:#842c63;color:yellow;\">&nbsp;New&raquo;&nbsp;</font> 1253 Corporate Center Drive, Oconomowoc, WI 53066 262.569.7447<br>"+
	  "N16 W24132 Prairie Court, Suite 150, Waukesha, WI 53188  262.522.7447<br>"+
	  "9130 W. Loomis Road, Franklin, WI  53132  414.427.1210<br>"+
	  "W188 S7830 Racine Avenue, Suite 300, Muskego, WI 53150  262.971.0910"+
	  "</td></tr>"+
  "");
} //end function footer()...

function mail_dr() {
  name="drbubon"; domain="drbubon.com";
  document.write('<font style=\"font-family:trebuchet ms;font-size:8pt;\">Email: <b><a style=\"text-decoration:none;border-bottom:1px dotted red;font-family:trebuchet ms;font-size:8pt;font-weight:bold;color:red;\" title=\"Contact Dr. Bobon via email...\" href=\"mailto:' + name + '@' + domain + '\">');
  document.write(name + '@' + domain + '</a></b></font>');
}


function home() {
  if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires AC_RunActiveContent.js.");
  } else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	//hasRightVersion=""; //uncomment to test for non-flash content...
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '596',
			'height', '428',
			'src', 'ani_home',
			'quality', 'best',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'top',
			'play', 'true',
			'loop', 'true',
			'scale', 'exactfit',
			'wmode', 'opaque',
			'devicefont', 'false',
			'id', 'ani_home',
			'bgcolor', '#fef5ca',
			'name', 'ani_home',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'ani_home',
			'salign', ''
			); //end AC code
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="images/bkgd_page_07.jpg" usemap="#home" width="596" height="428" style="border:0px;padding:0px;">';
		document.write(alternateContent);  // insert non-flash content
	}
  }
}

function page() {
  if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires AC_RunActiveContent.js.");
  } else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	//hasRightVersion=""; //uncomment to test for non-flash content...
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '596',
			'height', '135',
			'src', 'ani_banner',
			'quality', 'best',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'exactfit',
			'wmode', 'opaque',
			'devicefont', 'false',
			'id', 'ani_banner',
			'bgcolor', '#fef5ca',
			'name', 'ani_banner',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'ani_banner',
			'salign', ''
			); //end AC code
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<div style="width:596px;height:135px;padding:0px;margin:0px;">&nbsp;</div>';
		document.write(alternateContent);  // insert non-flash content
	}
 }
}



function map(num) { typ="h"; zm=16;
  if (num==1) { addr="1253+Corporate+Center+Drive,+Oconomowoc,+WI+53066"; typ=""; zm=15; }			//Ocon
  //orig: if (num==2) addr="N16+W24132+Prairie+Court,+Waukesha,+WI+53188"; //Wauk-orig: mapping Ave., not Ct.
  if (num==2) { addr="N16+W24132+Prairie+Ct.,+Waukesha,+WI+53188&ll=43.053414,-88.226341"; zm=17; }	//Wauk
  if (num==3) addr="Loomis+Road+and+Drexel_Avenue,+Franklin,+WI+53132";										//Frank
  if (num==4) addr="Racine+Avenue+and+Janesville+Road,+Muskego,+WI+53150";							//Musk
  loc="http://maps.google.com/maps?f=d&hl=en&t="+typ+"&z="+zm+"&saddr="+addr;

  if (num==2) { loc="http://www.mapquest.com/maps?city=Waukesha&state=WI&address=N16w24132+Prairie+Ct&zipcode=53188-1178&country=US&latitude=43.0531&longitude=-88.227461&geocode=STREET#a/maps/l::N16w24132+Prairie+Ct:Waukesha:WI:53188-1178:US:43.0531:-88.227461:street:/m:hyb:12:43.0531:-88.227461:0::/io:0:::::f:EN:M:/e"; zm=17; }	//Wauk
	//	loc1="http://maps.google.com/maps?f=d&hl=en&t=&z=15&saddr=1253+Corporate+Center+Drive,+Oconomowoc,+WI+53066;
	//	loc2="http://maps.google.com/maps?f=d&hl=en&t=h&z=17&saddr=N16+W24132+Prairie+Ct.,+Waukesha,+WI+53188&ll=43.053414,-88.226341;
	//  loc3="http://maps.google.com/maps?f=d&hl=en&t=h&z=16&saddr=9130+W.+Loomis+Road,+Franklin,+WI+53132;
	//  loc4="http://maps.google.com/maps?f=d&hl=en&t=h&z=16&saddr=W188+S7830+Racine+Avenue,+Muskego,+WI+53150;
  mapwin=window.open(loc, 'dtlwin', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=780,height=580,directories=no,location=no,left=10,top=10');
  mapwin.focus();
}


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 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.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}
function popup(url, name, width, height) {
  settings=
	"toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=yes,"+
	"resizable=no,width="+width+",height="+height;
  popwin=window.open(url,name,settings); popwin.focus();
}

function GP_AdvOpenWindow(theURL,winName,features,popWidth,popHeight,winAlign,ignorelink,alwaysOnTop,autoCloseTime,borderless) { //v2.0
  var leftPos=0,topPos=0,autoCloseTimeoutHandle, ontopIntervalHandle, w = 480, h = 340;  
  if (popWidth > 0) features += (features.length > 0 ? ',' : '') + 'width=' + popWidth;
  if (popHeight > 0) features += (features.length > 0 ? ',' : '') + 'height=' + popHeight;
  if (winAlign && winAlign != "" && popWidth > 0 && popHeight > 0) {
    if (document.all || document.layers || document.getElementById) {w = screen.availWidth; h = screen.availHeight;}
		if (winAlign.indexOf("center") != -1) {topPos = (h-popHeight)/2;leftPos = (w-popWidth)/2;}
		if (winAlign.indexOf("bottom") != -1) topPos = h-popHeight; if (winAlign.indexOf("right") != -1) leftPos = w-popWidth; 
		if (winAlign.indexOf("left") != -1) leftPos = 0; if (winAlign.indexOf("top") != -1) topPos = 0; 						
    features += (features.length > 0 ? ',' : '') + 'top=' + topPos+',left='+leftPos;}
  if (document.all && borderless && borderless != "" && features.indexOf("fullscreen") != -1) features+=",fullscreen=1";
  if (window["popupWindow"] == null) window["popupWindow"]=new Array();
  var wp = popupWindow.length;
  popupWindow[wp] = window.open(theURL,winName,features);
  if (popupWindow[wp].opener == null) popupWindow[wp].opener = self;  
  if (document.all || document.layers || document.getElementById) {
    if (borderless && borderless != "") {popupWindow[wp].resizeTo(popWidth,popHeight); popupWindow[wp].moveTo(leftPos, topPos);}
    if (alwaysOnTop && alwaysOnTop != "") {
    	ontopIntervalHandle = popupWindow[wp].setInterval("window.focus();", 50);
    	popupWindow[wp].document.body.onload = function() {window.setInterval("window.focus();", 50);}; }
    if (autoCloseTime && autoCloseTime > 0) {
    	popupWindow[wp].document.body.onbeforeunload = function() {
  			if (autoCloseTimeoutHandle) window.clearInterval(autoCloseTimeoutHandle);
    		window.onbeforeunload = null;	}  
   		autoCloseTimeoutHandle = window.setTimeout("popupWindow["+wp+"].close()", autoCloseTime * 1000); }
  	window.onbeforeunload = function() {for (var i=0;i<popupWindow.length;i++) popupWindow[i].close();}; }   
  document.MM_returnValue = (ignorelink && ignorelink != "") ? false : true;
}

//	Image1=new Image(154,23);	Image1.src="images/menu_login_mo.gif"
//	Image2=new Image(154,23);	Image2.src="images/menu_home_mo.gif"
//	Image3=new Image(154,23);	Image3.src="images/menu_doctor_mo.gif"
//	Image4=new Image(154,23);	Image4.src="images/menu_staff_mo.gif"
//	Image5=new Image(154,23);	Image5.src="images/menu_office_mo.gif"
//	Image6=new Image(154,23);	Image6.src="images/menu_braces_mo.gif"
//	Image7=new Image(154,23);	Image7.src="images/menu_forms_mo.gif"
//	Image8=new Image(154,23);	Image8.src="images/menu_faq_mo.gif"
//	Image9=new Image(154,23);	Image9.src="images/menu_beforeafter_mo.gif"
//	Image10=new Image(154,23);	Image10.src="images/menu_testimonials_mo.gif"
//	Image11=new Image(154,23);	Image11.src="images/menu_awards_mo.gif"
//	Image12=new Image(154,23);	Image12.src="images/menu_publications_mo.gif"
//	Image13=new Image(154,23);	Image13.src="images/menu_links_mo.gif"
//	Image14=new Image(154,23);	Image14.src="images/menu_locations_mo.gif"
//	Image15=new Image(154,23);	Image15.src="images/menu_life_mo.gif"
//	Image16=new Image(154,23);	Image16.src="images/menu_action_mo.gif"
//	Image17=new Image(154,23);	Image17.src="images/menu_diagram_mo.gif"
//	Image18=new Image(154,23);	Image18.src="images/menu_painter_mo.gif"
//	Image19=new Image(154,23);	Image19.src="images/menu_video_mo.gif"
//	Image20=new Image(154,23);	Image20.src="images/menu_connection_mo.gif"
//	Image21=new Image(154,23);	Image21.src="images/menu_doctors_mo.gif"
//	Image22=new Image(154,23);	Image22.src="images/menu_forms_mo.gif"

-->