var wlbFrameless = false;
var imgPrefix = imgPrefix = '';
//not on wlb server, so make all img & hrefs absolute URL's, like if we're on google search results or healthstatus.com. -rmesard 02-dec-2006
// temp override smarty-pants imgPrefix, think it's causing problems on test server. -rmesard 04-jan-2007
// put it back, wanna make it work w/ offsite VOIP chat branding. -rmesard 01-feb-2007
if ( location.hostname.toLowerCase().indexOf( "weightlossbuddy.com" ) == -1 && location.hostname.toLowerCase().indexOf( "test" ) == -1 && location.hostname.toLowerCase().indexOf( "dev" ) == -1  && location.hostname.toLowerCase().indexOf( "64.225.235.94" ) == -1) imgPrefix = 'http://www.weightlossbuddy.com';
if ( location.hostname.toLowerCase().indexOf( "myweightlossbuddy.com" ) != -1 ) imgPrefix = 'http://www.weightlossbuddy.com';
//alert(imgPrefix);

var urlPrefix = imgPrefix;
var isOffSiteHost = false;

function isBoolean(a) {
    return typeof a == 'boolean';
}

function isUndefined(a) {
    return typeof a == 'undefined';
}

var fromLogin = ( document.referrer.toLowerCase().indexOf( "login.asp" ) != -1 ) ? true : false; 
// if you just logged in, refresh top frame to change 'Login' to 'Logout', etc. -ron 22nov2005
/*
if (fromLogin && top.window.frames.length > 0) {  
	if (top.window.frames[0].name == 'header') { 
		top.window.frames[0].location.reload();
	}	
} 
*/
if (location.protocol == 'https:' && top.window.frames.length > 0) {
	//current frame is secure but parent frameset is not, reload https page only
	top.window.location = window.location;
} 
document.writeln("<link rel='stylesheet' href='" + urlPrefix + "/wlb.css' MEDIA='screen' TYPE='text/css'>");
document.writeln("<link rel='stylesheet' href='" + urlPrefix + "/weightloss.css' MEDIA='screen' TYPE='text/css'>");
function new_window(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=570,left=50%,top=50%");
}

<!--Added 5-2-07 to support custom-sized pop-up windows-->
function MM_brWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/* nice menus for IE */

function IEHoverPseudo() {

  var ulNodes = getElementsByClass("nice-menu");

  var j = 0;
  var liNodes = null;

  for(var i = 0; i < ulNodes.length; i++) { 
    liNodes = ulNodes[i].getElementsByTagName("li");
    for(j = 0; j < liNodes.length; j++) {
      if(liNodes[j].className == "menuparent") {
        liNodes[j].onmouseover=function() { this.className += " over"; }
        liNodes[j].onmouseout=function() { this.className = "menuparent"; }
      }
    }
  }
}


function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

window.onload = IEHoverPseudo;

