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'>");
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 dropdown
/*
function at_display(x)
{
  win = window.open();
  for (var i in x) win.document.write(i+' = '+x[i]+'<br>');
}
*/
// ----- Show Aux -----
/*
function at_show_aux(parent, child)
{
  var p = document.getElementById(parent);
  var c = document.getElementById(child);

  var top  = (c["at_position"] == "y") ? p.offsetHeight+2 : 0;
  var left = (c["at_position"] == "x") ? p.offsetWidth  : 0;

  for (; p; p = p.offsetParent)
  {
    top  += p.offsetTop;
    left += p.offsetLeft;
  }

  c.style.position   = "absolute";
  c.style.top        = top +'px';
  c.style.left       = left+'px';
  c.style.visibility = "visible";
}
*/
// ----- Show -----
/*
function at_show()
{
  p = document.getElementById(this["at_parent"]);
  c = document.getElementById(this["at_child" ]);

  at_show_aux(p.id, c.id);

  clearTimeout(c["at_timeout"]);
}
*/
// ----- Hide -----
/*
function at_hide()
{
  c = document.getElementById(this["at_child"]);

  c["at_timeout"] = setTimeout("document.getElementById('"+c.id+"').style.visibility = 'hidden'", 333);
}
*/
// ----- Click -----
/*
function at_click()
{
  p = document.getElementById(this["at_parent"]);
  c = document.getElementById(this["at_child" ]);

  if (c.style.visibility != "visible") at_show_aux(p.id, c.id);
  else c.style.visibility = "hidden";

  return false;
}
*/
// ----- Attach -----

// PARAMETERS:
// parent   - id of visible html element
// child    - id of invisible html element that will be dropdowned
// showtype - "click" = you should click the parent to show/hide the child
//            "hover" = you should place the mouse over the parent to show
//                      the child
// position - "x" = the child is displayed to the right of the parent
//            "y" = the child is displayed below the parent
// cursor   - Omit to use default cursor or check any CSS manual for possible
//            values of this field
/*
function at_attach(parent, child, showtype, position, cursor)
{
	wlbFrameless = true;
  p = document.getElementById(parent);

  c = document.getElementById(child);

  p["at_parent"]     = p.id;
  c["at_parent"]     = p.id;
  p["at_child"]      = c.id;
  c["at_child"]      = c.id;
  p["at_position"]   = position;
  c["at_position"]   = position;

  c.style.position   = "absolute";
  c.style.visibility = "hidden";

  if (cursor != undefined) p.style.cursor = cursor;

  switch (showtype)
  {
    case "click":
      p.onclick     = at_click;
      p.onmouseout  = at_hide;
      c.onmouseover = at_show;
      c.onmouseout  = at_hide;
      break;
    case "hover":
      p.onmouseover = at_show;
      p.onmouseout  = at_hide;
      c.onmouseover = at_show;
      c.onmouseout  = at_hide;
      break;
  }
}
*/
// end dropdown



// 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 w(thetext) { 
	document.writeln(thetext);
}

