function top_div()
{
browser_name = which_browser(); 

switch(browser_name)
{
case "Firefox":
  document.write("<div align='center' style='margin-top: 0px; margin-left: 16px;'>");
  break;    
case "Safari":
  document.write("<div align='center' style='margin-top: 0px; margin-left: 7px;'>");
  break;
case "Chrome":
  document.write("<div align='center' style='margin-top: 0px; margin-left: 17px;'>");
  break;
default:
  document.write("<div align='center' style='margin-top: 0px; margin-left: 10px;'>");
}

}

function nea_top_home()
{
  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=\"966\" height=\"147\">");
  document.write("<param name=movie value=\"/nea_top_home.swf\">");
  document.write("<param name=quality value=high>");
  document.write("<param name=wmode value=transparent>");
  document.write("<embed src=\"/nea_top_home.swf\" quality=high wmode=transparent width=966 height=147 pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\">");
  document.write("</embed>");
  document.write("</object>");
}

function nea_top()
{
  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=\"966\" height=\"147\">");
  document.write("<param name=movie value=\"/nea_top.swf\">");
  document.write("<param name=quality value=high>");
  document.write("<param name=wmode value=transparent>");
  document.write("<embed src=\"/nea_top.swf\" quality=high wmode=transparent width=966 height=147 pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\">");
  document.write("</embed>");
  document.write("</object>");
}

function vertical_menu_left()
{
  document.write("<div style='padding-left: 5px;'>");
  document.write("<div class='arrow_menu'>");
  document.write("<ul>");
  document.write("<li><a href='http://www.easeeczema.org' title='Everyday Help' target='_blank'>Everyday Help</a></li>");
  document.write("<li><a href='http://www.facebook.com/group.php?gid=190361427152' title='Join us on Facebook' class='highlight' target='_blank'>Join us on Facebook</a></li>");
  document.write("<li><a href='/research/clinical_trials/do_you_have_hand_eczema.pdf' title='Hand Eczema Clinical Trial' class='highlight'>Hand Eczema Clinical Trial</a></li>");
  document.write("<li><a href='/shop/order_brochures.htm' title='Health Professionals - Order Brochures'>Health Professional Brochures</a></li>");
  document.write("</ul>");
  document.write("</div>");
  document.write("</div>");

  document.write("<div align='left' style='padding-left: 5px; padding-top: .2in; padding-bottom: 15px;'>");
  document.write("<a href='/donate/'><img src='/images/NEA_DonateButton_04_150x150.jpg' border='0' alt='[Donate to NEA]'></a>");
  document.write("</div>");

  document.write("<div align='left' style='padding-left: 5px; padding-bottom: 10px;'>");
  document.write("<a href='/starting_from_scratch/'>");
  document.write("<img src='/images/nea_starting_from_scratch_button.jpg' border='0' alt='[Starting from Scratch DVD]'></a>");
  document.write("</div>");

  document.write("<div align='left' style='padding-left: 5px;'>");
  document.write("<a href='/donate/'>");
  document.write("<img src='/images/sasha_scores_logo_180px.jpg' border='0' alt='[Sasha Vujacic scores]'></a>");
  document.write("</div>");


}

function donate()
{
  document.write("<br><div align='center'><img src='/images/NEA_DonateButton_04_150x150.jpg' border='0' alt='[Donate to NEA]'><br><br><img src='/images/NEA_Donate to NEAButton_03_2009-02-14_200px.jpg' border='0' alt='[Donate to NEA]'></div><br>");
}

function vertical_menu_right()
{
  document.write("<div align='center'><br>");
  document.write("<img src='/images/nea_right_box_01_280x80.jpg' border='0'><br><br>");
  document.write("<img src='/images/nea_right_box_02_280x80.jpg' border='0'><br><br>");
  document.write("<img src='/images/nea_right_box_03_280x80.jpg' border='0'><br><br>");
  document.write("<img src='/images/nea_right_box_04_280x80.jpg' border='0'><br><br>");
  document.write("</div>");
}

function vertical_menu_right_home()
{
  document.write("<div align='center'><br>");
  document.write("<img src='/images/NEA_WaveButtons_Blue.jpg' border='0'><br><br>");
  document.write("<img src='/images/NEA_WaveButtons_Green.jpg' border='0'><br><br>");
  document.write("<img src='/images/NEA_WaveButtons_Yellow.jpg' border='0'><br><br>");
  document.write("</div>");
}