function openwindow_scroll(link,x,y){
	winwidth = x;
	winheight = y;
	winleft = 200;
	wintop = 200;
	if(parseInt(navigator.appVersion)>=4){
		winleft = (screen.width / 2) - (winwidth / 2);
		wintop = (screen.height / 2) - (winheight / 2);
	}
	window.open(link, 'team_cal_window', 'top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth + ',toolbar=0,directories=0,menubar=0,status=1,resizable=1,scrollbars=yes,copyhistory=0');  
}

function sf(){
	//document.simplesearch.findzip.focus();
}
function checkrequired(which) {
	var pass=true;
	if (document.images) {
		for (i=0;i<which.length;i++) {
		var tempobj=which.elements[i];
		if (((tempobj.type=="text"||tempobj.type=="password") && tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&& tempobj.selectedIndex==0)) {
			tempobj.focus();
			pass=false;
			break;
         }
      }
   }
	if (!pass) {
		alert("Please enter your Username and Password.");
		return false;
	}
	else
		return true;
}

function open_cartoon(sPicURL) {
	winwidth = 100;
	winheight = 100;
	winleft = 200;
	wintop = 200;
	if(parseInt(navigator.appVersion)>=4){
		winleft = (screen.width / 2) - (winwidth / 2);
		wintop = (screen.height / 2) - (winheight / 2);
	}
	window.open('cartoon.asp?'+sPicURL, 'cartoon','resizable=1,HEIGHT=100,WIDTH=100,toolbar=0,directories=0,menubar=0,status=0,resizable=1,scrollbars=0,copyhistory=0');
}
function textLimit(field, maxlen) {
	if (field.value.length > maxlen + 1)
		alert('Your input has been shortened!');
	if (field.value.length > maxlen)
		field.value = field.value.substring(0, maxlen);
}
var __gbl_qstr = stripQuery(this.location); 

function queryString(key, src) { 
  var __qstr = stripQuery(src); 
  var strIndex = __qstr.indexOf(key+'='); 
  if(strIndex == -1) return null; 
  var strReturn = '', ch = ''; 
 
  for(var i = strIndex + key.length; i < __qstr.length; i++) { 
    ch = __qstr.charAt(i); 
    if(ch == '&' || ch == ';') break; 
    if(ch == '+') strReturn += ' '; 
    else if(ch != '=') strReturn += ch; 
  } 
  return unescape(strReturn); 
} 

function stripQuery(src) { 
  if(src == null) return __gbl_qstr; 
 
  if(typeof src == 'string') { 
    var __qstr   = new String(); 
    var __tmpNum = src.indexOf('?'); 
     
    __qstr = (__tmpNum != -1) 
             ? src.substr( 
                 __tmpNum + 1, src.length 
               ) 
             : null; 
     
    delete __tmpNum; 
    return __qstr; 
  } 
  else if(typeof src == 'object') { // assumes the object is of type location 
    return location.search.substr(1, location.search.length); 
  } 
  else return __gbl_qstr; 
}

function disableForm(theform) { 
	if (document.all || document.getElementById) { 
		for (i = 0; i < theform.length; i++) { 
			var tempobj = theform.elements[i]; 
			if (tempobj.type.toLowerCase() == 'submit' || tempobj.type.toLowerCase() == 'reset') {
				//alert('hellow');
				tempobj.className = 'button_disabled';
				tempobj.value = 'Wait...';
				tempobj.disabled = true;
			}
		}
	}
} 

function AdditionalInfo() {
	a = document.forms['login'].i40.selectedIndex - 1;
	b = -1;
	var c = true
	if (a != "-1") {b=eval("document.forms['login'].h"+ a +".value");}
	if ((b == "1") && (c == true)){
		password = '          ';
		savepassword = true;
	}
	else 
	{
		password = '';
		savepassword = false;
	}
	document.forms['login'].i20.value = password;
	document.forms['login'].passwordSaved.checked = savepassword;
}
function clearPassField() {
	document.forms['login'].i20.value = '';
	document.forms['login'].passwordSaved.checked = false;
}





// begin generic img swap funcs
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];}
}
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_preloadmenu_files() { //v3.0
  var d=document; if(d.menu_files){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadmenu_files.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];}}
}
// end generic img swap funcs

// begin homepage-specific code (flash greeter, etc)

//misc functions used by sitepal cookie checking
function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
      document.cookie = curCookie;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf(prefix);
  if (begin == -1)
    return null;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

function deleteCookie(name, path, domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}
function openwindow(link,x,y){
	winwidth = x;
	winheight = y;
	winleft = 200;
	wintop = 200;
	if(parseInt(navigator.appVersion)>=4){
		winleft = (screen.width / 2) - (winwidth / 2);
		wintop = (screen.height / 2) - (winheight / 2);
	}
	window.open(link, 'calc_window', 'resizable=yes,scrollbars=yes,top=' + wintop + ',left=' + winleft + ',height=' + winheight + ',width=' + winwidth);  
}
function w(thetext) { 
	document.writeln(thetext);
}