function displayHeader() {
	headerHTML = '<link rel="stylesheet" type="text/css" href="../weightloss.css" />'
		+ '<table align="center" cellpadding="0" cellspacing="0" style="width: 910px">'
		+ '<tr>'
			+ '<td style="height: 78px; background-image: url(../images/logo.gif); width: 282px; background-repeat: no-repeat">'
			+ '</td>'
			+ '<td style="" class="head">'
				+ '"The Leading Weight Loss Network!"</td>'
			+ '<td style="height: 78px">'
				+ '<img alt="NoImage"  src="../images/head_right.gif" /></td>'
		+ '</tr>'
		+ '<tr>'
			+ '<td class="menu" colspan="3">'
				+ '<a href="../homepage.aspx" class="m">Home</a> | '
				+ '<a href="../Browsebuddies.aspx" class="m">Buddies</a> | '
				+ '<a href="../invite.aspx" class="m">Invite</a> | '
				+ '<a href="../blogs/" class="m">Member Blogs</a> | '
				+ '<a href="../Teams/teamslogin.aspx" class="m">Teams</a> | '
				+ '<a href="../experts.aspx" class="m">Experts</a> | '
				+ '<a href="../chat.aspx" class="m">Chats</a> | '
				+ '<a href="../forumtest/default.asp" class="m">Message Boards</a> | '
				+ '<a href="../goals.aspx" class="m">Tracker</a> | '
				+ '<a href="../mydietpage.aspx" class="m">My Diet Page</a> | '
				+ '<a href="../Memberhome.aspx" class="m">My Booster Page</a> | '
				+ '<a href="../logout.aspx" class="m">Logout</a>'
			+ '</td>'
		+ '</tr>'
	+ '</table>'
	+ '<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;">'
//			+ ' <tr>'
//				+ '<td class="cr" colspan="3">'
//					+ '<a href="../article.aspx?contenttype=about" class="m">About Us</a> | '
//					+ '<a href="../article.aspx?contenttype=homechallenge" class="m">Challenge</a> | '
//					+ '<a href="../contactus.aspx" class="m">Contact Us</a> | '
//					+ '<a href="../cooltools/links_framed.aspx" class="m">Cool Tools</a> | '
//					+ '<a href="../wlb_external/howitworks.aspx" class="m">Diet Tracking</a> | '
//					+ '<a href="../article.aspx?contenttype=findingbuddy" class="m">Find A Buddy</a> | '
//					+ '<a href="../javascript:;" class="m">Free Course</a> | '
//					+ '<a href="../article.aspx?contenttype=newsletter" class="m">Newsletter</a> | '
//					+ '<a href="../article.aspx?contenttype=mission" class="m">Our Mission</a> | '
//					+ '<a href="../recipes/recipe_swap.asp" class="m">Recipes</a> | '
//					+ '<a href="../javascript:" class="m">Report Bugs</a> | '
//					+ '<a href="../wlb_external/learn_more.aspx" class="m">Take a Tour</a> | '
//					+ '<a href="../article.aspx?contenttype=teaming" class="m">Teams</a> | '
//					+ '<a href="../article.aspx?contenttype=testimonials" class="m">Testimonials</a> | '
//					+ '<a href="../tips/tip_swap.asp" class="m">Tips & Tricks</a> | '
//					+ '<a href="../premium_features/premium3.aspx" class="m">Why Join?</a> | '
//					+ '<a href="http://www.buddybeautiful.com" class="m">Shopping</a> | '
//					+ '<a href="../article.aspx" class="m">News Letter</a> | '
//					+ '<br />'
//					+ 'Copyright 2007 Weight Loss Buddy.Inc All rights Reserved'
//				+ '</td>'
//			  + '</tr>'
//		+ '</table>';

		+ '<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 100+</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.BuddyWeightLoss.com"   ><font style="color:Blue">BuddyWeightLoss diet pills & more shop </font></a> </td>'
                + '<td style="width:25%;color:Blue" align="left"><a href="http://www.weightlossbuddy.com/links_framed.asp" ><font style="color:Blue"> Free Calorie Counter / Calulator</font></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.CarbCounting101.com" ><font style="color:Blue">CarbCounting101</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=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.ChefsonVideo.com" ><font style="color:Blue">ChefsOnVideo.com  video recipes</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  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"><a Target="_blank" ><font style="color:Blue">WeightLossBuddy is Free and it</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="http://www.weightlossbuddy.com/wlb_external/howitworks_results.htm" ><font style="color:Blue">Free Graphs</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  Target="_blank" ><font style="color:Blue"> only takes a second to join</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="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"><a  href="basicbenefits.aspx" ><font style="color:Blue">Sign up today</font></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_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="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  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. 2008</td>'
		    + '</tr>'
		+'</table>';
		document.writeln(footerHTML);
		footerCalled = true;
	}

