function top_div()
{
browser_name = which_browser(); 

switch(browser_name)
{
case "Internet Explorer":
  document.write("<div style='padding-left: .33in;'>");
  break;    
default:
  document.write("<div>");
}
}

function ie_indent_div()
{
browser_name = which_browser(); 

switch(browser_name)
{
case "Internet Explorer":
  document.write("<div style='margin-left: -.55in;'>");
  break;    
default:
  document.write("<div>");
}
}

function sb_splash()
{
  document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"550\" height=\"400\">");
  document.write("<param name=movie value=\"/intro.swf\">");
  document.write("<param name=quality value=high>");
  document.write("<param name=wmode value=transparent>");
  document.write("<embed src=\"/intro.swf\" quality=high wmode=transparent pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"550\" height=\"400\">");
  document.write("</embed> ");
  document.write("</object>");
}

function sb_menu()
{
  document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"900\" height=\"260\">");
  document.write("<param name=movie value=\"/menu.swf\">");
  document.write("<param name=quality value=high>");
  document.write("<param name=FlashVars value=XMLfile=http://www.sborthodontics.com/menu.xml>");
  document.write("<param name=wmode value=transparent>");
  document.write("<embed src=\"/menu.swf\" quality=high wmode=transparent pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"900\" flashvars=\"/XMLfile=http://www.sborthodontics.com/menu.xml\" height=\"260\">");
  document.write("</embed> ");
  document.write("</object>");
}

function doctors_names()
{
  document.write("<center><div style='line-height: 1.5;'>");
  document.write("<span style='font-size:20pt; font-family: arial, helvetica; color: #FAFFFF; vertical-align: middle;'>Dr. Eric Edstrom</span>");
  document.write("<span style='font-size:20pt; font-family: arial, helvetica; color: #FAFFFF; vertical-align: middle;'> & </span>");
  document.write("<span style='font-size:20pt; font-family: arial, helvetica; color: #FAFFFF; vertical-align: middle;'>Dr. Alex Trigonis</span>");
  document.write("<br>");
  document.write("<span style='font-size:14pt; font-family: arial, helvetica; color: #FAFFFF;'>Santa Barbara Orthodontists</span>");
  document.write("<br>");
  document.write("<span style='font-size:13pt; font-family: arial, helvetica; color: #FAFFFF; font-weight: bold; font-style: italic;'>sborthodontics.com</span>");
  document.write("</div></center>");
}

function doctors_names_home()
{
  document.write("<center><div style='line-height: 1.5;'>");
  document.write("<span style='font-size:21pt; font-family: arial, helvetica; color: #FAFFFF; vertical-align: middle;'>Dr. Eric Edstrom</span>");
  document.write("<span style='font-size:21pt; font-family: arial, helvetica; color: #FAFFFF; vertical-align: middle;'> & </span>");
  document.write("<span style='font-size:21pt; font-family: arial, helvetica; color: #FAFFFF; vertical-align: middle;'>Dr. Alex Trigonis</span>");
  document.write("<span style='font-size:15pt; font-family: arial, helvetica; color: #FAFFFF;'><br>Santa Barbara Orthodontists</span>");
  document.write("<br>");
  document.write("<span style='font-size:13pt; font-family: arial, helvetica; color: #FAFFFF; font-weight: bold; font-style: italic;'>sborthodontics.com</span>");
  document.write("</div></center>");
}


