$(document).ready(function() 
{	
	$('#content').click(function(){  
		if($('#content_tooltip_author').data("qtip")) $('#content_tooltip_author').qtip("hide");
		if($('#content_tooltip_author_a').data("qtip")) $('#content_tooltip_author_a').qtip("hide");
		if($('#content_tooltip_author_greengard').data("qtip")) $('#content_tooltip_author_greengard').qtip("hide");
		if($('#content_tooltip_author_lisa').data("qtip")) $('#content_tooltip_author_lisa').qtip("hide");
		if($('#content_tooltip_author_melba').data("qtip")) $('#content_tooltip_author_melba').qtip("hide");
		if($('#content_tooltip_paula').data("qtip")) $('#content_tooltip_paula').qtip("hide");
		if($('#content_tooltip_author_ferber').data("qtip")) $('#content_tooltip_author_ferber').qtip("hide");
		if($('#content_tooltip_author_langille').data("qtip")) $('#content_tooltip_author_langille').qtip("hide");
		if($('#content_tooltip_author_berger').data("qtip")) $('#content_tooltip_author_berger').qtip("hide");
		if($('#content_tooltip').data("qtip")) $('#content_tooltip').qtip("hide");
		if($('#morsel_tooltip').data("qtip")) $('#morsel_tooltip').qtip("hide");
		if($('#patient_tooltip').data("qtip")) $('#patient_tooltip').qtip("hide");
	});
	
	$('#header').click(function(){  
		if($('#content_tooltip_author').data("qtip")) $('#content_tooltip_author').qtip("hide");
		if($('#content_tooltip_author_a').data("qtip")) $('#content_tooltip_author_a').qtip("hide");
		if($('#content_tooltip_author_greengard').data("qtip")) $('#content_tooltip_author_greengard').qtip("hide");
		if($('#content_tooltip_author_lisa').data("qtip")) $('#content_tooltip_author_lisa').qtip("hide");
		if($('#content_tooltip_author_melba').data("qtip")) $('#content_tooltip_author_melba').qtip("hide");
		if($('#content_tooltip_paula').data("qtip")) $('#content_tooltip_paula').qtip("hide");
		if($('#content_tooltip_author_ferber').data("qtip")) $('#content_tooltip_author_ferber').qtip("hide");
		if($('#content_tooltip_author_langille').data("qtip")) $('#content_tooltip_author_langille').qtip("hide");
		if($('#content_tooltip_author_berger').data("qtip")) $('#content_tooltip_author_berger').qtip("hide");
		if($('#content_tooltip').data("qtip")) $('#content_tooltip').qtip("hide");
		if($('#morsel_tooltip').data("qtip")) $('#morsel_tooltip').qtip("hide");
		if($('#patient_tooltip').data("qtip")) $('#patient_tooltip').qtip("hide");
	});
	
	$('#footer').click(function(){  
		if($('#content_tooltip_author').data("qtip")) $('#content_tooltip_author').qtip("hide");
		if($('#content_tooltip_author_a').data("qtip")) $('#content_tooltip_author_a').qtip("hide");
		if($('#content_tooltip_author_greengard').data("qtip")) $('#content_tooltip_author_greengard').qtip("hide");
		if($('#content_tooltip_author_lisa').data("qtip")) $('#content_tooltip_author_lisa').qtip("hide");
		if($('#content_tooltip_author_melba').data("qtip")) $('#content_tooltip_author_melba').qtip("hide");
		if($('#content_tooltip_paula').data("qtip")) $('#content_tooltip_paula').qtip("hide");
		if($('#content_tooltip_author_ferber').data("qtip")) $('#content_tooltip_author_ferber').qtip("hide");
		if($('#content_tooltip_author_langille').data("qtip")) $('#content_tooltip_author_langille').qtip("hide");
		if($('#content_tooltip_author_berger').data("qtip")) $('#content_tooltip_author_berger').qtip("hide");
		if($('#content_tooltip').data("qtip")) $('#content_tooltip').qtip("hide");
		if($('#morsel_tooltip').data("qtip")) $('#morsel_tooltip').qtip("hide");
		if($('#patient_tooltip').data("qtip")) $('#patient_tooltip').qtip("hide");
		});
	
	
	
	
	$('#close_tooltip_author').live('click', function() {
		$('#content_tooltip_author').qtip("hide");
	});
	
   $('#content_tooltip_author')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Britta Barrett</p><p>Britta is a communicator by day and an avid athlete by night/weekend. She has a passion for running, skiing, good food & wine, music, friends and family. She has a real enthusiasm for living life to the fullest. As an east coaster living in Wisconsin, she has vowed to never abandon her Red Sox for the Brewers. Britta is a 2005 graduate of Bentley University where she studied management and marketing.</p><p id="close_tooltip_author" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
	  
	  
	  $('#close_tooltip_paula').live('click', function() {
		$('#content_tooltip_paula').qtip("hide");
	});
	
   $('#content_tooltip_paula')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Paula Dranov</p><p>Paula Dranov is an award-winning free lance writer who specializes in health, women\'s health, nutrition and fitness and writes on a regular basis for <a href="http://www.drweil.com" target="_blank" style="color:#0E91ED;">www.drweil.com</a> , Dr. Andrew Weil\'s website. She has contributed to many national magazines including Reader\'s Digest, the Ladies Home Journal, Woman\'s Day, Good Housekeeping, Harper\'s Bazaar, Cosmopolitan, Redbook and others.  Paula is also the author of seven books.  She lives in New York City with a very demanding (but gorgeous) rescue cat, loves New York\'s restaurants, the beach, travel, theater, ballet, movies and vegging out on the couch watching TV.</p><p id="close_tooltip_paula" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
	     
	  	
	$('#close_tooltip_author_a').live('click', function() {
		$('#content_tooltip_author_a').qtip("hide");
	});
	
   $('#content_tooltip_author_a')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Veronica Botet Garcia</p><p>Since Veronica graduated in PR and Communications from Complutense University (Madrid, Spain) she has pursued the dream of communicating with a global audience. Working for GE Healthcare as the lead in Digital Media Communications has made that dream come true, while enjoying living in the city she loves the most, Madrid.</p><p id="close_tooltip_author_a" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
	  
	  $('#close_tooltip_author_greengard').live('click', function() {
		$('#content_tooltip_author_greengard').qtip("hide");
	});
	
   $('#content_tooltip_author_greengard')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Sam Greengard</p><p>Sam\'s writing specialties include technology, health, business and science. His articles have appeared in AARP The Magazine, Discover, Family Circle, Healthline.com, Wired and many other websites and publications. Sam has captured numerous journalism awards over the span of more than 25 years and he is a past president of the American Society of Journalists and Authors. The West Linn, Oregon resident has completed 13 marathons, including Boston. Other passions include world travel, reading, photography, vegetarian cooking and sipping green tea. You can learn more about Sam at <a href="http://www.greengard.com" target="_blank" style="color:#0E91ED;">www.greengard.com</a>.</p><p id="close_tooltip_author_greengard" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
	  
	  $('#close_tooltip_author_lisa').live('click', function() {
		$('#content_tooltip_author_lisa').qtip("hide");
	});
	
   $('#content_tooltip_author_lisa')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Lisa Collier Cool</p><p>Lisa is a bestselling author and winner of 18 journalism awards. She was first published at age 9 in <i>Ladies Home Journal</i> (a letter to the editor). A past president of American Society of Journalists and Authors, she has more than one million words in print, including articles in <i>Reader\'s Digest</i>, <i>Parade</i>, <i>Fitness</i>, <i>SELF</i> and <i>Oprah Magazine</i>. She loves snorkeling, tennis, gardening and swimming with dolphins. A native New Yorker, she has three daughters (including identical twins) and two badly behaved border terriers. Her website is <a href="http://www.lisacolliercool.com" target="_blank" style="color:#0E91ED;">lisacolliercool.com</a>.</p><p id="close_tooltip_author_lisa" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
	  $('#close_tooltip_author_melba').live('click', function() {
		$('#content_tooltip_author_melba').qtip("hide");
	});	  
	  
	  $('#content_tooltip_author_melba')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Melba Newsome</p><p>Melba is an award-winning writer with feature credits in many publications including, <i>O</i>, the <i>Oprah Magazine</i>, <i>Time</i>, <i>Maxim</i>, <i>Details</i>, <i>Reader\'s Digest</i>, <i>Glamour</i>, <i>Men\'s Health</i> and the <i>New York Times</i>. Her passions including travel, politics, literature and gourmet cooking. She lives in Charlotte, NC where she promises to start a vegetable garden every year.</p><p id="close_tooltip_author_melba" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
		$('#close_tooltip_author_ferber').live('click', function() {
		$('#content_tooltip_author_ferber').qtip("hide");
	});
	
   $('#content_tooltip_author_ferber')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Dan Ferber</p><p>Dan Ferber is an award-winning writer and coauthor, with Paul Epstein, MD, of the upcoming book, <a href="http://www.danferber.com/books.php" target="_blank" style="color:#0E91ED;">Changing Planet, Changing Health: How Climate Change Threatens Our Health and What We Can Do About It</a> (University of California Press, April 2011). His writing about science, technology, health and the environment has appeared in many national publications, including Reader\'s Digest, Women\'s Health, Popular Science, and Audubon. He lives in Indianapolis with his wife, two daughters, and an ridiculously happy black Lab, and he loves hiking, canoeing and the ancient Chinese art of t\'ai chi. His website is <a href="http://danferber.com/" target="_blank" style="color:#0E91ED;">danferber.com</a>.</p><p id="close_tooltip_author_ferber" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
		$('#close_tooltip_author_langille').live('click', function() {
		$('#content_tooltip_author_langille').qtip("hide");
	});
	
   $('#content_tooltip_author_langille')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Jane Langille</p><p>Jane Langille is a freelance writer who began writing travel stories but now specializes in health and medical writing. Her work has appeared in national Canadian publications and websites including The Globe and Mail,More, Cottage Life and Best Health online. Jane is a member of the Professional Writers Association of Canada and the Association of Health Care Journalists. She loves running, biking, and sea kayaking and is a certified scuba diver. Based in the Toronto area, she has two active children who are now both in university. Her website is <a href="http://janelangille.com/" target="_blank" style="color:#0E91ED;">janelangille.com</a></p><p id="close_tooltip_author_langille" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
		
		
		$('#close_tooltip_author_berger').live('click', function() {
		$('#content_tooltip_author_berger').qtip("hide");
	});
	
   $('#content_tooltip_author_berger')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p style="font-weight:bold;color:#0E91ED;text-align:left;font-size:14px;">Karen Berger</p><p>Karen\'s writing specialties include travel (with a special interest in ecotourism), health and fitness, and music. She is the author of 15 books, and has written for dozens of magazine and newspapers including <i>Family Circle</i>, <i>National Geographic Traveler</i>, <i>Islands</i>, and the <i>New York Times</i>. She is the Ecotourism and Volunteer Travel Feature Writer for <a href="http://www.suite101.com/profile.cfm/karenberger" target="_blank" style="color:#0E91ED;">Suite101.com</a>, where she has covered everything from grooming elephants in Thailand to ice-climbing in Alaska, as well as travel health and safety. She lives in the Berkshires of western Massachusetts. Her website is <a href="http://www.karenberger.com/" target="_blank" style="color:#0E91ED;">karenberger.com</a>. </p><p id="close_tooltip_author_berger" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'bottomRight', 
                     target: 'topLeft' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:400,
                  name: 'light'
               }
            });
      });
	  
	 	  
	  	  
	  $('#close_tooltip').live('click', function() {
		$('#content_tooltip').qtip("hide");
		});
	
   $('#content_tooltip')
      .click(function()
      {       
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<p>Blogging Policy:<br /><br />* We will tell the truth and correct any mistakes promptly.<br />* We will not delete comments unless they are profane, spam, off-topic, defamatory or thread spamming (you\'ve posted this same comment elsewhere on the site).<br />* We will reply to comments when appropriate as quickly as possible.<br />* We will disagree with other opinions respectfully.<br /><br />Comments are welcome anytime; however, please note that your comment needs to be approved by the site owner before it will appear. The site owner generally operates between 9 am and 6 pm ET Monday - Friday. Thanks for your patience.</p><p id="close_tooltip" style="font-weight:bold;color:#0E91ED;cursor:pointer;text-align:right;">close</p>  ', 
               position: {
                  corner: {
                     tooltip: 'leftMiddle', 
                     target: 'rightMiddle' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true, 
               style: {
                  border: {
                     width: 1,
                     radius: 5
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:500,
                  name: 'light'
               }
            });
      });
 	  
	  $('#morsel_tooltip')
      .click(function()
      {       
		if( $('div.qtip').is(':hidden') ||  $('div.qtip').length == 0) {
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<div class="morsel_tooltip"><p><img src=\'/wp-content/themes/hm2010/images/fb_icon.png\'><span class="morsel_tooltitle">For Facebook</span> Visit <a href="http://apps.facebook.com/morsel-app/" target="_blank" class="linkTracking-mobile TrackFacebook" >apps.facebook.com/morsel-app</a> </p> <p><img src=\'/wp-content/themes/hm2010/images/iphone_icon.gif\'><span class="morsel_tooltitle">For iPhone or iPod Touch</span><a href="http://itunes.apple.com/us/app/morsel-2-0/id378392735?mt=8" target="_blank" class="linkTracking-mobile TrackApple">Download to your device from the Apple App Store.</a> </p><p><img src=\'/wp-content/themes/hm2010/images/android_icon.gif\'><span class="morsel_tooltitle">For Android</span><a href="http://www.android.com/market" target="_blank" class="linkTracking-mobile TrackAndroid">Download to your device from the Android Market.</a></p><p><img src=\'/wp-content/themes/hm2010/images/cellphone_icon.gif\'><span class="morsel_tooltitle">For Mobile Site</span>Visit <a href="http://healthymagination.com/morsel" class="linkTracking-mobile TrackPhone">http://healthymagination.com/morsel</a> on your phone</p><p class="last"><img src=\'/wp-content/themes/hm2010/images/blackberry_icon.gif\'><span class="morsel_tooltitle">For Blackberry</span><a href="http://appworld.blackberry.com/webstore/content/13220" target="_blank" class="linkTracking-mobile TrackBB">Download to your device from the Blackberry Store.</a></p>', 
               position: {
                  corner: {
                     tooltip: 'leftMiddle', 
                     target: 'rightMiddle' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true,
			   style: {
                  border: {
                     width: 1,
					 radius: 5 
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:305,
                  name: 'light'
               }
            });
      }else{
		if($(this).data("qtip")) $(this).qtip("destroy");
	 }
	 });
	 
	 
	 	  $('#patient_tooltip')
      .click(function()
      {       
		if( $('div.qtip').is(':hidden') ||  $('div.qtip').length == 0) {
		if($(this).data("qtip")) $(this).qtip("destroy");
         $(this).qtip({
               content: '<div class="morsel_tooltip"><p><img src=\'/wp-content/themes/hm2010/images/iphone_icon.gif\'><span class="morsel_tooltitle">For iPhone</span><a href="http://itunes.apple.com/us/app/patient-shuffle/id405502623?mt=8 " target="_blank">Download from the App Store</a> </p> <p><img src=\'/wp-content/themes/hm2010/images/ipad_icon.gif\'><span class="morsel_tooltitle">For iPad</span><a href="http://itunes.apple.com/us/app/patient-shuffle-for-ipad/id406080947?mt=8" target="_blank">Download from the App Store</a> </p>', 
               position: {
                  corner: {
                     tooltip: 'leftMiddle', 
                     target: 'rightMiddle' 
                  }
               },
               show: {
                  when: false, 
                  ready: true 
               },
               hide: true,
			   style: {
                  border: {
                     width: 1,
					 radius: 5 
                  },
                  padding: 10, 
                  textAlign: 'left',
                  tip: true, 
				  width:305,
                  name: 'light'
               }
            });
      }else{
		if($(this).data("qtip")) $(this).qtip("destroy");
	 }
	 });
});
	 
	 