function displayHeader() {
	headerHTML = '<link rel="stylesheet" type="text/css" href="weightloss.css" />'
	
	
		+ ' <div>'
          + '  <table align="center" width="90%">'
          + '      <tr>'
            + '        <td align="left">'
           + '             <img src="../images/logo.gif" width="282px" height="78px" />'
            + '        </td>'
            + '        <td>'
              + '          <div style="width: 300px; color: #0066FF; margin-right: 0px; float: right; margin-top: 20px;">"You cant help someone up the hill<br /> without getting closer to the top yourself" </div>'
                 + '   </td>'
               + ' </tr>'
            + '</table>'
          + '  <div class="clear">'
          + '  </div>'
      + '  </div>	'	
      
		+'<div class="button-bg" width="30%">'
         +'<div class="menu_new" align="center" style="text-align: center; list-style: none; float: left;">'
		+'<ul class="menu_new" align="center" style="width: 900px; height: 100%; padding-left: 42px;list-style: none; margin-top: 10px;">'
	   
	   + '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal" href="../homepage.aspx"   >Home</a> </li> '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal " href="../Browsebuddies.aspx"  >Buddies</a></li>  '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal" href="../invite.aspx"  >Invite</a> </li> '
				+ '<li><a  style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal" href="../blogs/"   >Member Blogs</a> </li> '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal" href="../Teams/teamslogin.aspx"  >Teams</a> </li> '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal" href="../ExpertPopup.aspx"   >Ask Our Experts</a> </li> '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal" href="javascript:void(0)" onclick="window.open("../newChatPopUp.aspx","mywindow","width=400,height=300,resizable=1,maximize=1")" >Live Chat</a></li>  '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal"   href="../forumtest/default.asp" >Message Boards</a></li>  '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal"  href="../goals.aspx" >Tracker</a> </li> '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal"    href="../mydietpage.aspx" >My Diet</a> </li> '
				+ '<li><a style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal"   href="../Memberhome.aspx" >My Profile</a> </li> '
				+ '<li><a  style="color: White;text-decoration:none;font-family:Arial, Helvetica, sans-serif; font-size:13px;font-weight:normal"   href="../logout.aspx" >Logout</a></li>'
	   
	     +'</ul>'
	    +'</div>'
        +'</div>'    
        
      
	
	+ '<table align="center" cellpadding="0" cellspacing="0" style="width:910px;">'
	+ '<tr><td align="center" style="padding-bottom:15px;padding-top:15px">'
	document.writeln(headerHTML);
	headerCalled = true;
}
function displayFooter1() 
{
//<!-- OPENTRACKER HTML START -->
//<!--<script defer src="http://server1.opentracker.net/?site=www.weightlossbuddy.com"></script>-->
//<!-- OPENTRACKER HTML END -->
footerHTML = '</td></tr></table>'
+'<table style="width:910px;><tr><td>'
	+ '<td   valign="top" style="width:100%">'
		        + '<script type="text/javascript">'
		        + 'google_ad_client = "pub-5614673931275611";'
			  + 'google_ad_slot = "5114452713";'
		        + 'google_ad_width = 728;'
		        + 'google_ad_height = 90;'
		        + 'google_ad_format = "728x90_as";'
		        + 'google_ad_type = "text";'
		        + 'google_ad_channel = "";'
		        + 'google_color_border = "FFFFFF";'
		        + 'google_color_bg = "FFFFFF";'
		        + 'google_color_link = "0101FF";'
		        + 'google_color_text = "333333";'
		        + 'google_color_url = "00802B";'
                    + 'google_color_title = "0066CC";'
		        + '</script>'
                + '<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>'
+'</td></tr></table>';
document.writeln(footerHTML);
footerCalled = true;
}
function displayFooter() {

	footerHTML = ''

//		+ '<table align="center" cellpadding="0" cellspacing="0" style="width: 910px; background-color:#FFFFFF">'
//		    + '<tr>'
//                + '<td colspan="4"  ><img src="../images/Footer_bar.jpg" width="100%" ></img</td>'
//            + '</tr>'
//		    + '<tr>'
//		    + '<td style="width:30%;font-size:12px;font-weight:bold;color:Blue" align="left"><font style="color:Blue">Learn More</font></td>'
//                + '<td style="width:30%;font-size:12px;font-weight:bold;color:Blue" align="left"><font style="color:Blue">Other WeightLossBuddy Sites</font></td>'
//                + '<td style="width:25%;font-size:12px;font-weight:bold;color:Blue" align="left"><font style="color:Blue">WeightLossBuddy is Free</font></td>'
//                + '<td style="width:30%;font-size:12px;font-weight:bold;color:Blue" align="left"><font style="color:Blue">About</font></td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td colspan="4">&nbsp;</td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a href="../Browsebuddies.aspx" ><font style="color:Blue">Find A Buddy</font></a> </td>'
//                + '<td style="width:30%;color:Blue" align="left"><a href="http://www.BuddyBeautiful.com"><font style="color:Blue">BuddyBeautiful skin & beauty shop</font></a></td>'
//                + '<td style="width:25%;color:Blue" align="left"><a href="../experts.aspx" ><font style="color:Blue">Free Access to Our Experts </font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a href="../article.aspx?contenttype=about" ><font style="color:Blue">About Us</font></a></td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a href="../wlb_external/learn_more.aspx"  ><font style="color:Blue">Take a Tour </font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a href="http://www.DIrectoryofHealthClubs.com" ><font style="color:Blue">DirectoryofHealthClubs 10,000+</font></a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"><a href="javascript:void(0)" onclick="window.open("BMI.asp","mywindow","width=275,height=300,resizable=1,maximize=1")" style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal;font-family: Arial">Free BMI Calculator</a> </td>'
//                + '<td style="width:30%;color:Blue" align="left"><a href="../contactus.aspx" ><font style="color:Blue"> Contact Us</font></a></td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a href="../article.aspx?contenttype=teaming" ><font style="color:Blue">Teams </font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"> <a  href="http://www.DirectoryofWeightLossCenters.com" ><font style="color:Blue">DirectoryofWeightLossCenters 10,000+</font></a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"><a href="javascript:void(0)" onclick="window.open("links_framed.asp","mywindow","width=400,height=420,resizable=1,maximize=1")" style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal;font-family: Arial">Free Calorie Counter</a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a href="../article.aspx?contenttype=mission" ><font style="color:Blue">Our Mission Ststement </font></a> </td>'
//		    + '</tr>'
//		     
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/premium_features/premium3.html" ><font style="color:Blue">Why Join ?</a></td>'
//                + '<td style="width:30%;color:Blue" align="left"> <a  href="http://www.USADirectoryofPsychologists.com" ><font style="color:Blue">USADirectoryofPsychologists 50,000+</font></a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"> <a href="http://www.weightlossbuddy.com/wlb_external/howitworks_tracking.htm"><font style="color:Blue">Free Diet Tracking</font></a>  </td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="~/article.aspx?contenttype=privacy_policy" ><font style="color:Blue">Privacy Statement</font></a></td>'
//                
//              
//                
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="http://www.cafepress.com/weightlossbuddy" ><font style="color:Blue">WeightLossBuddy tshirts & more shop</font></a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"><a  Target="_blank" ><font style="color:Blue">Free eCourse</font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a Target="_blank" ><font style="color:Blue">Report Bugs </font></a></td>'
//		    + '</tr>'
//		    
//		   
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a  href="basicbenefits.aspx" ><font style="color:Blue">Sign up today</font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"> <a href="javascript:void(0)" onclick="window.open("nutrition.asp","mywindow","width=345,height=460,resizable=1,maximize=1")" style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal;font-family: Arial">Free Food Nutrition Content</a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/recipes/recipe_swap.asp" ><font style="color:Blue">Free Healthy Recipes</font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/article.asp?contenttype=licence_agreement" ><font style="color:Blue">Terms of Use</font></a></td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"></td>'
//                + '<td style="width:30%;color:Blue" align="left"> <a  href="~/wlb_external/howitworks_results.htm" ><font style="color:Blue">Free Graphs</a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/wlb_external/howitworks_communicate.htm" ><font style="color:Blue">Free Journaling</font></a> </td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/article.asp?content=testimonials" ><font style="color:Blue">Testimonials</font></a> </td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a  Target="_blank" ><font style="color:Blue">"  </td>'
//		        + '<td style="width:30%;color:Blue" align="left"><a  href="~/recipes/recipe_swap.asp" ><font style="color:Blue">Free Healthy Recipes</a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/wlb_external/howitworks.htm" ><font style="color:Blue">Free Menu Planning</font></a> </td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="" ><font style="color:Blue"></font></a> </td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a href="~/basicbenefits.aspx" ><font style="color:Blue"></font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="" ><font style="color:Blue">Free Weight Tracking</font></a></td>'
//                + '<td style="width:25%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/article.asp?contenttype=news" ><font style="color:Blue">Free News You Can Use</font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="" ><font style="color:Blue"></font></a></td>'
//		    + '</tr>'
//		     + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left"><a  href="~/basicbenefits.aspx" ><font style="color:Blue"></font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="http://www.DirectoryofWeightLossCenters.com" ><font style="color:Blue"></font></a></td>'
//                + '<td style="width:25%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/article.asp?content=newsletter" ><font style="color:Blue">Free Newsletter</font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="~/article.aspx?content=testimonials" ><font style="color:Blue"></font></a></td>'
//		    + '</tr>'
//		     + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left">&nbsp;</td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  Target="_blank" ><font style="color:Blue"></font></a> </td>'
//                + '<td style="width:25%;color:Blue" align="left"><a  href="http://www.weightlossbuddy.com/tips/tip_swap.asp" ><font style="color:Blue">Free Tips & Tricks 250+</font></a> </td>'
//                + '<td style="width:25%;color:Blue" align="left">&nbsp;</td>'
//		    + '</tr>'
//		    + '<tr>'
//		        + '<td style="width:30%;color:Blue" align="left">&nbsp;</td>'
//                + '<td style="width:30%;color:Blue" align="left"><a  href="" ><font style="color:Blue"></font></a></td>'
//                + '<td style="width:25%" align="left"><a   href="http://www.weightlossbuddy.com/wlb_external/howitworks_communicate.htm" ><font style="color:Blue">Free Personal Blog</font></a> </td>'
//                + '<td style="width:25%" align="left">&nbsp;</td>'
//		    + '</tr>'
//		    + ' <tr>'
//                + '<td style="width:30%;color:Blue" align="left">&nbsp;</td>'
//                + '<td style="width:30%;color:Blue" align="left">&nbsp;</td>'
//                + '<td style="width:25%" align="left"><a href="http://www.weightlossbuddy.com/links_framed.asp" ><font style="color:Blue">Free Weight Loss Tools (BMI ++)</font></a></td>'
//                + '<td style="width:30%;color:Blue" align="left">&nbsp;</td>'
//            + '</tr>'
//		    + '<tr>'
//		        + '<td colspan="4" align="center" style="color:Blue">Copyright Weight Loss Buddy Inc. 2009</td>'
//		    + '</tr>'
//		+'</table>';


  	+' <div class="footer-bg"> '
                      	+'  <div style="width: 800px; margin: auto; padding: 0; padding-top: 12px;">'
                          	+'  <b style="width: 114px; float: left">'
                             	+'   <ul class="footer-black12" style="list-style: none; line-height: 20px;">'
                                 	+'   <li class="darblue-bold"><span class="darblue-bold"><b>Learn More</b> </span></li>'
                                   	+' <li>&nbsp;</li>'
                                   	+' <li class="darblue-bold"><a id="footer_HyperLink7" href="../Browsebuddies.aspx" style="font-size: 10px;color: Blue; text-decoration: underline; font-weight: normal" target="_blank">Find A Buddy</a> </li>'
                                    	+' <li class="darblue-bold"><a id="footer_HyperLink4" target="_blank" href="learn_more.aspx"  style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal"> Take a Tour</a> </li> '
                                    	+'<li class="darblue-bold"><a id="footer_HyperLink31" target="_blank" style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" href="../article.aspx"> Teams</a> </li>'
                                    	+'<li>&nbsp;</li>'
                                    	+'<li class="darblue-bold"><a id="footer_HyperLink34" style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" target="_blank" href="../Registration.aspx"> Sign up today </a></li>'
                                    	+'<li></li>'
                                    	+'<li></li>'
                                	+'</ul>'
                            	+'</b><b style="float: left; padding-left: 20px;">'
                                	+'<img src="../images/divider-2.gif" width="7" height="212" /></b> <b style="width: 261px; float: left"> '
                                    	+' <ul class="footer-black12" style="list-style: none; line-height: 20px;"> '
                                    	+' <li class="darblue-bold"><span class="darblue-bold"><b>Other WeightLossBuddy Sites </b> </span></li>'
                                        	+'<li>&nbsp;</li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink2" href="http://www.BuddyBeautiful.com" target="_blank">BuddyBeautiful skin & beauty shop</a></li>'
                                         	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink11" href="http://www.DIrectoryofHealthClubs.com" target="_blank">DirectoryofHealthClubs 10,000+</a> </li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink29" href="http://www.DirectoryofWeightLossCenters.com"  target="_blank">DirectoryofWeightLossCenters 10,000+</a></li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink35" href="http://www.USADirectoryofPsychologists.com" target="_blank">USADirectoryofPsychologists 50,000+</a> </li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink36" target="_blank" href="http://www.weightlossbuddy.com/wlb_external/howitworks_communicate.htm"> Free Journaling</a></li>'
                                        	+'<li></li>'
                                        	+'<li></li>'
                                    	+'</ul>'
                                	+'</b><b style="float: left">'
                                    	+'<img src="../images/divider-2.gif" width="7" height="212" /></b>'
                            	+'<div style="width: 211px; float: left; clear: right;">'
                                	+'<ul class="footer-black12" style="list-style: none; line-height: 20px;">'
                                    	+'<li class="darblue-bold"><span class="darblue-bold"><b>WeightLossBuddy is Free</b> </span></li>'
                                    	+'<li>&nbsp;</li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink8" target="_blank" href="../ExpertPopup.aspx"> Free Access to Our Experts</a></li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" href="javascript:void(0)" onclick="window.open("../BMI.asp","mywindow","width=275,height=300,resizable=1,maximize=1")">Free BMI Calculator</a> </li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" href="javascript:void(0)" onclick="window.open("../links_framed.asp","mywindow","width=400,height=420,resizable=1,maximize=1")">Free Calorie Counter</a></li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink33" target="_blank" href="http://www.weightlossbuddy.com/wlb_external/howitworks_tracking.htm"> Free Diet Tracking</a></li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" href="javascript:void(0)" onclick="window.open("../ecourse.aspx","mywindow","width=320,height=300,resizable=1,maximize=1")" >Free eCourse</a></li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" href="javascript:void(0)" onclick="window.open("../nutrition.asp","mywindow","width=345,height=460,resizable=1,maximize=1")" >Free Food Nutrition Content</a> </li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink14" href="http://www.weightlossbuddy.com/wlb_external/howitworks_results.htm" target="_blank">Free Graphs</a></li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink30" target="_blank" href="http://www.beta.weightlossbuddy.com/recipes/recipe_swap.asp"> Free Healthy Recipes</a></li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="A1" target="_blank" href="http://www.weightlossbuddy.com/wlb_external/howitworks_communicate.htm"> Free Journaling</a></li> '
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink22" href="../article.asp?contenttype=news" target="_blank">Free News You Can Use</a></li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink45" href="../article.asp?content=newsletter" target="_blank">Free Newsletter</a> </li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink41" target="_blank" href="http://www.beta.weightlossbuddy.com/tips/tip_swap.asp">Free Tips & Tricks 250+</a> </li>'
                                    	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink28" target="_blank" href="howitworks_communicate.htm">Free Personal Blog</a></li>'
                                	+'</ul>'
                                	+'<div class="clear">'
                                	+'</div>'
                            	+'</div>'
                            	+'<b style="float: left">'
                                	+'<img src="../images/divider-2.gif" width="7" height="212" /></b> <b style="width: 168px; float: left">'
                                    	+'<ul class="footer-black12" style="list-style: none; line-height: 20px;">'     
                                    		+' <li class="darblue-bold"><span class="darblue-bold"><b>About </b></span></li>'
                                        	+'<li>&nbsp;</li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink9" target="_blank" href="../article.aspx"> About Us</a> </li>'                                
                                        	+' <li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink6" target="_blank" href="../contactus.aspx"> Contact Us</a> </li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink12" target="_blank" href="../article.aspx?contenttype=mission"> Our Mission Statement</a></li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink16" target="_blank" href="../contactus.aspx"> Report Bugs </a></li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink42" target="_blank" href="../article.asp?contenttype=licence_agreement"> Terms of Use</a> </li>'
                                        	+'<li class="darblue-bold"><a style="font-size: 10px; color: Blue; text-decoration: underline; font-weight: normal" id="footer_HyperLink13" target="_blank" href="../article.asp?content=testimonials"> Testimonials</a> </li>'
                                        	+'<li></li>'
                                        	+'<li></li>'
                                    	+'</ul>'
                            	+'    </b>'
                            	+'<div class="clear">'
                            	+'</div>'
                        	+'</div>'
                        	+'<div class="clear">'
                        	+'</div>'
                    	+'</div>'
                    	+'<div class="clear">'
                    	+'</div>'
                    	+'<div class="footer-bg-2">'
                        	+'<span class="footer-11" style="padding-top: 10px; float: none; margin: 0px; width: 910px;">'
                            	+'<br />'
                            	+'The content of this site is for informational purposes only and is not to be perceived'
                            	+'as providing medical advice, diagnosis or treatment. The information provided on'
                            	+'this site should complement, not replace, the advice and relationship of your healthcare'
                            	+'provider. You should seek the professional advice of your medical doctor prior to'
                            	+'beginning a new diet or weight loss program. </span><span class="footer-12" style="padding-top: 10px;'
                                	+'margin: 0px; width: 800px; padding-left: ">'
                                	+'<br />'
                                	+'Copyright Weight Loss Buddy Inc. 2009</span>'
                    	+'</div>'
              document.writeln(footerHTML);
		footerCalled = true;
	}