function horizontal_menu()
{
  document.write("<div align='center' style='margin-top: 10px;'>");
  document.write("<font color='white' size='1' face='arial, helvetica, tahoma'>");
  document.write("<a href='/home.shtml' class='text_9pt_white'>Home</a> :: ");
  document.write("<a href='/about/' class='text_9pt_white'>About Us</a> :: ");
  document.write("<a href='/about/hours.htm' class='text_9pt_white'>Hours</a> :: ");
  document.write("<a href='/about/location.htm' class='text_9pt_white'>Location</a> :: ");
  document.write("<a href='/about/finance.htm' class='text_9pt_white'>Finance</a> :: ");
  document.write("<a href='/about/news.htm' class='text_9pt_white'>News</a> :: ");
  document.write("<a href='/office/' class='text_9pt_white'>Office</a> :: ");
  document.write("<a href='/patients/' class='text_9pt_white'>Patients</a> :: ");
  document.write("<a href='/patients/your_first_visit.htm' class='text_9pt_white'>First Visit</a> :: ");
  document.write("<a href='/patients/common_problems.htm' class='text_9pt_white'>Common Problems</a> :: ");
  document.write("<a href='/patients/minor_discomfort.htm' class='text_9pt_white'>Minor Discomfort</a> :: ");
  document.write("<a href='/patients/oral_hygiene.htm' class='text_9pt_white'>Oral Hygiene</a><br>");
  document.write("<a href='/patients/emergency_info.htm' class='text_9pt_white'>First Aid</a> :: ");
  document.write("<a href='/patients/questions.htm' class='text_9pt_white'>FAQ</a> :: ");
  document.write("<a href='/treatment/' class='text_9pt_white'>Treatment</a> :: ");
  document.write("<a href='/treatment/childhood.htm' class='text_9pt_white'>Childhood</a> :: ");
  document.write("<a href='/treatment/adult.htm' class='text_9pt_white'>Adult</a> :: ");
  document.write("<a href='/treatment/types_of_braces.htm' class='text_9pt_white'>Braces</a> :: ");
  document.write("<a href='/treatment/invisalign.htm' class='text_9pt_white'>Invisalign</a> :: ");
  document.write("<a href='/treatment/retainers.htm' class='text_9pt_white'>Retainers</a> :: ");
  document.write("<a href='/treatment/jaw_surgery.htm' class='text_9pt_white'>Jaw Surgery</a> :: ");
  document.write("<a href='/orthodontics/' class='text_9pt_white'>Orthodontics</a> :: ");
  document.write("<a href='/orthodontics/glossary.htm' class='text_9pt_white'>Glossary</a> :: ");
  document.write("<a href='/orthodontics/links.htm' class='text_9pt_white'>Links</a> :: ");
  document.write("<a href='/about/contact_us.htm' class='text_9pt_white'>Contact Us</a><br>");


  document.write("<br>");
  document.write("</font>");
  document.write("</div>");
}

function which_browser() {
// Browser Detection Javascript
// copyright 1 February 2003, by Stephen Chapman, Felgall Pty Ltd

// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.

var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("chrome") != -1) return 'Chrome';
if (agt.indexOf("opera") != -1) return 'Opera';
if (agt.indexOf("staroffice") != -1) return 'Star Office';
if (agt.indexOf("webtv") != -1) return 'WebTV';
if (agt.indexOf("beonex") != -1) return 'Beonex';
if (agt.indexOf("chimera") != -1) return 'Chimera';
if (agt.indexOf("netpositive") != -1) return 'NetPositive';
if (agt.indexOf("phoenix") != -1) return 'Phoenix';
if (agt.indexOf("firefox") != -1) return 'Firefox';
if (agt.indexOf("safari") != -1) return 'Safari';
if (agt.indexOf("skipstone") != -1) return 'SkipStone';
if (agt.indexOf("msie") != -1) return 'Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}

function show_date()
{
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
// today =  days[now.getDay()] + ", " +
//               months[now.getMonth()] + " " +
//                date + ", " +
//                 (fourdigits(now.getYear())) ;
// 
day_of_week = days[now.getDay()]
today =  months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;

// Print out the data.
document.write("<span style='font: 9pt arial, helvetica, sans serif; font-weight: bold;'>"+day_of_week+", "+today+"</span>");
}

function show_year()
{
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************

// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
// today =  days[now.getDay()] + ", " +
//               months[now.getMonth()] + " " +
//                date + ", " +
//                 (fourdigits(now.getYear())) ;
// 
day_of_week = days[now.getDay()]
today =  months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;

year =  (fourdigits(now.getYear())) ;

// Print out the data.
document.write(year);
}
