function unfancy(instr)
{
// replace mdash & ndash with hyphen
outstr = instr.replace(/—/g,'-')
outstr = outstr.replace(/–/g,'-')
// replace lsquo & rsquo with single quote
outstr = outstr.replace(/‘/g,"'")
outstr = outstr.replace(/’/g,"'")
// replace ldquo & rdquo with double quote
outstr = outstr.replace(/“/g,'"')
outstr = outstr.replace(/”/g,'"')
return outstr
}

document.write('<p align="right">')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:x-large;">&#x2766;</span><b>&nbsp;<a href="coach_areas.html" class="menu">Services</a></b>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:x-large;">&#x266c;</span><b>&nbsp;<a href="policies.html" class="menu">Policies</a></b>')
//document.write('<span style="font-size:x-large;">&#x263E;</span><b>&nbsp;<a href="calendar.html" class="menu">Calendar</a></b>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:x-large;">&#x2714;</span><b>&nbsp;<a href="contact.html" class="menu">Sign Up</a></b>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:x-large;">&#x2709;</span><b>&nbsp;<a href="contact.html" class="menu">Contact</a></b>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:x-large;">&#x270d;</span><b>&nbsp;<a href="contact.html" class="menu">Blog</a></b>')
var mytitle = document.title
mytitle = unfancy(mytitle)
var mytitleencoded = encodeURIComponent(mytitle)
var myloc = location.href
var mylocencoded = encodeURIComponent(myloc)
//var mydesc = getDesc();
//mydesc = unfancy(mydesc)
//mydescencoded = encodeURIComponent(mydesc)
var myimg = getImg();
myimgencoded = encodeURIComponent(myimg)
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<iframe src="http://www.facebook.com/plugins/like.php?href='+mylocencoded+'&amp;layout=button_count&amp;show_faces=false&amp;width=90&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px; margin-bottom:0;" allowTransparency="true"></iframe>')

//document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:larger">&#x2714;</span><b>&nbsp;<a href="like.html" class="menu">Like</a></b>')
// share facebook
//document.write('<a name="fb_share"></a>')
//document.write('<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>')
//var mytxt = 'Share'
//mytxt = mytxt+'&nbsp;<a name="fb_share" type="icon" href="http://www.facebook.com/sharer.php"></a>'
document.write('</p>')

// go to url
function getDesc(){
  var metas = document.getElementsByTagName('meta');
  for(var i=0;i<metas.length;i++){
    if(metas[i].getAttribute('name').toLowerCase() == 'description'){
      return metas[i].getAttribute('content');
    }
  }
  return '';//or null if you prefer
}
function getImg(){
  var links = document.getElementsByTagName('link');
  for(var i=0;i<links.length;i++){
    if(links[i].getAttribute('rel').toLowerCase() == 'image_src'){
      return links[i].getAttribute('href');
    }
  }
  return '';//or null if you prefer
}