function horizontal_menu_bottom()
{
  document.write("<a href='/about/contact_us.htm' class='text_10pt_white'>Contact Us</a> :: ");
  document.write("<a href='/about/privacy_policy.htm' class='text_10pt_white'>Privacy Policy</a> :: ");
  document.write("<a href='/about/disclaimer.htm' class='text_10pt_white'>Disclaimer</a> :: ");
  document.write("<a href='/about/links_policy.htm' class='text_10pt_white'>Links Policy</a> :: ");
  document.write("<a href='/donate/' class='text_10pt_white'>Donate</a><br>");
  document.write("<a href='/about/copyright.htm' class='text_10pt_white'>Copyright &copy;</a> 1998 - <script>show_year();</script> National Eczema Association<img src='/images/spacer.gif' width='200' height='1'>");
  document.write("<script>show_date_modified_all();</script><br>");
  document.write("<a href='#top' class='text_9pt'>Top of Page</a><br>");
}

function horizontal_menu_bottom_skinfund()
{
  document.write("<a href='/' class='text_10pt'>Home</a> :: ");
  document.write("<a href='/about/contact_us.htm' class='text_10pt'>Contact Us</a> :: ");
  document.write("<a href='/about/privacy_policy.htm' class='text_10pt'>Privacy Policy</a> :: ");
  document.write("<a href='/about/disclaimer.htm' class='text_10pt'>Disclaimer</a> :: ");
  document.write("<a href='/about/links_policy.htm' class='text_10pt'>Links Policy</a> :: ");
  document.write("<a href='/donate/' class='text_10pt'>Donate</a><br>");
  document.write("<a href='/about/copyright.htm' class='text_10pt'>Copyright &copy;</a> 1998 - <script>show_year();</script> National Eczema Association<img src='/images/spacer.gif' width='200' height='1'>");
  document.write("<script>show_date_modified_all();</script><br>");
  document.write("<a href='#top' class='text_9pt'>Top of Page</a><br>");
}

function isolation_footer()
{
  document.write("<p id='footer'><a href='/'>Home &mdash; National Eczema Association</a> | <a href='/about/copyright.htm'>Copyright &#169; 1998 - <script>show_year();</script></a> | <a href='privacy.asp'>Privacy Policy</a> | <a href='#top'>Top of Page</a></p>");
}


function firefox_br()
{
browser_name = which_browser(); 

switch(browser_name)
{
case "Firefox":
  document.write("<br>");
  break;    
}
}

function explorer_br()
{
browser_name = which_browser(); 

switch(browser_name)
{
case "Internet Explorer":
  document.write("<br>");
  break;    
}
}

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("<div style='font: 10pt trebuchet ms, arial, helvetica; font-weight: bold; text-align: right; padding-right: 5px;'>"+day_of_week+", "+today+"</div>");
}

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);
}

// lastMod below and takeYear functions originally on www.quirksmode.org/js/lastmod.html .

function lastMod() {
	var x = new Date (document.lastModified);
	Modif = new Date(x.toGMTString());
	Year = takeYear(Modif);
	Month = Modif.getMonth();
	Day = Modif.getDate();
	Mod = (Date.UTC(Year,Month,Day,0,0,0))/86400000;
	x = new Date();
	today = new Date(x.toGMTString());
	Year2 = takeYear(today);
	Month2 = today.getMonth();
	Day2 = today.getDate();
	now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000;
	daysago = now - Mod;
	if (daysago < 0) return '';
	unit = 'days';
	if (daysago > 730) 	{
		daysago = Math.floor(daysago/365);
		unit = 'years';
	}
	else if (daysago > 60) {
		daysago = Math.floor(daysago/30);
		unit = 'months';
	}
	else if (daysago > 14) {
		daysago = Math.floor(daysago/7);
		unit = 'weeks'
	}
	var towrite = 'Page last modified ';
	if (daysago == 0) towrite += 'today';
	else if (daysago == 1) towrite += 'yesterday';
	else towrite += daysago + ' ' + unit + ' ago';
	return towrite;
}

function takeYear(theDate) {
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}

// ***********************************************
// 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 )
// ***********************************************

function show_date_modified_only(date_only) 
{
	var dateModified = document.lastModified;
	mydate = dateModified.slice(0,10);

	return(mydate);
}

function show_date_modified_all()
{
	document.write(lastMod() , ' on ' , show_date_modified_only());
}