(3669,232,0.20,'smarty','0','Page created.',1115337916,16,'128.187.0.164','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<h1> Resources </h1>\r\n\r\n<div>\r\n\r\nBelow are trusted medical resources to help you learn about typical medical questions.  You can use these resources to help you be prepared for your doctor visits, or to learn more about symptoms and diagnosises.\r\n\r\n</div>\r\n\r\n<div>\r\n<p>&middot;&nbsp;<a href=\"http://my.webmd.com/webmd_today/home/default\" target=_blank>WebMD</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.healthatoz.com/healthatoz/Atoz/default.jsp\" target=_blank>Health A to Z</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.ahrq.gov\" target=_blank>Agency for Health Care Research and Quality</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.eatright.org\" target=_blank>Eat Right</a><br /></p>\r\n\r\n</div>');
INSERT INTO `_page_history` VALUES (3670,232,0.21,'smarty','0','Page created.',1115338109,16,'128.187.0.164','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<h1> Resources </h1>\r\n\r\n<div>\r\n\r\nBelow are trusted medical resources to help you learn about typical medical questions.  You can use these resources to help you be prepared for your doctor visits, or to learn more about symptoms and diagnosises.\r\n\r\n</div>\r\n\r\n<div>\r\n<p>&middot;&nbsp;<a href=\"http://my.webmd.com/webmd_today/home/default\" target=_blank>WebMD</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.healthatoz.com/healthatoz/Atoz/default.jsp\" target=_blank>Health A to Z</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.ahrq.gov\" target=_blank>Agency for Health Care Research and Quality</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.eatright.org\" target=_blank>Eat Right</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.health.nih.gov\" target=_blank>National Institute of Health</a><br /></p>\r\n</div>'),(3671,232,0.22,'smarty','0','Page created.',1115340806,16,'128.187.0.164','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n<h1> Resources </h1>\r\n\r\n<div>\r\n\r\nBelow are trusted medical resources to help you learn about typical medical questions.  You can use these resources to help you be prepared for your doctor visits, or to learn more about symptoms and diagnosises.\r\n\r\n</div>\r\n\r\n<div>\r\n<p>&middot;&nbsp;<a href=\"http://my.webmd.com/webmd_today/home/default\" target=_blank>WebMD</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.healthatoz.com/healthatoz/Atoz/default.jsp\" target=_blank>Health A to Z</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.ahrq.gov\" target=_blank>Agency for Health Care Research and Quality</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.eatright.org\" target=_blank>Eat Right</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.health.nih.gov\" target=_blank>National Institute of Health</a><br /></p>\r\n<p>&middot;&nbsp;<a href=\"http://www.5aday.gov\" target=_blank>5 to 9 a day!</a><br /></p>\r\n</div>'),(3672,118,0.14,'smarty','0','Page created.',1115343258,16,'128.187.0.164','<h1 class=\"underline\">HELP!</h1>\r\n\r\n\r\n<div align=\"center\" style=\"text-align:left;\">\r\nBelow you will find two ways to get help and answer your questions.  The FAQ (Frequently Asked Questions) page may have the answer to the question that you have.  If your question is still unanswered then click on the Contact us link to send us your question:\r\n<ul>\r\n	{toc_display start_id=$page.id level_limit=1 hide_start=1}\r\n		{literal}\r\n			<li><a href=\"?pg={$toc_pageName}\" style=\"color:#003366;\">{$toc_title}</a></li>\r\n		{/literal}\r\n	{/toc_display}\r\n</ul>\r\n</div>'),(3692,231,0.31,'smarty','0','Page created.',1115867933,2,'66.182.95.52','<h2>eHealthCompete </h2>\r\n\r\n\r\n<p> Companies\r\n<ol>\r\n	<li>Company preferences\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		group_preferences<br />\r\n		</b></li>\r\n	<li>Companies specify what modules they will use, i.e. competitions, incentives, \r\n		survey system, sabotage store, competition ending emails, etc.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		modules<br />\r\n		group_modules<br />\r\n		</b></li>\r\n	<li>Large competitions to only show the top XX teams along with the team that \r\n		the logged in user is on.</li>\r\n	<li>Create their own incenitve programs, own tracking variables company wide.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		group_stat_categories<br />\r\n		group_stat_incentives<br />\r\n		group_incentive_rewards<br />\r\n		</b></li>\r\n	<li>Award points to the variables on My Home based on certain time windows, \r\n		instead of their who history.</li>\r\n	<li>Promotional codes for competition creation.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		cart_discounts<br />\r\n		</b></li>\r\n	<li>Automatic email reminders to login and update their stats and take the \r\n		incentive surveys.  These reminders should be twice weekly, and customized \r\n		to the company.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		group_reminders<br />\r\n		</b></li>\r\n	<li>Companies can choose to use our 3 incentive surveys or use their own, or a \r\n		combo of the 2.</li>\r\n	<li>Tutorials all over the site.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		_page_help<br />\r\n		</b></li>\r\n	<li>Clean up both sites - delete unused pages, etc</li>\r\n	<li>Ability for employees to redeem incentive points in our store for discounts on \r\n		the products.</li>\r\n	<li>Add more graphs, graphical displays, star stats, and fun tools.</li>\r\n	<li>Make coordinators able to create new competitions with new calculations.  So if \r\n		they wanted to do #of veggies a day, there could be a leaderboard for that.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		default_stat_categories<br />\r\n		user_stat_categories<br />\r\n		</b></li>\r\n	<li>Create point thresholds that notify the user that they have reached a reward \r\n		level and can contact their employer, or continue to accumulate points to \r\n		get to the next point level. <b>(See #4)</b></li>\r\n	<li>Goal management like on the Apple Program, that rewards points to those users \r\n		who report their goals when they should, and that rewards employees for \r\n		reaching their goals.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		goal_types<br />\r\n		group_goals<br />\r\n		user_goals<br />\r\n		user_goal_stats<br />\r\n		group_goal_incentives<br />\r\n		</b></li>\r\n	<li>On the incentive page break down points like this...Standard Incntive points \r\n		(from the surveys we already have there), goal points (points received for \r\n		being active in our new goal system), Company Incentive points (based on \r\n		different quizes and surveys that the employer creates to go along with \r\n		their custome incentive programs and competitions), Forum Points (based on \r\n		the # of points that they receive from viewing and posting comments), points \r\n		based on the entries on My Home, etc.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		group_survey_incentives<br />\r\n		group_forum_incentives<br />\r\n		</b></li>\r\n	<li>Nail down the report section, make it user friendly useful.  Hide some stats.</li>\r\n	<li>Make the site work with Apple computers.</li>\r\n	<li>Second Leader board option (a link at the top that switches to the other \r\n		measurement of their choice).</li>\r\n	<li>Customer service questions are directed to the company and then the coodinator \r\n		can send us customer service questions if they can\'t help.</li>\r\n</ol>\r\nEmployees\r\n<ol>\r\n	<li>Employees can create personal family competitions and invite their friends.\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		group_accounts<br />\r\n		group_charges<br />\r\n		</b></li>\r\n	<li>Employee prefrences allowing them to create their own tracking variables\r\n		<br /><b>\r\n		<u>New Tables:</u><br />\r\n		user_preferences<br />\r\n		</b></li>\r\n	<li>Employees can assign themselves to a team, saving me, or the coordinator a lot of time.</li>\r\n</ol>\r\n\r\n\r\n\r\n\r\n\r\n\r\n</p><p><h2>WeightLossWars.com</h2>'),(2212,109,0.23,'smarty','0','Fixed... did not have a closing form tag.',1095648842,74,'128.187.0.165','{include_php file=\"shared_handle:contactForm\"}\r\n\r\n<h1 class=\"underline\">Contact Us</h1>\r\n\r\n<strong>You can contact us by E-mail, phone, or U.S. mail. </strong><br><br>\r\n\r\n<form name=\"contactForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"mfName\" value=\"{$smarty.request.mfName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"mfEmail\" value=\"{$smarty.request.mfEmail|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your Phone:</span></td>\r\n	<td><input type=\"text\" name=\"mfPhone\" value=\"{$smarty.request.mfPhone|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td><span>Subject:</span></td>\r\n	<td><input type=\"text\" name=\"mfSubject\" value=\"{$smarty.request.mfSubject|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Message Body:</span></td>\r\n	<td><textarea cols=\"35\" rows=\"6\" name=\"mfMessage\">{$smarty.request.mfMessage|stripslashes|htmlspecialchars}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n<div class=\"underline\">&nbsp;</div>\r\n<br />\r\n<table>\r\n<tr>\r\n	<td><span>E-Mail:</span></td>\r\n	<td><span><strong>Fill out the form above or email us at <br>{mailto address=\"customerservice@weightlosswars.com\" text=\"customerservice@weightlosswars.com\" encode=\"javascript\"}</strong></span></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Phone:</span></td>\r\n	<td><span><strong>1-510-415-3030</strong></span></td>\r\n</tr>\r\n<!--tr>\r\n	<td><span>Fax:</span></td>\r\n	<td><span><strong>1-801-555-5555 </strong></span></td>\r\n</tr-->\r\n<tr>\r\n	<td valign=\"top\" nowrap><span><br>U.S. Mail: &nbsp; &nbsp; </span></td>\r\n	<td><span><strong><br>WeightLossWars, L.L.C. <br>\r\n			2111 N. 120 W. #263<br>\r\n			Provo, UT 84604</strong></span></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n'),(2213,157,0.12,'smarty','0','Page created.',1095657146,74,'128.187.245.111','<h1 class=\"underline\">Personal Trainers</h1>\r\n<br />\r\n<h2 class=\"withBG\">Get the Edge on your Competitors?</h2>\r\n\r\n<img src=\"{$skinFolder}images/ptpic.jpg\" align=\"right\" width=\"174\" height=\"145\" alt=\"\" class=\"img1\" hspace=\"20\" vspace=\"20\"/><br />\r\n\r\n<div align=\"left\" class=\"info\">\r\n	At WeightLossWars.com, you give us your schedule and exercise preferences and we\'ll give you a fitness program perfect for you lifestyle.  This fitness plan isn’t created by a computer; it is created by a Certified Personal Trainer who learns your specific needs.\r\n\r\n<p>At WeightLossWars you get\r\n<ul>	<li>A customized fitness plan perfect for your lifestyle and goals<br /></li>\r\n	<li>Free Unlimited email access to your Certified Personal Trainer<br /></li>\r\n	<li>Motivational email reminders to help you stay on track<br /></li>\r\n	<li>Free plan adjustments tailored to your changing needs<br /></li>\r\n</ul></p>\r\n\r\n<p>It’s Easy, Here’s how it works\r\n<ol style=\"a\">	\r\n	<li>Send us a Personal Trainer request by clicking on the “Schedule an appointment” button below.<br /></li>\r\n	<li>Our Personal Training staff will contact you to schedule an appointment with your own personal trainer.<br /></li>\r\n	<li>Your Trainer will then call you to begin building your totally customized fitness plan. <br /></li>\r\n</ol>\r\n</p>\r\n\r\n<p>      \r\nYou will receive a PERSONALIZED plan based on your exact needs via email and your trainer will contact you to discuss the plan details.  All of this for only $39.\r\nIt’s that simple!\r\n</p>\r\n<p>Sign up by clicking the button below.\r\n</p>\r\n</div>\r\n<br />\r\n\r\n<div class=\"hBox\" style=\"margin:0px;padding:10px;\" align=\"right\">\r\n	<a href=\"?pg=trainers/contact\" class=\"button\">Schedule an appointment.</a> \r\n'),(2214,157,0.13,'smarty','0','Page created.',1095657982,74,'128.187.0.165','<h1 class=\"underline\">Dietitians</h1>\r\n<br />\r\n<h2 class=\"withBG\">Get the Edge on your Competitors?</h2>\r\n\r\n<img src=\"{$skinFolder}images/ptpic.jpg\" align=\"right\" width=\"174\" height=\"145\" alt=\"\" class=\"img1\" hspace=\"20\" vspace=\"20\"/><br />\r\n\r\n<div align=\"left\" class=\"info\">\r\n	Eating the right foods and the right amount is critical to losing weight—it doesn\'t just happen.  You\'ve probably tried dieting before…but this time, you can have a personal nutrition coach!  Get an edge over your opponents by learning what YOU should eat to reach YOUR weight goal!  Weightlosswars.com offers personalized diet plans and diet counseling from Registered Dietitians!\r\n<p>Our dietitians will:\r\n<ul>	<li>Create a personalized diet plan for you based on YOUR goals and YOUR preferences<br /></li>\r\n	<li>Educate you about healthy eating and guide you on such dilemmas as eating out and reading food labels<br /></li>\r\n	<li>Motivate you through regular email correspondence<br /></li>\r\n	<li>Follow your progress and adjust your plan if needed <br /></li>\r\n</ul></p>\r\n\r\n<p>It’s Easy, Here’s how it works\r\n<ol style=\"a\">	\r\n	<li>Submit a request for a diet plan by clicking the “Schedule an appointment” button below.<br /></li>\r\n	<li>Our staff will contact you to schedule an appointment with your own personal trainer.<br /></li>\r\n	<li>Your Trainer will then call you to begin building your totally customized fitness plan. <br /></li>\r\n</ol>\r\n</p>\r\n\r\n<p>      \r\nYou will receive a PERSONALIZED plan based on your exact needs via email and your trainer will contact you to discuss the plan details.  All of this for only $39.\r\nIt’s that simple!\r\n</p>\r\n<p>Sign up by clicking the button below.\r\n</p>\r\n</div>\r\n<br />\r\n\r\n<div class=\"hBox\" style=\"margin:0px;padding:10px;\" align=\"right\">\r\n	<a href=\"?pg=trainers/contact\" class=\"button\">Schedule an appointment.</a> \r\n'),(2979,116,0.51,'smarty','1','changed the WLW words to EHC',1106278425,16,'128.187.0.165','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.createInvitation\"}\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 2</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'makeInvite\', \'hideMakeInvite\', \'showHide\');\"><img id=\"makeInvite_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideMakeInvite eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Create Your Invitation Letter:</h2>\r\n	<input type=\"hidden\" id=\"hideMakeInvite\" name=\"newcomp[hideMakeInvite]\" value=\"{$newcomp.hideMakeInvite|default:\"0\"}\">\r\n<div>	\r\n	In this step you can create an email message informing your employees about this new competition.<br /><br />\r\n	You can select an Example letter or a fill-in-the-blanks letter to Edit.  If you don\'t like any of those letters then simply click on \r\n	<b>\'Create My Own\'</b> below and write your own invitation.  <p>When your email is sent, eHealthCompete will add a link \r\n	at the bottom of your letter that your employees can click to enter this competition. When you are finished with your letter click <b>\'Next\'</b>.</div>\r\n\r\n<div id=\"makeInvite\" style=\"display:{if $newcomp.hideMakeInvite eq 1}none{else}block{/if};\">	\r\n	{toc_next assign=\"next\"}\r\n	{toc_prev assign=\"prev\"}\r\n		\r\n	<br />\r\n	\r\n	<table>\r\n	<tr>\r\n		<td valign=\"top\"><div>\r\n			<h2 class=\"withBG\">Examples:</h2>\r\n			<div style=\"margin:0px 10px 0px 10px;\">\r\n				{foreach from=$examples key=\"key\" item=\"example\"}\r\n					<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n				{foreachelse}\r\n					Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n				{/foreach}\r\n			</div>\r\n		</div></td>\r\n		<td>\r\n			<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n			<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"500\">\r\n			<tr>\r\n				<td><div>\r\n					{if $madlibs|@count}\r\n						<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n							<option value=\"\">(Fill-in-the-Blanks)</option>\r\n						{foreach from=$madlibs item=\"madlib\"}\r\n							<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n						{/foreach}\r\n						</select>\r\n					{else}\r\n						No Madlibs Available!\r\n					{/if}\r\n					<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n				</div></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\"left\">\r\n					<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n						{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n							<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n						{/foreach}\r\n						</div>\r\n	\r\n					<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n						<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" style=\"width:480px;\" class=\"textarea\"></textarea></div>\r\n				</td>\r\n			</tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n<br />\r\n\r\n<div class=\"hBox\" style=\"text-align:right;margin:0px;\"\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	\r\n	function toggleType(type) {\r\n		if (type == \'customLetter\') {\r\n			document.getElementById(\'customLetter\').style.display = \'block\';\r\n			document.getElementById(\'madlib\').style.display = \'none\';\r\n			document.getElementById(\'letterType\').value = \'customLetter\';\r\n			var madlibsElm = document.getElementById(\'madlibsElement\');\r\n			if (madlibsElm) {\r\n				madlibsElm.selectedIndex = 0;\r\n			}\r\n		} else {\r\n			document.getElementById(\'customLetter\').style.display = \'none\';\r\n			document.getElementById(\'madlib\').style.display = \'block\';\r\n			document.getElementById(\'letterType\').value = \'madlib\';\r\n		}\r\n	}\r\n	\r\n	function setExample(key) {\r\n		toggleType(\'customLetter\');\r\n		var ta = document.getElementById(\'customLetterElement\');\r\n	\r\n		if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n			ta.value = examples[key];\r\n		}\r\n	}\r\n	\r\n	function setMadlib(key) {\r\n		var obj;\r\n		key--;\r\n		toggleType(\'madlib\');	\r\n		for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n			obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n		}\r\n	}\r\n	{/literal}\r\n</script>'),(2612,1,2.87,'smarty','0','Redirect to myhome if logged in',1102459920,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{redirect href=\"?pg=myhome\"}\r\n{/if}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/home.tpl\"}'),(2722,99,3.45,'smarty','0','commented Team Management Lbs and Wt. columns, only showing %',1103527741,2,'67.166.75.78','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/comp_layout2.tpl\"}\r\n\r\n{include_php file=\"shared_handle:competition.load\"}\r\n{if $competition.userId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	<!-- ismanager -->\r\n	{include_php file=\"shared_handle:competition.manageTeams\"}\r\n	{include_php file=\"shared_handle:competition.managePlayers\"}\r\n	{include_php file=\"shared_handle:competition.load\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition.verifyInitialPot\"}\r\n<div id=\"jackpot\">{if $competition.potAmount gt 0}${$competition.potAmount|number_format:2}{/if}</div>\r\n<h1 class=\"underline\">{$competition.title|default:\"Competition Title\"}</h1>\r\n\r\n{* ******************************** COMPETITION END *********************************** *}\r\n{if $competition.endDate lt $smarty.now}   {* COMPETITION IS OVER *}\r\n	<div style=\"width:480px;\">\r\n	{if $competition.results.winners|@count eq 1}\r\n		{* There was one winner, either by scoringMethod or tieBreakerMethod *}\r\n\r\n		{math assign=\"daysOfCompetition\" equation=\"(x - y) / z\" x=$competition.endDate y=$competition.startDate z=\"86400\"}\r\n		{math assign=\"marginOfVictory\" equation=\"x - y\" x=$competition.results.winningStat y=$competition.results.secondPlaceStat}\r\n\r\n		{foreach from=$competition.results.winners item=\"winnerData\" key=\"winnerName\"}\r\n			\r\n			<h2><br /><b>{$winnerName}</b> wins{if $competition.potAmount} <b>$<i>{$competition.potAmount|number_format:2}</i></b>{/if}!</h2>\r\n			<br />\r\n			{if not $competition.results.isTie}   {* Not a Tie *}\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> days of weight loss rumble, <b>{$winnerName}</b> is the Winner! Based on <b>{$competition.results.winningMethod}</b>, <b>{$winnerName}</b> wins after losing <b>{$competition.results.winningStat|number_format:2} {if $competition.results.winningMethod eq \"Weight Lost\"}pounds{else}% body weight{/if}</b>.\r\n			{else}                                {* A Tie! *}\r\n				{assign var=\"weightLost\" value=\"Weight Lost\"}\r\n				{assign var=\"percentLost\" value=\"Percentage Weight Lost\"}\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> days of weight loss rumble, there was a tie in the judging method, <b>{$competition.scoringMethod}</b>. To break this tie, the selected tie breaking method, <b>{$competition.tieBreakerMethod}</b>, was used to determine <b>{$winnerName}</b> as the winner. <b>{$winnerName}</b> lost <b>{$winnerData.$weightLost|number_format:0} pounds</b>, which was <b>{$winnerData.$percentLost|number_format:4}%</b> body weight.\r\n			{/if}\r\n			<br />\r\n			<br />\r\n			<b>{$winnerName}</b> won with a <b>{$marginOfVictory|number_format:4}</b> margin over {foreach from=$competition.results.losers item=\"loser\" key=\"loserName\"}<b>{$loserName}</b>{php}break;{/php}{/foreach}.\r\n			\r\n			<h2><br />Congratulations to you all!</h2>\r\n			<br />\r\n			<div class=\"underline\"></div>\r\n		{/foreach}\r\n\r\n	{elseif $competition.results.winners|@count gt 1}\r\n		{* There were multiple winners, even after tieBreakerMethod (should RARELY happen) *}\r\n	\r\n		<h2>There was a tie in this competition. The winners, by <b>{$competition.results.winningMethod}</b> having lost <b>{$competition.results.winningStat}</b>, are:<br /></h2>\r\n		<ul>\r\n		{foreach from=$competition.results.winners item=\"winnerData\" key=\"winnerName\"}\r\n			<li>{$winnerName}</li>\r\n		{/foreach}\r\n		</ul>\r\n		\r\n	{else}\r\n		{* For some reason, there were no winners *}\r\n\r\n		<h2><br />Sorry, we were unable to determine the winner of this competition! This may have been caused by an error.<br /><br /></h2>\r\n	{/if}\r\n	This competition has ended and is no longer active.<br />\r\n	</div>\r\n{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small style=\"color:#FFF;\">(${$competition.individualPotAmount} from {$competition.potMethod})</small>{/if}</div>\r\n\r\n{if $competition.startDate lt $smarty.now}\r\n	Time remaining: <b>{$competition.timeLeft}</b><br />\r\n{else}\r\n	This competition has not yet started!<br />\r\n{/if}\r\n\r\nStart{if $competition.startDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.startDate|date_format2:\"n/j/Y\"}</b> &nbsp; \r\nEnd{if $competition.endDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.endDate|date_format2:\"n/j/Y\"}</b></br>\r\n<div style=\"font-size:5px;clear:left;\">&nbsp;</div>\r\n{assign var=\"scoringMethod\" value=$competition.scoringMethod}\r\n{assign var=\"tieBreakerMethod\" value=$competition.tieBreakerMethod}\r\n{assign var=\"weeklyWinnersMethod1\" value=$competition.weeklyWinnersMethod1}\r\n{assign var=\"weeklyWinnersMethod2\" value=$competition.weeklyWinnersMethod2}\r\n\r\n{* ******************** WEEKLY WINNERS ********************* *}\r\n{if $competition.weeklyWinners}\r\n	{if $weeklyWinnersMethod1}             {* DON\'T FORGET TO REMOVE THE ACM CHECK WHEN READY!!! *}\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n			<a href=\"javascript:toggle(\'weeklyWinners\', \'\', \'showHide\');\"><img id=\"weeklyWinners_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n			Last Weeks Winners<i>!</i> <small style=\"color:#000; font-size:11px;\">(<i><b>{$competition.weeklyWinners.startDate|date_format2:\"D n/j\"}</b> through <b>{$competition.weeklyWinners.endDate|date_format2:\"D n/j\"}</b></i>)</small></h2> \r\n		<div id=\"weeklyWinners\">\r\n		<table width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod1}</div>\r\n		<img src=\"{$skinFolder}images/winner_1.gif\" style=\"float:left;\" />\r\n		{strip}\r\n		{foreach name=\"method1\" from=$competition.weeklyWinners.$weeklyWinnersMethod1 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod1}\r\n			{if $smarty.foreach.method1.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method1.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method1.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> led the way last week by \r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{else}<b>default</b>{/if}\r\n			{else}\r\n				{if $smarty.foreach.method1.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod2} \r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod2}</div>\r\n		<img src=\"{$skinFolder}images/winner_2.gif\" style=\"float:left;\" />\r\n		{* display var=$competition.weeklyWinners.users *}\r\n		{strip}\r\n		{foreach name=\"method2\" from=$competition.weeklyWinners.$weeklyWinnersMethod2 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod2}\r\n			\r\n			{if $smarty.foreach.method2.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method2.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method2.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> won by \r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{/if}\r\n			{else}\r\n				{if $smarty.foreach.method2.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod1}\r\n	</tr></table></div>{/if}\r\n{/if}\r\n{* ********************************************************* *}\r\n\r\n{if $acm->isDomainAdmin() and $smarty.request.debug}\r\n	{display var=$competition}\r\n{/if} \r\n\r\n{* ******************************** COMPARISON GRAPHS ***************************************** *}\r\n{if $competition.availableGraphs|@count}\r\n{include_php file=\"shared_handle:competition.graphs\"}\r\n<h2 class=\"withBG\"><a name=\"graph\"></a>\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'graphs\', \'\', \'showHide\');\"><img id=\"graphs_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Comparison Graphs &nbsp; <small><i>No graph? <a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">click here</a> to download the free Flash Player plug-in.</i></small></h2>\r\n<div id=\"graphs\" style=\"display:block;\">\r\n	<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n	{if $competition.scoringMethod eq \"Distance Exercised\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=distanceExercised&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{elseif $competition.scoringMethod eq \"Minutes Exercise\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=minutesExercise&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{else}  {* weight lost, percent lost, weight gained, etc... *}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=weight&fillPrevious=1&precision=0&totalChange=1&format=wide\"}\r\n	{/if}\r\n	<tr>\r\n		<td><div style=\"border:#999 1px solid;background-color:#FFF;padding:5px;\"><iframe name=\"graphwindow\" src=\"{$graphURL}\" frameborder=\"0\" width=\"625\" height=\"220\" scrollbars=\"no\"></iframe></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td valign=\"top\" align=\"center\" width=\"100%\">\r\n		<small>\r\n		{foreach name=\"graphTypes\" from=$compData.availableGraphs key=\"graphType\" value=\"graphParams\"}\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&{$graphParams}\" target=\"graphwindow\">{$graphType}</a>{if $smary.foreach.graphTypes.iteration eq $compData.availableGraphs|@count} | {/if}\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	{* <tr>\r\n		<td colspan=\"2\">\r\n			<h3 class=\"withBG\">Compare With Stars!</h3>\r\n			<div>To graphically and numerically compare to different \"stars\", click a \r\n				category and select one or more stars (hold down the CTRL or SHIFT \r\n				key to select/deselect multiple) then click the \"Compare Now!\" \r\n				button below. When you do, the graph above will be updated to include\r\n				the selected \"stars\" and you will see a comparison window appear below\r\n				to show how you compare.</div>\r\n\r\n			<!-- This DIV is initially Empty. Will contain IFRAME of comparison view. -->\r\n			<div id=\"compareFrameDiv\" style=\"width:375px; display:none;\"><iframe name=\"compareFrame\" src=\"?pg=compare-frame\" frameborder=\"0\" width=\"375\" height=\"180\" scrollbars=\"no\"></iframe></div>\r\n\r\n			<table xwidth=\"99%\" cellspacing=\"1\" cellpadding=\"1\">\r\n			<tr>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'players\');\" class=\"button\">Players</a>\r\n					<div id=\"players\" style=\"display:block;\">\r\n						<select size=\"6\" id=\"comparePlayers\" name=\"compare[players]\" style=\"width:100%\">\r\n						{if $competition.style eq \'Group-vs-Group\'}\r\n							{foreach from=$competition.teams item=\"teams\" key=\"teamName\"}\r\n								{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n									{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$userName}</option>{/if}\r\n								{/foreach}\r\n							{/foreach}\r\n						{else}\r\n							{foreach from=$competition.users item=\"users\" key=\"username\" name=\"dateUpdated\"}\r\n								{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$username}</option>{/if}\r\n							{/foreach}\r\n						{/if}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			<td xwidth=\"10%\" style=\"border-left:1px solid #CCC; border-right:1px solid #CCC;\" valign=\"middle\" align=\"center\"><b>Versus</b></td>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'animals\');\" class=\"button\">Animals</a>\r\n					<div id=\"animals\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAnimals\" multiple=\"multiple\" name=\"compare[animals]\" style=\"width:100%;\">\r\n						{foreach from=$stars.animals item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'athletes\');\" class=\"button\">Athletes</a>\r\n					<div id=\"athletes\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAthletes\" multiple=\"multiple\" name=\"compare[athletes]\" style=\"width:100%;\">\r\n						{foreach from=$stars.athletes item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'movies\');\" class=\"button\">Movie Stars</a>\r\n					<div id=\"movies\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareMovies\" multiple=\"multiple\" name=\"compare[movies]\" style=\"width:100%;\">\r\n						{foreach from=$stars.movies item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'politics\');\" class=\"button\">Politicians</a>\r\n					<div id=\"politics\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"comparePolitics\" multiple=\"multiple\" name=\"compare[politics]\" style=\"width:100%;\">\r\n						{foreach from=$stars.politics item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			</tr>\r\n			<tr>\r\n			<td colspan=\"3\" align=\"center\">\r\n				<br /><a href=\"#graph\" class=\"button\" onclick=\"goCompareGraph();\"> &nbsp; &gt; Compare Now! &lt; &nbsp; </a><br />\r\n			</td>\r\n			</table>\r\n		</td>\r\n	</tr> *}\r\n	</table>\r\n<br />\r\n</div>\r\n{/if}\r\n\r\n{*   comparisons currently disabled\r\n{include_php file=\"shared_handle:getStarStats\"}\r\n\r\n<script language=\"javascript\">{literal}\r\n\r\nfunction goCompareGraph() {\r\n	var elementIds = Array(\'compareAnimals\', \'compareAthletes\', \'compareMovies\', \'comparePolitics\');\r\n	var obj = \'\';\r\n	var ids = \'\';\r\n\r\n	for (var a = 0; a < elementIds.length; a++) {\r\n		obj = document.getElementById(elementIds[a]);\r\n\r\n		for (var x = 0; x < obj.options.length; x++) {\r\n			if (obj.options[x].selected)\r\n				ids += obj.options[x].value + \',\';\r\n		}\r\n	}\r\n\r\n	if (ids) {\r\n		ids = ids.replace(/\\,$/, \'\');\r\n		var url = \'?pg=flashgraph-frame&compId={/literal}{$competition.id}{literal}&type=weight&fillPrevious=1&precision=0&stars=\' + ids;\r\n		graphwindow.location.replace(url);\r\n\r\n		// Now update the content of the compare frame.\r\n		obj = document.getElementById(\'compareFrameDiv\');\r\n		obj.style.display = \'block\';\r\n		\r\n		obj = document.getElementById(\'comparePlayers\');\r\n		var userIds = \'\';\r\n\r\n		for (var x = 0; x < obj.options.length; x++)\r\n			if (obj.options[x].selected)\r\n				userIds += obj.options[x].value;\r\n\r\n		compareFrame.location.replace(\'?pg=compare-frame&stars=\' + ids + \'&userId=\' + userIds);\r\n	} else {\r\n		alert (\'Click on one of the categories to the left and select as many \"stars\" as you would like.\\n\\nTo select multiple \"stars\", hold down the SHIFT or CTRL key while clicking on their names.\\n\\nWhen finished, click this link again to see the comparison.\');\r\n	}\r\n}\r\n\r\n{/literal}</script>\r\n*}  {* End commented out comparison stuff *}\r\n\r\n{* ******************************** GROUP TEAMS/PLAYERS SUMMARY W/MOVING ***************************************** *}\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'teams\', \'\', \'showHide\');\"><img id=\"teams_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	The Teams &nbsp; <small><i>Assignments and statistics</i></small></h2>\r\n<div id=\"teams\" style=\"display:block;\">\r\n<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\"><tr><td>\r\n	{if $isManager}\r\n		<form name=\"changeTeam\" action=\"index.php\" method=\"POST\" style=\"margin:0px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$competition.id}\">\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n	{/if}\r\n		{assign var=\"minEx\" value=\"Minutes Exercise\"}\r\n		{assign var=\"distEx\" value=\"Distance Exercised\"}\r\n		{assign var=\"pctLst\" value=\"Percentage Weight Lost\"}\r\n		{assign var=\"wtLst\" value=\"Percentage Weight Lost\"}\r\n		{foreach from=$competition.teams item=\"teams\" key=\"teamName\"}\r\n			{counter name=\"counterI\" start=\"0\" print=0}\r\n			<div id=\"playersList{counter}\" style=\"float:left;width:310px;overflow:hidden;word-wrap:nowrap; margin:0px 5px 5px 0px;\">\r\n			<h4>{if $teams.name eq \"Waiting to Join\"}Not assigned to a team{else}{$teams.name|default:\"&nbsp;\"}{/if}</h4>\r\n		{if $scoringMethod|regex_match:\"/exercise/i\"}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			<span class=\"cellHeadSmall\">Min.</span>\r\n			<span class=\"cellHeadSmall\">Dist.</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" style=\"width:14px;height:14px;margin:0px 2px;\" />{/if}{$userName}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$minEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$distEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.dateOfEntry|date_format2:\"n/j/y\"|default:\"-\"}</small></span>\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{else}\r\n			{* display var=$users *}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			{* <span class=\"cellHeadTiny\">Wt.</span>\r\n			<span class=\"cellHeadTiny\">{if $scoringMethod eq \"Percentage Weight Lost\"}%\r\n						{elseif $scoringMethod eq \"Weight Lost\"}Lost\r\n						{elseif $scoringMethod eq \"Weight Gained\"}Gain\r\n						{else}Lbs{/if}</span>\r\n			<span class=\"cellHeadTiny\">{if $scoringMethod eq \"Percentage Weight Lost\"}Lost{else}%{/if}</span> *}\r\n			<span class=\"cellHeadTiny\">%</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"clear:left;text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" style=\"width:14px;height:14px;margin:0px 2px;\" />{/if}{$userName}</small></span>\r\n				{* <span class=\"cellTiny\"><small>{if $users.hideInitialWeight neq \"Yes\"}{if $users.CurrentWeight eq \'\'}-{else}{$users.CurrentWeight}{/if}{else}Hidden{/if}</small></span>\r\n				<span class=\"cellTiny\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$users.$scoringMethod|number_format:\"2\"|replace:\".00\":\"\"}{else}{$users.$scoringMethod|default:\"-\"|replace:\".00\":\"\"}{/if}</small></span>\r\n				<span class=\"cellTiny\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$users.$wtLost|default:\"-\"|replace:\".00\":\"\"}{else}{if $users.hideInitialWeight neq \"Yes\"}{$users.$pctLst|number_format:\"2\"|replace:\".00\":\"\"}{else}-{/if}{/if}</small></span> \r\n				*}\r\n				<span class=\"cellTiny\"><small>{if $users.hideInitialWeight neq \"Yes\"}{$users.$pctLst|number_format:\"2\"|replace:\".00\":\"\"}{else}-{/if}</span>\r\n				<span class=\"cellSmall\"><small>{$users.dateOfEntry|date_format2:\"n/j/y\"|default:\"-\"}</small></span><br />\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{/if}\r\n			</div>\r\n		{/foreach}\r\n	{if $isManager}\r\n		<br />\r\n		<select name=\"changeTeam[team]\">\r\n			<option value=\"\">Move selected players to...</option>\r\n			{foreach from=$competition.teams item=\"newTeams\" key=\"newTeamName\"}\r\n				{*if $newTeams.name ne $teams.name and $newTeams.name ne \"Waiting to Join\"*}\r\n				{if $newTeams.name ne \"Waiting to Join\"}\r\n					<option value=\"{$newTeams.name}\">{$newTeams.name}</option>\r\n				{/if}\r\n			{/foreach}\r\n		</select><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Submit Changes\">\r\n		</form>\r\n	{/if}\r\n</td></tr></table>\r\n</div>\r\n{/if}\r\n\r\n{* ********************** LEADERS ******************************* *}\r\n{* <div class=\"chunk300\">\r\n<h2 class=\"withBG\">Leaders</h2>\r\n<div id=\"leadersList\" class=\"contentColumn\">\r\n	<span class=\"cellHeadLarge\">{if $competition.style eq \'Group-vs-Group\'}# of members{else}Competitor{/if}</span\r\n	><span class=\"cellHeadSmall\">{if $scoringMethod eq \"Percentage Weight Lost\"}% Lost{elseif $scoringMethod eq \"Weight Lost\"}lbsLost{elseif $scoringMethod eq \"Weight Gained\"}lbsGain{elseif $scoringMethod eq \"Minutes Exercise\"}Min.{elseif $scoringMethod eq \"Distance Exercised\"}Dist.{/if}</span\r\n	><br />\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n	{foreach from=$competition.teams item=\"compUser\" key=\"username\"}\r\n	<span class=\"cell\"><small>{$compUser.userCount}</small></span><br />\r\n	{/foreach}\r\n{else}\r\n	{foreach from=$competition.users item=\"compUser\" key=\"username\" name=\"leaders\"}\r\n	{*$smarty.foreach.leaders.iteration* }<span class=\"cellLarge\"><small>{$username}</small></span>\r\n	<span class=\"cellSmall\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$compUser.$scoringMethod|number_format:\"2\"} %{else}{$compUser.$scoringMethod}{/if}</small></span><br />\r\n	{/foreach}\r\n{/if}\r\n</div> *}'),(2888,110,0.22,'smarty','0','added HTML that I copied from Trave',1104355394,16,'64.85.253.211','<h1>Terms of Use</h1><p />\r\n\r\n<h2>TERMS OF SERVICE AGREEMENT </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nThis agreement (hereinafter, the \"Agreement\") between eHealthCompete (hereinafter, \"EHC\", \"us\" or \"we\") and you sets forth the terms and conditions which govern your use of any of the EHC or WLW sponsored websites (hereinafter, the \"Sites\") and/or the services (hereinafter, the \"Services\") thereon which are provided by EHC. \r\n<br /><br />PLEASE READ THIS AGREEMENT CAREFULLY BEFORE ACCESSING OR USING ANY OF THE SITES AND/OR SERVICES. BY ACCESSING OR USING THE SITES AND/OR SERVICES, YOU AGREE TO BE BOUND BY THE TERMS AND CONDITIONS SET FORTH BELOW. IF YOU DO NOT WISH TO BE BOUND BY THESE TERMS AND CONDITIONS, YOU MAY NOT ACCESS OR USE THE SITES OR SERVICES AND SHOULD IMMEDIATELY CEASE SUCH USE. EHC MAY MODIFY THIS AGREEMENT AT ANY TIME, AND SUCH MODIFICATIONS SHALL BE EFFECTIVE IMMEDIATELY UPON NOTICE, WHICH MAY BE ACCOMPLISHED BY POSTING THE MODIFIED AGREEMENT ON THE SITE OR VIA EMAIL. YOUR USE OF ANY OF THE SITES AND/OR SERVICES FOLLOWING SUCH NOTICE SHALL BE DEEMED YOUR ACCEPTANCE OF SUCH CHANGES. YOU AGREE TO REVIEW THE AGREEMENT PERIODICALLY TO BE AWARE OF SUCH MODIFICATIONS AND YOUR CONTINUED ACCESS OR USE OF THE SITE AND/OR THE SERVICES SHALL BE DEEMED YOUR CONCLUSIVE ACCEPTANCE OF THE MODIFIED AGREEMENT. IF WE REQUEST, YOU IRREVOCABLY AGREE TO SIGN A NON-ELECTRONIC VERSION OF THIS AGREEMENT.\r\n<br /><br /><b>1. Limited License; Use of Services.</b><br /><br />\r\nEHC grants to you a limited personal, non-exclusive and non-transferable right and license to access the Sites and use the Services thereon. Unless otherwise specified in writing, the Services are for your personal and non-commercial use. \r\nEHC\'s Services shall contain, without limitation, email services, bulletin and message boards, chat areas, news groups, forums, communities, calendars, and various other message communication applications.\r\n<br /><br /><b>2. Prohibited Activities.</b><br /><br />\r\nIn connection with your use of the Sites and/or the Services, you acknowledge and agree that you will not:\r\n<ul>\r\na. copy, reverse engineer, reverse assemble, otherwise attempt to discover the source code, distribute, transmit, display, perform, reproduce, publish, license, create derivative works from, transfer or sell any information, software, products or services obtained through the Sites or the Services; <br /><br />\r\nb. access the Sites or Services by any means other than through the standard industry-accepted or EHC-provided interfaces; <br /><br />\r\nc. transmit any message,, information, data, text, software or image, or other content that is unlawful, harmful, threatening, abusive, harassing, tortuous, defamatory, vulgar, obscene, libelous, or otherwise objectionable which may invade another\'s right of privacy or publicity; <br /><br />\r\nd. impersonate any person or entity, including without limitation, an EHC official, forum leader, chat room monitor, guide or host, or falsely state or otherwise misrepresent your affiliation with such a person or entity; <br /><br />\r\ne. post or transmit any material that contains a virus or corrupted data; <br /><br />\r\nf. delete any author attributions, legal notices or proprietary designations or labels that you upload to any communication feature; <br /><br />\r\ng. use of any Site or Service\'s communications features in a manner that adversely affects the availability of its resources to other users (e.g., excessive shouting, use of all caps, or flooding continuous postings of repetitive text); <br /><br />\r\nh. post or transmit any unsolicited advertising, promotional materials, \"junk mail\", \"spam,\" \"chain letters,\" \"pyramid schemes\" or any other form of solicitation or any non-resume information such as opinions or notices, commercial or otherwise; <br /><br />\r\ni. violate any applicable local, state, national or international law; <br /><br />\r\nj. upload or transmit any material that infringes any patent, trademark, trade secret, copyright or other proprietary rights of any party; <br /><br />\r\nk. delete or revise any material posted by any other person or entity; <br /><br />\r\nl. manipulate or otherwise display the Sites and/or the Services by using framing or similar navigational technology; <br /><br />\r\nm. register, subscribe, attempt to register, attempt to subscribe, unsubscribe, or attempt to unsubscribe, any party for any EHC product or Service if you are not expressly authorized by such party to do so; or<br /><br />\r\nn. use the Sites and/or the Services for any purpose that is unlawful or prohibited by these terms and conditions. You may not use the Site or the Services in any manner that could damage, disable, overburden or impair EHC\'s servers or networks, or interfere with any other user\'s use and enjoyment of the Sites and/or the Services. Furthermore, you may not attempt to gain unauthorized access to any of the Sites, Services, accounts, computer systems or networks connected to EHC through hacking, password mining or any other means. You may not obtain or attempt to obtain any materials or information through any means not intentionally made available through the Sites or the Services. <br /><br />\r\n</ul>\r\n<b>3. Billing and Renewal Transactions and Policies.</b><br /><br />\r\nCertain products or Services may be offered for sale on the Sites. In the event you wish to purchase or to subscribe for any of these products or Services, you will be asked by EHC or an authorized third party to supply certain information, including without limitation, your full name, address, telephone number and credit card information. You agree to provide EHC or such third party with the foregoing information as well as any other mandatory information that is accurate, complete and current, and to comply with the terms and conditions of any agreement that you may enter into governing your purchase of the product or Service. You shall be responsible for all charges incurred through your account as well as for paying any applicable taxes.\r\nSome Services offered by EHC are subscription-based services. If you open a subscription-based account with any of EHC\'s Sites, you hereby agree to pay all charges to your account, including any applicable taxes, in accordance with billing terms in effect at the time the fee or charge becomes payable. EHC reserves the right to change the amount of, or basis for determining, any fees or charges for Services we provide, and to institute new fees, charges or terms effective upon notice to subscribers. We reserve the right to terminate any account at any time for any reason. <br /><br />\r\nPlease note that we only accept credit card payments and do not accept debit card payments at this time.  However, Visa and Master Card debit cards are accepted. <br /><br />\r\nAutomatic Renewal Terms<br /><br />\r\nYour subscription will be automatically renewed and your credit card will be automatically charged on a quarterly, monthly or weekly basis, depending upon the billing terms for your account, for as long as you remain a member. You agree that EHC will not be obligated to send you any renewal or advance billing notices or confirmations that your credit card has been charged. <br /><br />\r\nYour right to use the Service or a specific product is conditional upon our receipt of payment. If payment cannot be charged to your credit card or if a charge is refunded for any reason, including chargeback, we reserve the right to immediately and without notice, either suspend or terminate your access and account, thereby terminating this Agreement and all EHC obligations hereunder. You are required to pay any amounts still owed to us at the time your account is suspended or terminated. <br /><br />\r\nIn the event you elect to terminate your subscription and EHC is notified accordingly by writing customerservice@eHealthCompete.com, you shall be entitled to receive, on request, any refunds available to you. Terminations are not retroactive. If you terminate your membership after your membership period has begun, you will only be entitled to a refund for the unexpired portion of that membership period, less any applicable minimum charges. You may still be obligated to pay for other charges incurred. If you have an outstanding balance due on any EHC account, you hereby agree that EHC may charge these unpaid fees to your credit card. <br /><br />\r\n<b>4. Message Boards and Chat Rooms. </b><br /><br />\r\nEHC hosts message boards, chats and other public forums on its Sites. Any user failing to comply with the terms and conditions of this Agreement may be expelled from and refused continued access to, the message boards, chats or other public forums in the future. EHC or its designated agents may remove or alter any user-created content at any time for any reason. Message boards, chats and other public forums are intended to serve as discussion centers for users and subscribers. Information and content posted within these public forums may be provided by EHC staff, WLW\'s outside contributors, or by users not connected with EHC, some of whom may employ anonymous user names. EHC expressly disclaims all responsibility and endorsement and makes no representation as to the validity of any opinion, advice, information or statement made or displayed in these forums by third parties, nor are we responsible for any errors or omissions in such postings, or for hyperlinks embedded in any messages. Under no circumstances will we, our affiliates, suppliers or agents be liable for any loss or damage caused by your reliance on information obtained through these forums. The opinions expressed in these forums are solely the opinions of the participants, and do not reflect the opinions of EHC or any of its subsidiaries or affiliates. <br /><br />\r\n<b>5. Monitoring.</b> <br /><br />\r\nEHC has no obligation whatsoever to monitor any of the content or postings on the message boards, chat rooms or other public forums on the Sites. However, you acknowledge and agree that we have the absolute right to monitor the same at our sole discretion. In addition, we reserve the right to alter, edit, refuse to post or remove any postings or content, in whole or in part, for any reason and to disclose such materials and the circumstances surrounding their transmission to any third party in order to satisfy any applicable law, regulation, legal process or governmental request and to protect ourselves, our clients, sponsors, users and visitors. <br /><br />\r\nMaterials posted and/or uploaded to the various public forums may be subject to size and usage limitations. You are responsible for adhering to such limitations. <br /><br />\r\n<b>6. Third Party Content. </b><br /><br />\r\nIn general, the content contained on any of the Sites or Services is supplied by third parties and users. Accordingly, EHC is a distributor (and not a publisher) of such content and has no more editorial control over such content than does a public library, bookstore, or newsstand. Any opinions, advice, statements, services, offers, or other information or content expressed or made available by third parties, including information providers, are those of the respective authors or distributors, and not EHC. Neither WLW nor any third-party provider of information guarantees the accuracy, completeness, or usefulness of any content. Furthermore, EHC neither endorses nor is responsible for the accuracy and reliability of any opinion, advice, or statement made on any of the Sites or Services by anyone other than an authorized EHC representative while acting in his/her official capacity. <br /><br />\r\n<b>7. Contests and Games. </b><br /><br />\r\nEHC often provides contests and games on its Sites. The rules, regulations and procedures governing any of the foregoing shall be accessible through a hypertext link prominently displayed on the web page where the contest or game may be located. By entering or participating in any of them, you agree to be subject to those rules, regulations and procedures. Please remember to read the rules carefully before participating. <br /><br />\r\n<b>8. Accounts, Passwords and Security.</b> <br /><br />\r\nIf any of the Sites or Services require you to open an account, you must complete the registration process by providing EHC with current, complete and accurate information, as prompted by the applicable registration form. You acknowledge that by providing any information to EHC which is untrue, inaccurate, not current or incomplete, EHC reserves the right to terminate this Agreement and your continued access and use of the Sites and/or the Services. <br /><br />\r\nAs part of the registration process, you will be asked to select a username and password. You are entirely responsible for maintaining the security and confidentiality of your account and password. FURTHERMORE, YOU ARE ENTIRELY RESPONSIBLE FOR ANY AND ALL ACTIVITIES AND CONDUCT, WHETHER BY YOU OR ANYONE ELSE, THAT ARE CONDUCTED THROUGH YOUR ACCOUNT. You agree to notify EHC immediately of any unauthorized use of your account or any other breach of security. EHC will not be liable for any loss that you may incur as a result of someone else using your password or account, either with or without your knowledge. However, you may be held liable for any losses incurred by EHC or another party due to someone else using your account or password. <br /><br />\r\n<b>9. Disclaimer Regarding Links. </b><br /><br />\r\nThe links on any of the Sites and/or Services will let you leave the particular Site or Service you are accessing in order to access a linked site (the \"Linked Sites\"). EHC provides these links as a convenience, but we neither control nor endorse these Linked Sites, nor has EHC reviewed or approved the content which appears on the Linked Sites. EHC is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from any Linked Sites. You acknowledge and agree that EHC shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of any of the links, content, goods or services available on or through the Linked Sites. <br /><br />\r\n<b>10. Dealings with Third Parties.</b> <br /><br />\r\nYour participation, correspondence or business dealings with any third party found on or through our Sites and Services, regarding payment and delivery of specific goods and services, and any other terms, conditions, representations or warranties associated with such dealings, are solely between you and such third party. You agree that EHC shall not be responsible or liable for any loss, damage, or other matters of any sort incurred as the result of such dealings. <br /><br />\r\n<b>11. Proprietary Rights.</b> <br /><br />\r\nYou acknowledge and agree that the Sites and Services contain proprietary and confidential information that is protected by applicable intellectual property and other laws, and are the sole property of EHC or its licensors. You further acknowledge and agree that any content contained in advertisements or information presented to you through advertisers concerning EHC or otherwise is protected by copyrights, trademarks, service marks, patents or other proprietary rights and laws. <br /><br />\r\nBy sending or transmitting to us creative suggestions, ideas, notes, concepts, information, or other materials (collectively, \" Submission Materials\") or by posting such Submission Materials on the Sites, you hereby grant to us and our designees a worldwide, non-exclusive, sublicensable (through multiple tiers), assignable, royalty-free, perpetual, irrevocable right to use, reproduce, distribute (through multiple tiers), create derivative works of, publicly perform, publicly display, digitally perform, make, have made, sell, offer for sale and import such Submission Materials in any media now known or hereafter devised, for any purpose whatsoever, commercial or otherwise, without compensation to you, the provider of the Submission Materials. The foregoing license to EHC shall be fully paid-up and royalty free. In addition, under no circumstances shall EHC have any obligation whatsoever to pay a fee to any subscriber or user in connection with the Submission Materials upon the occurrence of a transfer of all or any portion of EHC\'s business through a merger, sale or transfer of all or substantially all of the assets of EHC, nor shall the sale of advertising on any of the Sites give rise to any obligation to pay a fee to Subscribers. <br /><br />\r\nNone of the Submission Materials disclosed or posted via message boards, chats or other public forums shall be subject to any obligation, whether of confidentiality, attribution, or otherwise, on EHC\'s part and we shall not be liable for any use or disclosure of any such Submission Materials. <br /><br />\r\nWe suggest that you consult your legal advisor before filing a notice or counter-notice. Also, be aware that there can be penalties for false claims under the DMCA. <br /><br />\r\n<b>13. Privacy. </b><br /><br />\r\nEHC\'s policy with respect to the collection and use of your personally identifiable information is set forth at https://www.eHealthCompete.com/index.php?pg=privacy By accepting these Terms of Service, you acknowledge this policy. <br /><br />\r\n<b>14. Disclaimer of Warranties. </b><br /><br />\r\nTHE SITES AND THE SERVICES, AND ANY CONTENT, TOOLS, PRODUCTS OR SERVICES DISPLAYED, ACCESSED OR OBTAINED ON OR THROUGH THE SITES AND SERVICES ARE PROVIDED \"AS IS\", \"AS AVAILABLE\", AND WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, EHC AND ITS AFFILIATES, SUPPLIERS, AND AGENTS DO NOT WARRANT AND EXPRESSLY DISCLAIM THAT: (i) YOUR USE OF THE SITES AND/OR SERVICES AND ACCESS TO AND USE OF ALL OF THE TOOLS AND FEATURES THEREON WILL BE UNINTERRUPTED, ERROR-FREE, OR SECURE, (ii) THAT ANY INFORMATION OBTAINED THEREIN IS ACCURATE, RELIABLE OR COMPLETE, (iii) THAT DEFECTS WILL BE CORRECTED, or (iv) THAT ANY SOFTWARE, SERVICES, SITES OR SERVER(S) ON WHICH THE SERVICES AND SITES ARE HOSTED ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. YOUR USE OF THE SITES AND THE SERVICES AND ANY INFORMATION OR MATERIALS PROVIDED ON OR THROUGH THE SITES AND SERVICES ARE ENTIRELY AT YOUR OWN RISK. <br /><br />\r\n<b>15. Limitation of Liability. </b><br /><br />\r\nNEITHER EHC NOR ITS DIRECTORS, OFFICERS, EMPLOYEES, CONTRACTORS, AGENTS OR SPONSORS ARE RESPONSIBLE OR LIABLE TO YOU OR ANYONE ELSE FOR ANY LOSS OR INJURY OR ANY INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, EXEMPLARY, PUNITIVE OR OTHER DAMAGES UNDER ANY CONTRACT, NEGLIGENCE, STRICT LIABILITY OR OTHER THEORY ARISING OUT OF OR RELATING IN ANY WAY TO (i) THE USE OF OR INABILITY TO USE THE SITES OR THE SERVICES; (ii) ANY CONTENT CONTAINED ON THE SITES AND/OR THE SERVICES; (iii) STATEMENTS OR CONDUCT POSTED OR MADE PUBLICLY AVAILABLE ON THE SITES AND/OR THE SERVICES; (iv) ANY PRODUCT OR SERVICE PURCHASED OR OBTAINED THROUGH THE SITES; (v) ANY ACTION TAKEN IN RESPONSE TO OR AS A RESULT OF ANY INFORMATION AVAILABLE ON THE SITES OR THE SERVICES; (vi) ANY DAMAGE CAUSED BY LOSS OF ACCESS TO, DELETION OF, FAILURE TO STORE, FAILURE TO BACK UP, OR ALTERATION OF ANY CONTENT ON THE SITES OR THE SERVICES, or (vii) ANY OTHER MATTER RELATING TO THE SITES AND/OR THE SERVICES. IN NO EVENT SHALL EHC\'S TOTAL LIABILITY TO YOU FOR ANY AND ALL DAMAGES, LOSSES, AND CAUSES OF ACTION (WHETHER IN CONTRACT, TORT [INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE], STATUTORY, OR OTHERWISE) EXCEED THE AMOUNT PAID BY YOU, IF ANY, FOR USING ANY OF THE SERVICES OR THE SITES. <br /><br />\r\n<b>16. Professional Advice Disclaimer. </b><br /><br />\r\nEHC\'S SITES DO NOT PROVIDE MEDICAL OR COUNSELLING ADVICE. NOTHING STATED OR POSTED ON ANY SITES OR AVAILABLE THROUGH ANY SERVICES ARE INTENDED TO BE, AND MUST NOT BE TAKEN TO BE, THE PRACTICE OF MEDICAL OR COUNSELING CARE. FOR PURPOSES OF THIS AGREEMENT, THE PRACTICE OF MEDICINE AND COUNSELING INCLUDES, WITHOUT LIMITAITON, PSYCHIATRY, PSYCHOLOGY, PSYCHOTHERAPY, OR PROVIDING HEALTH CARE TREATMENT, INSTRUCTIONS, DIAGNOSIS, PROGNOSIS OR ADVICE. OUR SITES ARE CONTINUALLY UNDER DEVELOPMENT AND EHC MAKES NO WARRANTY OF ANY KIND, IMPLIED OR EXPRESS, AS TO ITS ACCURACY, COMPLETENESS OR APPROPRIATENESS FOR ANY PURPOSE. PLEASE SEEK THE ADVICE OF PROFESSIONALS, AS APPROPRIATE, REGARDING THE EVALUATION OF ANY SPECIFIC INFORMATION, OPINION, ADVICE OR CONTENT. <br /><br />\r\n<b>17. Indemnification. </b><br /><br />\r\nYou agree to indemnify, defend, and hold EHC and its subsidiaries, affiliates, officers, directors, agents, co-branders or other partners, employees, and representatives harmless from and against any and all claims, damages, losses, costs or expenses (including reasonable attorneys\' fees and disbursements) which arise directly or indirectly out of or from (i) your breach of this Agreement, (ii) any allegation that any materials that you submit to EHC or post on any forums (e.g., message boards, chat rooms) infringe or otherwise violate the copyright, trade secret, trademark or other intellectual property rights of a third party, and (iii) your access or use of the Sites and/or the Services. This Section 17 shall survive in the event this Agreement is terminated for any reason. <br /><br />\r\n<b>18. Jurisdictional Issues. </b><br /><br />\r\nEHC makes no representation or warranty that the content and materials on the Sites and/or the Services are appropriate or available for use in locations outside the United States. Those who choose to access the Sites or use the Services from other locations do so on their own initiative and at their own risk, and are responsible for compliance with local laws, if and to the extent applicable. EHC reserves the right, at any time in our sole discretion, to limit the availability and accessibility of the Sites and/or the Services to any person, geographic area, or jurisdiction we so desire, and to limit the quantities of any such Service or products that we provide. <br /><br />\r\n<b>19. Termination. </b><br /><br />\r\nThis Agreement shall remain effective until terminated in accordance with its own terms and conditions. You agree that EHC, in its sole discretion, may terminate your password, account (in whole or in part), or use of the Sites or Services, and remove and discard any content within the Sites, at any time and for any reason. You agree that any actions taken under this Section 19 may be effective without prior notice to you. In the event of termination, however, those Sections in this Agreement which provide for continuing obligations on your part shall survive indefinitely. <br /><br />\r\n<b>20. General Information.</b> <br /><br />\r\nThis Agreement constitutes the entire agreement and understanding between you and EHC and governs your use of the Sites and the Services, superseding any prior agreements between you and EHC. This Agreement and the relationship between you and EHC shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of law provisions. You and EHC irrevocably agree to submit to the personal and exclusive jurisdiction of the federal and state courts located within the county of New York, in the State of New York, and waive any jurisdictional, venue, or inconvenient forum objections to such courts. The failure of EHC to exercise or enforce any right or provision of this Agreement shall not constitute a waiver of such right or provision. If any provision of this Agreement is found by a court of competent jurisdiction to be unlawful, void or for any reason unenforceable, then that provision shall be deemed severed herefrom and shall not affect the validity and enforceability of any remaining provisions. The section titles in this Agreement are for convenience purposes only and have no legal or contractual effect. This Agreement is not assignable, transferable or sub-licensable by you except with our prior written consent. However, we may assign this Agreement to any third party whom we choose without your consent. No waiver by EHC of any breach or default hereunder shall be deemed a waiver of any preceding or subsequent breach or default. <br /><br />\r\n\r\n\r\n\r\n'),(2893,189,0.10,'smarty','0','Page created.',1104372580,2,'67.166.75.78',''),(2894,189,0.11,'smarty','0','Page created.',1104372636,2,'67.166.75.78','<h1>Available Competitions</h1>\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n'),(2895,189,0.12,'smarty','0','Page created.',1104375339,2,'67.166.75.78','<h1>Available Competitions</h1>\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n{style_table folder=\"img/st/floatbox\"}\r\n  <table border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><b>ID #</b></td>\r\n		<td><b>Title</b></td>\r\n		<td><b>Start Date</b></td>\r\n		<td><b>End Date</b></td>\r\n		<td><b>Style</b></td>\r\n		<td><b>Scoring Method</b></td>\r\n	</tr>\r\n	{foreach from=$availableCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td><input type=\"checkbox\" name=\"joinComp[]\" value=\"{$comp.id}\" /></td>\r\n		<td>{$comp.id}</td>\r\n		<td>{$comp.title}</td>\r\n		<td>{$comp.startDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.endDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.style}</td>\r\n		<td>{$comp.scoringMethod}</td>\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"7\" align=\"center\">Sorry. There are currently no competitions available to join.</td>\r\n	</tr>	\r\n	{/foreach}\r\n  </table>\r\n{/style_table}'),(2896,189,0.13,'smarty','0','Page created.',1104375520,2,'67.166.75.78','<h1>Available Competitions</h1>\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n{style_table folder=\"img/st/floatbox\"}\r\n  <table border=\"0\" cellspacing=\"1\" cellpadding=\"2\">\r\n	<tr>\r\n		<td bgcolor=\"#CCCCCC\">&nbsp;</td>\r\n		<td bgcolor=\"#CCCCCC\"><b>ID #</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Title</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Start Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>End Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Style</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Scoring Method</b></td>\r\n	</tr>\r\n	{foreach from=$availableCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td><input type=\"checkbox\" name=\"joinComp[]\" value=\"{$comp.id}\" /></td>\r\n		<td>{$comp.id}</td>\r\n		<td>{$comp.title}</td>\r\n		<td>{$comp.startDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.endDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.style}</td>\r\n		<td>{$comp.scoringMethod}</td>\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"7\" align=\"center\">Sorry. There are currently no competitions available to join.</td>\r\n	</tr>	\r\n	{/foreach}\r\n  </table>\r\n{/style_table}'),(2897,189,0.14,'smarty','0','Page created.',1104375718,2,'67.166.75.78','<h1>Available Competitions</h1>\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n{style_table folder=\"img/st/floatbox\"}\r\n  <table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" width=\"100%\">\r\n	<tr>\r\n		<td bgcolor=\"#CCCCCC\">&nbsp;</td>\r\n		<td bgcolor=\"#CCCCCC\"><b>ID #</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Title</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Start Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>End Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Style</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Scoring Method</b></td>\r\n	</tr>\r\n	{foreach from=$availableCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td>{if not $user->inGroupName($comp.code)}<input type=\"checkbox\" name=\"joinComp[]\" value=\"{$comp.id}\" />{else}&times;{/if}</td>\r\n		<td>{$comp.id}</td>\r\n		<td>{$comp.title}</td>\r\n		<td>{$comp.startDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.endDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.style}</td>\r\n		<td>{$comp.scoringMethod}</td>\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"7\" align=\"center\">Sorry. There are currently no competitions available to join.</td>\r\n	</tr>	\r\n	{/foreach}\r\n  </table>\r\n{/style_table}'),(2898,189,0.15,'smarty','0','Page created.',1104375815,2,'67.166.75.78','<h1>Available Competitions</h1>\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n{style_table folder=\"img/st/floatbox\"}\r\n  <table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" width=\"100%\">\r\n	<tr>\r\n		<td bgcolor=\"#CCCCCC\">&nbsp;</td>\r\n		<td bgcolor=\"#CCCCCC\"><b>ID #</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Title</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Start Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>End Date</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Style</b></td>\r\n		<td bgcolor=\"#CCCCCC\"><b>Scoring Method</b></td>\r\n	</tr>\r\n	{foreach from=$availableCompetitions item=\"comp\"}\r\n	<tr>\r\n		{if not $user->inGroupName($comp.code)}\r\n		<td><input type=\"checkbox\" name=\"joinComp[]\" value=\"{$comp.id}\" /></td>\r\n		<td>{$comp.id}</td>\r\n		<td>{$comp.title}</td>\r\n		<td>{$comp.startDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.endDate|date_format2:\"n j Y\"}</td>\r\n		<td>{$comp.style}</td>\r\n		<td>{$comp.scoringMethod}</td>\r\n		{else}\r\n		<td>&times;</td>\r\n		<td><i>{$comp.id}</i></td>\r\n		<td><i>{$comp.title}</i></td>\r\n		<td><i>{$comp.startDate|date_format2:\"n j Y\"}</i></td>\r\n		<td><i>{$comp.endDate|date_format2:\"n j Y\"}</i></td>\r\n		<td><i>{$comp.style}</i></td>\r\n		<td><i>{$comp.scoringMethod}</i></td>\r\n		{/if}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"7\" align=\"center\">Sorry. There are currently no competitions available to join.</td>\r\n	</tr>	\r\n	{/foreach}\r\n  </table>\r\n{/style_table}'),(777,115,0.10,'smarty','0','Page created.',1084330367,2,'24.2.68.15',''),(778,115,0.11,'smarty','0','Page created.',1084330744,2,'24.2.68.15','{if $smarty.request.tm_style_table}\r\n	{session_write var=\"tm_style_table\" value=$smarty.request.tm_style_table}\r\n{/if}\r\n{if $smarty.request.tm_template}\r\n	{session_write var=\"tm_template\" value=$smarty.request.tm_template}\r\n{/if}\r\n\r\n{assign var=\"template\" value=$smarty.session.safe.tm_template|default:\"slate\"}\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"user_lists\"\r\n	Profile=\"my_inbox\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/jobswap/img/st/\"\r\n	StyleTable=$smarty.session.safe.tm_style_table|default:\"gray\"\r\n	AddTemplate=$template|cat:\"_edit.tpl\"\r\n	MainTemplate=$template|cat:\"_main.tpl\"\r\n	ListTemplate=$template|cat:\"_list.tpl\"\r\n	EditTemplate=$template|cat:\"_edit.tpl\"\r\n	ViewTemplate=$template|cat:\"_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"7089A4\"\r\n	HighlightColor=\"F6F9D5\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(779,115,0.12,'smarty','0','Page created.',1084337565,2,'24.2.68.15','{if $smarty.request.tm_style_table}\r\n	{session_write var=\"tm_style_table\" value=$smarty.request.tm_style_table}\r\n{/if}\r\n{if $smarty.request.tm_template}\r\n	{session_write var=\"tm_template\" value=$smarty.request.tm_template}\r\n{/if}\r\n\r\n{assign var=\"template\" value=$smarty.session.safe.tm_template|default:\"slate\"}\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"user_lists\"\r\n	Profile=\"my_inbox\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/jobswap/img/st/\"\r\n	StyleTable=$smarty.session.safe.tm_style_table|default:\"gray\"\r\n	AddTemplate=$template|cat:\"_edit.tpl\"\r\n	MainTemplate=$template|cat:\"_main.tpl\"\r\n	XListTemplate=$template|cat:\"_list.tpl\"\r\n	EditTemplate=$template|cat:\"_edit.tpl\"\r\n	ViewTemplate=$template|cat:\"_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"7089A4\"\r\n	HighlightColor=\"F6F9D5\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(780,115,0.13,'smarty','0','Page created.',1084337800,2,'24.2.68.15','{if $smarty.request.tm_style_table}\r\n	{session_write var=\"tm_style_table\" value=$smarty.request.tm_style_table}\r\n{/if}\r\n{if $smarty.request.tm_template}\r\n	{session_write var=\"tm_template\" value=$smarty.request.tm_template}\r\n{/if}\r\n\r\n{assign var=\"template\" value=$smarty.session.safe.tm_template|default:\"slate\"}\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"user_lists\"\r\n	Profile=\"my_inbox\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/jobswap/img/st/\"\r\n	StyleTable=$smarty.session.safe.tm_style_table|default:\"gray\"\r\n	AddTemplate=$template|cat:\"_edit.tpl\"\r\n	MainTemplate=$template|cat:\"_main.tpl\"\r\n	XListTemplate=\"pm_slate_list.tpl\"\r\n	EditTemplate=$template|cat:\"_edit.tpl\"\r\n	ViewTemplate=$template|cat:\"_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"7089A4\"\r\n	HighlightColor=\"F6F9D5\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(781,115,0.14,'smarty','0','Page created.',1084337861,2,'24.2.68.15','{if $smarty.request.tm_style_table}\r\n	{session_write var=\"tm_style_table\" value=$smarty.request.tm_style_table}\r\n{/if}\r\n{if $smarty.request.tm_template}\r\n	{session_write var=\"tm_template\" value=$smarty.request.tm_template}\r\n{/if}\r\n\r\n{assign var=\"template\" value=$smarty.session.safe.tm_template|default:\"slate\"}\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"user_lists\"\r\n	Profile=\"my_inbox\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/jobswap/img/st/\"\r\n	StyleTable=$smarty.session.safe.tm_style_table|default:\"gray\"\r\n	AddTemplate=$template|cat:\"_edit.tpl\"\r\n	MainTemplate=$template|cat:\"_main.tpl\"\r\n	ListTemplate=\"pm_slate_list.tpl\"\r\n	EditTemplate=$template|cat:\"_edit.tpl\"\r\n	ViewTemplate=$template|cat:\"_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"7089A4\"\r\n	HighlightColor=\"F6F9D5\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"l, F d, Y g:i a \"\r\n	}\r\n'),(1026,119,0.30,'smarty','0','Added new show/hide classes/images.',1085176248,2,'208.187.110.149','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 3</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'letter\', \'hideLetter\', \'showHide\');\"><img id=\"letter_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideLetter}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Review Your Invitation:</h2>\r\n	<input type=\"hidden\" id=\"hideLetter\" name=\"newcomp[hideLetter]\" value=\"{$newcomp.hideLetter|default:\"0\"}\">\r\n\r\n<div>Make sure that you are satisfied with the invitation you will be sending to the other competitors.<br /><br /></div>\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:{if $newcomp.hideLetter eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<br />\r\n	<div style=\"margin:10px;padding:17px;\" class=\"notepaperBG\">\r\n		{eval var=$invitationLetter|nl2br}\r\n	</div>\r\n</div>\r\n<br />\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n<br />\r\n\r\n<a name=\"invitations\" />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'enterEmails\', \'hideEnterEmails\', \'showHide\');\"><img id=\"enterEmails_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideEnterEmails}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Invite Some Competitors:</h2>\r\n	<input type=\"hidden\" id=\"hideEnterEmails\" name=\"newcomp[hideEnterEmails]\" value=\"{$newcomp.hideEnterEmails|default:\"0\"}\">\r\n\r\n<div>Enter a contact name and email address for each person you would like to invite into this competition. Don\'t worry about gathering everyone\'s email address right now, you can always add more later.<br /><br /></div>\r\n\r\n<div id=\"enterEmails\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<div id=\"inviteList\">\r\n	<table align=\"center\" style=\"margin:10px;\">\r\n	<tr>\r\n		<td><div>&nbsp;</div></td>\r\n		<td><h3 class=\"withBG\">Name</h2></td>\r\n		<td><h3 class=\"withBG\">E-Mail</h2></td>\r\n		<td><h3 class=\"withBG\">Your Relation</h2></td>\r\n	</tr> \r\n	{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n	<tr>\r\n		<td><div>#{$smarty.section.contactLoop.iteration}</div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n	</div>\r\n	\r\n	<div align=\"right\" style=\"margin-right:30px;\">\r\n		<a href=\"javascript://\" onclick=\"addEmailRows();return false;\">&gt; Click to add more now! &lt;</a>\r\n	</div>\r\n</div>\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n\r\n\r\n<script language=\"javascript\">\r\n	var addCount = {$addCount};\r\n	{literal}\r\n	function addEmailRows() {\r\n		addCount++;\r\n		var obj = document.getElementById(\'inviteList\');\r\n		var html = obj.innerHTML;\r\n		html = html.replace(/\\<\\/TABLE\\>/i, \'\');\r\n		html += \'<tr><td><div>#\'+addCount+\'</div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][\'+addCount+\']\"></div></td></tr></table>\';\r\n		obj.innerHTML = html;\r\n	}\r\n	{/literal}\r\n</script>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>'),(2790,177,0.18,'smarty','0','Page created.',1103651702,2,'67.166.75.78','<h1>eHealthCompete Company Management Area</h1>\r\n<h2>{$smarty.session.company.companyName}</h2>\r\n\r\n{include file=\"file:./layouts/companyManagementTocDisplay.tpl\"}'),(2791,177,0.19,'smarty','0','Page created.',1103651750,2,'67.166.75.78','<h1>eHealthCompete Company Management Area</h1>\r\n<h2>{$smarty.session.company.companyName}</h2>\r\n\r\n<hr />\r\n\r\n<h2 class=\"withBG\">Administrative Controls:</h2>\r\n{include file=\"file:./layouts/companyManagementTocDisplay.tpl\"}'),(2792,177,0.20,'smarty','0','Page created.',1103655017,2,'67.166.75.78','<h1>eHealthCompete Company Management Area</h1>\r\n<h2>{$smarty.session.company.companyName}</h2>\r\n\r\n<hr />\r\n\r\n<h2 class=\"withBG\">Administrative Controls:</h2>\r\n<div style=\"margin-left:25px;\">\r\n	{include file=\"file:./layouts/companyManagementTocDisplay.tpl\"}\r\n</div>'),(2793,126,0.24,'smarty','0','added the newsletter signup on this step',1103666432,16,'64.85.237.174','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n<!-- {$signup.return} -->\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{select_query assign=\"termsOfUse\" return=\"val\"}\r\n	h.content \r\nFROM _toc t \r\n	INNER JOIN _pages p ON (t.pageId = p.id)\r\n	INNER JOIN _page_history h ON (h.pageId = p.id)\r\n	LEFT JOIN _users u ON (h.userId = u.id)\r\nWHERE\r\n	t.pageName = \'terms\' AND h.isActive = \'1\'\r\nORDER BY h.version DESC\r\n{/select_query}\r\n\r\n{$termsOfUse}\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$next.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"email\" value=\"{$signup.email}\">\r\n<input type=\"hidden\" name=\"signup[return]\" value=\"{$signup.return}\">\r\n\r\n<div align=\"center\" class=\"quote\">\r\n	I, {$signup.firstName} {$signup.lastName}, agree to these terms:<br />\r\n	<em>\r\n	<input type=\"radio\" name=\"signup[agree]\" value=\"Yes\"> Yes &nbsp; <input type=\"radio\" name=\"signup[agree]\" value=\"No\"> No\r\n	</em>\r\n</div>\r\n<br />\r\n<h2 class=\"withBG\">Sign up for our Newsletter?</h2>\r\n<p>eHealthCompete sends its users useful tips and advice from the health and wellness world, if you would like to add yourself to this group of recipients, select \'Yes\' below.</p>\r\n\r\n<div style=\"text-align:center;\"><input type=\"radio\" name=\"newsletterAction\" value=\"add\" checked=\"checked\"> Yes <input type=\"radio\" name=\"newsletterAction\" value=\"\"> No</div>\r\n\r\n<div align=\"right\">\r\n	<br />\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>'),(2794,182,0.14,'smarty','1','Page created.',1103666804,2,'67.166.75.78','<h1>Management Tools</h1>\r\n<h2>{$smarty.session.company.companyName}</h2>\r\n\r\n{assign var=\"wideFormat\" value=\"true\"}\r\n\r\n{if $smarty.request.tm_style_table}\r\n	{session_write var=\"tm_style_table\" value=$smarty.request.tm_style_table}\r\n{/if}\r\n{if $smarty.request.tm_template}\r\n	{session_write var=\"tm_template\" value=$smarty.request.tm_template}\r\n{/if}\r\n\r\n<div align=\"right\">\r\n<form style=\"margin:0px;\" name=\"tmstyleform\" method=\"get\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\nBorder Styles:\r\n<select name=\"tm_style_table\" onchange=\"if(this.value != \'\')this.form.submit();\">\r\n	<option value=\"\">-Change-</option>\r\n	<option value=\"gray\">Gray</option>\r\n	<option value=\"gray_bubble\">Gray Bubble</option>\r\n	<option value=\"blue-white\">Blue-White</option>\r\n	<option value=\"blue-blue\">Blue-Blue</option>\r\n	<option value=\"chrome\">Chrome</option>\r\n	<option value=\"purple-white\">Purple-White</option>\r\n	<option value=\"redlava\">redlava</option>\r\n</select>\r\n&nbsp;&nbsp;\r\nTemplate:\r\n<select name=\"tm_template\" onchange=\"if(this.value != \'\')this.form.submit();\">\r\n	<option value=\"\">-Change-</option>\r\n	<option value=\"default\">Default</option>\r\n	<option value=\"slate\">Slate</option>\r\n</select>\r\n</form>\r\n</div>\r\n\r\n{assign var=\"template\" value=$smarty.session.safe.tm_template|default:\"slate\"}\r\n\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"company_management\"\r\n	Profile=\"manage_announcements\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"img/st/\"\r\n	StyleTable=$smarty.session.safe.tm_style_table|default:\"gray\"\r\n	AddTemplate=$template|cat:\"_edit.tpl\"\r\n	MainTemplate=$template|cat:\"_main.tpl\"\r\n	ListTemplate=$template|cat:\"_list.tpl\"\r\n	EditTemplate=$template|cat:\"_edit.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"false\"\r\n	HeadingColor=\"90A9C4\"\r\n	HighlightColor=\"F6F9B5\"\r\n	ResultsPerPage=\"20\"\r\n	Color1=\"F7F7F7\"\r\n	Color2=\"E7E7E7\"\r\n	DataStyle=\"hideWrap\"\r\n	MaxStringLength=\"50\"\r\n	DateFormat=\"M j, Y h:i a \"\r\n	}\r\n\r\n'),(2795,184,0.10,'smarty','0','Page created.',1103667151,3,'67.166.75.78',''),(2796,185,0.10,'smarty','0','Page created.',1103667262,2,'67.166.75.78',''),(2797,185,0.11,'smarty','1','Page created.',1103667297,2,'67.166.75.78','{redirect href=\"?pg=management/tools&sub=manage_announcements\"}'),(2798,186,0.10,'smarty','0','Page created.',1103667366,2,'67.166.75.78',''),(2799,186,0.11,'smarty','1','Page created.',1103667390,2,'67.166.75.78','{redirect href=\"?pg=management/tools&sub=manage_competitions\"}'),(4531,178,0.63,'smarty','0','getting closer.',1130300993,3,'67.172.226.76','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{include_php file=\"shared_handle:company_management/survey_wizard\"}\r\n\r\n<h1>Survey Wizard</h1>\r\n<p><i>Under Construction, please be patient.</i></p>\r\n\r\n<select name=\"survey[id]\" onchange=\"\">\r\n  <option value=\"\" style=\"font-weight:bold;\">- SELECT SURVEY TO UPDATE -</option>\r\n {foreach from=$aCompanySurveys item=survey}\r\n  <option value=\"{$survey.surveyId}\">{$survey.surveyName}</option>\r\n {/foreach}\r\n  <option value=\"\" style=\"font-weight:bold;\">- GLOBAL SURVEYS -</option>\r\n {foreach from=$aGlobalSurveys item=survey}\r\n  <option value=\"{$survey.id}\">{$survey.surveyName}</option>\r\n {/foreach}\r\n</select> <input type=\"button\" value=\"Load\" onclick=\"promptSurveyLoad();\" />\r\n<br /><br />\r\n\r\n<h2 id=\"editor-title\">Creating A New Survey</h2>\r\n<blockquote>\r\n  <table><tr><td valign=\"top\" align=\"center\">\r\n  <a href=\"javascript:xOpen(\'icon-change-div\');\"><img id=\"survey-icon\" class=\"sIco icoJumper\" src=\"blank.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" /><br />\r\n  <small>change</small></a>\r\n  </td><td valign=\"top\">\r\n<div id=\"icon-change-div\" style=\"display:none;\">\r\n  {assign_array var=\"aIcons\" values=\"Carrots,Weights,Jumper,Nurse,Stethescope,Medal,Click,Scantron\"}\r\n  {foreach from=$aIcons item=\"ico\"}\r\n    <a href=\"javascript:setIcon(\'{$ico}\');\"><img class=\"sIco ico{$ico}\" src=\"blank.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" /></a>\r\n  {/foreach}\r\n</div>\r\n\r\n<div id=\"survey-editor\">\r\n  <input type=\"checkbox\" name=\"survey[isActive]\" value=\"\" /> <b>Enable this survey?</b> <small>Available to be taken once saved.</small><br />\r\n  <input type=\"checkbox\" name=\"survey[isIncentivePoints]\" value=\"\" /> <b>Incentive points?</b> <small>Total score will be added to incentive points.</small><br />\r\n  <hr />\r\n  <table align=\"center\" border=\"0\" style=\"margin-left:10px;\">\r\n  <tr>\r\n    <td><b>Survey Name</b>:</td>\r\n    <td><input id=\"survey-name\" type=\"text\" size=\"45\" maxlength=\"64\" name=\"survey[surveyName]\" value=\"\" onkeypress=\"titleUpdate();\" /> &nbsp; \r\n      <b>Base Value</b>: <input type=\"text\" size=\"4\" maxlength=\"5\" name=\"survey[baseValue]\" value=\"\" /></td>\r\n  </tr>\r\n  <tr>\r\n    <td><b>Frequency</b>:</td>\r\n    <td><select name=\"survey[frequency]\">\r\n          <option value=\"Daily\">Daily</option>          \r\n          <option value=\"Weekly\">Weekly</option>\r\n          <option value=\"Monthly\">Monthly</option>          \r\n          <option value=\"Annually\">Annually</option>\r\n          <option value=\"Once\">Once</option>\r\n          <option value=\"No Limit\">No Limit</option>\r\n        </select> &nbsp; \r\n        <b>Category</b>: <select name=\"survey[categoryId]\">\r\n          <option value=\"\">- SELECT A CATEGORY -</option>\r\n         {foreach from=$aSurveyCategories item=$category}\r\n          <option value=\"{$category.id}\">{$category.name}</option> \r\n         {/foreach}        \r\n        </select></td>\r\n  </tr>\r\n  <tr>\r\n    <td valign=\"top\"><b>Instructions:</b></td>\r\n    <td><textarea name=\"survey[instructions]\" rows=\"3\" cols=\"50\"></textarea></td>\r\n  </tr>\r\n  <tr>\r\n    <td valign=\"top\"><b>Completion:</b></td>\r\n    <td><textarea name=\"survey[instructions]\" rows=\"2\" cols=\"50\"></textarea><br />\r\n      <small>A brief &quot;Thank You&quot; message after survey has been finished.</small><br /><br /></td>\r\n  </tr>\r\n  </table>\r\n\r\n  <div align=\"center\"><input type=\"button\" value=\"Save Changes\" /> <input id=\"questions-editor-button\" type=\"button\" value=\"Edit Questions\" onclick=\"editQuestions();\" /></div>\r\n</div>\r\n\r\n<div id=\"questions-editor\" style=\"display:none;\">\r\n<table align=\"center\">\r\n  <tr>\r\n    <td valign=\"bottom\"><h2>Question #<b id=\"question-number-b\">1</b></h2></td>\r\n    <td valign=\"bottom\" align=\"center\"><input type=\"button\" value=\"Back\" /> <input type=\"button\" value=\"Next\" /></td>\r\n  </tr>\r\n  <tr>\r\n    <td valign=\"top\"><b>Question</b>:</td>\r\n    <td><textarea name=\"question[question]\" rows=\"3\" cols=\"50\"></textarea></td>\r\n  </tr>\r\n  <tr>\r\n    <td valign=\"top\"><b>Feedback:</b></td>\r\n    <td><textarea name=\"question[generalFeedback]\" rows=\"2\" cols=\"50\"></textarea><br />\r\n      <small>Explanation of question shown after survey is completed.</small><br /><br /></td>\r\n  </tr>\r\n{assign_array var=\'aQs\' values=\'A,B,C,D,E\'}\r\n{foreach from=$aQs item=\'qAlpha\'}\r\n  <tr>\r\n    <td><b>Option {$qAlpha}</b>:</td>\r\n    <td><input type=\"text\" name=\"question[{$qAlpha}]\" size=\"51\" maxlength=\"128\" /> &nbsp;\r\n      <b>Value</b>: <input type=\"text\" name=\"question[value{$qAlpha}]\" size=\"4\" maxlength=\"5\" /></td>\r\n  </tr>\r\n  <tr>\r\n    <td valign=\"top\"><b>Feedback</b>:</td>\r\n    <td><textarea name=\"question[feedbackA]\" rows=\"2\" cols=\"50\"></textarea><br /><br /></td>\r\n  </tr>\r\n{/foreach}\r\n<tr>\r\n  <td valign=\"top\"><b>Placement</b>:</td>\r\n  <td><select name=\"question[ids]\">\r\n      <option value=\"1\">1</option>\r\n    </select> Select which number you want this question to be.<br /><small>Existing questions will be moved down.</small><br /><br /></td>\r\n</tr>\r\n<tr>\r\n  <td colspan=\"2\" align=\"center\">\r\n    <b style=\"color:red;\" id=\"question-save-notification\">* Question updates not yet saved.</b><br />\r\n    <input type=\"button\" value=\"Discard Changes\" />\r\n    <input type=\"button\" value=\"Save\" />\r\n    <input type=\"button\" value=\"Save As Next\" />\r\n    <input type=\"button\" value=\"Delete\" />\r\n  </td>\r\n</tr>\r\n</table>\r\n</div>\r\n</td></tr></table>\r\n</blockquote>\r\n</div>\r\n\r\n<script type=\"text/javascript\">{literal}\r\n  function setIcon(ico) {\r\n    xGetElementById(\'survey-icon\').className = \'sIco ico\'+ico;\r\n    xClose(\'icon-change-div\');\r\n  }\r\n\r\n  function promptSurveyLoad() {\r\n    xGetElementById(\'editor-title\').innerHTML = \'Editing Survey (Survey Name)\';\r\n    xClose(\'questions-editor\'); \r\n    xOpen(\'survey-editor\');\r\n  }\r\n\r\n  function editQuestions() {\r\n    xGetElementById(\'editor-title\').innerHTML = \'Editing Survey Questions (Survey Name)\';\r\n    xOpen(\'questions-editor\');\r\n    xClose(\'survey-editor\');\r\n  }\r\n\r\n  function updateTitle() {\r\n    surveyName = xGetElementById(\'survey-name\').value;\r\n    xGetElementById(\'editor-title\').innerHTML = (surveyName) ? \'Editing: <b>\'+surveyName+\'</b>\' : \'Editing: <b>Untitled</b>\';\r\n  }\r\n{/literal}</script>'),(2801,184,0.11,'smarty','0','Page created.',1103667446,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\nThis is the survey page.<br />\r\nAnswer these for me please.'),(2802,180,0.12,'smarty','0','Page created.',1103667601,2,'67.166.75.78','{redirect href=\"?pg=management/tools&sub=manage_company_details\"}'),(2803,98,1.54,'smarty','0','Changed group check to look for \'coordinators\' for \'competitions i have started\'',1103667625,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/myhome_layout2.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"hideWLWLinks\" value=\"true\"}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{* getProfile is included by getStats *}\r\n{* include_php file=\"shared_handle:getStats\" *}\r\n\r\n{* Now getting only Profile because getStats does TONS of unneccesary processing *}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\n{if $smarty.request.debug}\r\n	{display var=$competitions}\r\n{/if}\r\n\r\n<h1 class=\"underline\">My Home - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n\r\n{$user->firstName}, this is your personal Wellness &quot;Home&quot;.\r\nFrom this page you can manage the competitions you are in, and update your wellness profile. \r\nClick on the \'Update Profile\' button to change your Motto, and other information about yourself, or \'Account Settings\' to change your password.<br />\r\n<br />\r\n<script language=\"javascript\">{literal}\r\nfunction goNewGraph() {\r\n	var obj = document.getElementById(\'graphDropdown\');\r\n	var url;\r\n\r\n	for (var x = 0; x < obj.options.length; x++) {\r\n		if (obj.options[x].selected)\r\n			url = obj.options[x].value;\r\n	}\r\n\r\n	graphwindow.location.replace(url);\r\n\r\n	obj.selectedIndex = 0;\r\n}{/literal}\r\n</script>\r\n\r\n<table border=\"0\">\r\n<tr>\r\n	<td valign=\"top\">\r\n		<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n			<h2 class=\"withBG\">Your Profile</h2>\r\n			<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n			<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n			<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n			<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n			<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n		<br />\r\n                {* <form name=\"notUsed\" style=\"margin:0px;\">\r\n		<select id=\"graphDropdown\" onchange=\"goNewGraph();\">\r\n			<option value=\"\">(Change Graph)</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\">Change in Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</option>\r\n		</select>\r\n		</form> *}\r\n		<h2 class=\"withBG\">Links</h2>\r\n		<small>\r\n		&nbsp;&middot; <a href=\"?pg=tips\">Weight Loss Tips</a><br /> \r\n		&nbsp;&middot; <a href=\"?pg=calculators\">Calculators</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=recipes\">Recipes</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=nutrition\">Nutrition Data</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=ptinfo\">Customized Fitness Plan</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=dietitianinfo\">Personal Nutrition Coach</a><br />\r\n		</small>\r\n                </div>\r\n               	</td>\r\n	<td align=\"center\">\r\n		<div style=\"margin:0px 10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&type=weight&fillPrevious=1&precision=0&totalChange=0&userIds={$userProfile.id}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n		<small>\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small>\r\n</td>\r\n	<td valign=\"top\" width=\"100%\" style=\"padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"|replace:\'\"\':\'\'}\"</i></h2>\r\n		</td>\r\n</tr>\r\n</table>\r\n<br />\r\n{if $smarty.request.hideComps neq \"1\"}\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n{* ********************************* COMPETITIONS I AM IN ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Am In</h2>\r\nHere are the competitions you have signed up to participate in. If you have an ID of a competition you would like to join, enter it below.<br />\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n\r\n	<div style=\"text-align:right;\">\r\n	<form name=\"joinCompForm\" method=\"post\" style=\"margin:4px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<b>Competition ID#</b> <input type=\"text\" class=\"textInput\" name=\"cid\"> <a href=\"javascript:document.joinCompForm.submit();\" class=\"button\">Join</a><br />\r\n	</form>\r\n	</div>\r\n</div>\r\n</td><td valign=\"top\" style=\"margin-left:10px;\">\r\n{* ********************************* COMPETITIONS I HAVE STARTED ********************************** *}\r\n{if $user->inGroupName(\'coordinators\')}\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.title}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{else}\r\n	<div class=\"underline2\">&nbsp;</div>\r\n	<small>&nbsp; &nbsp; You have not created any competitions.</small>\r\n{/if}\r\n{/if}\r\n</div>\r\n<br />\r\n</form>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myIncentives\', \'\', \'showHide\');\"><img id=\"myIncentives_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	My Incentives Program</h2>\r\n\r\n<div id=\"myIncentives\" style=\"display:block;\">\r\n        <div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n        <table id=\"surveyContainer\">\r\n           <tbody>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(0);\">Survey #1 - Dec 20th 2004</a></td>\r\n               <td rowspan=\"5\" valign=\"top\">\r\n                   <small>Surveys Taken: <b>7</b><br />Surveys Missed: <b>3</b><div class=\"underline\"></div>Total Score: <b>1000</b></small></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(1);\">Survey #2 - Dec 21st 2004</a></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(2);\">Survey #3 - Dec 22nd 2004</a></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(3);\">Survey #4 - Dec 23rd 2004</a></td></tr>\r\n           <tr><td><a href=\"javascript://\" onclick=\"openSurvey(4);\">Survey #5 - Dec 24th 2004</a></td></tr>\r\n           </tbody>\r\n        </table>\r\n        </div>\r\n</div>\r\n</td></tr></table>\r\n{/if}'),(784,117,0.10,'smarty','0','Page created.',1084358928,2,'24.2.68.15',''),(2978,98,1.93,'smarty','0','Made default graph the select image.',1106275610,16,'128.187.0.165','{assign var=\"pgLayout\" value=\"layouts/myhome_layout2.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"hideWLWLinks\" value=\"true\"}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{* getProfile is included by getStats *}\r\n{* include_php file=\"shared_handle:getStats\" *}\r\n\r\n{* Now getting only Profile because getStats does TONS of unneccesary processing *}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\n{if $smarty.request.debug}\r\n	{display var=$competitions}\r\n{/if}\r\n\r\n<h1 class=\"underline\">My Home - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n\r\n{$user->firstName}, this is your personal Wellness &quot;Home&quot;.\r\nFrom this page you can manage the competitions you are in, and update your wellness profile. \r\nClick on the \'Update Profile\' button to change your Motto, and other information about yourself, or \'Account Settings\' to change your password.<br />\r\n<br />\r\n<script language=\"javascript\">{literal}\r\nfunction goNewGraph() {\r\n	var obj = document.getElementById(\'graphDropdown\');\r\n	var url;\r\n\r\n	for (var x = 0; x < obj.options.length; x++) {\r\n		if (obj.options[x].selected)\r\n			url = obj.options[x].value;\r\n	}\r\n\r\n	graphwindow.location.replace(url);\r\n\r\n	obj.selectedIndex = 0;\r\n}{/literal}\r\n</script>\r\n\r\n<table border=\"0\">\r\n<tr>\r\n	<td valign=\"top\">\r\n		<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n			<h2 class=\"withBG\">Your Profile</h2>\r\n			<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n			<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n			<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n			<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n			<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n		<br />\r\n                {* <form name=\"notUsed\" style=\"margin:0px;\">\r\n		<select id=\"graphDropdown\" onchange=\"goNewGraph();\">\r\n			<option value=\"\">(Change Graph)</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\">Change in Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise Min</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</option>\r\n		</select>\r\n		</form> *}\r\n		<h2 class=\"withBG\">Links</h2>\r\n		<small>\r\n		&nbsp;&middot; <a href=\"?pg=tips\">Weight Loss Tips</a><br /> \r\n		&nbsp;&middot; <a href=\"?pg=calculators\">Calculators</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=recipes\">Recipes</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=nutrition\">Nutrition Data</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=ptinfo\">Customized Fitness Plan</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=dietitianinfo\">Personal Nutrition Coach</a><br />\r\n		</small>\r\n                </div>\r\n               	</td>\r\n	<td align=\"center\">\r\n		<div style=\"margin:0px 10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small{* &type=weight&fillPrevious=1&precision=1&totalChange=0&userIds={$userProfile.id} *}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n		<small>\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1\" target=\"graphwindow\">Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise Min</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small>\r\n</td>\r\n	<td valign=\"top\" width=\"100%\" style=\"padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"|replace:\'\"\':\'\'}\"</i></h2>\r\n		</td>\r\n</tr>\r\n</table>\r\n<br />\r\n{if $smarty.request.hideComps neq \"1\"}\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n{* ********************************* COMPETITIONS I AM IN ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Am In</h2>\r\nHere are the competitions you have signed up to participate in. If you have an ID of a competition you would like to join, enter it below.<br />\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n\r\n	<div style=\"text-align:right;\">\r\n	<form name=\"joinCompForm\" method=\"post\" style=\"margin:4px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<b>Competition ID#</b> <input type=\"text\" class=\"textInput\" name=\"cid\"> <a href=\"javascript:document.joinCompForm.submit();\" class=\"button\">Join</a><br />\r\n	</form>\r\n	-<i>or</i>- see a list of all <a href=\"?pg=availableCompetitions\">Available Competitions</a>!\r\n	</div>\r\n</div>\r\n</td><td valign=\"top\" style=\"margin-left:10px;\">\r\n{* ********************************* COMPETITIONS I HAVE STARTED ********************************** *}\r\n{if $user->inGroupName(\'coordinators\')}\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.title}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{else}\r\n	<div class=\"underline2\">&nbsp;</div>\r\n	<small>&nbsp; &nbsp; You have not created any competitions.</small>\r\n{/if}\r\n{/if}\r\n</div>\r\n<br />\r\n</form>\r\n\r\n{* ********************************* INCENTIVES PROGRAM ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myIncentives\', \'\', \'showHide\');\"><img id=\"myIncentives_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	My Incentives Program</h2>\r\n\r\n<div id=\"myIncentives\" style=\"display:block;\">\r\n        <div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	\r\n	{include_php file=\"shared_handle:company/participationPoints\"}\r\n\r\n	{if $scores|@count gt 0}\r\n	<h3>Participation Points</h3>\r\n        <table id=\"surveyContainer\" width=\"100%\">\r\n           <thead>\r\n               <tr><td width=\"100%\"><u> Category </u></td><td><u> Points </u></td><td nowrap><u> Total </u></td></tr>\r\n           </thead>\r\n           <tbody>\r\n           {foreach from=$scores item=\"score\" key=\"category\" name=\"loopScores\"}<tr><td nowrap>\r\n		<small>{$category|niceText}</small></td><td align=\"right\"><small>{$score}</small></td>\r\n		{if $smarty.foreach.loopScores.first}<td rowspan=\"999\" align=\"center\"><em>{$participationPointsEarned|default:0}</em></td>{/if}</tr>\r\n           {foreachelse}\r\n		None found.</td><td colspan=\"2\">&nbsp;</td></tr>\r\n           {/foreach}\r\n           </tbody>\r\n        </table>\r\n	<div class=\"underline\"></div>\r\n	<br />\r\n	{/if}\r\n\r\n	<h3>Survey Points</h3>\r\n        <table id=\"surveyContainer\" width=\"100%\">\r\n           {include_php file=\"shared_handle:company/surveyList\"}\r\n           <thead>\r\n               <tr><td width=\"100%\"><u> Survey Name </u></td><td><u> Available </u></td><td nowrap><u> Total </u></td></tr>\r\n           </thead>\r\n           <tbody>\r\n           {foreach from=$surveys item=item name=\"loopSurveys\"}<tr><td nowrap>\r\n		{if $item.dateAvailable gt 0}\r\n		<small>{$item.surveyName}</small></td><td align=\"center\"><small>{if $item.frequency eq \"Once\"}Taken{elseif (($item.dateAvailable - $smarty.now) < 43000)}{$item.dateAvailable|date_format2:\"g:i A\"}{else}{$item.dateAvailable|date_format2:\"m/d/y\"}{/if}</small></td>\r\n		{else}\r\n		<small><a href=\"javascript://\" onclick=\"openSurvey({$item.id});\">{$item.surveyName}</a></small></td><td align=\"center\"><small>Now</small></td>\r\n		{/if}{if $smarty.foreach.loopSurveys.first}<td rowspan=\"999\" align=\"center\"><em>{$surveyPointsEarned|default:0}</em></td>{/if}</tr>\r\n                {foreachelse}\r\n		None found.</td><td colspan=\"2\">&nbsp;</td></tr>\r\n               {/foreach}\r\n           </tbody>\r\n        </table>\r\n	<div class=\"underline\"></div>\r\n	<span><small><a href=\"javascript://\" onclick=\"viewSurveys();\">View My Survey History</a></small></span>\r\n	\r\n	<br /><br />\r\n	<div align=\"right\"><b>Your total points: </b><span style=\"font-size:18px;font-weight:bold;border:1px solid gray;padding:3px;\">{$surveyPointsEarned+$participationPointsEarned}</span></div>\r\n\r\n        </div>\r\n</div>\r\n</td></tr></table>\r\n{/if}'),(2976,175,0.48,'smarty','0','Temporary testing for a quicker login, only for my IP.',1106161960,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		{if $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"myhome\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<input type=\"hidden\" name=\"benchmark\" value=\"show\" />\r\n\r\n		{else}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n		{/if}\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(2977,175,0.49,'smarty','0','Changed back to normal, but target pg is now myhome',1106162028,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"myhome\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(2973,175,0.45,'smarty','0','Temporary testing for a quicker login, only for my IP.',1106156400,2,'67.166.75.78','{if $user->isLoggedIn() and $smarty.server.REMOTE_ADDR neq \"67.166.75.78\"}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		{if $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"myhome\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"\" />\r\n		<input type=\"hidden\" name=\"benchmark\" value=\"show\" />\r\n\r\n		{else}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n		{/if}\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(2974,175,0.46,'smarty','0','Temporary testing for a quicker login, only for my IP.',1106159270,2,'67.166.75.78','{if $user->isLoggedIn() and $smarty.server.REMOTE_ADDR neq \"67.166.75.78\"}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		{if $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"help\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"\" />\r\n		<input type=\"hidden\" name=\"benchmark\" value=\"show\" />\r\n\r\n		{else}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n		{/if}\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(2975,175,0.47,'smarty','0','Temporary testing for a quicker login, only for my IP.',1106159586,2,'67.166.75.78','{if $user->isLoggedIn() and $smarty.server.REMOTE_ADDR neq \"67.166.75.78\"}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		{if $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"myhome\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"\" />\r\n		<input type=\"hidden\" name=\"benchmark\" value=\"show\" />\r\n\r\n		{else}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n		{/if}\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(2971,175,0.43,'smarty','0','Temporary testing for a quicker login, only for my IP.',1106153357,2,'67.166.75.78','{if $user->isLoggedIn() and not $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		{if $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"myhome\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"\" />\r\n\r\n		{else}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n		{/if}\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(2972,175,0.44,'smarty','0','Temporary testing for a quicker login, only for my IP.',1106153467,2,'67.166.75.78','{if $user->isLoggedIn() and not $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=myhome\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		{if $smarty.server.REMOTE_ADDR eq \"67.166.75.78\"}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"myhome\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"\" />\r\n		<input type=\"hidden\" name=\"benchmark\" value=\"show\" />\r\n\r\n		{else}\r\n\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n		{/if}\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(4345,202,0.92,'smarty','0','Added company preference check to show SHOPPING stuff.',1127167801,3,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n{if $smarty.request.showNewMenu eq \"true\"}\r\n<div class=\"rightSideMenu\">\r\n	<div class=\"rightMenuBox\">\r\n	<h3>EHC News</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<span class=\"floatLeft iconNew\"></span>\r\n		<small><a href=\"#\">Portion Control Article in the nutrition corner. Click here to read</a></small>\r\n		</div>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Learn more about carbohydrates and how they affect your body.</a></small>\r\n		</div>	\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>Product Highlight</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<img src=\"{$skinFolder}images/rypHeartMonitor_small.jpg\" align=\"right\" class=\"img1\" alt=\"\" height=\"120\" width=\"91\" /><br />\r\n		<small><a href=\"#\">Reebok\'s Heart Rate Monitor.  Click here.</a></small>\r\n		</div>\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>To Do List:</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Update your progress</a><br />\r\n		<a href=\"#\">Earn more incentive points</a><br />\r\n		<a href=\"#\">Check out the competition</a><br />\r\n		<a href=\"#\">Read New Articles</a></small>\r\n		</div>\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n{if $user->isLoggedIn()}\r\n	<img src=\"{if $smarty.session.company.preferences.landing_logo_url}{$smarty.session.company.preferences.landing_logo_url}{else}{$skinFolder}images/ehc/corporateBuilding_sm.jpg{/if}\" style=\"margin-right:10px; float:left; border:#CCC 1px solid;\" />\r\n\r\n	{include_php file=\"shared_handle:company/announcements\"}\r\n	<h2 class=\"uline\">Company Announcements:</h2>\r\n\r\n	<blockquote>\r\n		<dl>\r\n		{foreach from=$announcements item=\"current\"}\r\n			<dt><div style=\"float:right;\"><small><i>{$current.postedDate|date_format2:\"D, M j\"}</i></small></div>\r\n			    {$current.title}</dt>\r\n			<dd>{$current.description}</dd>\r\n		{foreachelse}\r\n			<dt>No announcements at this time</dt>\r\n		{/foreach}\r\n		</dl>\r\n	</blockquote>\r\n\r\n	{include_php file=\"shared_handle:company/companySurveyList\"}\r\n	{if $landingSurveyText OR $surveys|@count gt 0}\r\n		<h2 class=\"uline\">Company Surveys:</h2>\r\n		<blockquote>\r\n		{$landingSurveyText}\r\n		{if $surveys|@count gt 0}\r\n			<table>\r\n			<tr><td colspan=\"2\">\r\n				<h3>Available Surveys:</h3></td>\r\n			    <td valign=\"middle\"></td></tr>\r\n			{foreach from=$surveys item=item name=\"loopSurveys\"}<tr><td nowrap>\r\n			<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n				{if $item.dateAvailable gt 0}\r\n					<img class=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></td>\r\n				   <td valign=\"top\"><b><u>{$item.surveyName}</u>:</b> {if $item.frequency eq \"Once\"}Taken{elseif (($item.dateAvailable - $smarty.now) < 43000)}<small>Available At:</small> {$item.dateAvailable|date_format2:\"g:i A\"}{else}<small>Available On:</small> {$item.dateAvailable|date_format2:\"m/d/y\"}{/if}<br />\r\n					{$item.feedbackTitle|default:\"No feedback available.\"}<br />\r\n					<a href=\"?pg=my_feedback&surveyId={$item.id}&amp;feedbackId={$item.feedbackId}\">Click here to learn more<b><i>!</i></b></a><br />\r\n					<br /></td>\r\n				   <td valign=\"middle\" align=\"right\"><em>{$item.pointsEarned}</em></td></tr>\r\n				{else}\r\n					<a href=\"javascript://\" onclick=\"openSurvey({$item.id});\"><img class=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></a></td>\r\n				   <td valign=\"top\" nowrap=\"nowrap\"><b><u>{$item.surveyName}</u>:</b> <a href=\"javascript://\" onclick=\"openSurvey({$item.id});\">Available Now</a><br />\r\n					{$item.feedbackTitle|default:\"No feedback available.\"}<br />\r\n					<a href=\"?pg=my_feedback&surveyId={$item.id}&amp;feedbackId={$item.feedbackId}\">Click here to learn more<b><i>!</i></b></a><br />\r\n					<br /></td>\r\n				   <td valign=\"middle\" align=\"right\"><em>{$item.pointsEarned}</em></td></tr>\r\n				{/if}\r\n			{foreachelse}\r\n			<tr><td valign=\"top\" colspan=\"3\">\r\n				None found.</td></tr>\r\n			{/foreach}\r\n			</table>\r\n		{/if}\r\n		</blockquote>\r\n	{/if}\r\n	{if $smarty.session.company.preferences.hide_shop neq \"yes\"}\r\n		<h2 class=\"uline\">eHealthCompete Highlights:</h2>\r\n		\r\n		<table>\r\n		<tr><td valign=\"middle\">\r\n		<blockquote>\r\n		<dl>	\r\n			<dt>Pedometer Deal</dt>\r\n			<dd>eHealthCompete has just negotiated a great deal on RYP Pedometers.  If you have been looking to purchase a pedometer the eHealthCompete price and quality could be your best bet.  This deal is only available to members of EHC.</dd>\r\n			\r\n		</dl>\r\n		</blockquote></td>\r\n		<td valign=\"top\" align=\"center\">\r\n			<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\">\r\n			<img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br />\r\n			Buy one now</a>\r\n		</td></tr></table>\r\n	{/if}\r\n{else}\r\n	{assign var=\"hideLogin\" value=\"true\"}\r\n		<script language=\"JavaScript\">{literal}\r\n			function doForgotPassword(boxId, formName) {\r\n				if (!formName) formName = \'loginForm\';\r\n				if (!boxId) boxId = \'usernameBox\';\r\n\r\n				var df = document.forms[formName];\r\n				var obj = document.getElementById(boxId);\r\n		\r\n				if (obj.value == \'\') {\r\n					obj.value = prompt(\'Enter your username:\', \'\');\r\n				}\r\n				\r\n\r\n				df.forgotPassword.value = \'true\';\r\n				df.submit();	\r\n			}\r\n\r\n		{/literal}</script>\r\n	<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n	<tr><td align=\"center\">\r\n		<h2>{$smarty.session.company.companyName}</h2>\r\n	</td></tr>\r\n	<tr><td>\r\n		<div align=\"center\" class=\"chunk300\">\r\n			<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$smarty.request.return|default:$signup.return|default:\"my_login\"}\" />\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n			<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"pg cid\" />\r\n			<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n		\r\n			<h2 class=\"withBG\">Log In:</h2>\r\n				Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n				Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n				<div class=\"underline\">&nbsp;</div>\r\n				<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n				<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n			</form>\r\n			<script language=\"javascript\">\r\n				document.forms.loginForm2.username.focus();\r\n			</script>\r\n		</div>\r\n	</td></tr>\r\n	<tr><td align=\"right\">\r\n		<br />\r\n		{if $smarty.session.company.companyName}\r\n			<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n		{else}\r\n			<!-- Place holder for sign up info content. -->\r\n		{/if}\r\n	</td></tr>\r\n	</table>\r\n{/if}'),(837,118,0.10,'smarty','0','Page created.',1084429820,2,'67.172.236.95',''),(838,118,0.11,'smarty','0','Page created.',1084429844,2,'67.172.236.95','<h1>HELP!</h1>'),(967,91,0.49,'smarty','0','added hBox for controls at the bottom.. need to figure out JS error..',1084845483,3,'24.10.220.247','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1>Create a Competition: Step 1</h1>\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n<br />\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectComp\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Selected Competition Type:</h2>\r\n	\r\n<div id=\"selectComp\" style=\"margin:10px;\" style=\"display:block;\">\r\n	<table>\r\n	<tr>\r\n		<td><div id=\"corporate\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Corporate</h2>\r\n				Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n			</div>\r\n					\r\n			<div id=\"friends\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Family/Friends</h2>\r\n				\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			</div>\r\n				\r\n			<div id=\"partner\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Partner/Spouse</h2>\r\n				Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			</div>\r\n				\r\n			<div id=\"group\" style=\"display:{if $newcomp.type eq \"group\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_alert.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Group/Club</h2>\r\n				Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"compRadios\">\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"corporateRadio\" value=\"corporate\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'corporateRadio\').checked=\'true\';selectType();return false;\">Corporate</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"friendsRadio\" value=\"friends\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendsRadio\').checked=\'true\';selectType();return false;\">Family / Friends</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"partnerRadio\" value=\"partner\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'partnerRadio\').checked=\'true\';selectType();return false;\">Partner / Spouse</a><!-- <br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"groupRadio\" value=\"group\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'groupRadio\').checked=\'true\';selectType();return false;\">Group / Club</a> -->\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n{assign var=\"includeX\" value=\"true\"}\r\n\r\n{if $newcomp.startDate}\r\n	{assign var=\"startDate\" value=$newcomp.startDate}\r\n{else}\r\n	{assign var=\"startDate\" value=$smarty.now}\r\n{/if}\r\n{if $newcomp.endDate}\r\n	{assign var=\"endDate\" value=$newcomp.endDate}\r\n{else}\r\n	{assign var=\"endDate\" value=$smarty.now|math:\"x+5184000\"}  {* Now + 2 Months *}\r\n{/if}\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectParams\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Competition Parameters:</h2>\r\n\r\n<div id=\"selectParams\" style=\"margin:10px; display:block;\">\r\n	<table>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Competition Name:</div></td>\r\n		<td><input type=\"text\" name=\"newcomp[name]\" class=\"textInput\" size=\"22\" maxlength=\"32\" style=\"width:220px;\" /><br />\r\n			<small>Any old thing you want to reference this competition by.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Start Date:</div></td>\r\n		<td><input type=\"text\" class=\"textInput\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date >{else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar0\');\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" /></a>\r\n			<div id=\"fCalendar0\" style=\"display:none; border:#999999 1px solid; width:100px; z-index:20;\" align=\"center\">\r\n				<iframe name=\"frameCalendar\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=0&year={$startDate|date_format2:\"Y\"}&month={$startDate|date_format2:\"m\"}&day={$startDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>End Date:</div></td>\r\n		<td><input type=\"text\" class=\"textInput\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date ^{else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar1\');\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" /></a>\r\n			<div id=\"fCalendar1\" style=\"float:left; display:none; border:#999999 1px solid; width:100px;\" align=\"center\">\r\n				<iframe name=\"frameCalendar2\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=1&year={$endDate|date_format2:\"Y\"}&month={$endDate|date_format2:\"m\"}&day={$endDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	\r\n	<tr>\r\n		<td align=\"right\"><div>Competition Style:</div></td>\r\n		<td><select name=\"newcomp[style]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Everyone-vs-Everyone\">Everyone vs. Everyone</option>\r\n			<option value=\"Group-vs-Group\">Team vs. Team</option>\r\n			<option value=\"One-on-One\">One on One</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Jackpot Method:</div></td>\r\n		<td><select name=\"newcomp[potMethod]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Per-competitor Donations\">Per-competitor Donations</option>\r\n			<option value=\"Individual Charity\">Individual Charity</option>\r\n			<option value=\"Company Charity\">Company Charity</option></select><br />\r\n			<small>Where the \"Jackpot\" money comes from.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\" nowrap><div>Jackpot Contribution:</div></td>\r\n		<td><span>$<input type=\"text\" name=\"newcomp[individualPotAmount]\" class=\"textInput\" size=\"4\" maxlength=\"4\" style=\"width:30px;\" />.00<br />\r\n			<small>Each individual must enter this much into the jackpot to join,<br />\r\n			 including you, when the competition is created.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Scoring Method:</div></td>\r\n		<td><select name=\"newcomp[scoringMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage Weight Lost</option></select><br />\r\n			<small>How the winner is determined.</small>\r\n			</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><span>Tie-Breaker Method:</span></td>\r\n		<td><select name=\"newcomp[tieBreakerMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\"{if not $newcomp.tieBreakerMethod} selected{/if}>Percentage Weight Lost</option></select><br />\r\n			<small>How the winner is determined, in the event of a tie.</small>\r\n			</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectInvite\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Choose an Invitation Style:</h2>\r\n	\r\n<div id=\"selectInvite\" style=\"margin:10px;\" style=\"display:block;\">\r\n	<table>\r\n	<tr>\r\n		<td><div>\r\n			Select the type of invitation you want to send out to your first group of contacts.</div>\r\n				\r\n		<div id=\"smack\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">SMACK!</h2>\r\n				<b>example:</b><br /> &quot;I challenge you to the battle of all battles, you stinky monkey!&quot;</div>\r\n			</div>\r\n					\r\n			<div id=\"challenge\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Challenge</h2>\r\n				<b>example:</b><br /> &quot;I\'m putting up $20 to take you down in a 6-week weight-loss competition!&quot;</div>\r\n			</div>\r\n				\r\n			<div id=\"friendly\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Friendly</h2>\r\n				<b>example:</b><br /> &quot;I bet that I can lose more body fat that you.&quot;</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"inviteRadios\">\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"smackRadio\" value=\"smack\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'smackRadio\').checked=\'true\';selectInvite();return false;\">SMACK!</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"challengeRadio\" value=\"challenge\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'challengeRadio\').checked=\'true\';selectInvite();return false;\">Challenge</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"friendlyRadio\" value=\"friendly\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendlyRadio\').checked=\'true\';selectInvite();return false;\">Friendly</a>\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"javascript:document.compStartForm.submit();\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n\r\n	<script language=\"JavaScript\">{literal}\r\n	function selectType() {\r\n		var type;\r\n		var types = Array(\'corporate\',\'friends\',\'partner\',\'group\');\r\n		var elems = document.getElementsByName(\'newcomp[type]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'friends\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function selectInvite() {\r\n		var type;\r\n		var types = Array(\'smack\',\'challenge\',\'friendly\');\r\n		var elems = document.getElementsByName(\'newcomp[invitationType]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'smack\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function updateScoringMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[scoringMethod]\') ? \'newcomp[tieBreakerMethod]\' : \'newcomp[scoringMethod]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		other.selectedIndex = (obj.selectedIndex == 0) ? 1 : 0;\r\n	}\r\n	\r\n	{/literal}\r\n</script>'),(968,116,0.33,'smarty','0','cleaned up..',1084846224,3,'24.10.220.247','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.createInvitation\"}\r\n\r\n<h1 class=\"underline\">Step 2</h1>\r\n\r\n<h2 class=\"withBG\">Create Your Invitation Letter:</h2><br />\r\nIn this step you will create an email letter to invite your competitors into your Weight Loss War!  \r\n<p />Select an Example letter or a fill-in-the-blanks letter to Edit.  If you don\'t like any of those letters then simply click on \r\n<i>Create My Own</i> below and write your own challenge invitation!  Then click <i>Next</i> below.\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n\r\n<script language=\"JavaScript\">\r\n\r\nvar examples = Array();\r\n{foreach from=$examples key=\"key\" item=\"example\"}\r\nexamples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n{/foreach}\r\n\r\n{literal}\r\n\r\nfunction toggleType(type) {\r\n	if (type == \'customLetter\') {\r\n		document.getElementById(\'customLetter\').style.display = \'block\';\r\n		document.getElementById(\'madlib\').style.display = \'none\';\r\n		document.getElementById(\'letterType\').value = \'customLetter\';\r\n		document.getElementById(\'madlibsElement\').selectedIndex = 0;\r\n	} else {\r\n		document.getElementById(\'customLetter\').style.display = \'none\';\r\n		document.getElementById(\'madlib\').style.display = \'block\';\r\n		document.getElementById(\'letterType\').value = \'madlib\';\r\n	}\r\n}\r\n\r\nfunction setExample(key) {\r\n	toggleType(\'customLetter\');\r\n	var ta = document.getElementById(\'customLetterElement\');\r\n\r\n	if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n		ta.value = examples[key];\r\n	}\r\n}\r\n\r\nfunction setMadlib(key) {\r\n	var obj;\r\n	key--;\r\n	toggleType(\'madlib\');	\r\n	for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n		obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n	}\r\n}\r\n{/literal}\r\n\r\n</script>\r\n\r\n\r\n<table align=\"center\">\r\n<tr>\r\n	<td valign=\"top\"><div>\r\n		<u>Examples:</u>\r\n		<div style=\"margin:0px 10px 0px 10px;\">\r\n			{foreach from=$examples key=\"key\" item=\"example\"}\r\n				<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n			{foreachelse}\r\n				Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n			{/foreach}\r\n		</div>\r\n	</div></td>\r\n	<td align=\"center\">\r\n		<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n		<br />\r\n		<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"350\">\r\n		<tr>\r\n			<td><div>\r\n				<!-- <a href=\"javascript://\" onclick=\"toggleType(\'madlib\');\">Use a MadLib!</a> -->\r\n\r\n				{if $madlibs|@count}\r\n					<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n						<option value=\"\">(Select a MadLib)</option>\r\n					{foreach from=$madlibs item=\"madlib\"}\r\n						<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n					{/foreach}\r\n					</select>\r\n				{else}\r\n					No Madlibs Available!\r\n				{/if}\r\n				<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n			</div></td>\r\n		</tr>\r\n		<tr>\r\n			<td align=\"left\">\r\n				<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n					{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n						<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n					{/foreach}\r\n					</div>\r\n\r\n				<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n					<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" class=\"textarea\"></textarea></div>\r\n			</td>\r\n		</tr>\r\n		</table>\r\n	</td>\r\n	<td>\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>'),(974,91,0.51,'smarty','0','added hidden values to keep track of hidden elements.',1084851248,3,'24.10.220.247','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1>Create a Competition: Step 1</h1>\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n<br />\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectComp\',\'hideSelectComp\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Selected Competition Type:</h2>\r\n<input type=\"hidden\" id=\"hideSelectComp\" name=\"newcomp[hideSelectComp]\" value=\"{$newcomp.hideSelectComp|default:0}\" />\r\n<div id=\"selectComp\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectComp eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div id=\"corporate\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Corporate</h2>\r\n				Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n			</div>\r\n					\r\n			<div id=\"friends\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Family/Friends</h2>\r\n				\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			</div>\r\n				\r\n			<div id=\"partner\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Partner/Spouse</h2>\r\n				Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			</div>\r\n				\r\n			<div id=\"group\" style=\"display:{if $newcomp.type eq \"group\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_alert.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Group/Club</h2>\r\n				Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"compRadios\">\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"corporateRadio\" value=\"corporate\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'corporateRadio\').checked=\'true\';selectType();return false;\">Corporate</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"friendsRadio\" value=\"friends\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendsRadio\').checked=\'true\';selectType();return false;\">Family / Friends</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"partnerRadio\" value=\"partner\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'partnerRadio\').checked=\'true\';selectType();return false;\">Partner / Spouse</a><!-- <br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"groupRadio\" value=\"group\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'groupRadio\').checked=\'true\';selectType();return false;\">Group / Club</a> -->\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n{assign var=\"includeX\" value=\"true\"}\r\n\r\n{if $newcomp.startDate}\r\n	{assign var=\"startDate\" value=$newcomp.startDate}\r\n{else}\r\n	{assign var=\"startDate\" value=$smarty.now}\r\n{/if}\r\n{if $newcomp.endDate}\r\n	{assign var=\"endDate\" value=$newcomp.endDate}\r\n{else}\r\n	{assign var=\"endDate\" value=$smarty.now|math:\"x+5184000\"}  {* Now + 2 Months *}\r\n{/if}\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectParams\',\'hideSelectParams\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Competition Parameters:</h2>\r\n<input type=\"hidden\" id=\"hideSelectParams\" name=\"newcomp[hideSelectParams]\" value=\"{$newcomp.hideSelectParams|default:0}\" />\r\n<div id=\"selectParams\" style=\"margin:10px; display:{if $newcomp.hideSelectParams eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Competition Name:</div></td>\r\n		<td><input type=\"text\" name=\"newcomp[name]\" class=\"textInput\" size=\"22\" maxlength=\"32\" style=\"width:220px;\" /><br />\r\n			<small>Any old thing you want to reference this competition by.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Start Date:</div></td>\r\n		<td><input type=\"text\" class=\"textInput\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date >{else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar0\');\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" /></a>\r\n			<div id=\"fCalendar0\" style=\"display:none; border:#999999 1px solid; width:100px; z-index:20;\" align=\"center\">\r\n				<iframe name=\"frameCalendar\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=0&year={$startDate|date_format2:\"Y\"}&month={$startDate|date_format2:\"m\"}&day={$startDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>End Date:</div></td>\r\n		<td><input type=\"text\" class=\"textInput\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date ^{else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar1\');\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" /></a>\r\n			<div id=\"fCalendar1\" style=\"float:left; display:none; border:#999999 1px solid; width:100px;\" align=\"center\">\r\n				<iframe name=\"frameCalendar2\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=1&year={$endDate|date_format2:\"Y\"}&month={$endDate|date_format2:\"m\"}&day={$endDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	\r\n	<tr>\r\n		<td align=\"right\"><div>Competition Style:</div></td>\r\n		<td><select name=\"newcomp[style]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Everyone-vs-Everyone\">Everyone vs. Everyone</option>\r\n			<option value=\"Group-vs-Group\">Team vs. Team</option>\r\n			<option value=\"One-on-One\">One on One</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Jackpot Method:</div></td>\r\n		<td><select name=\"newcomp[potMethod]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Per-competitor Donations\">Per-competitor Donations</option>\r\n			<option value=\"Individual Charity\">Individual Charity</option>\r\n			<option value=\"Company Charity\">Company Charity</option></select><br />\r\n			<small>Where the \"Jackpot\" money comes from.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\" nowrap><div>Jackpot Contribution:</div></td>\r\n		<td><span>$<input type=\"text\" name=\"newcomp[individualPotAmount]\" class=\"textInput\" size=\"4\" maxlength=\"4\" style=\"width:30px;\" />.00<br />\r\n			<small>Each individual must enter this much into the jackpot to join,<br />\r\n			 including you, when the competition is created.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Scoring Method:</div></td>\r\n		<td><select name=\"newcomp[scoringMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage Weight Lost</option></select><br />\r\n			<small>How the winner is determined.</small>\r\n			</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><span>Tie-Breaker Method:</span></td>\r\n		<td><select name=\"newcomp[tieBreakerMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\"{if not $newcomp.tieBreakerMethod} selected{/if}>Percentage Weight Lost</option></select><br />\r\n			<small>How the winner is determined, in the event of a tie.</small>\r\n			</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectInvite\', \'hideSelectInvite\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Choose an Invitation Style:</h2>\r\n<input type=\"hidden\" id=\"hideSelectInvite\" name=\"newcomp[hideSelectInvite]\" value=\"{$newcomp.hideSelectInvite|default:0}\" />	\r\n<div id=\"selectInvite\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectInvite eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div>\r\n			Select the type of invitation you want to send out to your first group of contacts.</div>\r\n				\r\n		<div id=\"smack\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">SMACK!</h2>\r\n				<b>example:</b><br /> &quot;I challenge you to the battle of all battles, you stinky monkey!&quot;</div>\r\n			</div>\r\n					\r\n			<div id=\"challenge\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Challenge</h2>\r\n				<b>example:</b><br /> &quot;I\'m putting up $20 to take you down in a 6-week weight-loss competition!&quot;</div>\r\n			</div>\r\n				\r\n			<div id=\"friendly\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Friendly</h2>\r\n				<b>example:</b><br /> &quot;I bet that I can lose more body fat that you.&quot;</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"inviteRadios\">\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"smackRadio\" value=\"smack\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'smackRadio\').checked=\'true\';selectInvite();return false;\">SMACK!</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"challengeRadio\" value=\"challenge\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'challengeRadio\').checked=\'true\';selectInvite();return false;\">Challenge</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"friendlyRadio\" value=\"friendly\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendlyRadio\').checked=\'true\';selectInvite();return false;\">Friendly</a>\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"javascript:document.compStartForm.submit();\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n\r\n	<script language=\"JavaScript\">{literal}\r\n	function selectType() {\r\n		var type;\r\n		var types = Array(\'corporate\',\'friends\',\'partner\',\'group\');\r\n		var elems = document.getElementsByName(\'newcomp[type]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'friends\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function selectInvite() {\r\n		var type;\r\n		var types = Array(\'smack\',\'challenge\',\'friendly\');\r\n		var elems = document.getElementsByName(\'newcomp[invitationType]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'smack\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function updateScoringMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[scoringMethod]\') ? \'newcomp[tieBreakerMethod]\' : \'newcomp[scoringMethod]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		other.selectedIndex = (obj.selectedIndex == 0) ? 1 : 0;\r\n	}\r\n	\r\n	{/literal}\r\n</script>'),(2932,105,1.04,'php','0','added the return policy',1104468677,16,'64.85.253.211','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  chaeck back often for enhanced goal managment features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\",\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to selelct the answer that most appropriatly represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"	\r\n		\r\n)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"What does BMI stand for and what is a healthy BMI for me? \",\r\n			\"How accurate is the BMI measurement? \",\r\n			\"What is a healthy blood pressure? \",\r\n			\"How can I lower blood pressure besides medication?\",\r\n			\"Where should my cholesterol levels be?\",\r\n			\"How much exercise do I need to do to lose weight?\",\r\n			\"What is the best type of exercise to lose body fat?\",\r\n			\"How can I know what my body fat percentage is?\",\r\n			\"What is heart disease and how does exercise and nutrition affect my risks?\",\r\n			\"What is the Target Heart Rate zone? \",\r\n			\"Do I really need to lift weights?\",\r\n			\"What if I just don’t have time to exercise?\",\r\n			\"If I am overweight or obese, what diseases am I at risk for?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"BMI stands for Body Mass Index and is a ratio of weight to height, used to estimate the relationship of body composition to risk factors of certain diseases. Use our calculator to determine what your BMI is and refer to the chart below to see what category you are in.<br />18.5 or less is Under Weight <br />18.5 to 24.9 is Normal <br />25.0 to 29.9 is Overweight <br />30.0 to 34.9 is Level 1 Obese <br />35.0 to 39.9 is Level 2 Obese <br />40 or greater is Extreme Obese\",\r\n			\"For the vast majority of average individuals, the BMI is a useful and accurate measurement. The drawback lies in the fact that short, muscular individuals may be falsely labeled as obese, and tall lean individuals as underweight.\",\r\n			\"According to national guidelines, normal blood pressure is below 120/80 mmHg. Blood pressure above 140/90 mmHg is diagnosed as hypertension, or high blood pressure. Someone with hypertension is at higher risk of having strokes, heart attacks and kidney.\",\r\n			\"Hypertension can be treated through increased exercise and a better diet. Many recent studies have shown that regular aerobic exercise (workouts like brisk walking that use large muscles for an extended period) over several months may modestly lower blood pressure. According to a recent National Institutes of Health conference, aerobic exercise reduces resting (nonexercise) blood pressure in people who have hypertension by an average of 11 points off the top number and 9 points off the bottom number. That could be enough to lower high blood pressure to normal. Reducing sodium(salt) in your diet can also help to lower blood pressure.\",\r\n			\"Your TOTAL blood cholesterol will fall into one of these categories:<br /><b>Desirable</b> is Less than 200 mg/dL <br /><b>Borderline high risk</b> is 200 to 239 mg/dL <br /><b>High risk</b> is 240 mg/dL and over<br />There are two types of cholesterol in your body: LDL is bad cholesterol and contributes to artery clogging. You want Low LDL levels (below 100 is optimal). HDL is good cholesterol and helps to clear arterial blockage. You want High HDL levels. (Less than 40 is too low) To lower your LDL and raise your HDL levels you can: <br />Quit Smoking <br />Lose weight (or maintain a healthy weight) <br />Be physically active for at least 30 to 60 minutes a day on most or all days of the week.\",\r\n			\"This depends on how many calories you are consuming. To lose weight you need to burn more calories than you take in. It takes 3500 calories burned to lose 1 pound. That’s going into a deficit of 1,000 calories a day if you want to lose 2 lbs a week. This can be done by eating 500 calories less than you normally do and burning 500 calories per day more through exercise. That is equivalent to about a 45 minute jog.<br />Exercising 30 to 60 minutes 5 days a week is a good guideline to follow and will not only aid in weight loss but will also reduce your risk for several diseases including heart disease, diabetes and colon cancer.\"\r\n			\"When your body is engaged in aerobic exercise, it utilizes fat as its fuel. So if your goal is to lose body fat, your main modes of exercise should be walking, jogging, biking or swimming in your target heart rate zone.\",\r\n			\"There are several different methods used to determine body fat percentage. Hydrostatic or underwater weighing is probably the most accurate and widely used. There are other methods and devices including the DEXA machine, the Bod Pod, Tanita scales, hand held devices and Skin Calipers. The key is to use the same method consistently so that you can see the change in your body fat percentage. \",\r\n			\"Heart disease occurs because of inadequate blood flow to the heart muscle. This occurs when the arteries that supply the heart muscle (the coronary arteries) become partially or completely blocked. Obese people are at increased risk of heart disease due to their higher rates of hypercholesterolemia, diabetes and hypertension. Several studies have proven the beneficial effects of exercise on heart diseases. Not only will it reduce body fat, but it will also help to lower blood cholesterol, blood pressure and regulate glucose metabolism. Eating a diet high low in saturated fat and cholesterol and high in dietary fiber will lower your risk for heart disease.\",\r\n			\"The Target Heart Rate zone refers to the range that you want your heart rate to be in while you are doing aerobic exercise. This is the best zone to be in to burn body fat. Calculate your target heart rate zone using our calculator.\",\r\n			\"There are many benefits to strength training including:<br />Higher metabolism<br />Stronger bones<br />Increased muscle strength and endurance<br />Increased balance, flexibility and stability<br />Decreased risk of coronary heart disease<br />Injury prevention<br />Feel and look better<br />Strength training will help you with weight loss because the more muscle you have the more calories you burn at rest.\"\r\n			\"We all have busy schedules and the trick with exercising is plan, plan, plan. Schedule it in before your busy week begins. Make it a priority. Set aside time one day a week to plan when, where and for how long you will exercise. It may require getting up half hour earlier, or taking a little longer lunch break. If there is absolutely no time in your schedule for a formal exercise session you can do little tricks like parking farther away at the store, taking the elevator, etc. Every little bit helps.\",\r\n			\"Obesity places you at risk for several diseases including heart disease, diabetes, some forms of cancer, sleep apnea, abdominal hernias, varicose veins, gout, gall bladder disease, respiratory problems, and liver malfunction. Losing just 10% of your body weight will significantly lower your risk for these diseases.\"\r\n		)\r\n	)\r\n);\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(2433,143,0.56,'smarty','0','Changed distanceRun to distanceExercised.',1099933117,3,'24.10.224.224','{assign var=\"pgLayout\" value=\"none\"}{include_php file=\"shared_handle:getStats\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	<style>{literal}\r\n	.verticalText {\r\n		writing-mode: tb-rl;\r\n		filter: flipv fliph;\r\n	}\r\n	.tch {\r\n		height:40px;\r\n		border-right:1px solid black;\r\n		border-bottom:1px solid black;\r\n		background-color:#EEE;\r\n	}\r\n	.tc {\r\n		height:30px;\r\n		border-right:1px dashed #CCC;\r\n		border-bottom:1px dashed #CCC;\r\n		background-color:#FFF;\r\n		text-align:center;\r\n	}\r\n	\r\n	/* Tooltip Groups - for elements which trigger tooltips */\r\n	.tipGrp1 {\r\n	  color:#666; border-bottom:1px dashed #000;\r\n	  cursor:default;\r\n	}\r\n	.tipGrp2 {\r\n	  color:#686; border-bottom:1px dashed #080;\r\n	  cursor:default;\r\n	}\r\n	.tipGrp3 {\r\n	  color:#866; border-bottom:1px dashed #800;\r\n	}\r\n	.tipGrp4 {\r\n	  color:#668; border-bottom:1px dashed #008;\r\n	  cursor:default;\r\n	}\r\n	/* Tooltip styles for each group */\r\n	.tipGrp1s {\r\n	  position:absolute; visibility:hidden; overflow:hidden;\r\n	  color:#000; background:#ccc; border:1px solid #000;\r\n	  font-size:10px; margin:0; padding:1px;\r\n	  width:180px; height:14px;\r\n	}\r\n	.tipGrp2s {\r\n	  position:absolute; visibility:hidden; overflow:hidden;\r\n	  color:#080; background:#ccc; border:1px solid #080;\r\n	  font-size:10px; margin:0; padding:1px;\r\n	  width:180px; height:14px;\r\n	}\r\n	.tipGrp3s {\r\n	  position:absolute; visibility:hidden; overflow:hidden;\r\n	  color:#800; background:#fcc; border:1px solid #800;\r\n	  font-size:10px; margin:0; padding:1px;\r\n	  width:180px; height:14px;\r\n	}\r\n	.tipGrp4s {\r\n	  position:absolute; visibility:hidden; overflow:hidden;\r\n	  color:#008; background:#ccf; border:1px solid #008;\r\n	  margin:0; padding:2px;\r\n	  width:180px; height:auto;\r\n	}\r\n	{/literal}</style>\r\n\r\n<script language=\"javascript\" src=\"./js/cross-browser/x/x_load.js\"></script>\r\n<script language=\"javascript\">{literal}\r\n	var xDir = \'./js/cross-browser/x/\';\r\n	var hiZ = 2;\r\n	\r\n	xInclude(xDir+\'x_core.js\',\r\n		 xDir+\'x_event.js\',\r\n		 xDir+\'x_dom.js\',\r\n		 xDir+\'x_tip.js\');\r\n			 \r\n	window.onload = function () {\r\n		  new xTooltipGroup(\'tipGrp1\', \'tipGrp1s\', \'right\', 4, 0);\r\n		  new xTooltipGroup(\'tipGrp2\', \'tipGrp2s\', \'top\', 0, -2);\r\n		  new xTooltipGroup(\'tipGrp3\', \'tipGrp3s\', \'mouse\', 20, -10);\r\n		  new xTooltipGroup(\'tipGrp4\', \'tipGrp4s\', \'mouse\', 20, -10);\r\n	}\r\n{/literal}</script>\r\n<script language=\"javascript\" src=\"\"></script>\r\n\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{* display var=$userStats *}\r\n{* display var=$compData *}\r\n<table width=\"100%\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr>\r\n	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\">&nbsp;<a href=\"?pg=myprofile/update&start={$week.weekOfTimestamp}&userId={$userProfile.id}\'\" target=\"profileUpdateFrame\"><em>Week {$num}</em></a>&nbsp;<br /><small>{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{else}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\"><small>&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{/if}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.weight}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr class=\'tipGrp2\' title=\'An X Toy From Cross-Browser.com\'>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.totalLost|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr class=\'tipGrp3\' title=\'An X Toy From Cross-Browser.com\'>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.bmi|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr class=\'tipGrp1\' title=\'An X Toy From Cross-Browser.com\'>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.calories|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr class=\'tipGrp4\' title=\'An X Toy From Cross-Browser.com\'>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.carbs|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.fat|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.minutesExercise|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.distanceExercised|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n</table><a name=\"recent\"></a>\r\n</body>\r\n</html>\r\n'),(2432,1,2.84,'smarty','0','Switched to Flash animation',1099931993,3,'24.10.224.224','{assign var=\"hideTopNav\" value=\"1\"} \r\n{swf src=\"`$skinFolder`flash/weightloss.swf\" width=\"690\" height=\"387\"}\r\n\r\n<div id=\"homeNavigator\" class=\"hBox\" style=\"margin:5px 6px;text-align:right;margin-right:0px;\">\r\n	<a href=\"?pg=howitworks\" class=\"link\">How It All Works</a> | \r\n	{if $user->isLoggedIn()}<a href=\"?pg=myhome\" class=\"link\">Go to My Home</a>{else}<a href=\"?pg=signup/begin\" class=\"link\">Sign Up Now</a>{/if}</div>\r\n\r\n'),(2987,105,1.13,'php','0','Replaced some weird character.',1106561071,2,'67.166.75.78','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Competition Questions\",\r\n		\"anchor\" => \"comp\",\r\n		\"questions\" => array(\r\n			\"How is the scoring calculated?\",\r\n			\"My weight loss is incorrect! Why?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"This depends on what the scoring method is.<br /><br />If the scoring method is based on a totals-type category, where the winner has the largest (or smallest) sum of one category (such as minutes or distance exercise), then the totals are simply calculated on all entries you placed between (or on) the start date and the end date of the competition.<br /><br />If the competition is based on weight (weight lost or percentage weight lost), the site uses the earliest weight entry for you on or after the start date of the competition. This number is subracted by the weight entry nearest, but not after the competition end date to calculate your weight lost for the competition.<br /><br />The site does not use any weight entries before the start date of the competition as your start weight because it will not assume that your weight was consistent between that time and the start of the competition.<br /><br />We recommend weighing yourself on the starting date of the competition (or as soon as possible after it begins) and making that entry in your weight loss journal.\",\r\n			\"There are many possible reasons for this, but the most common is covered above in \\\"How is the scoring calculated?\\\".<br /><br />It is also possible that you have entered incorrect data, or incorrectly calculated what you think your loss should be; please be careful to make sure your weight loss is indeed incorrectly calculated in a competition before contacting us for help.<br /><br />Another reason your weight loss might not seem correct is that the competition calculation has been cached and has not been updated since you saved entries in your weight loss journal. Please note the \\\"as of MM/DD/YYYY HH:MM A\\\" time at the top of your leader board.\"\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  check back often for enhanced goal management features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\",\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to select the answer that most appropriately represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"\r\n		)\r\n	),\r\n	\"3\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"What does BMI stand for and what is a healthy BMI for me? \",\r\n			\"How accurate is the BMI measurement? \",\r\n			\"What is a healthy blood pressure? \",\r\n			\"How can I lower blood pressure besides medication?\",\r\n			\"Where should my cholesterol levels be?\",\r\n			\"How much exercise do I need to do to lose weight?\",\r\n			\"What is the best type of exercise to lose body fat?\",\r\n			\"How can I know what my body fat percentage is?\",\r\n			\"What is heart disease and how does exercise and nutrition affect my risks?\",\r\n			\"What is the Target Heart Rate zone? \",\r\n			\"Do I really need to lift weights?\",\r\n			\"What if I just don\'t have time to exercise?\",\r\n			\"If I am overweight or obese, what diseases am I at risk for?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"BMI stands for Body Mass Index and is a ratio of weight to height, used to estimate the relationship of body composition to risk factors of certain diseases. Use our calculator to determine what your BMI is and refer to the chart below to see what category you are in.<br />18.5 or less is Under Weight <br />18.5 to 24.9 is Normal <br />25.0 to 29.9 is Overweight <br />30.0 to 34.9 is Level 1 Obese <br />35.0 to 39.9 is Level 2 Obese <br />40 or greater is Extreme Obese\",\r\n			\"For the vast majority of average individuals, the BMI is a useful and accurate measurement. The drawback lies in the fact that short, muscular individuals may be falsely labeled as obese, and tall lean individuals as underweight.\",\r\n			\"According to national guidelines, normal blood pressure is below 120/80 mmHg. Blood pressure above 140/90 mmHg is diagnosed as hypertension, or high blood pressure. Someone with hypertension is at higher risk of having strokes, heart attacks and kidney failure.\",\r\n			\"Hypertension can be treated through increased exercise and a better diet. Many recent studies have shown that regular aerobic exercise (workouts like brisk walking that use large muscles for an extended period) over several months may modestly lower blood pressure. According to a recent National Institutes of Health conference, aerobic exercise reduces resting (nonexercise) blood pressure in people who have hypertension by an average of 11 points off the top number and 9 points off the bottom number. That could be enough to lower high blood pressure to normal. Reducing sodium(salt) in your diet can also help to lower blood pressure.\",\r\n			\"Your TOTAL blood cholesterol will fall into one of these categories:<br /><b>Desirable</b> is Less than 200 mg/dL <br /><b>Borderline high risk</b> is 200 to 239 mg/dL <br /><b>High risk</b> is 240 mg/dL and over<br />There are two types of cholesterol in your body: LDL is bad cholesterol and contributes to artery clogging. You want Low LDL levels (below 100 is optimal). HDL is good cholesterol and helps to clear arterial blockage. You want High HDL levels. (Less than 40 is too low) To lower your LDL and raise your HDL levels you can: <br />Quit Smoking <br />Lose weight (or maintain a healthy weight) <br />Be physically active for at least 30 to 60 minutes a day on most or all days of the week.\",\r\n			\"This depends on how many calories you are consuming. To lose weight you need to burn more calories than you take in. It takes 3500 calories burned to lose 1 pound. That’s going into a deficit of 1,000 calories a day if you want to lose 2 lbs a week. This can be done by eating 500 calories less than you normally do and burning 500 calories per day more through exercise. That is equivalent to about a 45 minute jog.<br />Exercising 30 to 60 minutes 5 days a week is a good guideline to follow and will not only aid in weight loss but will also reduce your risk for several diseases including heart disease, diabetes and colon cancer.\",\r\n			\"When your body is engaged in aerobic exercise, it utilizes fat as its fuel. So if your goal is to lose body fat, your main modes of exercise should be walking, jogging, biking or swimming in your target heart rate zone.\",\r\n			\"There are several different methods used to determine body fat percentage. Hydrostatic or underwater weighing is probably the most accurate and widely used. There are other methods and devices including the DEXA machine, the Bod Pod, Tanita scales, hand held devices and Skin Calipers. The key is to use the same method consistently so that you can see the change in your body fat percentage. \",\r\n			\"Heart disease occurs because of inadequate blood flow to the heart muscle. This occurs when the arteries that supply the heart muscle (the coronary arteries) become partially or completely blocked. Obese people are at increased risk of heart disease due to their higher rates of hypercholesterolemia, diabetes and hypertension. Several studies have proven the beneficial effects of exercise on heart diseases. Not only will it reduce body fat, but it will also help to lower blood cholesterol, blood pressure and regulate glucose metabolism. Eating a diet high low in saturated fat and cholesterol and high in dietary fiber will lower your risk for heart disease.\",\r\n			\"The Target Heart Rate zone refers to the range that you want your heart rate to be in while you are doing aerobic exercise. This is the best zone to be in to burn body fat. Calculate your target heart rate zone using our calculator.\",\r\n			\"There are many benefits to strength training including:<br />Higher metabolism<br />Stronger bones<br />Increased muscle strength and endurance<br />Increased balance, flexibility and stability<br />Decreased risk of coronary heart disease<br />Injury prevention<br />Feel and look better<br />Strength training will help you with weight loss because the more muscle you have the more calories you burn at rest.\",\r\n			\"We all have busy schedules and the trick with exercising is plan, plan, plan. Schedule it in before your busy week begins. Make it a priority. Set aside time one day a week to plan when, where and for how long you will exercise. It may require getting up half hour earlier, or taking a little longer lunch break. If there is absolutely no time in your schedule for a formal exercise session you can do little tricks like parking farther away at the store, not taking the elevator, etc. Every little bit helps.\",\r\n			\"Obesity places you at risk for several diseases including heart disease, diabetes, some forms of cancer, sleep apnea, abdominal hernias, varicose veins, gout, gall bladder disease, respiratory problems, and liver malfunction. Losing just 10% of your body weight will significantly lower your risk for these diseases.\"\r\n		)\r\n	)\r\n);\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(1062,100,0.19,'smarty','0','added content again',1085677183,16,'64.85.237.174','<h1>Privacy Statement</h1><p />\r\n\r\n<h2>WeightLossWars, L.L.C. PRIVACY POLICY</h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWeightLossWars, L.L.C. (\"WLW,\" \"we\" or \"us\") provides a variety of online services and products, including without limitation, subscription, newsletter and update services (\"Services\"), to subscribers via email and on numerous websites throughout the World Wide Web (the \"Sites\"). WLW is strongly committed to protecting the privacy of your personal information, and providing a safe and secure environment for its subscribers.<br /><br />\r\nTHE PURPOSE OF THIS WLW PRIVACY POLICY (THE \"POLICY\") IS TO HELP YOU UNDERSTAND THE KINDS OF INFORMATION WE MAY GATHER ABOUT YOU WHEN YOU VISIT THE SITES OR USE ANY OF OUR SERVICES, HOW WE MAY USE THAT INFORMATION, IN WHICH MANNER WE WILL DISCLOSE IT, AND HOW YOU CAN CORRECT AND/OR UPDATE THE INFORMATION. PLEASE NOTE THAT BY USING THE SERVICES OR VISITING THE SITES, YOU SIGNIFY YOUR AGREEMENT WITH THIS POLICY. IF YOU DO NOT AGREE TO THE TERMS OF THIS POLICY, PLEASE DO NOT USE THE SERVICES OR REFRAIN FROM VISITING THE SITES. <br /><br />\r\nPlease note that the Policy applies only to WLW\'s Services and Sites, but not to other websites to which we may link, or to advertisers on the Sites. Additionally, your use of the Services and/or the Sites is governed by WLW\'s Terms of Service, as well as by any other published rules pertaining to either a particular Site or Service. <br /><br />\r\n\r\n<b>Children\'s Information</b><br />\r\nWLW\'s policy is that it does not knowingly collect personally identifiable information from subscribers under thirteen years of age. The Services or Sites are not directed or intended for children under thirteen years of age. If you are under thirteen years of age, you should not register to become a Subscriber or provide personally identifiable information on any of the Sites. If you are the parent or guardian of a subscriber under the age of thirteen whom you believe has disclosed personally identifiable information to WLW, please contact WLW at contact@weightlosswars.com so that we may delete and remove such subscriber\'s information from our systems. <br /><br />\r\n\r\n<b>The Information We Gather</b><br />\r\nWLW collects information from you at several different points on the Sites or through use of the Services in various ways. For example, WLW continually reviews its visitors\' demographics, interests and pages viewed, and WLW may require its subscribers and users to provide certain personal information if they wish to participate in various activities on the Sites (e.g., consummating transactions and entering into contests, drawings or surveys). However, WLW can only collect your personally identifiable information if, and when, it is voluntarily offered. Whenever we collect personal information, we will make an effort to include a link to this Policy on that page. This personal information may be given for the following reasons: to provide contact information to contracted dietitians and personal trainers, mailing products, contacting the user for solicitation by the members of WeightLossWars, or for any other reason that will facilitate the provision of products or services to the user.<br /><br />\r\n\r\n<b>Message Board and Chats</b><br />\r\nAmong the many Services which WLW offers subscribers on the Sites, we provide message boards and chat rooms. Please be aware that any visitor may read your postings on a message board or in a chat room. Furthermore, any information which you may post to a message board or in a chat room, including your profile information, will be disclosed and available to all users of that message board or chat room, and is therefore no longer private. WLW cannot guarantee the security of such information that you disclose or communicate online in public areas such as message boards and chat rooms, and you do so at your own risk. WLW reserves the right to republish your postings from message boards or chat rooms elsewhere on the Web in any format. <br /><br />\r\n\r\n<b>How We Use the Information That We Gather</b><br />\r\nWLW uses certain technologies, such as \"cookies,\" to personalize and improve your online experience. <br />\r\n<ul>\r\n	<li>Cookies are alphanumeric identifiers that we transfer to your computer\'s hard drive. Cookies store information about your visit to the Sites or your use of the Services, thereby allowing you to access certain WLW\'s features not otherwise available. The information in the cookie is transmitted from your computer to WLW or to one of our third-party authorized service contractors. The information contained in these cookies makes it possible for our systems to know if you are presently logged onto a Site or using any of the Services, or whether you have done so in a prior visit. This technology enables WLW to instantly determine your access privileges while allowing you to navigate the Sites or use any of the Services without having to repeatedly log in. <br /><br /></li>\r\n	<li>Cookies from WLW and/or one of our authorized service contractors are also used to collect standard information transmitted from your web browser including, without limitation: your Internet address, browser type, web pages you visited with date and time, purchases you made on any of the Sites and the type of operating system on your computer. This information is used to help us understand and meet the ever-changing needs and interests of our subscribers. <br /><br /></li>\r\n	<li>WLW may also use cookies to track your access to, and use of the message boards, forums and chat rooms on the Sites, as well as your responses to any of our online surveys. <br /><br /></li>\r\n	<li>You always have the option of setting your browser to warn you when a cookie is being accessed on your computer or to decline cookies altogether. However, to take full advantage of the Sites, Services and features offered by WLW, we recommend that you set your browser to accept cookies. Setting your computer to accept or refuse cookies varies depending on the web browser you are running. Please check the help tab of your browser for specifics on your software. <br /><br /></li>\r\n	<li>WLW does not control any cookies you may receive from an advertiser and these are not subject to this Policy. <br /><br /></li>\r\n	</ul>\r\n\r\nIn addition to the foregoing, WLW uses the information obtained from its subscribers and users in order to enhance and customize their online experiences. <br /><br />\r\n\r\nDue to the existing regulatory environment, WLW cannot ensure that all of your personally identifiable information and communications will remain private and will never be disclosed in ways not otherwise described in this Policy. Therefore, although we maintain and make every effort to comply with industry privacy standards, we do not promise, nor should you expect, that your personally identifiable information or private communications will always remain private. <br /><br />\r\n\r\nAs a matter of policy and unless otherwise stated herein, WLW does not rent, sell, or share your personally identifiable information with other people or non-affiliated companies. However, WLW reserves the right to use your personally identifiable information to notify you of certain products or Services about which you previously inquired or requested, special promotional offers, and to investigate violations of the terms and provisions of this Policy or the Terms of Use. In addition, WLW aggregates (gathers and organizes data across all subscriber and user accounts) personally identifiable information from among its subscriber and user base and discloses only that portion of the information which is non-personally identifiable to advertisers and other third parties for marketing, promotional and other commercial purposes. For example, your name, email address, password, credit card number and bank account number will never to be disclosed without your express prior written consent. <br /><br />\r\n\r\n<b>Disclosure of Personal Information in the Event of Merger or Sale of Assets</b><br />\r\nWLW, its parent, subsidiaries or affiliates, could merge with or be acquired by another business entity, or all or substantially all of their respective assets could be acquired. Should such a combination, acquisition or transaction occur, you should expect that WLW will share some or all of your personally identifiable information with the acquiring or merged entity in order to continue serving you and others information, updates and offers concerning the Sites or Services. <br /><br />\r\n\r\n<b>Co-branded and Other Affiliated Sites</b><br />\r\nAs stated above, certain information or Services offered or provided through the Sites may, from time to time, be provided on or through other websites operated by or in conjunction with third party providers (\"Partners\"). These websites and the features thereon may have the same \"look and feel\" as WLW\'s Sites and/or Services. WLW terms these websites \"co-branded sites\", and often times a Partner\'s logo or name may appear on the website, or the Partner\'s name may appear in the URL. Although WLW will continue to own any personally identifiable information collected about you from one of these co-branded sites, such information may be shared by WLW with that Partner. However, a Partner will not rent, sell, or disclose any of your personally identifiable information to third parties unless you consent to such disclosures and use in advance (for example, you may be asked to opt-in on a particular co-branded site in order to receive information or offers from a Partner, its affiliates or agents). <br /><br />\r\n\r\n<b>Third Party Links</b><br />\r\nWLW does not monitor, control or endorse the information collection or privacy practices of any third parties including, without limitation, any co-branded, Partner or affiliated sites which may or may not be owned or operated by or in conjunction with WLW or other third parties who may provide services throughout the Sites. Please be aware that the Sites may contain links to other websites on the Internet and the Services may be provided by such third parties WLW assumes no liability or responsibility for the information collection and privacy practices of such third party. Please consult each website\'s privacy policy. In addition, WLW is not responsible for the content or data collection practices of any third party websites, including a third party\'s use of cookies or other data-collection applications. Even though certain information collected by such third parties might not identify you personally, we strongly encourage you to become familiar with their privacy practices, and to contact them if you have any questions about their respective privacy policies and practices. <br /><br />\r\n\r\nOn behalf of various sponsors, the Sites may provide sponsored links to third-party websites or resources (\"Linked Sites\"). WLW neither controls nor have we reviewed or approved the content that appears on such Linked Sites. You acknowledge and agree that WLW is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from such Linked Sites. You further acknowledge and agree that WLW shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, and services available on or through any such Linked Site. <br /><br />\r\n\r\n<b>Security</b><br />\r\nWLW places a priority on the security of personally identifiable information, and we undertake reasonable security measures that comply with federal regulations to protect the data that resides on our servers. WLW also uses secure server software (SSL) to process all transactions which occur on the Sites. SSL encrypts all of your personal information transmitted over the Internet, including your credit card number, name and address. However, no security system is impenetrable. WLW cannot warrant or guarantee the security of its servers, nor can it guarantee that information supplied by Subscribers or other users will not be intercepted while being transmitted to WLW over the Internet. <br /><br />\r\n\r\n<b>Correction/Updating Personal Information</b><br />\r\nIf your personally identifiable information changes (such as your address, zip code), or if you no longer desire to use or access one of the Sites or Services, WLW encourages you to correct, update or remove the personal information that you provided. This can be done at the \"Manage My Account\" page on each of the Sites. Keep in mind, however, that even if you delete your account from WLW\'s records, there will be residual information that will remain within WLW\'s databases, access logs, and other records, which may or may not contain personally identifiable information. <br /><br />\r\n\r\n<b>How To Contact Us</b><br />\r\nPlease relay any questions you may have pertaining to our above stated policies to our Customer Service Department at {mailto address=\"contact@weightlosswars.com\" encode=\"hex\"}<br /><br />\r\n\r\n<b>Privacy Policy Changes</b><br />\r\nThis Policy was last changed on November 12, 2002. If WLW makes changes to any of the terms or conditions of the Policy, the changes will be posted in this document so that you will always know what information we gather, how we might use that information and to whom we will disclose it. We reserve the right to change, modify, add or remove portions of this Policy at any time, and any changes will become effective immediately upon being posted unless WLW advises you otherwise. Your continued use of the Services and/or the Sites after this Policy has been amended shall be deemed to be your continued acceptance of the terms and conditions of the Policy, as amended. We encourage you to bookmark this web page and review this Policy regularly. Copyright © 2004, WeightLossWars, L.L.C. All rights reserved.<br /><br />\r\n'),(1084,91,0.66,'smarty','0','Stored object name now uses session_id instead of user id',1085774641,2,'24.2.68.123','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{* display var=$newcomp *}\r\n\r\n<h1>Create a Competition: Step 1</h1>\r\nIn this first step you will select the competition type, all the detials of your competition, and the type of invitation letter you want to send. Then click \'Next\'\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n<br />\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectComp\',\'hideSelectComp\', \'showHide\');\"><img id=\"selectComp_img\" src=\"./img/blank.gif\" width=\"48\" height=\"17\" class=\"showHide_{if $newcomp.hideSelectComp eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Selected Competition Type:</h2>\r\n<input type=\"hidden\" id=\"hideSelectComp\" name=\"newcomp[hideSelectComp]\" value=\"{$newcomp.hideSelectComp|default:0}\" />\r\n<div id=\"selectComp\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectComp eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div id=\"corporate\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Corporate</h2>\r\n				Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n			</div>\r\n					\r\n			<div id=\"friends\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Family/Friends</h2>\r\n				\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			</div>\r\n				\r\n			<div id=\"partner\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Partner/Spouse</h2>\r\n				Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			</div>\r\n				\r\n			<div id=\"group\" style=\"display:{if $newcomp.type eq \"group\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_alert.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Group/Club</h2>\r\n				Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"compRadios\">\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"corporateRadio\" value=\"corporate\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'corporateRadio\').checked=\'true\';selectType();return false;\">Corporate</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"friendsRadio\" value=\"friends\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendsRadio\').checked=\'true\';selectType();return false;\">Family / Friends</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"partnerRadio\" value=\"partner\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'partnerRadio\').checked=\'true\';selectType();return false;\">Partner / Spouse</a><!-- <br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"groupRadio\" value=\"group\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'groupRadio\').checked=\'true\';selectType();return false;\">Group / Club</a> -->\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n{assign var=\"includeX\" value=\"true\"}\r\n\r\n{if $newcomp.startDate}\r\n	{assign var=\"startDate\" value=$newcomp.startDate}\r\n{else}\r\n	{assign var=\"startDate\" value=$smarty.now}\r\n{/if}\r\n{if $newcomp.endDate}\r\n	{assign var=\"endDate\" value=$newcomp.endDate}\r\n{else}\r\n	{assign var=\"endDate\" value=$smarty.now|math:\"x+5184000\"}  {* Now + 2 Months *}\r\n{/if}\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectParams\',\'hideSelectParams\', \'showHide\');\"><img id=\"selectParams_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideSelectParams eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Competition Parameters:</h2>\r\n<input type=\"hidden\" id=\"hideSelectParams\" name=\"newcomp[hideSelectParams]\" value=\"{$newcomp.hideSelectParams|default:0}\" />\r\n<div id=\"selectParams\" style=\"margin:10px; display:{if $newcomp.hideSelectParams eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Name:</div></td>\r\n		<td><input type=\"text\" name=\"newcomp[name]\" class=\"textInput\" size=\"22\" maxlength=\"32\" style=\"width:220px;\" /></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Give your competition a name.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Start Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar0\" style=\"float:left; display:none; border:#999999 1px solid; width:100px; z-index:20;\" align=\"center\">\r\n				<iframe name=\"frameCalendar\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=0&year={$startDate|date_format2:\"Y\"}&month={$startDate|date_format2:\"m\"}&day={$startDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLabel\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date >{else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar0\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>End Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar1\" style=\"float:left; display:none; border:#999999 1px solid; width:100px;\" align=\"center\">\r\n				<iframe name=\"frameCalendar2\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=1&year={$endDate|date_format2:\"Y\"}&month={$endDate|date_format2:\"m\"}&day={$endDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLabel\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date ^{else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar1\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Style:</div></td>\r\n		<td><select name=\"newcomp[style]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Everyone-vs-Everyone\">Everyone vs. Everyone</option>\r\n			<option value=\"Group-vs-Group\">Team vs. Team</option>\r\n			<option value=\"One-on-One\">One on One</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Jackpot Method:</div></td>\r\n		<td><select name=\"newcomp[potMethod]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Per-competitor Donations\">Per-competitor Donations</option>\r\n			<option value=\"Individual Charity\">Individual Charity</option>\r\n			<option value=\"Company Charity\">Company Charity</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>The \"Jackpot\" money can come from everyone, or you can supply the entire \"pot\" by selecting \"Individual Charity\".</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\" nowrap><div>Jackpot Contribution:</div></td>\r\n		<td valign=\"middle\"><span style=\"position:relative; top:-5px;\">$</span><input type=\"text\" name=\"newcomp[individualPotAmount]\" class=\"textInput\" size=\"4\" maxlength=\"4\" style=\"width:30px;\" /><span style=\"position:relative; top:-5px;\">.00</span></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Each individual must enter this much money into the jackpot to join the competition.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Scoring Method:</div></td>\r\n		<td><select name=\"newcomp[scoringMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage Weight Lost</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>How the winner is determined.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><span>Tie-Breaker Method:</span></td>\r\n		<td><select name=\"newcomp[tieBreakerMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\"{if not $newcomp.tieBreakerMethod} selected{/if}>Percentage Weight Lost</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>How the winner is determined, in the event of a tie.</small></div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectInvite\', \'hideSelectInvite\', \'showHide\');\"><img id=\"selectInvite_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideSelectInvite eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Choose an Invitation Style:</h2>\r\n<input type=\"hidden\" id=\"hideSelectInvite\" name=\"newcomp[hideSelectInvite]\" value=\"{$newcomp.hideSelectInvite|default:0}\" />	\r\n<div id=\"selectInvite\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectInvite eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div>\r\n			Select the type of invitation you want to send.</div>\r\n				\r\n		<div id=\"smack\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">SMACK!</h2>\r\n				<b>example:</b><br /> &quot;Hey Blubber Butt,I challenge you to the battle of all battles...&quot;</div>\r\n			</div>\r\n					\r\n			<div id=\"challenge\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Challenge</h2>\r\n				<b>example:</b><br /> &quot;I\'m putting up $100 that says I can take you down in a 6-week weight-loss competition...&quot;</div>\r\n			</div>\r\n				\r\n			<div id=\"friendly\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Friendly</h2>\r\n				<b>example:</b><br /> &quot;A healthy weight loss challenge is what we all need to lose these extra pounds...&quot;</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"inviteRadios\">\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"smackRadio\" value=\"smack\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'smackRadio\').checked=\'true\';selectInvite();return false;\">SMACK!</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"challengeRadio\" value=\"challenge\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'challengeRadio\').checked=\'true\';selectInvite();return false;\">Challenge</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"friendlyRadio\" value=\"friendly\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendlyRadio\').checked=\'true\';selectInvite();return false;\">Friendly</a>\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"javascript:document.compStartForm.submit();\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n\r\n	<script language=\"JavaScript\">{literal}\r\n	function selectType() {\r\n		var type;\r\n		var types = Array(\'corporate\',\'friends\',\'partner\',\'group\');\r\n		var elems = document.getElementsByName(\'newcomp[type]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'friends\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function selectInvite() {\r\n		var type;\r\n		var types = Array(\'smack\',\'challenge\',\'friendly\');\r\n		var elems = document.getElementsByName(\'newcomp[invitationType]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'smack\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function updateScoringMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[scoringMethod]\') ? \'newcomp[tieBreakerMethod]\' : \'newcomp[scoringMethod]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		other.selectedIndex = (obj.selectedIndex == 0) ? 1 : 0;\r\n	}\r\n	\r\n	{/literal}\r\n</script>'),(5329,233,1.75,'smarty','0','Working on e-mail your team feature.',1258158555,2,'206.71.78.158','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n{assign var=\"GUIDs\" value=\"\"}\r\n\r\n{select_query assign=\"managerId\" return=\"val\"}\r\n	userId FROM competitions c WHERE c.id = {$smarty.request.cid}\r\n{/select_query}\r\n\r\n{if $managerId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	<!-- ismanager -->\r\n{/if}\r\n\r\n{if $isManager or \'yes\' == $smarty.session.company.preferences.anyone_joins_teams}\r\n	{assign var=\"canCreateTeams\" value=\"true\"}\r\n	{assign var=\"canAssignToTeams\" value=\"true\"}\r\n	{include_php file=\"shared_handle:competition/management\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition/load\"}\r\n\r\n<script type=\"text/javascript\">{literal}\r\n	var GUIDs = \'0\';\r\n\r\n	function updateGUIDs() {\r\n		var checkBoxes = document.forms[\'leaderBoardForm\'][\"graphCheckbox[]\"];\r\n		if (!checkBoxes.length) {\r\n			checkBoxes[0] = checkBoxes;\r\n			checkBoxes.length = 1;\r\n		}\r\n		GUIDs = \'\';\r\n		for (var x = 0; x < checkBoxes.length; x++) {\r\n			if (checkBoxes[x].checked == true && checkBoxes[x].value) {\r\n				GUIDs += checkBoxes[x].value+\',\'; \r\n			}\r\n			\r\n		}\r\n		rewriteGraphLinks();\r\n	}\r\n\r\n\r\n	function loadGraphWindow(graphParams) {\r\n		uri = \'?pg=flashgraph-frame&compId={/literal}{$competition.id}{literal}; //&\'+graphParams+\'&userIds=\'+GUIDs;\r\n		var gFrame = window.frames[\'graphwindow\'];\r\n		// gFrame.location.replace(uri);\r\n		var gForm = document.getElementById(\'form_leaderBoard\');\r\n		gForm.gParams.value = graphParams;\r\n		gForm.userIds.value = GUIDs;\r\n		gForm.submit();\r\n		return false;\r\n	}\r\n{/literal}</script>\r\n\r\n{include_php file=\"shared_handle:competition.verifyInitialPot\"}\r\n\r\n{capture name=\"scoringMethod\"}\r\n	<b>{$competition.current_parameter.name|capitalize}</b> ({$competition.current_parameter.units}) - {$competition.current_parameter.basedOn|capitalize}{* - {$competition.current_parameter.polarity|capitalize} *}\r\n{/capture}\r\n\r\n<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\r\n	<tr>\r\n		<td valign=\"top\" width=\"275\">\r\n\r\n		{if $competition.prizes|@count}\r\n		<br />\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n					<a href=\"javascript:toggle(\'winners\', \'\', \'showHide\');\"><img id=\"winners_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n				</div>\r\n			Winners\r\n		</h2>\r\n\r\n		<div id=\"winners\" style=\"display:block;\">\r\n		{foreach from=$competition.prizes item=\"prize\" key=\"prizeId\"}\r\n			<a href=\"javascript://\" onclick=\"window.open(\'?pg=competition/winners&cid={$competition.id}&prizeId={$prizeId}\', \'\', \'height=425,width=300,menubar=no,status=no,scrollbars=yes,titlebar=no,resizable=yes\');\">{$prize.title}</a><br />\r\n		{/foreach}\r\n		</div>\r\n		{/if}\r\n		\r\n		<br />\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n					<a href=\"javascript:toggle(\'leaderBoard\', \'\', \'showHide\');\"><img id=\"leaderBoard_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n				</div>\r\n			Leaders\r\n		</h2>\r\n		\r\n		{if $competition.dateOfObject}<div align=\"right\"><small><i>as of {$competition.dateOfObject|date_format2:\"n/j/Y g:i A\"}</i></small></div>{/if}\r\n\r\n		<div id=\"leaderBoard\" style=\"display:block;\">\r\n		<small>{$smarty.capture.scoringMethod}</small><br />\r\n		{if $competition.style eq \"Group-vs-Group\"}\r\n			<div align=\"center\" style=\"font-size:9px; color:#000;\">(Team Average)</div>\r\n		{elseif $competition.style eq \"Company-vs-Company\"}\r\n			<div align=\"center\" style=\"font-size:9px; color:#000;\">(Company Average)</div>\r\n		{/if}\r\n		{if $competition.parameters|@count gt 1}\r\n			<select name=\"scoringMethod\" onchange=\"if(this.value)location.replace(\'?pg={$page.name}&cid={$competition.id}&cpid=\'+this.value);\" style=\"width:200px;\">\r\n				<option value=\"\">(Choose Leaderboard)</option>\r\n			{foreach from=$competition.parameters key=\"paramId\" item=\"param\"}\r\n				{if $paramId neq $competition.current_parameter.id}\r\n				<option value=\"{$paramId}\">{$param.name|capitalize} - {$param.basedOn|capitalize}{* - {$param.polarity} *}</option>\r\n				{/if}\r\n			{/foreach}\r\n			</select>\r\n		{/if}\r\n		<form id=\"form_leaderBoard\" name=\"leaderBoardForm\" method=\"POST\" action=\"index.php?pg=flashgraph-frame&compId={$competition.id}\" target=\"graphwindow\">\r\n		<input type=\"hidden\" name=\"gParams\" value=\"\" />\r\n		<input type=\"hidden\" name=\"userIds\" value=\"\" />\r\n		<table cellpadding=\"0\" cellspacing=\"0\">\r\n		{if $competition.style eq \'Group-vs-Group\' or $competition.style eq \'Company-vs-Company\'}\r\n			<tr>\r\n			<td class=\"thinCell\">#</td>\r\n			<td class=\"thinCell\">Team</td>\r\n			<td class=\"thinCell\"><img src=\"{$skinFolder}images/trophy_ico.gif\" width=\"15\" height=\"15\" alt=\"\" /></span>\r\n			<td class=\"thinCell\">#Pl</td>\r\n			{* <td class=\"cellHeadTiny\"><img src=\"{$skinFolder}images/graph_ico.gif\" width=\"15\" height=\"15\" alt=\"Show In Graphs\" /></td> *}\r\n			</tr>\r\n			{foreach name=\"rankLoop\" from=$competition.team_data item=\"teamScore\" key=\"teamName\"}\r\n				{if $teamName ne \"Waiting to Join\"}\r\n					<tr>\r\n						<td class=\"thinCell\"><small>{$smarty.foreach.rankLoop.iteration}</small></td>\r\n						<td class=\"thinCell\"><small class=\"mini\">{$teamName|default:\"&nbsp;\"}</small></td>\r\n						<td class=\"thinCell\"><small>{$teamScore|number_format:2}</small></td>\r\n						<td class=\"thinCell\"><small>{$competition.teams.$teamName|@count|default:\"0\"}</small></td>\r\n						{* <td class=\"thinCell\"><input class=\"graphCheckbox\" name=\"graphCheckbox[]\" type=\"checkbox\" value=\"{foreach from=$teams.users item=teamUser}{$teamUser.id},{if $smarty.foreach.rankLoop.iteration lt 11}{append var=\"GUIDs\" value=\"`$teamUser.id`,\"}{/if}{/foreach}{$GUIDs}\"{if $smarty.foreach.rankLoop.iteration lt 11} checked=\"checked\"{/if} onclick=\"updateGUIDs();\" /></td> *}\r\n					</tr>\r\n				{/if}\r\n			{/foreach}\r\n		{else} \r\n			<tr>\r\n			<td class=\"thinCell\">#</td>\r\n			<td class=\"thinCell\" align=\"center\">Name</td>\r\n			<td class=\"thinCell\"><img src=\"{$skinFolder}images/trophy_ico.gif\" width=\"15\" height=\"15\" alt=\"{$smarty.capture.scoringMethod|strip_tags}\" /></td>\r\n			<td class=\"thinCell\">Update</td>\r\n			<td class=\"thinCell\" align=\"center\"><img src=\"{$skinFolder}images/graph_ico.gif\" width=\"15\" height=\"15\" alt=\"Show in Graphs\" /></td>\r\n			</tr>\r\n			{foreach from=$competition.data item=\"userData\" key=\"userId\" name=\"compData\"}\r\n			{assign var=\"curIteration\" value=$smarty.foreach.compData.iteration}\r\n			{if $curIteration eq 21}\r\n			</table>\r\n			</div>\r\n			<br />\r\n			<h2 class=\"withBG\">\r\n				<div class=\"topRight hideShow\">\r\n					<a href=\"javascript:toggle(\'runnerUps\', \'\', \'showHide\');\"><img id=\"runnerUps_img\" src=\"./img/blank.gif\" class=\"showHide_off\" alt=\"show/hide\" border=\"0\" /></a>\r\n				</div>\r\n				Runner Ups\r\n			</h2>\r\n			<div id=\"runnerUps\" style=\"display:none;\">\r\n			<table cellpadding=\"0\" cellspacing=\"0\">\r\n			{/if}\r\n			<tr>\r\n			<td class=\"thinCell\"><small>{$curIteration}</small></td>\r\n			<td class=\"thinCell\"><small class=\"mini\">{$competition.users[$userId]}</small></td>\r\n			<td class=\"thinCell\"><small>{$userData.val|number_format:$competition.current_parameter.decimalPlaces}</small></td>\r\n			<td class=\"thinCell\"><small>{if $userData.doe}{$userData.doe|date_format2:\"n/j/y\"}{else}-Never-{/if}</small></td>\r\n			<td class=\"thinCell\"><input class=\"graphCheckbox\" name=\"graphCheckbox[]\" type=\"checkbox\" value=\"{$userId}{if $curIteration lt 11}{append var=\"GUIDs\" value=\"`$userId`,\"}{/if}\"{if $curIteration lt 11} checked=\"checked\"{/if} onclick=\"updateGUIDs();\" /></td>\r\n			</tr>\r\n			{/foreach}\r\n		{/if}\r\n		</form>\r\n		<script type=\"text/javascript\">GUIDs = \'{$GUIDs}\';</script>\r\n		</table>\r\n		</div> \r\n		<div align=\"right\"><small><i><a href=\"?pg=faq#comp\">How is the competition scored?</a></i></small></div>\r\n		<img src=\"./img/blank.gif\" width=\"168\" height=\"1\" alt=\"\" />\r\n		{if $isManager and $competition.style neq \'Company-vs-Company\'}\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n				<a href=\"javascript:toggle(\'managePlayers\', \'\', \'showHide\');\"><img id=\"managePlayers_img\" src=\"./img/blank.gif\" class=\"showHide_off\" alt=\"show/hide\" border=\"0\" /></a>\r\n			</div> \r\n			Manage\r\n		</h2>\r\n		<div id=\"managePlayers\" style=\"display:none;\">\r\n					<form name=\"managePlayers[]\" action=\"index.php\" method=\"POST\" style=\"margin:0px;\">\r\n					<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n					<input type=\"hidden\" name=\"cid\" value=\"{$competition.id}\">\r\n					<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n					<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"cid\">\r\n					<input type=\"hidden\" name=\"style\" value=\"{$competition.style}\">\r\n					<span class=\"cellHeadTiny\" style=\"clear:left;\">Del</span>\r\n					<span class=\"cellHead\">View Stats</span>\r\n					{* <span class=\"cellHeadSmall\">-</span> *}\r\n					<br />\r\n					{foreach from=$competition.users item=\"username\" key=\"userId\" name=\"dateUpdated\"}\r\n						<span class=\"cellTiny\" style=\"clear:left;\"><small><input type=\"checkbox\" name=\"managePlayers[delete][]\" value=\"{$username}\" style=\"width:14px;height:14px;margin:0px 2px;\"></small></span>\r\n						<span class=\"cell\"><small><a href=\"?pg=my_home&cid={$competition.id}&userId={$userId}&hideComps=1\">{$username}</a></small></span>\r\n						{* <span class=\"cellSmall\"><small><a href=\"mailto:{$compUser.email}\">email</a></small></span> *}\r\n						<br />\r\n					{/foreach}\r\n					<div style=\"text-align:center;\">\r\n                                                <br />\r\n						<input type=\"submit\" class=\"button\" value=\"Remove Selected\">\r\n					</div>\r\n					</form>\r\n		</div><br/>\r\n		{/if}\r\n		{* End new section for Player management. *}\r\n		\r\n		{* Begin new section for Team management.  This can be moved where ever. *}\r\n		{* ******************************** TEAM MANAGEMENT ***************************************** *}\r\n		{if $canCreateTeams and $competition.style eq \'Group-vs-Group\'}\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n				<a href=\"javascript:toggle(\'teamManagement\', \'\', \'showHide\');\"><img id=\"teamManagement_img\" src=\"./img/blank.gif\" class=\"showHide_{if $smarty.request.showTeamManagement}on{else}off{/if}\" alt=\"show/hide\" border=\"0\" /></a>\r\n			</div>\r\n			Teams</h2>\r\n		<div id=\"teamManagement\" style=\"display:{if $smarty.request.showTeamManagement}block{else}none{/if};\">\r\n			<form name=\"manageTeam[]\" action=\"index.php\" method=\"POST\" style=\"margin:0px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$competition.id}\">\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n			<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"cid\">\r\n			<div id=\"playersList{counter}\">\r\n				{if $isManager}<span class=\"cellHeadTiny\">Del</span>{/if}\r\n				<span class=\"cellHeadLarge\" style=\"width:134px;\">Team Name</span><br />\r\n				{foreach from=$competition.teams item=\"team\" key=\"teamName\"}\r\n					{counter name=\"counterI\" start=\"0\" print=0}\r\n					{if $teamName ne \"Waiting to Join\"}\r\n						{if $isManager}<span class=\"cellTiny\" style=\"clear:left;\"><small><input type=\"checkbox\" name=\"manageTeam[delete][]\" value=\"{$teamName|htmlspecialchars}\"></small></span>{/if}\r\n						<span class=\"cellLarge\" style=\"width:134px;\"><small>\r\n							{if $isManager or $team|@in_array:$user->id}<input id=\"renameTeam\" type=\"text\" value=\"{$teamName|htmlspecialchars}\" name=\"manageTeam[rename][{$teamName|htmlspecialchars}]\" size=\"10\" style=\"width:124px;height:12px\">\r\n							{else}<span>{$teamName}</span>\r\n							{/if}\r\n						</small></span><br />\r\n					{/if}\r\n				{/foreach}\r\n			</div>\r\n                        <br />\r\n			<div style=\"text-align:center;\">New Team: <input id=\"addTeam\" type=\"text\" name=\"manageTeam[addTeam]\" size=\"10\"><br />\r\n			<br />\r\n                        <input type=\"submit\" class=\"button\" value=\"Submit Changes\"></div>\r\n			</form>\r\n		</div><br />\r\n		{/if}\r\n		{* End new section for Team management. *}\r\n\r\n		\r\n		{* if !$isManager AND $competition.users|@count lt 45}{include file=\"layouts/ads.tpl\"}{assign var=\"adsShown\" value=\"1\"}{/if *}\r\n\r\n		{*\r\n			<h2 class=\"withBG\">Competition Stats</h2>\r\n			<span class=\"cellHeadLarge\">Category</span><span class=\"cellHeadSmall\">Result</span><br />\r\n			<span class=\"cellLarge\"><small>start weight</small></span>\r\n			<span class=\"cellSmall\"><small>{$competition.groupStartWeight|default:0} lbs</small></span><br />\r\n			<span class=\"cellLarge\"><small>weight lost</small></span>\r\n			<span class=\"cellSmall\"><small>{$competition.groupWeightLost|default:0} lbs</small></span><br />\r\n			{if $competition.groupPercentageWeightLost gt 0}<span class=\"cellLarge\"><small>% lost</small></span>\r\n			<span class=\"cellSmall\"><small>{$competition.groupPercentageWeightLost|default:0|number_format:\"2\"}</small></span><br />{/if}\r\n			<span class=\"cellLarge\"><small>fat intake</small></span>\r\n			<span class=\"cellSmall\"><small>{$competition.groupFat|default:0}</small></span><br />\r\n			<span class=\"cellLarge\"><small>calorie intake</small></span>\r\n			<span class=\"cellSmall\"><small>{$competition.groupCalories|default:0}</small></span><br />\r\n			<span class=\"cellLarge\"><small>minutes exercised</small></span>\r\n			<span class=\"cellSmall\"><small>{$competition.groupExercise|default:0}</small></span><br />\r\n			<span class=\"cellLarge\"><small>distance exercised</small></span>\r\n			<span class=\"cellSmall\"><small>{$competition.groupDistanceExercised|default:0}</small></span><br />\r\n			<img src=\"./img/blank.gif\" width=\"165\" height=\"1\" alt=\"\" />\r\n		*}\r\n		</td>\r\n		<td width=\"100%\" valign=\"top\">\r\n			<div id=\"contentBox\" class=\"centerBox\" style=\"margin-left:10px;\"><div class=\"topRightTreasure\">\r\n<div id=\"jackpot\">{if $competition.potAmount gt 0}${$competition.potAmount|number_format:2}{/if}</div>\r\n<h1 class=\"underline\">{$competition.title|default:\"Competition Title\"}</h1>\r\n\r\n{* ******************************** COMPETITION END *********************************** *}\r\n{if $competition.endDate lt $smarty.now}   {* COMPETITION IS OVER *}\r\n	{if $competition.results.winners|@count eq 1}\r\n		{* There was one winner, either by scoringMethod or tieBreakerMethod *}\r\n\r\n		{math assign=\"daysOfCompetition\" equation=\"(x - y) / z\" x=$competition.endDate|default:\"0\" y=$competition.startDate|default:\"0\" z=\"86400\"}\r\n		{math assign=\"marginOfVictory\" equation=\"x - y\" x=$competition.results.winningStat|default:\"0\" y=$competition.results.secondPlaceStat|default:\"0\"}\r\n\r\n		{foreach from=$competition.results.winners item=\"winnerName\"}    {*key=\"winnerName\"*}\r\n			{assign var=\"winnerData\" value=$competitions.users.$winnerName}\r\n			\r\n			{if $competition.style eq \"Group-vs-Group\"}\r\n				{assign var=\"description\" value=\"Winning Team\"}\r\n				{assign var=\"avg\" value=\"average\"}\r\n			{else}\r\n				{assign var=\"description\" value=\"Winner\"}\r\n			{/if}\r\n\r\n			<h2><br /><b>{$winnerName}</b> is the {$description}{if $competition.potAmount}, taking home <b>$<i>{$competition.potAmount|number_format:2}</i></b>{/if}!</h2>\r\n			<br />\r\n			{strip}\r\n			{if not $competition.results.isTie}   {* Not a Tie *}\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> days of \r\n				fierce competition, <b>{$winnerName}</b> is the \r\n				{$description}!	Based on \r\n				<b>{$competition.results.winningMethod}</b>, <b>{$winnerName}</b> \r\n				won with <b>{$competition.results.winningStat|number_format:2} \r\n				{if $competition.results.winningMethod eq \"Weight Lost\"}{$avg} pounds lost\r\n				{elseif $competition.results.winningMethod eq \"Percentage Weight Lost\"}{$avg} % body weight lost\r\n				{elseif $competition.results.winningMethod eq \"Minutes Exercise\"}{$avg} minutes exercised\r\n				{elseif $competition.results.winningMethod eq \"Distance Exercised\"}{$avg} miles exercised\r\n				{elseif $competition.results.winningMethod eq \"Weight Gained\"}{$avg} pounds gained\r\n				{/if}</b>.\r\n			{else}                                {* A Tie! *}\r\n				{assign var=\"weightLost\" value=\"Weight Lost\"}\r\n				{assign var=\"percentLost\" value=\"Percentage Weight Lost\"}\r\n\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> \r\n				days of fierce competition, there was a tie in the judging \r\n				method, <b>{$competition.scoringMethod}</b>. To break this \r\n				tie, the selected tie breaking method, \r\n				<b>{$competition.tieBreakerMethod}</b>, was used to determine \r\n				<b>{$winnerName}</b> as the {$description}. <b>{$winnerName}</b> \r\n				won with <b>{$competition.results.winningStat|number_format:2}\r\n				{if $competition.results.winningMethod eq \"Weight Lost\"}{$avg} pounds lost\r\n				{elseif $competition.results.winningMethod eq \"Percentage Weight Lost\"}{$avg} % body weight lost\r\n				{elseif $competition.results.winningMethod eq \"Minutes Exercise\"}{$avg} minutes exercised\r\n				{elseif $competition.results.winningMethod eq \"Distance Exercised\"}{$avg} miles exercised\r\n				{elseif $competition.results.winningMethod eq \"Weight Gained\"}{$avg} pounds gained\r\n				{/if}</b>.\r\n				<!--\r\n				<b>{$winnerData.$weightLost|number_format:0} pounds</b>, which \r\n				was <b>{$winnerData.$percentLost|number_format:4}%</b> body weight.\r\n				-->\r\n			{/if}\r\n			{/strip}\r\n			<br />\r\n			<br />\r\n			<b>{$winnerName}</b> won with a <b>{$marginOfVictory|number_format:3}</b> margin over <b>{$competition.results.secondPlaceUser}</b>.\r\n			\r\n			<h2><br />Congratulations to you all!</h2>\r\n			<br />\r\n			<div class=\"underline\"></div>\r\n		{/foreach}\r\n\r\n	{elseif $competition.results.winners|@count gt 1}\r\n		{* There were multiple winners, even after tieBreakerMethod (should RARELY happen) *}\r\n	\r\n		<h2>There was a tie in this competition. The winners, by <b>{$competition.results.winningMethod}</b> having lost <b>{$competition.results.winningStat}</b>, are:<br /></h2>\r\n		<ul>\r\n		{foreach from=$competition.results.winners item=\"winnerData\" key=\"winnerName\"}\r\n			<li>{$winnerName}</li>\r\n		{/foreach}\r\n		</ul>\r\n		\r\n	{else}\r\n		{* For some reason, there were no winners *}\r\n\r\n		<h2><br />\r\n		Winner information is being calculated. <br />\r\n		Please check back soon.\r\n		<br /><br /></h2>\r\n	{/if}\r\n	This competition has ended and is no longer active.<br />\r\n{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small style=\"color:#FFF;\">(${$competition.individualPotAmount} from {$competition.potMethod})</small>{/if}</div>\r\n\r\n{if $competition.startDate lt $smarty.now}\r\n	Time remaining: <b>{$competition.timeLeft}</b><br />\r\n{else}\r\n	This competition has not yet started!<br />\r\n{/if}\r\n\r\nStart{if $competition.startDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.startDate|date_format2:\"n/j/Y\"}</b> &nbsp; \r\nEnd{if $competition.endDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.endDate|date_format2:\"n/j/Y\"}</b><br />\r\n{if $competition.calculationMode neq \"Real-Time\"}Competition stats/scoring updated as of {$competition.dateOfObject|date_format2:\"n/j/Y g:i A\"}{if $isManager} (<a href=\"?pg=competition&cid={$smarty.request.cid}&nocache=1\">Update Now!</a>){/if}<br />{/if}\r\n<div style=\"font-size:5px;clear:left;\">&nbsp;</div>\r\n{assign var=\"scoringMethod\" value=$competition.scoringMethod}\r\n{assign var=\"tieBreakerMethod\" value=$competition.tieBreakerMethod}\r\n{assign var=\"weeklyWinnersMethod1\" value=$competition.weeklyWinnersMethod1}\r\n{assign var=\"weeklyWinnersMethod2\" value=$competition.weeklyWinnersMethod2}\r\n\r\n{* ******************** WEEKLY WINNERS ********************* *}\r\n{if $competition.weeklyWinners}\r\n	{if $weeklyWinnersMethod1}             {* DON\'T FORGET TO REMOVE THE ACM CHECK WHEN READY!!! *}\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n			<a href=\"javascript:toggle(\'weeklyWinners\', \'\', \'showHide\');\"><img id=\"weeklyWinners_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n			Last Week\'s Winners<i>!</i> <small style=\"color:#000; font-size:11px;\">(<i><b>{$competition.weeklyWinners.startDate|date_format2:\"D n/j\"}</b> through <b>{$competition.weeklyWinners.endDate|date_format2:\"D n/j\"}</b></i>)</small></h2> \r\n		<div id=\"weeklyWinners\">\r\n		<table width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod1}</div>\r\n		<img src=\"{$skinFolder}images/winner_1.gif\" style=\"float:left;\" />\r\n		{strip}\r\n		{foreach name=\"method1\" from=$competition.weeklyWinners.$weeklyWinnersMethod1 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod1}\r\n			{if $smarty.foreach.method1.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method1.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method1.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> led the way last week by \r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}losing <b>{$userValue|number_format:\"2\"}%</b> body weight{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}exercising a distance of <b>{$userValue}</b> {elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{else}<b>default</b>{/if}\r\n			{else}\r\n				{if $smarty.foreach.method1.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else} and <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}<b>{$userValue|number_format:\"2\"}%</b>{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}a distance of <b>{$userValue}</b>{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod2} \r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod2}</div>\r\n		<img src=\"{$skinFolder}images/winner_2.gif\" style=\"float:left;\" />\r\n		{* display var=$competition.weeklyWinners.users *}\r\n		{strip}\r\n		{foreach name=\"method2\" from=$competition.weeklyWinners.$weeklyWinnersMethod2 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod2}\r\n			\r\n			{if $smarty.foreach.method2.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method2.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method2.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> won by \r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}losing <b>{$userValue|number_format:\"2\"}%</b> body weight{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}exercising a distance of <b>{$userValue}</b>{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{/if}\r\n			{else}\r\n				{if $smarty.foreach.method2.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else} and <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}<b>{$userValue|number_format:\"2\"}%</b>{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}a distance of <b>{$userValue}</b>{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod1}\r\n	</tr></table></div>{/if}\r\n{/if}\r\n{* ********************************************************* *}\r\n\r\n{if $acm->isDomainAdmin() and $smarty.request.debug}\r\n	{display var=$competition}\r\n{/if} \r\n\r\n{* ******************************** COMPARISON GRAPHS ***************************************** *}\r\n{if $competition.graphParameters|@count}\r\n<script type=\"text/javascript\">{literal}\r\n	function rewriteGraphLinks() {\r\n		var gLinksDiv = document.getElementById(\'graphLinksDiv\');\r\n		gLinksDiv.innerHTML = \'\';\r\n		{/literal}{foreach name=\"graphTypes\" from=$competition.graphParameters item=\"cgp\"}\r\n		gLinksDiv.innerHTML += \'<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type={$cgp.name|niceText|replace:\" \":\"+\"}&esId={$cgp.estatId}&basedOn={$cgp.basedOn|replace:\" \":\"+\"}&fillPrevious={if $cgp.assumeConstantValues eq \"yes\"}1{else}0{/if}&precision={$cgp.decimalPlaces}&format=wide&userIds=\'+GUIDs+\'\" target=\"graphwindow\"><small>{$cgp.name|niceText|replace:\" \":\"&nbsp;\"}&nbsp;-&nbsp;{$cgp.basedOn|niceText|replace:\" \":\"&nbsp;\"}</small></a>{if !$smarty.foreach.graphTypes.last} | {/if}\';\r\n		{/foreach}\r\n	{literal}\r\n	}\r\n{/literal}</script>\r\n<h2 class=\"withBG\"><a name=\"graph\"></a>\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'graphs\', \'\', \'showHide\');\"><img id=\"graphs_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Comparison Graphs &nbsp; <small><i>No graph? <a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">click here</a> to download the free Flash Player plug-in.</i></small></h2>\r\n<div id=\"graphs\" style=\"display:block;\">\r\n	<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&format=wide\"}\r\n	<tr>\r\n		<td><div style=\"border:#999 1px solid;background-color:#FFF;padding:5px;\"><iframe \"iframe_graphwindow\" name=\"graphwindow\" src=\"{$graphURL}\" frameborder=\"0\" width=\"625\" height=\"230\" scrollbars=\"no\"></iframe></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td valign=\"top\" align=\"center\" width=\"100%\">\r\n		<div id=\"graphLinksDiv\">\r\n		<small>\r\n		{foreach name=\"graphTypes\" from=$competition.availableGraphs key=\"graphType\" item=\"graphParams\"}\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&{$graphParams}\');\" target=\"graphwindow\">{$graphType}</a>{if $smarty.foreach.graphTypes.iteration neq $competition.availableGraphs|@count} | {/if}\r\n		{/foreach}\r\n		</small></div></td>\r\n	</tr>\r\n	</table>\r\n	<script type=\"text/javascript\">\r\n		rewriteGraphLinks();\r\n	</script>\r\n<br />\r\n</div>\r\n{/if}\r\n\r\n{* ******************************** GROUP TEAMS/PLAYERS SUMMARY W/MOVING ***************************************** *}\r\n{if $competition.style eq \'Group-vs-Group\' or $competition.style eq \'Company-vs-Company\'}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'teams\', \'\', \'showHide\');\"><img id=\"teams_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	The Teams &nbsp; <small><i>Assignments and statistics</i></small></h2>\r\n<div id=\"teams\" style=\"display:block;\">\r\n<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\"><tr><td>\r\n	<div align=\"right\" style=\"border-bottom:1px solid black; margin:2px; padding:2px;\">All stats based on: {$smarty.capture.scoringMethod}</div>\r\n	{if $canAssignToTeams}\r\n		<form name=\"changeTeam\" action=\"index.php\" method=\"POST\" style=\"margin:0px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$competition.id}\">\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n			<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"cid\">\r\n	{/if}\r\n		{assign var=\"minEx\" value=\"Minutes Exercise\"}\r\n		{assign var=\"distEx\" value=\"Distance Exercised\"}\r\n		{assign var=\"pctLst\" value=\"Percentage Weight Lost\"}\r\n		{assign var=\"wtLst\" value=\"Percentage Weight Lost\"}\r\n		{foreach from=$competition.team_data name=\"teamsLoop\" item=\"teamScore\" key=\"teamName\"}\r\n			<div id=\"playersList{$smarty.foreach.teamsLoop.iteration}\" style=\"float:left;width:310px;overflow:hidden;word-wrap:nowrap; margin:0px 5px 5px 0px;\">\r\n			{if $teamName eq \"Waiting to Join\"}<h2>Not assigned to a team</h2>{else}<h4><span style=\"font-weight:normal;\">#{$smarty.foreach.teamsLoop.iteration}) </span>{$teamName|default:\"&nbsp;\"}{/if}</h4>\r\n			<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:250px; background-color:#FFC;\">\r\n			<tr>\r\n				<td class=\"thinCell\" width=\"55%\">Name</td>\r\n				<td class=\"thinCell\" width=\"25%\"><img src=\"{$skinFolder}images/trophy_ico.gif\" width=\"15\" height=\"15\" alt=\"\" /></td>\r\n				<td class=\"thinCell\" width=\"20%\">Update</span>\r\n			</tr>\r\n			{foreach from=$competition.teams.$teamName item=\"userId\"}\r\n			<tr>\r\n				<td class=\"thinCell\" style=\"text-align:left;\"><small>{if $isManager or $userId eq $user->id}<input type=\"checkbox\" name=\"changeTeam[players][{$competition.users.$userId}]\" />{/if}{$competition.users.$userId}</small>{if $competition.team_captains.$teamName eq $userId OR $userId|@in_array:$competition.teams.$teamName} <img src=\"/systems/v2_ehc/images/ehc/ico/ico_captain.gif\" />{/if}</td>\r\n				{* <span class=\"cellTiny\"><small>{if $users.hideInitialWeight neq \"Yes\"}{$users.$pctLst|number_format:\"2\"|replace:\".00\":\"\"}{else}-{/if}</small></span> *}\r\n				<td class=\"thinCell\"><small>{$competition.data.$userId.val|number_format:$competition.current_parameter.decimalPlaces}</small></td>\r\n				<td class=\"thinCell\"><small>{if $competition.data.$userId.doe}{$competition.data.$userId.doe|date_format2:\"n/j/y\"}{else}Never{/if}</small></td>\r\n			</tr>\r\n			{foreachelse}\r\n			{* No players assigned to this team. *}\r\n			<tr>\r\n				<td class=\"thinCell\">No players yet.</td>\r\n			</tr>\r\n			{/foreach}\r\n\r\n			</table>\r\n			{if $smarty.server.remote_addr eq \'206.71.78.158\' and $competition.team_captains.$teamName eq $user->id}\r\n				E-Mail your team:<br />\r\n				<textarea name=\"email_team[{$teamName}][body]\"></textarea><br />\r\n				<input type=\"submit\" name=\"email_team_submit\" value=\"Send Message\" />\r\n			{/if}\r\n			</div>\r\n		{/foreach}\r\n	{if $canAssignToTeams and $competition.style neq \'Company-vs-Company\'}\r\n		<br />\r\n		<select name=\"changeTeam[team]\">\r\n			<option value=\"\">Move selected players to...</option>\r\n			{foreach from=$competition.teams item=\"newTeams\" key=\"newTeamName\"}\r\n				{*if $newTeamName ne $teamName and $newTeamName ne \"Waiting to Join\"*}\r\n				{if $newTeamName ne \"Waiting to Join\"}\r\n					<option value=\"{$newTeamName}\">{$newTeamName}</option>\r\n				{/if}\r\n			{/foreach}\r\n		</select><br />\r\n		<input id=\"assign_captains_checkbox\" type=\"checkbox\" name=\"assignCaptains\" value=\"1\"><label for=\"assign_captains_checkbox\"> Assign selected player(s) as captain(s)</label><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Submit Changes\">\r\n		</form>\r\n		<img src=\"/systems/v2_ehc/images/ehc/ico/ico_captain.gif\" /> = Team Captain\r\n	{/if}\r\n</td></tr></table>\r\n</div>\r\n{/if}\r\n</div>\r\n	{* ******************************** DISCUSSION BOARD ***************************************** *}\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'discuss\', \'\', \'showHide\');\"><img id=\"discuss_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Discussion Board</h2>\r\n<div id=\"discuss\" style=\"display:block;\">\r\n	<table cellpadding=\"0\" width=\"100%\" border=\"0\"><tr><td><iframe src=\"?pg=competition/forum\" id=\"discussionBoard\" frameborder=\"0\" scrolling=\"yes\" style=\"width:100%;\"></iframe></td></tr></table>\r\n</div>\r\n\r\n</div></td>\r\n</tr></table>\r\n\r\n{*\r\n<script type=\"text/javascript\">{literal}\r\n	if ( window.frames != null ) {\r\n	    for ( i = 0; i< window.frames.length; i++ )\r\n	        window.alert (\"Child window \" +i+ \" is named \"+window.frames(i).name);\r\n	}\r\n{/literal}</script>\r\n*}'),(2111,133,0.76,'smarty','0','added Ship Method radio',1090217017,3,'24.10.220.247','<h1 class=\"underline\">Check Out</h1>\r\n<br />\r\n{if !$user->isLoggedIn()}\r\n<p>Please <a href=\"?pg=signup\">Sign Up</a> or Log In.</p>\r\n{else}\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n{/if}\r\n{include_php file=\"shared_handle:cart\"}{include_php file=\"shared_handle:checkout\"}\r\n{if $cart.items|@count gt 0 AND $cart.items neq \'\'}{** Show INPUT **}\r\n{if $success.shipIsValid eq \"\" OR $success.billIsValid eq \"\"}\r\n	<p>Below is a list of your shopping cart products.</p>\r\n	<blockquote>\r\n	<table>\r\n	{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n		<tr><td align=\"right\"><small>{$lineItem.title}</small></td>\r\n		<td>{$lineItem.quantity} @ \r\n		${$lineItem.each|number_format:\"2\"} \r\n		= ${$lineItem.subtotal|number_format:\"2\"}</td></tr>\r\n	{/foreach}</table></blockquote>\r\n	<br />\r\n	<div class=\"underline pixel\"></div>\r\n	\r\n	<p>Enter the shipping and your billing address below and then click Continue.</p>\r\n{else}\r\n	<p>Almost done! Take note of the associated Shipping and Tax sub totals, fill out your credit card number and expiration date, then click the <b>\'Submit Payment\'</b>.</p>\r\n{/if}\r\n<form name=\"checkoutForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"{if $success.billIsValid}shipProcess{else}validateShippingBilling{/if}\" />\r\n<table width=\"100%\"><tr><td>\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'shipInfo\', \'\', \'showHide\');\"><img id=\"shipInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Shipping Information</h2>\r\n\r\n	<p>Enter the shipping address.<br />\r\n	<small>(* indicates a required field)</small></p>\r\n	\r\n	<div id=\"shipInfo\" style=\"display:{if $success.shipIsValid}none{else}block{/if};\">\r\n	<a href=\"javascript:shipFromBill();\" class=\"button\">Same as Billing</a><br />\r\n	*First Name:\r\n	<input type=\"text\" name=\"ship[firstname]\" value=\"{$smarty.request.ship.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	*Last Name:\r\n	<input type=\"text\" name=\"ship[lastname]\" value=\"{$smarty.request.ship.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	\r\n	Company:\r\n	<input type=\"text\" name=\"ship[company]\" value=\"{$smarty.request.ship.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*Address:\r\n	<input type=\"text\" name=\"ship[address1]\" value=\"{$smarty.request.ship.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"ship[address2]\" value=\"{$smarty.request.ship.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"ship[city]\" value=\"{$smarty.request.ship.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"ship[state]\" value=\"{$smarty.request.ship.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"ship[zip]\" value=\"{$smarty.request.ship.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	\r\n	*Country:\r\n	<input type=\"text\" name=\"ship[country]\" value=\"{$smarty.request.ship.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	*Email:\r\n	<input type=\"text\" name=\"ship[email]\" value=\"{$smarty.request.ship.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Method:\r\n	<input type=\"radio\" name=\"ship[method]\" value=\"3-5-day\"{if $smarty.request.ship.method neq \"2-day\"} checked{/if}> 3 - 5 day \r\n	<input type=\"radio\" name=\"ship[method]\" value=\"2-day\"{if $smarty.request.ship.method eq \"2-day\"} checked{/if}> 2 day <br />\r\n\r\n	</div>\r\n</div>\r\n\r\n<script language=\"javascript\">{literal}\r\n\r\nfunction billFromShip() {\r\n	df = document.checkoutForm;\r\n	df[\'bill[firstname]\'].value = df[\'ship[firstname]\'].value;\r\n	df[\'bill[lastname]\'].value = df[\'ship[lastname]\'].value;\r\n	df[\'bill[company]\'].value = df[\'ship[company]\'].value;\r\n	df[\'bill[address1]\'].value = df[\'ship[address1]\'].value;\r\n	df[\'bill[address2]\'].value = df[\'ship[address2]\'].value;\r\n	df[\'bill[city]\'].value = df[\'ship[city]\'].value;\r\n	df[\'bill[state]\'].value = df[\'ship[state]\'].value;\r\n	df[\'bill[zip]\'].value = df[\'ship[zip]\'].value;\r\n	df[\'bill[country]\'].value = df[\'ship[country]\'].value;\r\n}\r\n\r\nfunction shipFromBill() {\r\n	df = document.checkoutForm;\r\n	df[\'ship[firstname]\'].value = df[\'bill[firstname]\'].value;\r\n	df[\'ship[lastname]\'].value = df[\'bill[lastname]\'].value;\r\n	df[\'ship[company]\'].value = df[\'bill[company]\'].value;\r\n	df[\'ship[address1]\'].value = df[\'bill[address1]\'].value;\r\n	df[\'ship[address2]\'].value = df[\'bill[address2]\'].value;\r\n	df[\'ship[city]\'].value = df[\'bill[city]\'].value;\r\n	df[\'ship[state]\'].value = df[\'bill[state]\'].value;\r\n	df[\'ship[zip]\'].value = df[\'bill[zip]\'].value;\r\n	df[\'ship[country]\'].value = df[\'bill[country]\'].value;\r\n}\r\n\r\n{/literal}</script>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>\r\n	<p>Enter the billing information for the credit card owner.<br />\r\n	<small>(* indicates a required field)</small></p>\r\n	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	<a href=\"javascript:billFromShip();\" class=\"button\">Same as Shipping</a><br />\r\n	*First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	*Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	*Phone:<small>(xxx-xxx-xxxx)\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', states, true);\r\n		initAutoComplete(\'ship[state]\', states, true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', countries, true);\r\n		initAutoComplete(\'ship[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n\r\n{if $success.shipIsValid AND $success.billIsValid}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Billing Summary</h2>\r\n	<strong>\r\n	Order Total = ${$order.total|default:\"0\"|number_format:\"2\"}<br />\r\n	Shipping / Handling = ${$order.shipping|default:\"0\"|number_format:\"2\"}<br />\r\n	Sales Tax = ${$order.tax|default:\"0\"|number_format:\"2\"}<br /><br />\r\n	</strong>\r\n	<div class=\"underline\"></div>\r\n	Total Amount Due: <em>${$order.grandTotal|default:\"0\"|number_format:\"2\"}</em>\r\n</div>\r\n\r\n{if $order.invoiceNum gt 0}<input type=\"hidden\" name=\"orderInvoiceNum\" value=\"{$order.invoiceNum}\" />{/if}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Payment Information</h2>\r\n\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"visa\"{if $smarty.request.bill.paymentMethod eq \"visa\"} selected{/if}>Visa</option>\r\n		<option value=\"mastercard\"{if $smarty.request.bill.paymentMethod eq \"mastercard\"} selected{/if}>Mastercard</option>\r\n		<option value=\"american express\"{if $smarty.request.bill.paymentMethod eq \"american express\"} selected{/if}>American Express</option>\r\n		<option value=\"discover\"{if $smarty.request.bill.paymentMethod eq \"discover\"} selected{/if}>Discover</option>\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Submit Payment </a></div>\r\n{else}\r\n</td></tr></table> \r\n\r\n<div class=\"hBox\" style=\"text-align:right\"><a href=\"javascript:document.checkoutForm.submit();\" class=\"button\"> Continue </a></div>\r\n{/if}\r\n</form>\r\n{** END INPUT **}\r\n{elseif $success.ccTransId}\r\n	<h2>Complete!</h2>\r\n	<p>Your order has been processed and approved, an email receipt has been mailed to you.</p>\r\n	<p><a href=\"?pg=home\">Click here</a> to go to the home page.</p>\r\n{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(2925,105,0.97,'php','0','added the return policy',1104464415,16,'64.85.253.211','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\",\r\n			\"The FREE membership will last as long as you want it to.  It is your Weight Loss Journal and will be available to you as long as your account is not inactive for more than 4 months.\",\r\n			\"YES! The membership and all its benefits are totally FREE!\"\r\n		\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"What type of Competition should I start?\",\r\n			\"Should I do Belly to Belly, or Team against Team?\",\r\n			\"What should I set as the award?\",\r\n			\"If I choose \\\"Each Competitor Donates\\\" how much money should I put as the award contribution?\",\r\n			\"How does the winner get the Award?\",\r\n			\"Does the whole Award go to the winner?\",\r\n			\"Which Final Judging method is the best?\",\r\n			\"How is the winner chosen?\",\r\n			\"How long should the competition be?\",\r\n			\"What if no one wants to challenge me?\",\r\n			\"No one has responded to my challenge letter, what should I do?\",\r\n			\"Can I change the Award amount?\",\r\n			\"Can I change the judging method?\",\r\n			\"Can I change the length of the competition?\",\r\n			\"How much does this cost?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"The Competition Arenas you can create are very similar and so the one you choose depends on 1 question;<br> 1) do you want a Belly to Belly competition or  a Team against Team competition?  Once you answer this question any arena you select will work.  Here is a quick break down of each arena: <br><br>\r\n				<b>a. Corporate</b>: Choose this Arena if you are a business manager and want to host a weight loss competition at work among your employees. \r\n				<br><b>b. family/friends</b>: Choose this arena to compete against a number of your friends or family. \r\n				<br><b>c. Partner/Spouse</b>: Choose this arena to compete against 1 other person or against 1 pair (i.e. you and your spouse competing against your brother and his spouse).\",\r\n			\"The term <b>Belly to Belly</b> simply means that every competitor is competiting\r\n				 against every other competitor.  Many of our clients enjoy this format \r\n				because they can just worry about themselves.  <p /><b>Team against Team</b> is where 2 or more teams compete \r\n				against each other.  You can select how many you want on each team between\r\n			 	2 and 10 members.  In the Team verse Team format your combined success in weight loss\r\n			 	is what determines who wins.  Many of our clients enjoy this format \r\n				beacuse they have team mates to encouage and motivate them.\",\r\n			\"Set what you want.  \\\"Each competitor donates\\\" requires a contribution, that you specify, by each competitor.  This is donated to the winner, by all his competitors.  You could put, as the award, \\\"I will supply the prize\\\" and so the entire award is donated by you. Or you could select \\\"Other\\\" and pick any award and style that you want.\",\r\n			\"Put an the amount for the award high enough to motivate you in your weight loss.  It can be any amount but should be large enough to motivate you not to lose it! Remember this amount is what each competitor will need to contribte in order to participate.\",\r\n			\"WeightLossWars will send a check for the full pot amount of your competitions to the winner. Checks should arrive within 2 weeks of the end of your competition.\",\r\n			\"Distributing the award is up to each participant of the competition (if the competition is a \\\"Each competitor donates.\\\") If \\\"I will supply the Pize,\\\" or \\\"Other\\\" was selected then the creator of the competition is responsible for the distribution of the award.\",\r\n			\"There are two Judging methods to choose from.  Total Weight Lost, and % of Body Weight Lost.  % of Body Weight Lost is a more fair since it accounts for the differences found in gender and body type and size.  \", \r\n			\"You choose which method, Total Weight Lost, or % of Body Weight Lost, to determine the winner.  Based on what each competitor enters for the begining and ending weights, and the judging selection you selected WeightLossWars will calculate a winner at the end of the competition.\",\r\n			\"A competion can be as short, or as long as you want.  However a longer competition allows the development of healthy habits, and elimates those dieters who can lose a lot of weight fast. Make it long enough so the winner deserves the reward they get. A typical length is between 3 and 9 months\",\r\n			\"If you have sent you letter to everyone you know and no one will challenge you then you are out of luck!  One thing you can do is talk to your employer and get them interested in starting one at work. \",  \r\n			\"WeightLossWars resends you letter to all those that haven\'t responded within one week of when you invited them.  If they still don\'t respond chances are that their invitation is going into their junk email folder.  Try calling or sending them a normal email to make them aware of your invitaion.\", \r\n			\"Sorry, once you have sent the invitation letter you cannot change the award amount.\",\r\n			\"You can change the judging method after the competition has started.  Simply send an email requesting the change to customerservice@weightlosswars.com and we can change it for you.\",\r\n			\"YES.  You can change the length of the competition within the first 2 weeks.  Simply send an email requesting the change to customerservice@weightlosswars.com.\",\r\n			\"While being a member of WeightLossWars is FREE, to participate in a competition there is a one time $10 service charge per competition.\"	\r\n		\r\n)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"How is the winner chosen?\",\r\n			\"How do I get my winnings?\",\r\n			\"I won my competition, but haven\'t received the Pot amount?\",\r\n			\"What should I do if I think the winner has cheated?\",\r\n			\"How are my items shipped?\",\r\n			\"What is WeightLossWars return Policy?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"You choose which method, Total Weight Lost, or % of Body Weight Lost, to determine the winner. Based on what each competitor enters for the begining and ending weights, and the judging selection you selected WeightLossWars will calculate a winner at the end of the competition. .\",\r\n			\"Once a competition is finished WeightLossWars immediatly begins to caluclate the winner and distribute the winnings.  WeightLossWars will mail a check to the winner which should arrive within 2 weeks of the end of the competition.\",\r\n			\"The WeightLossWars check is mailed to the winner within 2 weeks of the ending of the competition.  If it has been 2 weeks then email customerservice@weightlosswars.com.\",\r\n			\"It is your responsibility to talk with those you suspect are cheating. If there is a dispute the money can be sent to the person who started the competition to divide the pot as he sees fit.\",\r\n			\"WeightLossWars uses UPS to ship its products.  All shipping costs are paid for by the consumer at checkout.<br />\", \r\n			\"If you are not satisfied with your WeightLossWars product purchase you may return the unused item within 30 days of receipt for a refund.  Send the item addressed to: <br /><br />WeightLossWars Returns<br /> 1116 Glenwillow Ln<br /> Concord, CA 94521<br /><br />No refund is given from shipping charges and you are responsible for the item until it reaches WeightLossWars including all shipping charges.  Be sure to include in your return the invoice and your full name and contact information.  Below is a list of items that are not refundable.<br /><br />\r\n			<b>Non-refundable Products and services:</b><br /><br />Items that are not refundable include clothing, hats, towels, water bottles, and any and all sabotage or food items.  The service charge for participating in a competition is non-refundable as well as the pot amount that was contributed to the competition.  Once the service charge and pot are collected there is absolutely no refund.  Make sure the competition you want to participate in is correct and that you are committed to the requirements of participating which includes the pot and service charge.\r\n			For questions regarding returns or exchanges send an email to <b>customerservice@weightlosswars.com</b>.\"\r\n		)\r\n	)\r\n);\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(2928,105,1.00,'php','0','added the return policy',1104465718,16,'64.85.253.211','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  chaeck back often for enhanced goal managment features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to selelct the answer that most appropriatly represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"	\r\n		\r\n)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"How is the winner chosen?\",\r\n			\"How do I get my winnings?\",\r\n			\"I won my competition, but haven\'t received the Pot amount?\",\r\n			\"What should I do if I think the winner has cheated?\",\r\n			\"How are my items shipped?\",\r\n			\"What is WeightLossWars return Policy?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"You choose which method, Total Weight Lost, or % of Body Weight Lost, to determine the winner. Based on what each competitor enters for the begining and ending weights, and the judging selection you selected WeightLossWars will calculate a winner at the end of the competition. .\",\r\n			\"Once a competition is finished WeightLossWars immediatly begins to caluclate the winner and distribute the winnings.  WeightLossWars will mail a check to the winner which should arrive within 2 weeks of the end of the competition.\",\r\n			\"The WeightLossWars check is mailed to the winner within 2 weeks of the ending of the competition.  If it has been 2 weeks then email customerservice@weightlosswars.com.\",\r\n			\"It is your responsibility to talk with those you suspect are cheating. If there is a dispute the money can be sent to the person who started the competition to divide the pot as he sees fit.\",\r\n			\"WeightLossWars uses UPS to ship its products.  All shipping costs are paid for by the consumer at checkout.<br />\", \r\n			\"If you are not satisfied with your WeightLossWars product purchase you may return the unused item within 30 days of receipt for a refund.  Send the item addressed to: <br /><br />WeightLossWars Returns<br /> 1116 Glenwillow Ln<br /> Concord, CA 94521<br /><br />No refund is given from shipping charges and you are responsible for the item until it reaches WeightLossWars including all shipping charges.  Be sure to include in your return the invoice and your full name and contact information.  Below is a list of items that are not refundable.<br /><br />\r\n			<b>Non-refundable Products and services:</b><br /><br />Items that are not refundable include clothing, hats, towels, water bottles, and any and all sabotage or food items.  The service charge for participating in a competition is non-refundable as well as the pot amount that was contributed to the competition.  Once the service charge and pot are collected there is absolutely no refund.  Make sure the competition you want to participate in is correct and that you are committed to the requirements of participating which includes the pot and service charge.\r\n			For questions regarding returns or exchanges send an email to <b>customerservice@weightlosswars.com</b>.\"\r\n		)\r\n	)\r\n);\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(4265,138,0.44,'smarty','0','starting flashgraph v2 update',1126834719,3,'24.2.76.126','{if $user->username eq \"trave\"}{display var=$smarty.get}{/if}\r\n\r\n{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	{if $styleName neq \"\"}<link rel=\"stylesheet\" type=\"text/css\" href=\"{$skinFolder}styles/{$styleName}.css\" />{/if}\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n\r\n{if $smarty.request.compId}\r\n	{assign var=\"compId\" value=\"comp\"|cat:$smarty.request.compId}\r\n{/if}\r\n{assign var=\"type\" value=$smarty.request.type}\r\n{assign var=\"fillPrevious\" value=$smarty.request.fillPrevious|default:\"1\"}\r\n{assign var=\"precision\" value=$smarty.request.precision|default:\"0\"}\r\n{assign var=\"stars\" value=$smarty.request.stars|default:\"\"}\r\n{assign var=\"totalChange\" value=$smarty.request.totalChange|default:\"0\"}\r\n{assign var=\"userIds\" value=$smarty.request.userIds|default:\"\"}\r\n{if $smarty.request.gParams}{include_php file=\"shared_handle:assignGraphParams\"}{/if}\r\n{if $smarty.request.format eq \"small\"}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher_sm.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"&session_id=\":$smarty.session.session_id}\r\n{elseif $smarty.request.format eq \"wide\"}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher_wide.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"&session_id=\":$smarty.session.session_id}\r\n{else}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"&session_id=\":$smarty.session.session_id}\r\n{/if}\r\n\r\n{* assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher{if $smarty.request.format eq \"small\"}_sm{elseif $smarty.request.format eq \"wide\"}_wide{/if}.swf?id=comp1!weight!1!0!!1&session_id=\":$smarty.session.session_id\" *}\r\n\r\n<h3 class=\"underline\">&nbsp; {if $userIds}Showing{else}Comparing{/if} {if $totalChange}Change in {/if}{$type|niceText} Over Time</h3>\r\n{if $user->username eq \"trave\" AND $type}\r\n	{if $smarty.request.format eq \"small\"}\r\n		{swf src=$url width=\"425\" height=\"195\" bgcolor=\"#FFFFFF\" wmode=\"transparent\"}\r\n	{elseif $smarty.request.format eq \"wide\"}\r\n		{swf src=$url width=\"595\" height=\"195\" bgcolor=\"#FFFFFF\" wmode=\"transparent\"}\r\n	{else}\r\n		{swf src=$url width=\"555\" height=\"195\" bgcolor=\"#FFFFFF\" wmode=\"transparent\"}\r\n	{/if}\r\n{elseif $user->username eq \"trave\"}\r\n	{if $smarty.request.format eq \"small\"}\r\n		<img src=\"{$systemFolder}images/choose_graph_small.gif\" width=\"421\" height=\"187\" />\r\n	{else}\r\n		<img src=\"{$systemFolder}images/choose_graph_wide.gif\" width=\"588\" height=\"180\" />\r\n	{/if}\r\n{else}\r\n<ul>\r\n	<li>The eHealthCompete graphing engine is temporarily unavailable due to upgrades.</li>\r\n</ul>\r\n{/if}\r\n\r\n{if false AND $acm->isDomainAdmin()}\r\n	{$smarty.request.gParams}\r\n	{assign var=\"debugUrl\" value=$url|regex_replace:\"/.*\\?/\":\"?pg=flashgraph&\"}\r\n	Debug this graph: <a href=\"{$debugUrl}\" target=\"_blank\">Source</a> | <a href=\"{$debugUrl}&debug=1\" target=\"_blank\">Debugger</a>\r\n{/if}\r\n\r\n</body></html>'),(4291,138,0.51,'smarty','0','starting flashgraph v2 update',1126853212,3,'24.2.76.126','{* if $user->username eq \"jhyde\"}{display var=$smarty.get}{/if *}\r\n{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	{if $styleName neq \"\"}<link rel=\"stylesheet\" type=\"text/css\" href=\"{$skinFolder}styles/{$styleName}.css\" />{/if}\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n\r\n{if $smarty.request.compId}\r\n	{assign var=\"compId\" value=\"comp\"|cat:$smarty.request.compId}\r\n{/if}\r\n{assign var=\"type\" value=$smarty.request.type}\r\n{assign var=\"fillPrevious\" value=$smarty.request.fillPrevious|default:\"1\"}\r\n{assign var=\"precision\" value=$smarty.request.precision|default:\"0\"}\r\n{assign var=\"stars\" value=$smarty.request.stars|default:\"\"}\r\n{assign var=\"totalChange\" value=$smarty.request.totalChange|default:\"0\"}\r\n{assign var=\"userIds\" value=$smarty.request.userIds|default:\"\"}\r\n{assign var=\"esId\" value=$smarty.request.esId}\r\n{if $smarty.request.gParams}{include_php file=\"shared_handle:assignGraphParams\"}{/if}\r\n{if $smarty.request.format eq \"small\"}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher_sm.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"!\":$esId:\"&session_id=\":$smarty.session.session_id}\r\n{elseif $smarty.request.format eq \"wide\"}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher_wide.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"!\":$esId:\"&session_id=\":$smarty.session.session_id}\r\n{else}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"!\":$esId:\"&session_id=\":$smarty.session.session_id}\r\n{/if}\r\n\r\n{* assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher{if $smarty.request.format eq \"small\"}_sm{elseif $smarty.request.format eq \"wide\"}_wide{/if}.swf?id=comp1!weight!1!0!!1&session_id=\":$smarty.session.session_id\" *}\r\n\r\n<h3 class=\"underline\">&nbsp; {if $userIds}Showing{else}Comparing{/if} {if $totalChange}Change in {/if}{$type|niceText} Over Time</h3>\r\n{if $user->username eq \"jhyde\" AND ($type OR $smarty.get.esId)}\r\n	{if $smarty.request.format eq \"small\"}\r\n		{swf src=$url width=\"425\" height=\"195\" bgcolor=\"#FFFFFF\" wmode=\"transparent\"}\r\n	{elseif $smarty.request.format eq \"wide\"}\r\n		{swf src=$url width=\"595\" height=\"195\" bgcolor=\"#FFFFFF\" wmode=\"transparent\"}\r\n	{else}\r\n		{swf src=$url width=\"555\" height=\"195\" bgcolor=\"#FFFFFF\" wmode=\"transparent\"}\r\n	{/if}\r\n{elseif $user->username eq \"jhyde\"}\r\n	{if $smarty.request.format eq \"small\"}\r\n		<img src=\"{$systemFolder}images/choose_graph_small.gif\" width=\"421\" height=\"187\" />\r\n	{else}\r\n		<img src=\"{$systemFolder}images/choose_graph_wide.gif\" width=\"588\" height=\"180\" />\r\n	{/if}\r\n{else}\r\n<ul>\r\n	<li>The eHealthCompete graphing engine is temporarily unavailable due to upgrades.</li>\r\n</ul>\r\n{/if}\r\n\r\n{if $acm->isDomainAdmin()}\r\n	{$smarty.request.gParams}\r\n	{assign var=\"debugUrl\" value=$url|regex_replace:\"/.*\\?/\":\"?pg=flashgraph&\"}\r\n	Debug this graph: <a href=\"{$debugUrl}\" target=\"_blank\">Source</a> | <a href=\"{$debugUrl}&debug=1\" target=\"_blank\">Debugger</a>\r\n{/if}\r\n\r\n</body></html>'),(2929,105,1.01,'php','0','added the return policy',1104466240,16,'64.85.253.211','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  chaeck back often for enhanced goal managment features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to selelct the answer that most appropriatly represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"	\r\n		\r\n)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"What does BMI stand for and what is a healthy BMI for me? \",\r\n			\"How accurate is the BMI measurement? \",\r\n			\"What is a healthy blood pressure? \",\r\n			\"How can I lower blood pressure (besides medication)?\",\r\n			\"Where should my cholesterol levels be?\",\r\n			\"How much exercise do I need to do to lose weight?\",\r\n			\"What is the best type of exercise to lose body fat?\",\r\n			\"How can I know what my body fat percentage is?\",\r\n			\"What is heart disease and how does exercise and nutrition affect my risks?\",\r\n			\"What is the Target Heart Rate zone? \",\r\n			\"Do I really need to lift weights?\",\r\n			\"What if I just don’t have time to exercise?\",\r\n			\"If I am overweight or obese, what diseases am I at risk for?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"BMI stands for Body Mass Index and is a ratio of weight to height, used to estimate the relationship of body composition to risk factors of certain diseases. Use our calculator to determine what your BMI is and refer to the chart below to see what category you are in. \",\r\n			\"\",\r\n			\"\",\r\n			\"\",\r\n			\"\", \r\n			\"\"\r\n		)\r\n	)\r\n);\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(4264,195,0.55,'smarty','0','Imported from V2 conversion',1126834491,3,'24.2.76.126','{include file=\"layouts/forceLoggedIn.tpl\"}\r\n{include_php file=\"shared_handle:myHome\"}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title} - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n\r\n{select_query return=\"row\" assign=\"aHRA\"}\r\n	dateTaken, pointsEarned FROM surveys_taken\r\n		WHERE userId = {$user->id}\r\n		AND surveyId = 8\r\n		ORDER BY dateTaken DESC\r\n		LIMIT 1\r\n{/select_query}\r\n\r\n<table width=\"700\">\r\n<tr>\r\n	<td>\r\n	<div id=\"statsContainer\" style=\"overflow:hidden;\">\r\n		<a name=\"updateStats\"></a>\r\n		<iframe name=\"profileUpdateFrame\" id=\"profileUpdateIFrame\" src=\"?pg=my_statistics/update&userId={$smarty.request.userId|default:$userProfile.id}\" frameborder=\"0\" width=\"700\" height=\"440\" scrolling=\"no\"></iframe>\r\n	</div>\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n<table width=\"700\">\r\n<tr><td>\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'profileGraphTable\', \'\', \'showHide\');\"><img id=\"profileGraphTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>User Profile &amp; Graphs</h2>\r\n</td></tr></table>\r\n\r\n<table id=\"profileGraphTable\" width=\"700\">\r\n<tr><td width=\"205\" valign=\"top\">\r\n	<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n	<h2 class=\"withBG\">Your Profile</h2>\r\n		<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet|default:\"-\"}\'{$userProfile.heightInches|default:\"-\"}&quot;</span><br />\r\n		<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight|default:\"-\"}</span><br /><span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">Current Weight:</span><span class=\"cellSmall\">{$userProfile.currentWeight|default:\"-\"}</span><br />\r\n		<span class=\"cellHeadLarge\">HRA Score:</span><span class=\"cellSmall\">{$aHRA.pointsEarned|default:\"-\"}</span><br />\r\n\r\n		<a href=\"?pg=my_profile\" class=\"link\"><img src=\"{$skinFolder}images/btn_profile.gif\" border=\"0\" alt=\"Update Profile\" vspace=\"10\" /></a><br />\r\n		<a href=\"?pg=my_settings\" class=\"link\"><img src=\"{$skinFolder}images/btn_settings.gif\" border=\"0\" alt=\"Account Settings\" vspace=\"0\" /></a>\r\n	</div>\r\n</td><td valign=\"top\" align=\"center\">	\r\n	<div id=\"graphContainer\">\r\n	<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small{* &type=weight&fillPrevious=1&precision=1&totalChange=0&userIds={$userProfile.id} *}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n	{if $user->username eq \"trave\"}{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n	<small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$userProfile.id}&esId={$es.id}\" target=\"graphwindow\">{$es.name|niceText}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n	</small>\r\n	{else}\r\n	<small>\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=1\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise Min</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n	</small>\r\n	{/if}\r\n</td></tr>\r\n</table>\r\n<br />\r\n<table width=\"700\">\r\n<tr><td colspan=\"2\">\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'goalsMottosBlock\', \'\', \'showHide\');\"><img id=\"goalsMottosBlock_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Goals &amp; Mottos</h2>\r\n<blockquote id=\"goalsMottosBlock\" style=\"display:block;\">\r\n<dl>\r\n	<dt>Motto:</dt>\r\n	<dd>{$userProfile.personalSaying|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Nutrition Goal:</dt>\r\n	<dd>{$userProfile.nutritionGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Fitness Goal:</dt>\r\n	<dd>{$userProfile.fitnessGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n	<dt>Lifestyle Goal:</dt>\r\n	<dd>{$userProfile.lifestyleGoal|default:\"- Not Set - Click on the <i><b>Update my Profile</b></i> button toward the top of this page to set your goal\"}</dd>\r\n</dl>\r\n</blockquote>\r\n</td></tr>\r\n</table>'),(2930,105,1.02,'php','0','added the return policy',1104467856,16,'64.85.253.211','<?php\r\n\r\n$FAQ = array(\r\n	\"0\" => array(\r\n		\"title\" => \"Account Questions\",\r\n		\"anchor\" => \"cat1\",\r\n		\"questions\" => array(\r\n			\"How do I change my password?\",\r\n			\"I entered the wrong birthdate how do I change my entry?\",\r\n			\"My weight loss goals have changed, is there a way to set a new goal?\",\r\n			\"What is a Weight Loss Journal?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"You can manage many aspects of you account by clicking on the Account Settings button towards the top of the My Home page.\",\r\n			\"Having the correct age is important - and is configured in some of the calculators and other site tools to help you understand health issues facing your age group.  Unfortunately there isn\'t a way to change your birthdate at this time, but a customer service representative would be happy to change it for you.  Simply click on the Contact Us link at the bottom of the page and let them know of the change you need.\",\r\n			\"You can make changes to your goals by clicking on the Update My Profile button near the top of the My Home page.  chaeck back often for enhanced goal managment features!\",\r\n			\"A weight loss Journal is a place to record your weight loss efforts in exercise and nutrition.  It has been proven that those who keep a record of what they eat are more successful in losing weight.  WeightLossWars provides you an interactive and informative FREE weight loss journal.\"\r\n		\r\n		)\r\n	),\r\n	\"1\" => array(\r\n		\"title\" => \"Incentive Survey Questions\",\r\n		\"anchor\" => \"cat2\",\r\n		\"questions\" => array(\r\n			\"I can no longer take the wellness surveys, what happened?\",\r\n			\"I entered some wrong information, is there any way I can change my answers?\",\r\n			\"How are the points awarded?\r\n			\"How many points do I need to receive different prizes and bonuses?\"\r\n\r\n		),\r\n		\"answers\" => array(\r\n			\"Each survey has a time limit that must expire before you take the survey again.  Currently the Life Style survey can be taken once a month, while the Physical Activity and Nutrition surveys can be taken weekly.  The date that is displayed next to each survey will let you know when you can take them again.\",\r\n			\"Data that you have entered cannot be changed.  As you select your answers be careful to selelct the answer that most appropriatly represents you.\",\r\n			\"Points are distributed based on frequency of participation and the answers that you give.  Participation points are awarded for filling out the survey, and then, based on your answers, you receive points that reward healthier life styles.\",\r\n			\"Receiving prizes depends upon your company.  Ask your benefits manager or wellness director for the details on redeeming your points for prizes.\"	\r\n		\r\n)\r\n	),\r\n	\"2\" => array(\r\n		\"title\" => \"Health and Wellness Questions\",\r\n		\"anchor\" => \"cat3\",\r\n		\"questions\" => array(\r\n			\"What does BMI stand for and what is a healthy BMI for me? \",\r\n			\"How accurate is the BMI measurement? \",\r\n			\"What is a healthy blood pressure? \",\r\n			\"How can I lower blood pressure (besides medication)?\",\r\n			\"Where should my cholesterol levels be?\",\r\n			\"How much exercise do I need to do to lose weight?\",\r\n			\"What is the best type of exercise to lose body fat?\",\r\n			\"How can I know what my body fat percentage is?\",\r\n			\"What is heart disease and how does exercise and nutrition affect my risks?\",\r\n			\"What is the Target Heart Rate zone? \",\r\n			\"Do I really need to lift weights?\",\r\n			\"What if I just don’t have time to exercise?\",\r\n			\"If I am overweight or obese, what diseases am I at risk for?\"\r\n		),\r\n		\"answers\" => array(\r\n			\"BMI stands for Body Mass Index and is a ratio of weight to height, used to estimate the relationship of body composition to risk factors of certain diseases. Use our calculator to determine what your BMI is and refer to the chart below to see what category you are in.<br />18.5 or less = Under Weight <br />18.5 - 24.9 = Normal <br />25.0 - 29.9 = Overweight <br />30.0 - 34.9 = Level 1 Obese <br />35.0 - 39.9 = Level 2 Obese <br />40 or greater = Extreme Obese\",\r\n			\"For the vast majority of average individuals, the BMI is a useful and accurate measurement. The drawback lies in the fact that short, muscular individuals may be falsely labeled as obese, and tall lean individuals as underweight.\",\r\n			\"According to national guidelines, normal blood pressure is below 120/80 mmHg. Blood pressure above 140/90 mmHg is diagnosed as hypertension, or high blood pressure. Someone with hypertension is at higher risk of having strokes, heart attacks and kidney.\",\r\n			\"Hypertension can be treated through increased exercise and a better diet. Many recent studies have shown that regular aerobic exercise (workouts like brisk walking that use large muscles for an extended period) over several months may modestly lower blood pressure. According to a recent National Institutes of Health conference, aerobic exercise reduces resting (nonexercise) blood pressure in people who have hypertension by an average of 11 points off the top number and 9 points off the bottom number. That could be enough to lower high blood pressure to normal. Reducing sodium(salt) in your diet can also help to lower blood pressure.\",\r\n			\"Your TOTAL blood cholesterol will fall into one of these categories:<br /><b>Desirable</b> — Less than 200 mg/dL <br /><b>Borderline high risk</b> — 200–239 mg/dL <br /><b>High risk</b> — 240 mg/dL and over<br />There are two types of cholesterol in your body: LDL is bad cholesterol and contributes to artery clogging. You want Low LDL levels (below 100 is optimal). HDL is good cholesterol and helps to clear arterial blockage. You want High HDL levels. (Less than 40 is too low) To lower your LDL and raise your HDL levels you can: <br />Quit Smoking <br />Lose weight (or maintain a healthy weight) <br />Be physically active for at least 30 – 60 minutes a day on most or all days of the week.\",\r\n			\"This depends on how many calories you are consuming. To lose weight you need to burn more calories than you take in. It takes 3500 calories burned to lose 1 pound. That’s going into a deficit of 1,000 calories a day if you want to lose 2 lbs a week. This can be done by eating 500 calories less than you normally do and burning 500 calories per day more through exercise. That is equivalent to about a 45 minute jog.<br />Exercising 30-60 minutes 5 days a week is a good guideline to follow and will not only aid in weight loss but will also reduce your risk for several diseases including heart disease, diabetes and colon cancer.\"\r\n			\"When your body is engaged in aerobic exercise, it utilizes fat as its fuel. So if your goal is to lose body fat, your main modes of exercise should be walking, jogging, biking or swimming in your target heart rate zone.\",\r\n			\"There are several different methods used to determine body fat percentage. Hydrostatic or underwater weighing is probably the most accurate and widely used. There are other methods and devices including the DEXA machine, the Bod Pod, Tanita scales, hand held devices and Skin Calipers. The key is to use the same method consistently so that you can see the change in your body fat percentage. This link analyzes the different methods of body fat testing. http://new-fitness.com/body_fat_analyzing.html\",\r\n			\"Heart disease occurs because of inadequate blood flow to the heart muscle. This occurs when the arteries that supply the heart muscle (the coronary arteries) become partially or completely blocked. Obese people are at increased risk of heart disease due to their higher rates of hypercholesterolemia, diabetes and hypertension. Several studies have proven the beneficial effects of exercise on heart diseases. Not only will it reduce body fat, but it will also help to lower blood cholesterol, blood pressure and regulate glucose metabolism. Eating a diet high low in saturated fat and cholesterol and high in dietary fiber will lower your risk for heart disease.\",\r\n			\"The Target Heart Rate zone refers to the range that you want your heart rate to be in while you are doing aerobic exercise. This is the best zone to be in to burn body fat. Calculate your target heart rate zone using our calculator.\",\r\n			\"There are many benefits to strength training including:<br />Higher metabolism<br />Stronger bones<br />Increased muscle strength and endurance<br />Increased balance, flexibility and stability<br />Decreased risk of coronary heart disease<br />Injury prevention<br />Feel and look better<br />Strength training will help you with weight loss because the more muscle you have the more calories you burn at rest.\"\r\n			\"We all have busy schedules and the trick with exercising is plan, plan, plan. Schedule it in before your busy week begins. Make it a priority. Set aside time one day a week to plan when, where and for how long you will exercise. It may require getting up half hour earlier, or taking a little longer lunch break. If there is absolutely no time in your schedule for a formal exercise session you can do little tricks like parking farther away at the store, taking the elevator, etc. Every little bit helps.\",\r\n			\"Obesity places you at risk for several diseases including heart disease, diabetes, some forms of cancer, sleep apnea, abdominal hernias, varicose veins, gout, gall bladder disease, respiratory problems, and liver malfunction. Losing just 10% of your body weight will significantly lower your risk for these diseases.\"\r\n		)\r\n	)\r\n);\r\n\r\n?>\r\n<h1 class=\"underline\">Frequently Asked Questions</h1>\r\n<br />\r\n<a name=\"toc\" />\r\n<h2 class=\"withBG\">Table of Contents</h2>\r\n<ul>\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n	<li><a href=\"#<?php echo $FAQ[$x][\"anchor\"] ?>\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></a><br /><br /></li>\r\n	<ul>\r\n	<?php\r\n		for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n		<li><a href=\"#question_<?php echo $x?>_<?php echo $y?>\"><?php echo  $FAQ[$x][\"questions\"][$y] ?></a></li>\r\n		<?php } ?>\r\n	</ul>\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n<?php }	?>\r\n</ul>\r\n\r\n<br />\r\n\r\n<?php\r\n	for ($x = 0; $x < count($FAQ); $x++) { ?>\r\n\r\n<a name=\"<?php echo  $FAQ[$x][\"anchor\"] ?>\" />\r\n<h2 class=\"withBG\"><?php echo  strtoupper($FAQ[$x][\"title\"]) ?></h2>\r\n\r\n<?php \r\n	for ($y = 0; $y < count($FAQ[$x][\"questions\"]); $y++) { ?>\r\n\r\n<a name=\"question_<?php echo $x?>_<?php echo $y?>\" />\r\n<b>Q.</b> &nbsp;<?php echo  $FAQ[$x][\"questions\"][$y] ?>\r\n<div style=\"margin:10px;margin-top:2px;\">\r\n	<b>A.</b> &nbsp;<?php echo $FAQ[$x][\"answers\"][$y] ?><br />\r\n	<div align=\"right\"><a href=\"#toc\" class=\"button\">Return to top</a><br /></div>\r\n</div>\r\n	<?php } ?>\r\n<?php } ?>\r\n\r\n<br />\r\n<br />\r\nStill have questions? <a href=\"?pg=contact\">Contact Us</a><br />\r\n'),(975,119,0.18,'smarty','0','initial cleanup..',1084851448,3,'24.10.220.247','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 3</h1>\r\n<br />\r\n<h2 class=\"withBG\">Send Your Invitation Letter:</h2>\r\n<br />\r\n<div style=\"margin-left:15px;\">\r\n	<br />Enter the contact information for as many friends as you would like to send your invitation to.\r\n</div>\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n\r\n<table align=\"center\">\r\n<tr>\r\n	<td><div>\r\n		<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"350\">\r\n		<tr>\r\n			<td><div>\r\n				<h2 class=\"withBG\">Your Letter</h2>\r\n			</div></td>\r\n		</tr>\r\n		<tr>\r\n			<td align=\"left\">\r\n				<div id=\"letter\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;\">\r\n					{eval var=$invitationLetter|nl2br}\r\n					</div>\r\n			</td>\r\n		</tr>\r\n		</table>\r\n	</div></td>\r\n	<td align=\"center\">\r\n		<table>\r\n		<tr>\r\n			<td><div>&nbsp;</div></td>\r\n			<td><div>Name</div></td>\r\n			<td><div>E-Mail</div></td>\r\n			<td><div>Relation</div></td>\r\n		</tr> \r\n		{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n		<tr>\r\n			<td><div>Competitor {$smarty.section.contactLoop.iteration}</div></td>\r\n			<td><div><input type=\"text\" size=\"18\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n			<td><div><input type=\"text\" size=\"25\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n			<td><div><input type=\"text\" size=\"15\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		</tr>\r\n		{/section}\r\n		</table>\r\n	</td>\r\n	<td>\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>'),(976,116,0.38,'smarty','0','valign top;',1084851567,3,'24.10.220.247','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.createInvitation\"}\r\n\r\n<h1 class=\"underline\">Step 2</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'makeInvite\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Create Your Invitation Letter:</h2>\r\n	\r\n	<div id=\"makeInvite\" style=\"display:block;\">\r\n	In this step you will create an email letter to invite your competitors into your Weight Loss War!<br /><br />\r\n	Select an Example letter or a fill-in-the-blanks letter to Edit.  If you don\'t like any of those letters then simply click on \r\n	<i>Create My Own</i> below and write your own challenge invitation!  Then click <i>Next</i> below.\r\n	\r\n	{toc_next assign=\"next\"}\r\n	{toc_prev assign=\"prev\"}\r\n	\r\n	<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n	<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n	\r\n	<script language=\"JavaScript\">\r\n	\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	\r\n	function toggleType(type) {\r\n		if (type == \'customLetter\') {\r\n			document.getElementById(\'customLetter\').style.display = \'block\';\r\n			document.getElementById(\'madlib\').style.display = \'none\';\r\n			document.getElementById(\'letterType\').value = \'customLetter\';\r\n			document.getElementById(\'madlibsElement\').selectedIndex = 0;\r\n		} else {\r\n			document.getElementById(\'customLetter\').style.display = \'none\';\r\n			document.getElementById(\'madlib\').style.display = \'block\';\r\n			document.getElementById(\'letterType\').value = \'madlib\';\r\n		}\r\n	}\r\n	\r\n	function setExample(key) {\r\n		toggleType(\'customLetter\');\r\n		var ta = document.getElementById(\'customLetterElement\');\r\n	\r\n		if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n			ta.value = examples[key];\r\n		}\r\n	}\r\n	\r\n	function setMadlib(key) {\r\n		var obj;\r\n		key--;\r\n		toggleType(\'madlib\');	\r\n		for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n			obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n		}\r\n	}\r\n	{/literal}\r\n	\r\n	</script>\r\n	\r\n	<br />\r\n	\r\n	<table>\r\n	<tr>\r\n		<td valign=\"top\"><div>\r\n			<h2 class=\"withBG\">Examples:</h2>\r\n			<div style=\"margin:0px 10px 0px 10px;\">\r\n				{foreach from=$examples key=\"key\" item=\"example\"}\r\n					<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n				{foreachelse}\r\n					Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n				{/foreach}\r\n			</div>\r\n		</div></td>\r\n		<td valign=\"top\">\r\n			<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n			<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"500\">\r\n			<tr>\r\n				<td><div>\r\n					{if $madlibs|@count}\r\n						<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n							<option value=\"\">(Select a MadLib)</option>\r\n						{foreach from=$madlibs item=\"madlib\"}\r\n							<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n						{/foreach}\r\n						</select>\r\n					{else}\r\n						No Madlibs Available!\r\n					{/if}\r\n					<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n				</div></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\"left\">\r\n					<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n						{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n							<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n						{/foreach}\r\n						</div>\r\n	\r\n					<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n						<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" style=\"width:480px;\" class=\"textarea\"></textarea></div>\r\n				</td>\r\n			</tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}'),(2344,166,0.10,'smarty','0','Page created.',1098290646,3,'24.10.224.224',''),(2345,166,0.11,'php','0','Page created.',1098290717,3,'24.10.224.224','<?php echo $_POST[\'mailBody\']; exit(); ?>'),(3358,165,0.49,'smarty','1','Page created.',1110393043,3,'67.166.75.78','{if $smarty.request.fromEmail neq \"\"}{include_php file=\"shared_handle:adminMultiMail\"}{/if}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n{assign var=\"wideFormat\" value=\"true\"}\r\n\r\n{select_query assign=\"aGroups\" return=\"array\"}\r\n	name, description from _groups\r\n{/select_query}\r\n\r\n{select_query assign=\"aCompanies\" return=\"array\"}\r\n	id, companyName AS name FROM companies\r\n{/select_query}\r\n \r\n<h1 class=\"underline\">Broadcast an Email</h1>\r\n<br />\r\n\r\n<form name=\"emailForm\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"sendEmail\"> \r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<div style=\"width:900px;\">{assign var=\"userName\" value=\"`$user->firstName` `$user->lastName`\"}\r\n<b>From Name:&nbsp;</b><input type=\"text\" name=\"fromName\" value=\"{$smarty.request.fromName|stripslashes|default:$userName}\" /> &nbsp; \r\n<b>From Email:&nbsp;</b><input type=\"text\" name=\"fromEmail\" value=\"{$smarty.request.fromEmail|default:$user->email}\" /><br />\r\n<b>Subject Line:&nbsp;</b><input type=\"text\" name=\"mailSubject\" value=\"{$smarty.request.mailSubject|stripslashes}\" style=\"width:380px;\" /><br /><br />\r\n\r\n<b><input type=\"checkbox\" name=\"toNewsletterSubscribers\" value=\"1\" /> Send to All Newsletter Subscribers?</b>\r\n<br/><br />\r\n\r\n<b>Select each Company:</b> <small>(hold <b>CTRL</b> key)</small><br />\r\n<select name=\"toCompanies[]\" multiple>{foreach from=$aCompanies item=\"row\"}\r\n	<option value=\"{$row.id}\">{$row.name} - {$row.description}</option>{/foreach}\r\n</select><br />\r\n<small><em>* Will not send message to addresses in the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Select the Email Groups:</b> <small>(hold <b>CTRL</b> key)</small><br />\r\n<select name=\"toGroups[]\" multiple>{foreach from=$aGroups item=\"row\"}\r\n	<option value=\"{$row.name}\">{$row.name} - {$row.description}</option>{/foreach}\r\n</select><br />\r\n<small><em>* Will not send message to addresses in the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Enter Additional Email Addresses: <small>(comma delimited)</small></b>\r\n<textarea style=\"width:900px;display:block;\" name=\"toAddresses\"></textarea>\r\n<small><em>* These addresses are not checked against the OPT-OUT database table.</em></small><br /><br />\r\n\r\n<b>Enter Plain Text Message Body:</b>\r\n<textarea style=\"width:900px;display:block;height:200px;\" name=\"plainText\">{$smarty.request.plainText|stripslashes}</textarea><br />\r\n\r\n<b>Enter/Paste HTML Message Body:</b>\r\n<textarea style=\"width:900px;display:block;height:200px;\" name=\"mailBody\">{$smarty.request.mailBody|stripslashes}</textarea><br />\r\n\r\n<div style=\"text-align:right;\"><input type=\"button\" value=\"Preview HTML\" onclick=\"previewHTML()\"><input type=\"submit\" name=\"submit\" value=\"Send Now\" /></div>\r\n</div>\r\n\r\n</form>\r\n\r\n<form name=\"previewForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"multiEmail/preview\">\r\n<input type=\"hidden\" name=\"mailBody\" value=\"\">\r\n</form>\r\n\r\n<script language=\"javascript\">{literal}\r\nfunction previewHTML() {\r\n	dF = document.previewForm;\r\n	dF.mailBody.value = document.emailForm.mailBody.value;	\r\n\r\n	webPreview = parent.window.open(\"index.php?pg=multiEmail/preview\", \"webPreview\", \"fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=640,height=480,left=10,top=10\");\r\n	dF.target = \'webPreview\';\r\n	dF.submit();\r\n	webPreview.focus();\r\n}\r\n{/literal}</script>'),(998,91,0.53,'smarty','0','Fixed show/hide memory issue.',1084997820,2,'67.166.72.190','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{* display var=$newcomp *}\r\n\r\n<h1>Create a Competition: Step 1</h1>\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n<br />\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectComp\',\'hideSelectComp\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Selected Competition Type:</h2>\r\n<input type=\"hidden\" id=\"hideSelectComp\" name=\"newcomp[hideSelectComp]\" value=\"{$newcomp.hideSelectComp|default:0}\" />\r\n<div id=\"selectComp\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectComp eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div id=\"corporate\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Corporate</h2>\r\n				Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n			</div>\r\n					\r\n			<div id=\"friends\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Family/Friends</h2>\r\n				\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			</div>\r\n				\r\n			<div id=\"partner\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Partner/Spouse</h2>\r\n				Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			</div>\r\n				\r\n			<div id=\"group\" style=\"display:{if $newcomp.type eq \"group\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_alert.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Group/Club</h2>\r\n				Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"compRadios\">\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"corporateRadio\" value=\"corporate\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'corporateRadio\').checked=\'true\';selectType();return false;\">Corporate</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"friendsRadio\" value=\"friends\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendsRadio\').checked=\'true\';selectType();return false;\">Family / Friends</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"partnerRadio\" value=\"partner\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'partnerRadio\').checked=\'true\';selectType();return false;\">Partner / Spouse</a><!-- <br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"groupRadio\" value=\"group\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'groupRadio\').checked=\'true\';selectType();return false;\">Group / Club</a> -->\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n{assign var=\"includeX\" value=\"true\"}\r\n\r\n{if $newcomp.startDate}\r\n	{assign var=\"startDate\" value=$newcomp.startDate}\r\n{else}\r\n	{assign var=\"startDate\" value=$smarty.now}\r\n{/if}\r\n{if $newcomp.endDate}\r\n	{assign var=\"endDate\" value=$newcomp.endDate}\r\n{else}\r\n	{assign var=\"endDate\" value=$smarty.now|math:\"x+5184000\"}  {* Now + 2 Months *}\r\n{/if}\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectParams\',\'hideSelectParams\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Competition Parameters:</h2>\r\n<input type=\"hidden\" id=\"hideSelectParams\" name=\"newcomp[hideSelectParams]\" value=\"{$newcomp.hideSelectParams|default:0}\" />\r\n<div id=\"selectParams\" style=\"margin:10px; display:{if $newcomp.hideSelectParams eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Competition Name:</div></td>\r\n		<td><input type=\"text\" name=\"newcomp[name]\" class=\"textInput\" size=\"22\" maxlength=\"32\" style=\"width:220px;\" /><br />\r\n			<small>Any old thing you want to reference this competition by.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Start Date:</div></td>\r\n		<td><input type=\"text\" class=\"textInput\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date >{else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar0\');\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" /></a>\r\n			<div id=\"fCalendar0\" style=\"display:none; border:#999999 1px solid; width:100px; z-index:20;\" align=\"center\">\r\n				<iframe name=\"frameCalendar\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=0&year={$startDate|date_format2:\"Y\"}&month={$startDate|date_format2:\"m\"}&day={$startDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>End Date:</div></td>\r\n		<td><input type=\"text\" class=\"textInput\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date ^{else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar1\');\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" /></a>\r\n			<div id=\"fCalendar1\" style=\"float:left; display:none; border:#999999 1px solid; width:100px;\" align=\"center\">\r\n				<iframe name=\"frameCalendar2\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=1&year={$endDate|date_format2:\"Y\"}&month={$endDate|date_format2:\"m\"}&day={$endDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	\r\n	<tr>\r\n		<td align=\"right\"><div>Competition Style:</div></td>\r\n		<td><select name=\"newcomp[style]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Everyone-vs-Everyone\">Everyone vs. Everyone</option>\r\n			<option value=\"Group-vs-Group\">Team vs. Team</option>\r\n			<option value=\"One-on-One\">One on One</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Jackpot Method:</div></td>\r\n		<td><select name=\"newcomp[potMethod]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Per-competitor Donations\">Per-competitor Donations</option>\r\n			<option value=\"Individual Charity\">Individual Charity</option>\r\n			<option value=\"Company Charity\">Company Charity</option></select><br />\r\n			<small>Where the \"Jackpot\" money comes from.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\" nowrap><div>Jackpot Contribution:</div></td>\r\n		<td><span>$<input type=\"text\" name=\"newcomp[individualPotAmount]\" class=\"textInput\" size=\"4\" maxlength=\"4\" style=\"width:30px;\" />.00<br />\r\n			<small>Each individual must enter this much into the jackpot to join,<br />\r\n			 including you, when the competition is created.</small></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><div>Scoring Method:</div></td>\r\n		<td><select name=\"newcomp[scoringMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage Weight Lost</option></select><br />\r\n			<small>How the winner is determined.</small>\r\n			</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"top\"><span>Tie-Breaker Method:</span></td>\r\n		<td><select name=\"newcomp[tieBreakerMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\"{if not $newcomp.tieBreakerMethod} selected{/if}>Percentage Weight Lost</option></select><br />\r\n			<small>How the winner is determined, in the event of a tie.</small>\r\n			</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectInvite\', \'hideSelectInvite\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Choose an Invitation Style:</h2>\r\n<input type=\"hidden\" id=\"hideSelectInvite\" name=\"newcomp[hideSelectInvite]\" value=\"{$newcomp.hideSelectInvite|default:0}\" />	\r\n<div id=\"selectInvite\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectInvite eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div>\r\n			Select the type of invitation you want to send out to your first group of contacts.</div>\r\n				\r\n		<div id=\"smack\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">SMACK!</h2>\r\n				<b>example:</b><br /> &quot;I challenge you to the battle of all battles, you stinky monkey!&quot;</div>\r\n			</div>\r\n					\r\n			<div id=\"challenge\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Challenge</h2>\r\n				<b>example:</b><br /> &quot;I\'m putting up $20 to take you down in a 6-week weight-loss competition!&quot;</div>\r\n			</div>\r\n				\r\n			<div id=\"friendly\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Friendly</h2>\r\n				<b>example:</b><br /> &quot;I bet that I can lose more body fat that you.&quot;</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"inviteRadios\">\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"smackRadio\" value=\"smack\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'smackRadio\').checked=\'true\';selectInvite();return false;\">SMACK!</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"challengeRadio\" value=\"challenge\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'challengeRadio\').checked=\'true\';selectInvite();return false;\">Challenge</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"friendlyRadio\" value=\"friendly\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendlyRadio\').checked=\'true\';selectInvite();return false;\">Friendly</a>\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"javascript:document.compStartForm.submit();\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n\r\n	<script language=\"JavaScript\">{literal}\r\n	function selectType() {\r\n		var type;\r\n		var types = Array(\'corporate\',\'friends\',\'partner\',\'group\');\r\n		var elems = document.getElementsByName(\'newcomp[type]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'friends\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function selectInvite() {\r\n		var type;\r\n		var types = Array(\'smack\',\'challenge\',\'friendly\');\r\n		var elems = document.getElementsByName(\'newcomp[invitationType]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'smack\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function updateScoringMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[scoringMethod]\') ? \'newcomp[tieBreakerMethod]\' : \'newcomp[scoringMethod]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		other.selectedIndex = (obj.selectedIndex == 0) ? 1 : 0;\r\n	}\r\n	\r\n	{/literal}\r\n</script>'),(1377,129,0.23,'smarty','0','Updated page style a bit.',1086759478,3,'24.10.220.247','{assign var=\"hideWidgets\" value=\"\"}\r\n{include_php file=\"shared_handle:cart\"}\r\n\r\n<h1 class=\"underline\">My Shopping Cart</h1>\r\n<br />\r\n\r\n<form name=\"cartUpdate\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table width=\"525\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr>\r\n	<td class=\"underline2\"><b>Product</b></td>\r\n	<td class=\"underline2\" align=\"right\"><b>Price</b></td>\r\n	<td class=\"underline2\" align=\"right\"><b>Quantity</b></td>\r\n	<td class=\"underline2\" align=\"right\"><b>Subtotal</b></td>\r\n</tr>\r\n{foreach from=$cart.items key=\"productCode\" item=\"lineItem\" name=\"items\"}\r\n	{if $smarty.foreach.items.iteration eq $cart.items|@count}{assign var=\"underline\" value=\" class=\\\"underline2\\\"\"}{/if}\r\n<tr>\r\n	<td{$underline} nowrap=\"nowrap\">{$lineItem.title}</td>\r\n	<td{$underline} align=\"right\">${$lineItem.each|number_format:\"2\"}</td>\r\n	<td{$underline} align=\"right\"><input type=\"text\" name=\"qty[{$productCode}]\" size=\"2\" value=\"{$lineItem.quantity}\" /></td>\r\n	<td{$underline} align=\"right\">${$lineItem.subtotal|number_format:\"2\"}</td>\r\n</tr>\r\n{foreachelse}\r\n<tr>\r\n	<td colspan=\"4\" align=\"center\" class=\"underline2\">You have no items in your shopping cart.</td>\r\n</tr>\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"3\" align=\"left\"><b>TOTAL:</b></td>\r\n	<td align=\"right\">${$cart.total|number_format:\"2\"}</td>\r\n</tr>\r\n<tr>\r\n	<td colspan=\"4\"><br />{* <input type=\"submit\" name=\"submit\" value=\"Update Quantities\" /> *}\r\n		<a href=\"?pg=store\" class=\"button\">Continue Shopping</a>\r\n		{if $cart.items|@count gt 0}\r\n		<a href=\"javascript://\" onclick=\"document.cartUpdate.submit(); return false;\" class=\"button\">Update Quantities</a>\r\n		<a href=\"?pg=cart/checkout\" class=\"button\">Check Out Now</a></td>\r\n		{/if}\r\n</tr>\r\n</table>\r\n\r\n</form>'),(1378,129,0.24,'smarty','0','Updated page style a bit.',1086759569,3,'24.10.220.247','{assign var=\"hideWidgets\" value=\"\"}\r\n{include_php file=\"shared_handle:cart\"}\r\n\r\n<h1 class=\"underline\">My Shopping Cart</h1>\r\n<br />\r\n\r\n<form name=\"cartUpdate\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table width=\"525\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr>\r\n	<td class=\"underline2\"><b>Product</b></td>\r\n	<td class=\"underline2\" align=\"right\"><b>Price</b></td>\r\n	<td class=\"underline2\" align=\"right\"><b>Quantity</b></td>\r\n	<td class=\"underline2\" align=\"right\"><b>Subtotal</b></td>\r\n</tr>\r\n{foreach from=$cart.items key=\"productCode\" item=\"lineItem\" name=\"items\"}\r\n	{if $smarty.foreach.items.iteration eq $cart.items|@count}{assign var=\"underline\" value=\" class=\\\"underline2\\\"\"}{/if}\r\n<tr>\r\n	<td{$underline} nowrap=\"nowrap\">{$lineItem.title}</td>\r\n	<td{$underline} align=\"right\">${$lineItem.each|number_format:\"2\"}</td>\r\n	<td{$underline} align=\"right\"><input type=\"text\" name=\"qty[{$productCode}]\" size=\"2\" value=\"{$lineItem.quantity}\" /></td>\r\n	<td{$underline} align=\"right\">${$lineItem.subtotal|number_format:\"2\"}</td>\r\n</tr>\r\n{foreachelse}\r\n<tr>\r\n	<td colspan=\"4\" align=\"center\" class=\"underline2\">You have no items in your shopping cart.</td>\r\n</tr>\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"3\" align=\"left\"><b>TOTAL:</b></td>\r\n	<td align=\"right\">${$cart.total|number_format:\"2\"}</td>\r\n</tr>\r\n</table>\r\n\r\n<br />{* <input type=\"submit\" name=\"submit\" value=\"Update Quantities\" /> *}\r\n	<a href=\"?pg=store\" class=\"button\">Continue Shopping</a>\r\n	{if $cart.items|@count gt 0}\r\n	<a href=\"javascript://\" onclick=\"document.cartUpdate.submit(); return false;\" class=\"button\">Update Quantities</a>\r\n	<a href=\"?pg=cart/checkout\" class=\"button\">Check Out Now</a></td>\r\n	{/if}\r\n</form>'),(2848,98,1.74,'smarty','0','Including surveyList handler.',1104245542,3,'24.10.217.227','{assign var=\"pgLayout\" value=\"layouts/myhome_layout2.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"hideWLWLinks\" value=\"true\"}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{* getProfile is included by getStats *}\r\n{* include_php file=\"shared_handle:getStats\" *}\r\n\r\n{* Now getting only Profile because getStats does TONS of unneccesary processing *}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\n{if $smarty.request.debug}\r\n	{display var=$competitions}\r\n{/if}\r\n\r\n<h1 class=\"underline\">My Home - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n\r\n{$user->firstName}, this is your personal Wellness &quot;Home&quot;.\r\nFrom this page you can manage the competitions you are in, and update your wellness profile. \r\nClick on the \'Update Profile\' button to change your Motto, and other information about yourself, or \'Account Settings\' to change your password.<br />\r\n<br />\r\n<script language=\"javascript\">{literal}\r\nfunction goNewGraph() {\r\n	var obj = document.getElementById(\'graphDropdown\');\r\n	var url;\r\n\r\n	for (var x = 0; x < obj.options.length; x++) {\r\n		if (obj.options[x].selected)\r\n			url = obj.options[x].value;\r\n	}\r\n\r\n	graphwindow.location.replace(url);\r\n\r\n	obj.selectedIndex = 0;\r\n}{/literal}\r\n</script>\r\n\r\n<table border=\"0\">\r\n<tr>\r\n	<td valign=\"top\">\r\n		<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n			<h2 class=\"withBG\">Your Profile</h2>\r\n			<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n			<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n			<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n			<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n			<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n		<br />\r\n                {* <form name=\"notUsed\" style=\"margin:0px;\">\r\n		<select id=\"graphDropdown\" onchange=\"goNewGraph();\">\r\n			<option value=\"\">(Change Graph)</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\">Change in Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</option>\r\n		</select>\r\n		</form> *}\r\n		<h2 class=\"withBG\">Links</h2>\r\n		<small>\r\n		&nbsp;&middot; <a href=\"?pg=tips\">Weight Loss Tips</a><br /> \r\n		&nbsp;&middot; <a href=\"?pg=calculators\">Calculators</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=recipes\">Recipes</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=nutrition\">Nutrition Data</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=ptinfo\">Customized Fitness Plan</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=dietitianinfo\">Personal Nutrition Coach</a><br />\r\n		</small>\r\n                </div>\r\n               	</td>\r\n	<td align=\"center\">\r\n		<div style=\"margin:0px 10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&type=weight&fillPrevious=1&precision=0&totalChange=0&userIds={$userProfile.id}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n		<small>\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small>\r\n</td>\r\n	<td valign=\"top\" width=\"100%\" style=\"padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"|replace:\'\"\':\'\'}\"</i></h2>\r\n		</td>\r\n</tr>\r\n</table>\r\n<br />\r\n{if $smarty.request.hideComps neq \"1\"}\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n{* ********************************* COMPETITIONS I AM IN ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Am In</h2>\r\nHere are the competitions you have signed up to participate in. If you have an ID of a competition you would like to join, enter it below.<br />\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n\r\n	<div style=\"text-align:right;\">\r\n	<form name=\"joinCompForm\" method=\"post\" style=\"margin:4px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<b>Competition ID#</b> <input type=\"text\" class=\"textInput\" name=\"cid\"> <a href=\"javascript:document.joinCompForm.submit();\" class=\"button\">Join</a><br />\r\n	</form>\r\n	</div>\r\n</div>\r\n</td><td valign=\"top\" style=\"margin-left:10px;\">\r\n{* ********************************* COMPETITIONS I HAVE STARTED ********************************** *}\r\n{if $user->inGroupName(\'coordinators\')}\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.title}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{else}\r\n	<div class=\"underline2\">&nbsp;</div>\r\n	<small>&nbsp; &nbsp; You have not created any competitions.</small>\r\n{/if}\r\n{/if}\r\n</div>\r\n<br />\r\n</form>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myIncentives\', \'\', \'showHide\');\"><img id=\"myIncentives_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	My Incentives Program</h2>\r\n\r\n<div id=\"myIncentives\" style=\"display:block;\">\r\n        <div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n        <table id=\"surveyContainer\" width=\"100%\">\r\n           {include_php file=\"shared_handle:company/surveyList\"}\r\n           <thead>\r\n               <tr><td width=\"100%\"><u>Survey Name</u></td><td><u>Available</u></td><td nowrap><u>Points Earned</u></td></tr>\r\n           </thead>\r\n           <tbody>\r\n           {foreach from=$surveys item=item name=\"loopSurveys\"}<tr><td nowrap>\r\n		{if $item.dateAvailable gt 0}\r\n		{$item.surveyName}</td><td>{$item.dateAvailable|date_format2:\"m/d/y\"}</td>\r\n		{else}\r\n		<a href=\"javascript://\" onclick=\"openSurvey({$item.id});\">{$item.surveyName}</a></td><td>Now</td>\r\n		{/if}{if $smarty.foreach.loopSurveys.first}<td rowspan=\"999\">blah<br />blah<br />blah<br />blah</td>{/if}</tr>\r\n                {if $smarty.foreach.loopSurveys.last AND $smarty.foreach.loopSurveys.total lt 3}<tr><td colspan=\"2\">&nbsp;<br />&nbsp;<br />&nbsp;<br /></td></tr>{/if}\r\n                {foreachelse}\r\n		None found.</td><td colspan=\"2\">&nbsp;</td></tr>\r\n               {/foreach}\r\n           </tbody>\r\n        </table>\r\n        </div>\r\n</div>\r\n</td></tr></table>\r\n{/if}'),(1006,91,0.56,'smarty','0','Updated some visual cues.',1085105343,3,'24.2.66.215','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{* display var=$newcomp *}\r\n\r\n<h1>Create a Competition: Step 1</h1>\r\n<div class=\"pixel underline\">&nbsp;</div>\r\n<br />\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectComp\',\'hideSelectComp\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Selected Competition Type:</h2>\r\n<input type=\"hidden\" id=\"hideSelectComp\" name=\"newcomp[hideSelectComp]\" value=\"{$newcomp.hideSelectComp|default:0}\" />\r\n<div id=\"selectComp\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectComp eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div id=\"corporate\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Corporate</h2>\r\n				Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n			</div>\r\n					\r\n			<div id=\"friends\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Family/Friends</h2>\r\n				\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			</div>\r\n				\r\n			<div id=\"partner\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Partner/Spouse</h2>\r\n				Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			</div>\r\n				\r\n			<div id=\"group\" style=\"display:{if $newcomp.type eq \"group\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_alert.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Group/Club</h2>\r\n				Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"compRadios\">\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"corporateRadio\" value=\"corporate\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'corporateRadio\').checked=\'true\';selectType();return false;\">Corporate</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"friendsRadio\" value=\"friends\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendsRadio\').checked=\'true\';selectType();return false;\">Family / Friends</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"partnerRadio\" value=\"partner\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'partnerRadio\').checked=\'true\';selectType();return false;\">Partner / Spouse</a><!-- <br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"groupRadio\" value=\"group\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'groupRadio\').checked=\'true\';selectType();return false;\">Group / Club</a> -->\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n{assign var=\"includeX\" value=\"true\"}\r\n\r\n{if $newcomp.startDate}\r\n	{assign var=\"startDate\" value=$newcomp.startDate}\r\n{else}\r\n	{assign var=\"startDate\" value=$smarty.now}\r\n{/if}\r\n{if $newcomp.endDate}\r\n	{assign var=\"endDate\" value=$newcomp.endDate}\r\n{else}\r\n	{assign var=\"endDate\" value=$smarty.now|math:\"x+5184000\"}  {* Now + 2 Months *}\r\n{/if}\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectParams\',\'hideSelectParams\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Competition Parameters:</h2>\r\n<input type=\"hidden\" id=\"hideSelectParams\" name=\"newcomp[hideSelectParams]\" value=\"{$newcomp.hideSelectParams|default:0}\" />\r\n<div id=\"selectParams\" style=\"margin:10px; display:{if $newcomp.hideSelectParams eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Name:</div></td>\r\n		<td><input type=\"text\" name=\"newcomp[name]\" class=\"textInput\" size=\"22\" maxlength=\"32\" style=\"width:220px;\" /></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Any old thing you want to reference this competition by.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Start Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar0\" style=\"float:left; display:none; border:#999999 1px solid; width:100px; z-index:20;\" align=\"center\">\r\n				<iframe name=\"frameCalendar\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=0&year={$startDate|date_format2:\"Y\"}&month={$startDate|date_format2:\"m\"}&day={$startDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLabel\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date >{else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar0\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>End Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar1\" style=\"float:left; display:none; border:#999999 1px solid; width:100px;\" align=\"center\">\r\n				<iframe name=\"frameCalendar2\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=1&year={$endDate|date_format2:\"Y\"}&month={$endDate|date_format2:\"m\"}&day={$endDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLable\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date ^{else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar1\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Style:</div></td>\r\n		<td><select name=\"newcomp[style]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Everyone-vs-Everyone\">Everyone vs. Everyone</option>\r\n			<option value=\"Group-vs-Group\">Team vs. Team</option>\r\n			<option value=\"One-on-One\">One on One</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Jackpot Method:</div></td>\r\n		<td><select name=\"newcomp[potMethod]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Per-competitor Donations\">Per-competitor Donations</option>\r\n			<option value=\"Individual Charity\">Individual Charity</option>\r\n			<option value=\"Company Charity\">Company Charity</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Where the \"Jackpot\" money comes from.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\" nowrap><div>Jackpot Contribution:</div></td>\r\n		<td valign=\"middle\"><span style=\"position:relative; top:-5px;\">$</span><input type=\"text\" name=\"newcomp[individualPotAmount]\" class=\"textInput\" size=\"4\" maxlength=\"4\" style=\"width:30px;\" /><span style=\"position:relative; top:-5px;\">.00</span></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Each individual must enter this much into the jackpot to join,<br />\r\n			 including you, when the competition is created.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Scoring Method:</div></td>\r\n		<td><select name=\"newcomp[scoringMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage Weight Lost</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>How the winner is determined.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><span>Tie-Breaker Method:</span></td>\r\n		<td><select name=\"newcomp[tieBreakerMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\"{if not $newcomp.tieBreakerMethod} selected{/if}>Percentage Weight Lost</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>How the winner is determined, in the event of a tie.</small></div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectInvite\', \'hideSelectInvite\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Choose an Invitation Style:</h2>\r\n<input type=\"hidden\" id=\"hideSelectInvite\" name=\"newcomp[hideSelectInvite]\" value=\"{$newcomp.hideSelectInvite|default:0}\" />	\r\n<div id=\"selectInvite\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectInvite eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div>\r\n			Select the type of invitation you want to send out to your first group of contacts.</div>\r\n				\r\n		<div id=\"smack\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">SMACK!</h2>\r\n				<b>example:</b><br /> &quot;I challenge you to the battle of all battles, you stinky monkey!&quot;</div>\r\n			</div>\r\n					\r\n			<div id=\"challenge\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Challenge</h2>\r\n				<b>example:</b><br /> &quot;I\'m putting up $20 to take you down in a 6-week weight-loss competition!&quot;</div>\r\n			</div>\r\n				\r\n			<div id=\"friendly\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Friendly</h2>\r\n				<b>example:</b><br /> &quot;I bet that I can lose more body fat that you.&quot;</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"inviteRadios\">\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"smackRadio\" value=\"smack\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'smackRadio\').checked=\'true\';selectInvite();return false;\">SMACK!</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"challengeRadio\" value=\"challenge\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'challengeRadio\').checked=\'true\';selectInvite();return false;\">Challenge</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"friendlyRadio\" value=\"friendly\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendlyRadio\').checked=\'true\';selectInvite();return false;\">Friendly</a>\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"javascript:document.compStartForm.submit();\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n\r\n	<script language=\"JavaScript\">{literal}\r\n	function selectType() {\r\n		var type;\r\n		var types = Array(\'corporate\',\'friends\',\'partner\',\'group\');\r\n		var elems = document.getElementsByName(\'newcomp[type]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'friends\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function selectInvite() {\r\n		var type;\r\n		var types = Array(\'smack\',\'challenge\',\'friendly\');\r\n		var elems = document.getElementsByName(\'newcomp[invitationType]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'smack\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function updateScoringMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[scoringMethod]\') ? \'newcomp[tieBreakerMethod]\' : \'newcomp[scoringMethod]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		other.selectedIndex = (obj.selectedIndex == 0) ? 1 : 0;\r\n	}\r\n	\r\n	{/literal}\r\n</script>'),(1008,117,0.12,'smarty','0','Copied some text and such from previous page.',1085112878,2,'24.2.66.215','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n{include_php file=\"shared_handle:newcomp.review\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Review</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'parameters\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Competition Parameters:</h2>\r\n\r\n<div id=\"parameters\">\r\n	<table style=\"margin:15px;margin-left:35px;\">\r\n	<tr>\r\n		<td align=\"right\"><div>Comptition Name:</div></td>\r\n		<td><div><b>{$newcomp.name}</b></div></td>\r\n		<td rowspan=\"5\" valign=\"bottom\"><div style=\"margin-left:30px;\">(<a href=\"?newcomp/start\">Change/Update Now</a>)</div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Type:</div></td>\r\n		<td><div><b>{$newcomp.type|niceText}, {$newcomp.style}</b></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Term:</div></td>\r\n		<td><div><b>{$newcomp.startDate|date_format2:\"M j, Y\"}</b> to <b>{$newcomp.endDate|date_format2:\"M j, Y\"}</b> ({math equation=\"(b - a) / 86400\" a=$newcomp.startDate b=$newcomp.endDate assign=\"numDays\"}{$numDays|number_format:\"0\"} days)</div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Pot:</div></td>\r\n		<td><div><b>${$newcomp.individualPotAmount|number_format:\"2\"}</b> {if $newcomp.potMethod eq \"Per-competitor Donations\"}(each) {/if}by <b>{$newcomp.potMethod}</b></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Scoring:</div></td>\r\n		<td><div>Based on <b>{$newcomp.scoringMethod}</b> or, in the event of a tie, <b>{$newcomp.tieBreakerMethod}</b></div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'letter\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Invitation Letter:</h2>\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:block;margin:10px;padding:17px;\" class=\"notepaperBG\">\r\n	{eval var=$invitationLetter|nl2br}\r\n</div>'),(1009,117,0.13,'smarty','0','More.......',1085117533,2,'24.2.66.215','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n{include_php file=\"shared_handle:newcomp.review\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Review</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'parameters\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Competition Parameters:</h2>\r\n\r\n<div id=\"parameters\" style=\"margin:15px;\">\r\n	<table style=\"margin-left:35px;\">\r\n	<tr>\r\n		<td align=\"right\"><div>Comptition Name:</div></td>\r\n		<td><div><b>{$newcomp.name}</b></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Type:</div></td>\r\n		<td><div><b>{$newcomp.type|niceText}, {$newcomp.style}</b></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Term:</div></td>\r\n		<td><div><b>{$newcomp.startDate|date_format2:\"M j, Y\"}</b> to <b>{$newcomp.endDate|date_format2:\"M j, Y\"}</b> ({math equation=\"(b - a) / 86400\" a=$newcomp.startDate b=$newcomp.endDate assign=\"numDays\"}{$numDays|number_format:\"0\"} days)</div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Pot:</div></td>\r\n		<td><div><b>${$newcomp.individualPotAmount|number_format:\"2\"}</b> {if $newcomp.potMethod eq \"Per-competitor Donations\"}(each) {/if}by <b>{$newcomp.potMethod}</b></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\"><div>Scoring:</div></td>\r\n		<td><div>Based on <b>{$newcomp.scoringMethod}</b> or, in the event of a tie, <b>{$newcomp.tieBreakerMethod}</b></div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div align=\"right\">\r\n	<br />\r\n	<a class=\"button\" href=\"?pg=newcomp/start\">Change/Update Your Competition Parameters Now</a>\r\n	<br /><br />\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'letter\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Invitation Letter:</h2>\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:block;margin:10px;padding:17px;\" class=\"notepaperBG\">\r\n	{eval var=$invitationLetter|nl2br}\r\n</div>\r\n\r\n<div align=\"right\">\r\n	<br />\r\n	<a class=\"button\" href=\"?pg=newcomp/create-invitation\">Change/Update Your Invitation Letter Now</a>\r\n	<br /><br />\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'invitations\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Who You\'re Inviting:</h2>\r\n\r\n<div id=\"invitations\" style=\"margin:15px;\">\r\n	<table cellpadding=\"3\" style=\"margin-left:35px;\">\r\n	<tr>\r\n		<td><b>Name</b></td>\r\n		<td><b>E-mail Address</b></td>\r\n		<td><b>How You Relate</b></td>\r\n	</tr>\r\n	{section name=\"x\" loop=$newcomp.invite.name}\r\n		{if not ($newcomp.invite.name[x] or $newcomp.invite.email[x] or $newcomp.invite.relation[x])}{php}continue;{/php}{/if}\r\n	<tr>\r\n		<td>{$newcomp.invite.name[x]}</td>\r\n		<td>{$newcomp.invite.email[x]}</td>\r\n		<td>{$newcomp.invite.relation[x]}</td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n</div>\r\n\r\n<div align=\"right\">\r\n	<br />\r\n	<a class=\"button\" href=\"?pg=newcomp/send-invitation\">Change/Update Your Invitations</a>\r\n	<br /><br />\r\n</div>\r\n\r\n'),(1010,119,0.27,'smarty','0','Added an anchor for invitations.',1085117564,2,'24.2.66.215','{stored_object name=$blah|cat:\'u\':$user->id type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$blah|cat:\'u\':$user->id type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 3</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'letter\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Review Your Invitation:</h2>\r\n\r\n<div>Make sure that you are satisfied with the invitation you will be sending to the other competitors.</div>\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:block;margin:10px;padding:17px;\" class=\"notepaperBG\">\r\n	{eval var=$invitationLetter|nl2br}\r\n</div>\r\n<br />\r\n\r\n<a name=\"invitations\" />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'enterEmails\');\"><img src=\"./img/icons/hide_show.gif\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Invite Some Competitors:</h2>\r\n\r\n<div>Enter a contact name and email address for each person you would like to invite into this competition. Don\'t worry about gathering everyone\'s email address right now, you can always add more later.<br /><br /></div>\r\n\r\n<div id=\"enterEmails\">\r\n	<table align=\"center\" style=\"margin:10px;\">\r\n	<tr>\r\n		<td><div>&nbsp;</div></td>\r\n		<td><h3 class=\"withBG\">Name</h2></td>\r\n		<td><h3 class=\"withBG\">E-Mail</h2></td>\r\n		<td><h3 class=\"withBG\">Your Relation</h2></td>\r\n	</tr> \r\n	{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n	<tr>\r\n		<td><div>#{$smarty.section.contactLoop.iteration}</div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n</div>\r\n\r\n<div align=\"right\" style=\"margin-right:30px;\">\r\n	<a href=\"javascript://\" onclick=\"addEmailRows();return false;\">&gt; Click to add more now! &lt;</a>\r\n</div>\r\n\r\n<script language=\"javascript\">\r\n	var addCount = {$addCount};\r\n	{literal}\r\n	function addEmailRows() {\r\n		addCount++;\r\n		var obj = document.getElementById(\'enterEmails\');\r\n		var html = obj.innerHTML;\r\n		html = html.replace(/\\<\\/TABLE\\>/i, \'\');\r\n		html += \'<tr><td><div>#\'+addCount+\'</div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][\'+addCount+\']\"></div></td></tr></table>\';\r\n		obj.innerHTML = html;\r\n	}\r\n	{/literal}\r\n</script>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>'),(851,100,0.14,'smarty','0','Adding some formatting..',1084438052,3,'67.172.236.95','<h1>Privacy Statement</h1><p />\r\n\r\n<h2>WeightLossWars, L.L.C. PRIVACY POLICY </h2>\r\n\r\n<hr noshade size=\"1\" />\r\n\r\nWeightLossWars, L.L.C. (\"WLW,\" \"we\" or \"us\") provides a variety of online services and products, including without limitation, subscription, newsletter and update services (\"Services\"), to subscribers via email and on numerous websites throughout the World Wide Web (the \"Sites\"). WLW is strongly committed to protecting the privacy of your personal information, and providing a safe and secure environment for its subscribers.<br /><br />\r\nTHE PURPOSE OF THIS WLW PRIVACY POLICY (THE \"POLICY\") IS TO HELP YOU UNDERSTAND THE KINDS OF INFORMATION WE MAY GATHER ABOUT YOU WHEN YOU VISIT THE SITES OR USE ANY OF OUR SERVICES, HOW WE MAY USE THAT INFORMATION, IN WHICH MANNER WE WILL DISCLOSE IT, AND HOW YOU CAN CORRECT AND/OR UPDATE THE INFORMATION. PLEASE NOTE THAT BY USING THE SERVICES OR VISITING THE SITES, YOU SIGNIFY YOUR AGREEMENT WITH THIS POLICY. IF YOU DO NOT AGREE TO THE TERMS OF THIS POLICY, PLEASE DO NOT USE THE SERVICES OR REFRAIN FROM VISITING THE SITES. <br /><br />\r\nPlease note that the Policy applies only to WLW\'s Services and Sites, but not to other websites to which we may link, or to advertisers on the Sites. Additionally, your use of the Services and/or the Sites is governed by WLW\'s Terms of Service, as well as by any other published rules pertaining to either a particular Site or Service. <br /><br />\r\nChildren\'s Information <br /><br />\r\nWLW\'s policy is that it does not knowingly collect personally identifiable information from subscribers under thirteen years of age. The Services or Sites are not directed or intended for children under thirteen years of age. If you are under thirteen years of age, you should not register to become a Subscriber or provide personally identifiable information on any of the Sites. If you are the parent or guardian of a subscriber under the age of thirteen whom you believe has disclosed personally identifiable information to WLW, please contact WLW at customerservice@weightlosswars.com so that we may delete and remove such subscriber\'s information from our systems. \r\nThe Information We Gather \r\nWLW collects information from you at several different points on the Sites or through use of the Services in various ways. For example, WLW continually reviews its visitors\' demographics, interests and pages viewed, and WLW may require its subscribers and users to provide certain personal information if they wish to participate in various activities on the Sites (e.g., consummating transactions and entering into contests, drawings or surveys). However, WLW can only collect your personally identifiable information if, and when, it is voluntarily offered. Whenever we collect personal information, we will make an effort to include a link to this Policy on that page. \r\nMessage Board and Chats \r\nAmong the many Services which WLW offers subscribers on the Sites, we provide message boards and chat rooms. Please be aware that any visitor may read your postings on a message board or in a chat room. Furthermore, any information which you may post to a message board or in a chat room, including your profile information, will be disclosed and available to all users of that message board or chat room, and is therefore no longer private. WLW cannot guarantee the security of such information that you disclose or communicate online in public areas such as message boards and chat rooms, and you do so at your own risk. WLW reserves the right to republish your postings from message boards or chat rooms elsewhere on the Web in any format. \r\nHow We Use the Information That We Gather \r\nWLW uses certain technologies, such as \"cookies,\" to personalize and improve your online experience. \r\n• Cookies are alphanumeric identifiers that we transfer to your computer\'s hard drive. Cookies store information about your visit to the Sites or your use of the Services, thereby allowing you to access certain WLW\'s features not otherwise available. The information in the cookie is transmitted from your computer to WLW or to one of our third-party authorized service contractors. The information contained in these cookies makes it possible for our systems to know if you are presently logged onto a Site or using any of the Services, or whether you have done so in a prior visit. This technology enables WLW to instantly determine your access privileges while allowing you to navigate the Sites or use any of the Services without having to repeatedly log in. \r\n• Cookies from WLW and/or one of our authorized service contractors are also used to collect standard information transmitted from your web browser including, without limitation: your Internet address, browser type, web pages you visited with date and time, purchases you made on any of the Sites and the type of operating system on your computer. This information is used to help us understand and meet the ever-changing needs and interests of our subscribers. \r\n• WLW may also use cookies to track your access to, and use of the message boards, forums and chat rooms on the Sites, as well as your responses to any of our online surveys. \r\n• You always have the option of setting your browser to warn you when a cookie is being accessed on your computer or to decline cookies altogether. However, to take full advantage of the Sites, Services and features offered by WLW, we recommend that you set your browser to accept cookies. Setting your computer to accept or refuse cookies varies depending on the web browser you are running. Please check the help tab of your browser for specifics on your software. \r\n• WLW does not control any cookies you may receive from an advertiser and these are not subject to this Policy. • WLW also uses web beacon technology to help track site usage. Web beacons (also called single pixel gifs or action tags) allow WLW to track page viewing counts and patterns which we use to focus and tailor future content development, measure the effectiveness of WLW\'s own marketing campaigns and assist with broadband capacity management for the Sites. \r\n• WLW also employs web beacons within the context of certain e-mails in order to determine the effectiveness and appeal of those mailings. These web beacons \'sense\' and notify WLW if and when you open the e-mail, if your e-mail program is capable of displaying HTML messages, and where you may navigate within these HTML messages. \r\nIn addition to the foregoing, WLW uses the information obtained from its subscribers and users in order to enhance and customize their online experiences. \r\nDue to the existing regulatory environment, WLW cannot ensure that all of your personally identifiable information and communications will remain private and will never be disclosed in ways not otherwise described in this Policy. Therefore, although we maintain and make every effort to comply with industry privacy standards, we do not promise, nor should you expect, that your personally identifiable information or private communications will always remain private. \r\nAs a matter of policy and unless otherwise stated herein, WLW does not rent, sell, or share your personally identifiable information with other people or non-affiliated companies. However, WLW reserves the right to use your personally identifiable information to notify you of certain products or Services about which you previously inquired or requested, special promotional offers, and to investigate violations of the terms and provisions of this Policy or the Terms of Use. In addition, WLW aggregates (gathers and organizes data across all subscriber and user accounts) personally identifiable information from among its subscriber and user base and discloses only that portion of the information which is non-personally identifiable to advertisers and other third parties for marketing, promotional and other commercial purposes. For example, your name, email address, password, credit card number and bank account number will never to be disclosed without your express prior written consent. \r\nDisclosure of Personal Information in the Event of Merger or Sale of Assets \r\nWLW, its parent, subsidiaries or affiliates, could merge with or be acquired by another business entity, or all or substantially all of their respective assets could be acquired. Should such a combination, acquisition or transaction occur, you should expect that WLW will share some or all of your personally identifiable information with the acquiring or merged entity in order to continue serving you and others information, updates and offers concerning the Sites or Services. \r\nCo-branded and Other Affiliated Sites \r\nAs stated above, certain information or Services offered or provided through the Sites may, from time to time, be provided on or through other websites operated by or in conjunction with third party providers (\"Partners\"). These websites and the features thereon may have the same \"look and feel\" as WLW\'s Sites and/or Services. WLW terms these websites \"co-branded sites\", and often times a Partner\'s logo or name may appear on the website, or the Partner\'s name may appear in the URL. Although WLW will continue to own any personally identifiable information collected about you from one of these co-branded sites, such information may be shared by WLW with that Partner. However, a Partner will not rent, sell, or disclose any of your personally identifiable information to third parties unless you consent to such disclosures and use in advance (for example, you may be asked to opt-in on a particular co-branded site in order to receive information or offers from a Partner, its affiliates or agents). \r\nThird Party Links \r\nWLW does not monitor, control or endorse the information collection or privacy practices of any third parties including, without limitation, any co-branded, Partner or affiliated sites which may or may not be owned or operated by or in conjunction with WLW or other third parties who may provide services throughout the Sites. Please be aware that the Sites may contain links to other websites on the Internet and the Services may be provided by such third parties WLW assumes no liability or responsibility for the information collection and privacy practices of such third party. Please consult each website\'s privacy policy. In addition, WLW is not responsible for the content or data collection practices of any third party websites, including a third party\'s use of cookies or other data-collection applications. Even though certain information collected by such third parties might not identify you personally, we strongly encourage you to become familiar with their privacy practices, and to contact them if you have any questions about their respective privacy policies and practices. \r\nOn behalf of various sponsors, the Sites may provide sponsored links to third-party websites or resources (\"Linked Sites\"). WLW neither controls nor have we reviewed or approved the content that appears on such Linked Sites. You acknowledge and agree that WLW is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from such Linked Sites. You further acknowledge and agree that WLW shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, and services available on or through any such Linked Site. \r\nSecurity \r\nWLW places a priority on the security of personally identifiable information, and we undertake reasonable security measures that comply with federal regulations to protect the data that resides on our servers. WLW also uses secure server software (SSL) to process all transactions which occur on the Sites. SSL encrypts all of your personal information transmitted over the Internet, including your credit card number, name and address. However, no security system is impenetrable. WLW cannot warrant or guarantee the security of its servers, nor can it guarantee that information supplied by Subscribers or other users will not be intercepted while being transmitted to WLW over the Internet. \r\nCorrection/Updating Personal Information \r\nIf your personally identifiable information changes (such as your address, zip code), or if you no longer desire to use or access one of the Sites or Services, WLW encourages you to correct, update or remove the personal information that you provided. This can be done at the \"Manage My Account\" page on each of the Sites. Keep in mind, however, that even if you delete your account from WLW\'s records, there will be residual information that will remain within WLW\'s databases, access logs, and other records, which may or may not contain personally identifiable information. \r\nHow To Contact Us \r\nPlease relay any questions you may have pertaining to our above stated policies to our Customer Service Department at customerservice@weightlosswars.com. \r\nPrivacy Policy Changes \r\nThis Policy was last changed on November 12, 2002. If WLW makes changes to any of the terms or conditions of the Policy, the changes will be posted in this document so that you will always know what information we gather, how we might use that information and to whom we will disclose it. We reserve the right to change, modify, add or remove portions of this Policy at any time, and any changes will become effective immediately upon being posted unless WLW advises you otherwise. Your continued use of the Services and/or the Sites after this Policy has been amended shall be deemed to be your continued acceptance of the terms and conditions of the Policy, as amended. We encourage you to bookmark this web page and review this Policy regularly. Copyright © 2004, WeightLossWars, L.L.C. All rights reserved. \r\n\r\n'),(852,100,0.15,'smarty','0','Adding some more formatting..',1084438467,3,'67.172.236.95','<h1>Privacy Statement</h1><p />\r\n\r\n<h2>WeightLossWars, L.L.C. PRIVACY POLICY </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWeightLossWars, L.L.C. (\"WLW,\" \"we\" or \"us\") provides a variety of online services and products, including without limitation, subscription, newsletter and update services (\"Services\"), to subscribers via email and on numerous websites throughout the World Wide Web (the \"Sites\"). WLW is strongly committed to protecting the privacy of your personal information, and providing a safe and secure environment for its subscribers.<br /><br />\r\nTHE PURPOSE OF THIS WLW PRIVACY POLICY (THE \"POLICY\") IS TO HELP YOU UNDERSTAND THE KINDS OF INFORMATION WE MAY GATHER ABOUT YOU WHEN YOU VISIT THE SITES OR USE ANY OF OUR SERVICES, HOW WE MAY USE THAT INFORMATION, IN WHICH MANNER WE WILL DISCLOSE IT, AND HOW YOU CAN CORRECT AND/OR UPDATE THE INFORMATION. PLEASE NOTE THAT BY USING THE SERVICES OR VISITING THE SITES, YOU SIGNIFY YOUR AGREEMENT WITH THIS POLICY. IF YOU DO NOT AGREE TO THE TERMS OF THIS POLICY, PLEASE DO NOT USE THE SERVICES OR REFRAIN FROM VISITING THE SITES. <br /><br />\r\nPlease note that the Policy applies only to WLW\'s Services and Sites, but not to other websites to which we may link, or to advertisers on the Sites. Additionally, your use of the Services and/or the Sites is governed by WLW\'s Terms of Service, as well as by any other published rules pertaining to either a particular Site or Service. <br /><br />\r\n<h2>Children\'s Information </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWLW\'s policy is that it does not knowingly collect personally identifiable information from subscribers under thirteen years of age. The Services or Sites are not directed or intended for children under thirteen years of age. If you are under thirteen years of age, you should not register to become a Subscriber or provide personally identifiable information on any of the Sites. If you are the parent or guardian of a subscriber under the age of thirteen whom you believe has disclosed personally identifiable information to WLW, please contact WLW at customerservice@weightlosswars.com so that we may delete and remove such subscriber\'s information from our systems. <br /><br />\r\n\r\n<h2>The Information We Gather </h2>\r\n<hr noshade size=\"1\" />\r\nWLW collects information from you at several different points on the Sites or through use of the Services in various ways. For example, WLW continually reviews its visitors\' demographics, interests and pages viewed, and WLW may require its subscribers and users to provide certain personal information if they wish to participate in various activities on the Sites (e.g., consummating transactions and entering into contests, drawings or surveys). However, WLW can only collect your personally identifiable information if, and when, it is voluntarily offered. Whenever we collect personal information, we will make an effort to include a link to this Policy on that page. <br /><br />\r\n\r\n<h2>Message Board and Chats </h2>\r\n<hr noshade size=\"1\" />\r\nAmong the many Services which WLW offers subscribers on the Sites, we provide message boards and chat rooms. Please be aware that any visitor may read your postings on a message board or in a chat room. Furthermore, any information which you may post to a message board or in a chat room, including your profile information, will be disclosed and available to all users of that message board or chat room, and is therefore no longer private. WLW cannot guarantee the security of such information that you disclose or communicate online in public areas such as message boards and chat rooms, and you do so at your own risk. WLW reserves the right to republish your postings from message boards or chat rooms elsewhere on the Web in any format. <br /><br />\r\n\r\n<h2>How We Use the Information That We Gather </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWLW uses certain technologies, such as \"cookies,\" to personalize and improve your online experience. <br />\r\n<ul>\r\n	<li>Cookies are alphanumeric identifiers that we transfer to your computer\'s hard drive. Cookies store information about your visit to the Sites or your use of the Services, thereby allowing you to access certain WLW\'s features not otherwise available. The information in the cookie is transmitted from your computer to WLW or to one of our third-party authorized service contractors. The information contained in these cookies makes it possible for our systems to know if you are presently logged onto a Site or using any of the Services, or whether you have done so in a prior visit. This technology enables WLW to instantly determine your access privileges while allowing you to navigate the Sites or use any of the Services without having to repeatedly log in. </li>\r\n	<li>Cookies from WLW and/or one of our authorized service contractors are also used to collect standard information transmitted from your web browser including, without limitation: your Internet address, browser type, web pages you visited with date and time, purchases you made on any of the Sites and the type of operating system on your computer. This information is used to help us understand and meet the ever-changing needs and interests of our subscribers. </li>\r\n	<li>WLW may also use cookies to track your access to, and use of the message boards, forums and chat rooms on the Sites, as well as your responses to any of our online surveys. </li>\r\n	<li>You always have the option of setting your browser to warn you when a cookie is being accessed on your computer or to decline cookies altogether. However, to take full advantage of the Sites, Services and features offered by WLW, we recommend that you set your browser to accept cookies. Setting your computer to accept or refuse cookies varies depending on the web browser you are running. Please check the help tab of your browser for specifics on your software. </li>\r\n	<li>WLW does not control any cookies you may receive from an advertiser and these are not subject to this Policy. • WLW also uses web beacon technology to help track site usage. Web beacons (also called single pixel gifs or action tags) allow WLW to track page viewing counts and patterns which we use to focus and tailor future content development, measure the effectiveness of WLW\'s own marketing campaigns and assist with broadband capacity management for the Sites. </li>\r\n	<li>WLW also employs web beacons within the context of certain e-mails in order to determine the effectiveness and appeal of those mailings. These web beacons \'sense\' and notify WLW if and when you open the e-mail, if your e-mail program is capable of displaying HTML messages, and where you may navigate within these HTML messages. </li>\r\n</ul>\r\n\r\nIn addition to the foregoing, WLW uses the information obtained from its subscribers and users in order to enhance and customize their online experiences. <br /><br />\r\n\r\nDue to the existing regulatory environment, WLW cannot ensure that all of your personally identifiable information and communications will remain private and will never be disclosed in ways not otherwise described in this Policy. Therefore, although we maintain and make every effort to comply with industry privacy standards, we do not promise, nor should you expect, that your personally identifiable information or private communications will always remain private. <br /><br />\r\n\r\nAs a matter of policy and unless otherwise stated herein, WLW does not rent, sell, or share your personally identifiable information with other people or non-affiliated companies. However, WLW reserves the right to use your personally identifiable information to notify you of certain products or Services about which you previously inquired or requested, special promotional offers, and to investigate violations of the terms and provisions of this Policy or the Terms of Use. In addition, WLW aggregates (gathers and organizes data across all subscriber and user accounts) personally identifiable information from among its subscriber and user base and discloses only that portion of the information which is non-personally identifiable to advertisers and other third parties for marketing, promotional and other commercial purposes. For example, your name, email address, password, credit card number and bank account number will never to be disclosed without your express prior written consent. <br /><br />\r\n\r\n<h2>Disclosure of Personal Information in the Event of Merger or Sale of Assets </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWLW, its parent, subsidiaries or affiliates, could merge with or be acquired by another business entity, or all or substantially all of their respective assets could be acquired. Should such a combination, acquisition or transaction occur, you should expect that WLW will share some or all of your personally identifiable information with the acquiring or merged entity in order to continue serving you and others information, updates and offers concerning the Sites or Services. <br /><br />\r\n\r\n<h2>Co-branded and Other Affiliated Sites </h2>\r\n<hr noshade size=\"1\" />\r\n\r\nAs stated above, certain information or Services offered or provided through the Sites may, from time to time, be provided on or through other websites operated by or in conjunction with third party providers (\"Partners\"). These websites and the features thereon may have the same \"look and feel\" as WLW\'s Sites and/or Services. WLW terms these websites \"co-branded sites\", and often times a Partner\'s logo or name may appear on the website, or the Partner\'s name may appear in the URL. Although WLW will continue to own any personally identifiable information collected about you from one of these co-branded sites, such information may be shared by WLW with that Partner. However, a Partner will not rent, sell, or disclose any of your personally identifiable information to third parties unless you consent to such disclosures and use in advance (for example, you may be asked to opt-in on a particular co-branded site in order to receive information or offers from a Partner, its affiliates or agents). <br /><br />\r\n\r\n<h2>Third Party Links</h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWLW does not monitor, control or endorse the information collection or privacy practices of any third parties including, without limitation, any co-branded, Partner or affiliated sites which may or may not be owned or operated by or in conjunction with WLW or other third parties who may provide services throughout the Sites. Please be aware that the Sites may contain links to other websites on the Internet and the Services may be provided by such third parties WLW assumes no liability or responsibility for the information collection and privacy practices of such third party. Please consult each website\'s privacy policy. In addition, WLW is not responsible for the content or data collection practices of any third party websites, including a third party\'s use of cookies or other data-collection applications. Even though certain information collected by such third parties might not identify you personally, we strongly encourage you to become familiar with their privacy practices, and to contact them if you have any questions about their respective privacy policies and practices. \r\nOn behalf of various sponsors, the Sites may provide sponsored links to third-party websites or resources (\"Linked Sites\"). WLW neither controls nor have we reviewed or approved the content that appears on such Linked Sites. You acknowledge and agree that WLW is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from such Linked Sites. You further acknowledge and agree that WLW shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, and services available on or through any such Linked Site. \r\nSecurity \r\nWLW places a priority on the security of personally identifiable information, and we undertake reasonable security measures that comply with federal regulations to protect the data that resides on our servers. WLW also uses secure server software (SSL) to process all transactions which occur on the Sites. SSL encrypts all of your personal information transmitted over the Internet, including your credit card number, name and address. However, no security system is impenetrable. WLW cannot warrant or guarantee the security of its servers, nor can it guarantee that information supplied by Subscribers or other users will not be intercepted while being transmitted to WLW over the Internet. \r\nCorrection/Updating Personal Information \r\nIf your personally identifiable information changes (such as your address, zip code), or if you no longer desire to use or access one of the Sites or Services, WLW encourages you to correct, update or remove the personal information that you provided. This can be done at the \"Manage My Account\" page on each of the Sites. Keep in mind, however, that even if you delete your account from WLW\'s records, there will be residual information that will remain within WLW\'s databases, access logs, and other records, which may or may not contain personally identifiable information. \r\nHow To Contact Us \r\nPlease relay any questions you may have pertaining to our above stated policies to our Customer Service Department at customerservice@weightlosswars.com. \r\nPrivacy Policy Changes \r\nThis Policy was last changed on November 12, 2002. If WLW makes changes to any of the terms or conditions of the Policy, the changes will be posted in this document so that you will always know what information we gather, how we might use that information and to whom we will disclose it. We reserve the right to change, modify, add or remove portions of this Policy at any time, and any changes will become effective immediately upon being posted unless WLW advises you otherwise. Your continued use of the Services and/or the Sites after this Policy has been amended shall be deemed to be your continued acceptance of the terms and conditions of the Policy, as amended. We encourage you to bookmark this web page and review this Policy regularly. Copyright © 2004, WeightLossWars, L.L.C. All rights reserved. \r\n\r\n'),(853,100,0.16,'smarty','0','And I think its ready..  :)',1084438999,3,'67.172.236.95','<h1>Privacy Statement</h1><p />\r\n\r\n<h2>WeightLossWars, L.L.C. PRIVACY POLICY</h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWeightLossWars, L.L.C. (\"WLW,\" \"we\" or \"us\") provides a variety of online services and products, including without limitation, subscription, newsletter and update services (\"Services\"), to subscribers via email and on numerous websites throughout the World Wide Web (the \"Sites\"). WLW is strongly committed to protecting the privacy of your personal information, and providing a safe and secure environment for its subscribers.<br /><br />\r\nTHE PURPOSE OF THIS WLW PRIVACY POLICY (THE \"POLICY\") IS TO HELP YOU UNDERSTAND THE KINDS OF INFORMATION WE MAY GATHER ABOUT YOU WHEN YOU VISIT THE SITES OR USE ANY OF OUR SERVICES, HOW WE MAY USE THAT INFORMATION, IN WHICH MANNER WE WILL DISCLOSE IT, AND HOW YOU CAN CORRECT AND/OR UPDATE THE INFORMATION. PLEASE NOTE THAT BY USING THE SERVICES OR VISITING THE SITES, YOU SIGNIFY YOUR AGREEMENT WITH THIS POLICY. IF YOU DO NOT AGREE TO THE TERMS OF THIS POLICY, PLEASE DO NOT USE THE SERVICES OR REFRAIN FROM VISITING THE SITES. <br /><br />\r\nPlease note that the Policy applies only to WLW\'s Services and Sites, but not to other websites to which we may link, or to advertisers on the Sites. Additionally, your use of the Services and/or the Sites is governed by WLW\'s Terms of Service, as well as by any other published rules pertaining to either a particular Site or Service. <br /><br />\r\n\r\n<b>Children\'s Information</b><br />\r\nWLW\'s policy is that it does not knowingly collect personally identifiable information from subscribers under thirteen years of age. The Services or Sites are not directed or intended for children under thirteen years of age. If you are under thirteen years of age, you should not register to become a Subscriber or provide personally identifiable information on any of the Sites. If you are the parent or guardian of a subscriber under the age of thirteen whom you believe has disclosed personally identifiable information to WLW, please contact WLW at customerservice@weightlosswars.com so that we may delete and remove such subscriber\'s information from our systems. <br /><br />\r\n\r\n<b>The Information We Gather</b><br />\r\nWLW collects information from you at several different points on the Sites or through use of the Services in various ways. For example, WLW continually reviews its visitors\' demographics, interests and pages viewed, and WLW may require its subscribers and users to provide certain personal information if they wish to participate in various activities on the Sites (e.g., consummating transactions and entering into contests, drawings or surveys). However, WLW can only collect your personally identifiable information if, and when, it is voluntarily offered. Whenever we collect personal information, we will make an effort to include a link to this Policy on that page. <br /><br />\r\n\r\n<b>Message Board and Chats</b><br />\r\nAmong the many Services which WLW offers subscribers on the Sites, we provide message boards and chat rooms. Please be aware that any visitor may read your postings on a message board or in a chat room. Furthermore, any information which you may post to a message board or in a chat room, including your profile information, will be disclosed and available to all users of that message board or chat room, and is therefore no longer private. WLW cannot guarantee the security of such information that you disclose or communicate online in public areas such as message boards and chat rooms, and you do so at your own risk. WLW reserves the right to republish your postings from message boards or chat rooms elsewhere on the Web in any format. <br /><br />\r\n\r\n<b>How We Use the Information That We Gather</b><br />\r\nWLW uses certain technologies, such as \"cookies,\" to personalize and improve your online experience. <br />\r\n<ul>\r\n	<li>Cookies are alphanumeric identifiers that we transfer to your computer\'s hard drive. Cookies store information about your visit to the Sites or your use of the Services, thereby allowing you to access certain WLW\'s features not otherwise available. The information in the cookie is transmitted from your computer to WLW or to one of our third-party authorized service contractors. The information contained in these cookies makes it possible for our systems to know if you are presently logged onto a Site or using any of the Services, or whether you have done so in a prior visit. This technology enables WLW to instantly determine your access privileges while allowing you to navigate the Sites or use any of the Services without having to repeatedly log in. <br /><br /></li>\r\n	<li>Cookies from WLW and/or one of our authorized service contractors are also used to collect standard information transmitted from your web browser including, without limitation: your Internet address, browser type, web pages you visited with date and time, purchases you made on any of the Sites and the type of operating system on your computer. This information is used to help us understand and meet the ever-changing needs and interests of our subscribers. <br /><br /></li>\r\n	<li>WLW may also use cookies to track your access to, and use of the message boards, forums and chat rooms on the Sites, as well as your responses to any of our online surveys. <br /><br /></li>\r\n	<li>You always have the option of setting your browser to warn you when a cookie is being accessed on your computer or to decline cookies altogether. However, to take full advantage of the Sites, Services and features offered by WLW, we recommend that you set your browser to accept cookies. Setting your computer to accept or refuse cookies varies depending on the web browser you are running. Please check the help tab of your browser for specifics on your software. <br /><br /></li>\r\n	<li>WLW does not control any cookies you may receive from an advertiser and these are not subject to this Policy. • WLW also uses web beacon technology to help track site usage. Web beacons (also called single pixel gifs or action tags) allow WLW to track page viewing counts and patterns which we use to focus and tailor future content development, measure the effectiveness of WLW\'s own marketing campaigns and assist with broadband capacity management for the Sites. <br /><br /></li>\r\n	<li>WLW also employs web beacons within the context of certain e-mails in order to determine the effectiveness and appeal of those mailings. These web beacons \'sense\' and notify WLW if and when you open the e-mail, if your e-mail program is capable of displaying HTML messages, and where you may navigate within these HTML messages. </li>\r\n</ul>\r\n\r\nIn addition to the foregoing, WLW uses the information obtained from its subscribers and users in order to enhance and customize their online experiences. <br /><br />\r\n\r\nDue to the existing regulatory environment, WLW cannot ensure that all of your personally identifiable information and communications will remain private and will never be disclosed in ways not otherwise described in this Policy. Therefore, although we maintain and make every effort to comply with industry privacy standards, we do not promise, nor should you expect, that your personally identifiable information or private communications will always remain private. <br /><br />\r\n\r\nAs a matter of policy and unless otherwise stated herein, WLW does not rent, sell, or share your personally identifiable information with other people or non-affiliated companies. However, WLW reserves the right to use your personally identifiable information to notify you of certain products or Services about which you previously inquired or requested, special promotional offers, and to investigate violations of the terms and provisions of this Policy or the Terms of Use. In addition, WLW aggregates (gathers and organizes data across all subscriber and user accounts) personally identifiable information from among its subscriber and user base and discloses only that portion of the information which is non-personally identifiable to advertisers and other third parties for marketing, promotional and other commercial purposes. For example, your name, email address, password, credit card number and bank account number will never to be disclosed without your express prior written consent. <br /><br />\r\n\r\n<b>Disclosure of Personal Information in the Event of Merger or Sale of Assets</b><br />\r\nWLW, its parent, subsidiaries or affiliates, could merge with or be acquired by another business entity, or all or substantially all of their respective assets could be acquired. Should such a combination, acquisition or transaction occur, you should expect that WLW will share some or all of your personally identifiable information with the acquiring or merged entity in order to continue serving you and others information, updates and offers concerning the Sites or Services. <br /><br />\r\n\r\n<b>Co-branded and Other Affiliated Sites</b><br />\r\nAs stated above, certain information or Services offered or provided through the Sites may, from time to time, be provided on or through other websites operated by or in conjunction with third party providers (\"Partners\"). These websites and the features thereon may have the same \"look and feel\" as WLW\'s Sites and/or Services. WLW terms these websites \"co-branded sites\", and often times a Partner\'s logo or name may appear on the website, or the Partner\'s name may appear in the URL. Although WLW will continue to own any personally identifiable information collected about you from one of these co-branded sites, such information may be shared by WLW with that Partner. However, a Partner will not rent, sell, or disclose any of your personally identifiable information to third parties unless you consent to such disclosures and use in advance (for example, you may be asked to opt-in on a particular co-branded site in order to receive information or offers from a Partner, its affiliates or agents). <br /><br />\r\n\r\n<b>Third Party Links</b><br />\r\nWLW does not monitor, control or endorse the information collection or privacy practices of any third parties including, without limitation, any co-branded, Partner or affiliated sites which may or may not be owned or operated by or in conjunction with WLW or other third parties who may provide services throughout the Sites. Please be aware that the Sites may contain links to other websites on the Internet and the Services may be provided by such third parties WLW assumes no liability or responsibility for the information collection and privacy practices of such third party. Please consult each website\'s privacy policy. In addition, WLW is not responsible for the content or data collection practices of any third party websites, including a third party\'s use of cookies or other data-collection applications. Even though certain information collected by such third parties might not identify you personally, we strongly encourage you to become familiar with their privacy practices, and to contact them if you have any questions about their respective privacy policies and practices. <br /><br />\r\n\r\nOn behalf of various sponsors, the Sites may provide sponsored links to third-party websites or resources (\"Linked Sites\"). WLW neither controls nor have we reviewed or approved the content that appears on such Linked Sites. You acknowledge and agree that WLW is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from such Linked Sites. You further acknowledge and agree that WLW shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, and services available on or through any such Linked Site. <br /><br />\r\n\r\n<b>Security</b><br />\r\nWLW places a priority on the security of personally identifiable information, and we undertake reasonable security measures that comply with federal regulations to protect the data that resides on our servers. WLW also uses secure server software (SSL) to process all transactions which occur on the Sites. SSL encrypts all of your personal information transmitted over the Internet, including your credit card number, name and address. However, no security system is impenetrable. WLW cannot warrant or guarantee the security of its servers, nor can it guarantee that information supplied by Subscribers or other users will not be intercepted while being transmitted to WLW over the Internet. <br /><br />\r\n\r\n<b>Correction/Updating Personal Information</b><br />\r\nIf your personally identifiable information changes (such as your address, zip code), or if you no longer desire to use or access one of the Sites or Services, WLW encourages you to correct, update or remove the personal information that you provided. This can be done at the \"Manage My Account\" page on each of the Sites. Keep in mind, however, that even if you delete your account from WLW\'s records, there will be residual information that will remain within WLW\'s databases, access logs, and other records, which may or may not contain personally identifiable information. <br /><br />\r\n\r\n<b>How To Contact Us</b><br />\r\nPlease relay any questions you may have pertaining to our above stated policies to our Customer Service Department at {mailto address=\"customerservice@weightlosswars.com\" encode=\"hex\" subject=\"re: Privacy Policy\"}. <br /><br />\r\n\r\n<b>Privacy Policy Changes</b><br />\r\nThis Policy was last changed on November 12, 2002. If WLW makes changes to any of the terms or conditions of the Policy, the changes will be posted in this document so that you will always know what information we gather, how we might use that information and to whom we will disclose it. We reserve the right to change, modify, add or remove portions of this Policy at any time, and any changes will become effective immediately upon being posted unless WLW advises you otherwise. Your continued use of the Services and/or the Sites after this Policy has been amended shall be deemed to be your continued acceptance of the terms and conditions of the Policy, as amended. We encourage you to bookmark this web page and review this Policy regularly. Copyright © 2004, WeightLossWars, L.L.C. All rights reserved.<br /><br />\r\n'),(854,100,0.17,'smarty','0','Ah, hex email link encoding doesnt like the subject attribute.',1084439105,3,'67.172.236.95','<h1>Privacy Statement</h1><p />\r\n\r\n<h2>WeightLossWars, L.L.C. PRIVACY POLICY</h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWeightLossWars, L.L.C. (\"WLW,\" \"we\" or \"us\") provides a variety of online services and products, including without limitation, subscription, newsletter and update services (\"Services\"), to subscribers via email and on numerous websites throughout the World Wide Web (the \"Sites\"). WLW is strongly committed to protecting the privacy of your personal information, and providing a safe and secure environment for its subscribers.<br /><br />\r\nTHE PURPOSE OF THIS WLW PRIVACY POLICY (THE \"POLICY\") IS TO HELP YOU UNDERSTAND THE KINDS OF INFORMATION WE MAY GATHER ABOUT YOU WHEN YOU VISIT THE SITES OR USE ANY OF OUR SERVICES, HOW WE MAY USE THAT INFORMATION, IN WHICH MANNER WE WILL DISCLOSE IT, AND HOW YOU CAN CORRECT AND/OR UPDATE THE INFORMATION. PLEASE NOTE THAT BY USING THE SERVICES OR VISITING THE SITES, YOU SIGNIFY YOUR AGREEMENT WITH THIS POLICY. IF YOU DO NOT AGREE TO THE TERMS OF THIS POLICY, PLEASE DO NOT USE THE SERVICES OR REFRAIN FROM VISITING THE SITES. <br /><br />\r\nPlease note that the Policy applies only to WLW\'s Services and Sites, but not to other websites to which we may link, or to advertisers on the Sites. Additionally, your use of the Services and/or the Sites is governed by WLW\'s Terms of Service, as well as by any other published rules pertaining to either a particular Site or Service. <br /><br />\r\n\r\n<b>Children\'s Information</b><br />\r\nWLW\'s policy is that it does not knowingly collect personally identifiable information from subscribers under thirteen years of age. The Services or Sites are not directed or intended for children under thirteen years of age. If you are under thirteen years of age, you should not register to become a Subscriber or provide personally identifiable information on any of the Sites. If you are the parent or guardian of a subscriber under the age of thirteen whom you believe has disclosed personally identifiable information to WLW, please contact WLW at customerservice@weightlosswars.com so that we may delete and remove such subscriber\'s information from our systems. <br /><br />\r\n\r\n<b>The Information We Gather</b><br />\r\nWLW collects information from you at several different points on the Sites or through use of the Services in various ways. For example, WLW continually reviews its visitors\' demographics, interests and pages viewed, and WLW may require its subscribers and users to provide certain personal information if they wish to participate in various activities on the Sites (e.g., consummating transactions and entering into contests, drawings or surveys). However, WLW can only collect your personally identifiable information if, and when, it is voluntarily offered. Whenever we collect personal information, we will make an effort to include a link to this Policy on that page. <br /><br />\r\n\r\n<b>Message Board and Chats</b><br />\r\nAmong the many Services which WLW offers subscribers on the Sites, we provide message boards and chat rooms. Please be aware that any visitor may read your postings on a message board or in a chat room. Furthermore, any information which you may post to a message board or in a chat room, including your profile information, will be disclosed and available to all users of that message board or chat room, and is therefore no longer private. WLW cannot guarantee the security of such information that you disclose or communicate online in public areas such as message boards and chat rooms, and you do so at your own risk. WLW reserves the right to republish your postings from message boards or chat rooms elsewhere on the Web in any format. <br /><br />\r\n\r\n<b>How We Use the Information That We Gather</b><br />\r\nWLW uses certain technologies, such as \"cookies,\" to personalize and improve your online experience. <br />\r\n<ul>\r\n	<li>Cookies are alphanumeric identifiers that we transfer to your computer\'s hard drive. Cookies store information about your visit to the Sites or your use of the Services, thereby allowing you to access certain WLW\'s features not otherwise available. The information in the cookie is transmitted from your computer to WLW or to one of our third-party authorized service contractors. The information contained in these cookies makes it possible for our systems to know if you are presently logged onto a Site or using any of the Services, or whether you have done so in a prior visit. This technology enables WLW to instantly determine your access privileges while allowing you to navigate the Sites or use any of the Services without having to repeatedly log in. <br /><br /></li>\r\n	<li>Cookies from WLW and/or one of our authorized service contractors are also used to collect standard information transmitted from your web browser including, without limitation: your Internet address, browser type, web pages you visited with date and time, purchases you made on any of the Sites and the type of operating system on your computer. This information is used to help us understand and meet the ever-changing needs and interests of our subscribers. <br /><br /></li>\r\n	<li>WLW may also use cookies to track your access to, and use of the message boards, forums and chat rooms on the Sites, as well as your responses to any of our online surveys. <br /><br /></li>\r\n	<li>You always have the option of setting your browser to warn you when a cookie is being accessed on your computer or to decline cookies altogether. However, to take full advantage of the Sites, Services and features offered by WLW, we recommend that you set your browser to accept cookies. Setting your computer to accept or refuse cookies varies depending on the web browser you are running. Please check the help tab of your browser for specifics on your software. <br /><br /></li>\r\n	<li>WLW does not control any cookies you may receive from an advertiser and these are not subject to this Policy. • WLW also uses web beacon technology to help track site usage. Web beacons (also called single pixel gifs or action tags) allow WLW to track page viewing counts and patterns which we use to focus and tailor future content development, measure the effectiveness of WLW\'s own marketing campaigns and assist with broadband capacity management for the Sites. <br /><br /></li>\r\n	<li>WLW also employs web beacons within the context of certain e-mails in order to determine the effectiveness and appeal of those mailings. These web beacons \'sense\' and notify WLW if and when you open the e-mail, if your e-mail program is capable of displaying HTML messages, and where you may navigate within these HTML messages. </li>\r\n</ul>\r\n\r\nIn addition to the foregoing, WLW uses the information obtained from its subscribers and users in order to enhance and customize their online experiences. <br /><br />\r\n\r\nDue to the existing regulatory environment, WLW cannot ensure that all of your personally identifiable information and communications will remain private and will never be disclosed in ways not otherwise described in this Policy. Therefore, although we maintain and make every effort to comply with industry privacy standards, we do not promise, nor should you expect, that your personally identifiable information or private communications will always remain private. <br /><br />\r\n\r\nAs a matter of policy and unless otherwise stated herein, WLW does not rent, sell, or share your personally identifiable information with other people or non-affiliated companies. However, WLW reserves the right to use your personally identifiable information to notify you of certain products or Services about which you previously inquired or requested, special promotional offers, and to investigate violations of the terms and provisions of this Policy or the Terms of Use. In addition, WLW aggregates (gathers and organizes data across all subscriber and user accounts) personally identifiable information from among its subscriber and user base and discloses only that portion of the information which is non-personally identifiable to advertisers and other third parties for marketing, promotional and other commercial purposes. For example, your name, email address, password, credit card number and bank account number will never to be disclosed without your express prior written consent. <br /><br />\r\n\r\n<b>Disclosure of Personal Information in the Event of Merger or Sale of Assets</b><br />\r\nWLW, its parent, subsidiaries or affiliates, could merge with or be acquired by another business entity, or all or substantially all of their respective assets could be acquired. Should such a combination, acquisition or transaction occur, you should expect that WLW will share some or all of your personally identifiable information with the acquiring or merged entity in order to continue serving you and others information, updates and offers concerning the Sites or Services. <br /><br />\r\n\r\n<b>Co-branded and Other Affiliated Sites</b><br />\r\nAs stated above, certain information or Services offered or provided through the Sites may, from time to time, be provided on or through other websites operated by or in conjunction with third party providers (\"Partners\"). These websites and the features thereon may have the same \"look and feel\" as WLW\'s Sites and/or Services. WLW terms these websites \"co-branded sites\", and often times a Partner\'s logo or name may appear on the website, or the Partner\'s name may appear in the URL. Although WLW will continue to own any personally identifiable information collected about you from one of these co-branded sites, such information may be shared by WLW with that Partner. However, a Partner will not rent, sell, or disclose any of your personally identifiable information to third parties unless you consent to such disclosures and use in advance (for example, you may be asked to opt-in on a particular co-branded site in order to receive information or offers from a Partner, its affiliates or agents). <br /><br />\r\n\r\n<b>Third Party Links</b><br />\r\nWLW does not monitor, control or endorse the information collection or privacy practices of any third parties including, without limitation, any co-branded, Partner or affiliated sites which may or may not be owned or operated by or in conjunction with WLW or other third parties who may provide services throughout the Sites. Please be aware that the Sites may contain links to other websites on the Internet and the Services may be provided by such third parties WLW assumes no liability or responsibility for the information collection and privacy practices of such third party. Please consult each website\'s privacy policy. In addition, WLW is not responsible for the content or data collection practices of any third party websites, including a third party\'s use of cookies or other data-collection applications. Even though certain information collected by such third parties might not identify you personally, we strongly encourage you to become familiar with their privacy practices, and to contact them if you have any questions about their respective privacy policies and practices. <br /><br />\r\n\r\nOn behalf of various sponsors, the Sites may provide sponsored links to third-party websites or resources (\"Linked Sites\"). WLW neither controls nor have we reviewed or approved the content that appears on such Linked Sites. You acknowledge and agree that WLW is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from such Linked Sites. You further acknowledge and agree that WLW shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, and services available on or through any such Linked Site. <br /><br />\r\n\r\n<b>Security</b><br />\r\nWLW places a priority on the security of personally identifiable information, and we undertake reasonable security measures that comply with federal regulations to protect the data that resides on our servers. WLW also uses secure server software (SSL) to process all transactions which occur on the Sites. SSL encrypts all of your personal information transmitted over the Internet, including your credit card number, name and address. However, no security system is impenetrable. WLW cannot warrant or guarantee the security of its servers, nor can it guarantee that information supplied by Subscribers or other users will not be intercepted while being transmitted to WLW over the Internet. <br /><br />\r\n\r\n<b>Correction/Updating Personal Information</b><br />\r\nIf your personally identifiable information changes (such as your address, zip code), or if you no longer desire to use or access one of the Sites or Services, WLW encourages you to correct, update or remove the personal information that you provided. This can be done at the \"Manage My Account\" page on each of the Sites. Keep in mind, however, that even if you delete your account from WLW\'s records, there will be residual information that will remain within WLW\'s databases, access logs, and other records, which may or may not contain personally identifiable information. <br /><br />\r\n\r\n<b>How To Contact Us</b><br />\r\nPlease relay any questions you may have pertaining to our above stated policies to our Customer Service Department at {mailto address=\"customerservice@weightlosswars.com\" encode=\"hex\"}<br /><br />\r\n\r\n<b>Privacy Policy Changes</b><br />\r\nThis Policy was last changed on November 12, 2002. If WLW makes changes to any of the terms or conditions of the Policy, the changes will be posted in this document so that you will always know what information we gather, how we might use that information and to whom we will disclose it. We reserve the right to change, modify, add or remove portions of this Policy at any time, and any changes will become effective immediately upon being posted unless WLW advises you otherwise. Your continued use of the Services and/or the Sites after this Policy has been amended shall be deemed to be your continued acceptance of the terms and conditions of the Policy, as amended. We encourage you to bookmark this web page and review this Policy regularly. Copyright © 2004, WeightLossWars, L.L.C. All rights reserved.<br /><br />\r\n'),(1086,119,0.32,'smarty','0','Stored object now uses session_id instead of user id',1085774682,2,'24.2.68.123','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 3</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'letter\', \'hideLetter\', \'showHide\');\"><img id=\"letter_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideLetter}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Review Your Invitation:</h2>\r\n	<input type=\"hidden\" id=\"hideLetter\" name=\"newcomp[hideLetter]\" value=\"{$newcomp.hideLetter|default:\"0\"}\">\r\n\r\n<div>Make sure that you are satisfied with the invitation you will be sending to the other competitors.<br /><br /></div>\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:{if $newcomp.hideLetter eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<br />\r\n	<div style=\"margin:10px;padding:17px;\" class=\"notepaperBG\">\r\n		{eval var=$invitationLetter|nl2br}\r\n	</div>\r\n</div>\r\n<br />\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n<br />\r\n\r\n<a name=\"invitations\" />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'enterEmails\', \'hideEnterEmails\', \'showHide\');\"><img id=\"enterEmails_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideEnterEmails}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Invite Some Competitors:</h2>\r\n	<input type=\"hidden\" id=\"hideEnterEmails\" name=\"newcomp[hideEnterEmails]\" value=\"{$newcomp.hideEnterEmails|default:\"0\"}\">\r\n\r\n<div>Enter a contact name and email address for each person you would like to invite into this competition. Don\'t worry about gathering everyone\'s email address right now, you can always add more later.<br /><br /></div>\r\n\r\n<div id=\"enterEmails\" style=\"display:{if $newcomp.hideEnterEmails eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<div id=\"inviteList\">\r\n	<table align=\"center\" style=\"margin:10px;\">\r\n	<tr>\r\n		<td><div>&nbsp;</div></td>\r\n		<td><h3 class=\"withBG\">Name</h2></td>\r\n		<td><h3 class=\"withBG\">E-Mail</h2></td>\r\n		<td><h3 class=\"withBG\">Your Relation</h2></td>\r\n	</tr> \r\n	{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n	<tr>\r\n		<td><div>#{$smarty.section.contactLoop.iteration}</div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n	</div>\r\n	\r\n	<div align=\"right\" style=\"margin-right:30px;\">\r\n		<a href=\"javascript://\" onclick=\"addEmailRows();return false;\">&gt; Click to add more now! &lt;</a>\r\n	</div>\r\n</div>\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n\r\n\r\n<script language=\"javascript\">\r\n	var addCount = {$addCount};\r\n	{literal}\r\n	function addEmailRows() {\r\n		addCount++;\r\n		var obj = document.getElementById(\'inviteList\');\r\n		var html = obj.innerHTML;\r\n		html = html.replace(/\\<\\/TABLE\\>/i, \'\');\r\n		html += \'<tr><td><div>#\'+addCount+\'</div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][\'+addCount+\']\"></div></td></tr></table>\';\r\n		obj.innerHTML = html;\r\n	}\r\n	{/literal}\r\n</script>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>'),(1870,124,0.53,'smarty','0','removed same as shipping js link',1088110293,3,'208.187.110.149','<h1 class=\"underline\">Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<div align=\"right\"><a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"button\">Continue</a></div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"cAction\" value=\"process\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_exire_keep_alive\" value=\"cid newcomp return\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n<input type=\"hidden\" name=\"newcomp\" value=\"{$smarty.request.newcomp}\">\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n<input type=\"hidden\" name=\"contribution[entryFee]\" value=\"{$competition.entryFee}\" />\r\n<input type=\"hidden\" name=\"contribution[individualPotAmount]\" value=\"{$competition.individualPotAmount}\" />\r\n\r\n<p>You are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!</p>\r\n\r\nCompetition Title: <b>{$competition.title}</b><br />\r\nCompetition Type: <b>{$competition.type|niceText}, {$competition.style}</b><br />\r\nStarted By: <b>{$competition.firstName} {$competition.lastName} ({$competition.username})</b><br />\r\nTerm: <b>{$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}</b><br />\r\n<br />\r\n{if $competition.individualPotAmount}\r\n	Individual Pot Contribution Amount: <b>${$competition.individualPotAmount|number_format:\"2\"}</b> (You are agreeing to pay the winner this amount when the competition is over!)<br />\r\n{else}\r\n	There is no individual contribution required for this competition, as it is funded by third party donations ({$competition.potMethod}).<br />\r\n{/if}\r\nWeightLossWars.com Entry Fee: <b>${$competition.entryFee|number_format:\"2\"}</b><br />\r\n<h2 class=\"underline2\">&nbsp;</h2>\r\n<b>Total Due:</b> <em>${$competition.total|number_format:\"2\"}</em><br />\r\n{if $order.invoiceNum}<input type=\"hidden\" name=\"orderInvoiceNum\" value=\"{$order.invoiceNum}\" />{/if}\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	State, Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"Visa\"{if $smarty.request.bill.paymentMethod eq \"Visa\"} selected{/if}>Visa</option>\r\n		<option value=\"Mastercard\"{if $smarty.request.bill.paymentMethod eq \"Mastercard\"} selected{/if}>Mastercard</option>	\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=newcomp/review\" class=\"link\">Back to Review</a> | \r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" class=\"link\">Submit Contribution</a>\r\n</div>\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\"></div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"JavaScript\" src=\"{$modules.x}\"></script>\r\n	<script language=\"JavaScript\" src=\"{$modules.spadeAutoComplete}\"></script>\r\n	<script language=\"JavaScript\">\r\n		var states = new Array(\'AL\',\'AK\',\'AS\',\'AZ\',\'AR\',\'CA\',\'CO\',\'CT\',\'DE\',\'DC\',\'FL\',\'GA\',\'GU\',\r\n					\'HI\',\'ID\',\'IL\',\'IN\',\'IA\',\'KS\',\'KY\',\'LA\',\'ME\',\'MH\',\'MD\',\'MA\',\r\n					\'MI\',\'MN\',\'MS\',\'MO\',\'MT\',\'NE\',\'NV\',\'NH\',\'NJ\',\'NM\',\'NY\',\'NC\',\r\n					\'ND\',\'OH\',\'OK\',\'OR\',\'PW\',\'PA\',\'PR\',\'RI\',\'SC\',\'SD\',\'TN\',\'TX\',\r\n					\'UT\',\'VT\',\'USVI\',\'VA\',\'WA\',\'WV\',\'WI\',\'WY\',\'AB\',\'BC\',\'LB\',\'MB\',\r\n					\'NB\',\'NF\',\'NT\',\'NS\',\'ON\',\'PE\',\'PQ\',\'SK\',\'YT\');\r\n		initAutoComplete(\'bill[state]\', \'states\', true);\r\n\r\n		{* var countries = new Array (\'United States of America\', \'Canada\', \'Germany\', \'United Kingdom\', \'India\', \'---------------------\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\'); *}\r\n		var countries = new Array (\'USA\', \'Canada\', \'Germany\', \'UK\', \'India\', \'Albania\', \'Algeria\', \'Andorra\', \'Angola\', \'Anguilla\', \'Antarctica\', \'Antigua and Barbuda\', \'Argentina\', \'Armenia\', \'Aruba\', \'Australia\', \'Austria\', \'Azerbaijan\', \'Bahamas\', \'Bahrain\', \'Bangladesh\', \'Barbados\', \'Belarus\', \'Belgium\', \'Belize\', \'Benin\', \'Bermuda\', \'Bhutan\', \'Bolivia\', \'Bosnia and Herzegowina\', \'Botswana\', \'Bouvet Island\', \'Brazil\', \'British Ind. Ocean Terr\', \'Brunei Darussalam\', \'Bulgaria\', \'Burkina Faso\', \'Burundi\', \'Cambodia\', \'Cameroon\', \'Cape Verde\', \'Cayman Islands\', \'Central African Rep.\', \'Chad\', \'Chile\', \'China\', \'Christmas Island\', \'Cocoa (Keeling) Isl.\', \'Colombia\', \'Comoros\', \'Congo\', \'Cook Islands\', \'Costa Rica\', \'Cote Divoire\', \'Hrvatska\', \'Cyprus\', \'Czech Republic\', \'Denmark\', \'Djibouti\', \'Dominica\', \'Dominican Republic\', \'East Timor\', \'Ecuador\', \'Egypt\', \'El Salvador\', \'Equatorial Guinea\', \'Eritrea\', \'Estonia\', \'Ethiopia\', \'Falkland Isl. (Malvinas)\', \'Faroe Islands\', \'Fiji\', \'Finland\', \'France\', \'French Guiana\', \'French Polynesia\', \'French Southern Terr.\', \'Gabon\', \'Gambia\', \'Georgia\', \'Ghana\', \'Gibraltar\', \'Greece\', \'Greenland\', \'Grenada\', \'Guadeloupe\', \'Guatemala\', \'Guinea\', \'Guinea-Bissau\', \'Guyana\', \'Haiti\', \'Heard & McDonald Isl.\', \'Honduras\', \'Hong Kong\', \'Hungary\', \'Iceland\', \'Indonesia\', \'Ireland\', \'Israel\', \'Italy\', \'Jamaica\', \'Japan\', \'Jordan\', \'Kazakhstan\', \'Kenya\', \'Kiribati\', \'Republic of Korea\', \'Kuwait\', \'Kyrgyzstan\', \'Lao Peoples Dem. Rep.\', \'Latvia\', \'Lebanon\', \'Lesotho\', \'Liberia\', \'Liechtenstein\', \'Lithuania\', \'Luxembourg\', \'Macau\', \'Macedonia\', \'Madagascar\', \'Malawi\', \'Malaysia\', \'Maldives\', \'Mali\', \'Malta\', \'Marshall Islands\', \'Martinique\', \'Mauritania\', \'Mauritius\', \'Mayotte\', \'Mexico\', \'Micronesia: Fed. States of\', \'Moldova: Republic of\', \'Monaco\', \'Mongolia\', \'Montserrat\', \'Morocco\', \'Mozambique\', \'Myanmar\', \'Namibia\', \'Nauru\', \'Nepal\', \'Netherlands\', \'Netherlands Antilles\', \'New Caledonia\', \'New Zealand\', \'Nicaragua\', \'Niger\', \'Nigeria\', \'Niue\', \'Norfolk Island\', \'Northern Mariana Isl.\', \'Norway\', \'Oman\', \'Pakistan\', \'Palau\', \'Panama\', \'Papua New Guinea\', \'Paraguay\', \'Peru\', \'Philippines\', \'Pitcairn\', \'Poland\', \'Portugal\', \'Qatar\', \'Reunion\', \'Romania\', \'Russian Federation\', \'Rwanda\', \'Saint Kitts and Nevis\', \'Saint Lucia\', \'St. Vincent & Grenadines\', \'Samoa\', \'San Marino\', \'Sao Tome and Principe\', \'Saudi Arabia\', \'Senegal\', \'Seychelles\', \'Sierra Leone\', \'Singapore\', \'Slovakia\', \'Slovenia\', \'Solomon Islands\', \'Somalia\', \'South Africa\', \'S. Georgia & S. Sandwich Isl.\', \'Spain\', \'Sri Lanka\', \'St. Helena\', \'St. Pierre and Miquelon\', \'Suriname\', \'Svalbard & Jan Mayen Isl.\', \'Swaziland\', \'Sweden\', \'Switzerland\', \'Syrian Arab Republic\', \'Taiwan\', \'Tajikistan\', \'Tanzania: United Rep. of\', \'Thailand\', \'Togo\', \'Tokelau\', \'Tonga\', \'Trinidad and Tobago\', \'Tunisia\', \'Turkey\', \'Turkmenistan\', \'Turks and Caicos Islands\', \'Tuvalu\', \'Uganda\', \'Ukraine\', \'United Arab Emirates\', \'US Minor Outlying Isl.\', \'Uruguay\', \'Uzbekistan\', \'Vanuatu\', \'Vatican City (Holy See)\', \'Venezuela\', \'Vietnam\', \'Virgin Islands (British)\', \'Wallis and Futuna Islands\', \'Western Sahara\', \'Yemen\', \'Yugoslavia\', \'Zaire\', \'Zambia\', \'Zimbabwe\', \'Not Listed\');\r\n		\r\n		initAutoComplete(\'bill[country]\', \'countries\', true);\r\n	</script>\r\n{/if}\r\n\r\n{else}   {* If NOT competition... *}\r\n\r\n	Because errors were encountered, we cannont process your contribution at this time. If you continue to have problems, please <a href=\"?pg=contact\">contact us</a>.\r\n\r\n{/if}\r\n\r\n</form>\r\n\r\n{/if}  {* If is NOT complete... *}'),(1942,116,0.50,'smarty','0','changed madlib to fill in the blanks for legal reasons',1088748264,16,'64.85.237.174','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.createInvitation\"}\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" id=\"letterType\" name=\"newcomp[letterType]\" value=\"{if not $newcomp.letterType}customLetter{/if}\">\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 2</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'makeInvite\', \'hideMakeInvite\', \'showHide\');\"><img id=\"makeInvite_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideMakeInvite eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Create Your Invitation Letter:</h2>\r\n	<input type=\"hidden\" id=\"hideMakeInvite\" name=\"newcomp[hideMakeInvite]\" value=\"{$newcomp.hideMakeInvite|default:\"0\"}\">\r\n<div>	\r\n	In this step you will create an email letter to invite your competitors into your Weight Loss War!<br /><br />\r\n	Select an Example letter or a fill-in-the-blanks letter to Edit.  If you don\'t like any of those letters then simply click on \r\n	<b>\'Create My Own\'</b> below and write your own challenge invitation!  <p>When your email is sent, WeightLossWars will add a link \r\n	at the bottom of your letter that your friends can click to enter your competition. When you are finished with your letter click <b>\'Next\'</b>.</div>\r\n\r\n<div id=\"makeInvite\" style=\"display:{if $newcomp.hideMakeInvite eq 1}none{else}block{/if};\">	\r\n	{toc_next assign=\"next\"}\r\n	{toc_prev assign=\"prev\"}\r\n		\r\n	<br />\r\n	\r\n	<table>\r\n	<tr>\r\n		<td valign=\"top\"><div>\r\n			<h2 class=\"withBG\">Examples:</h2>\r\n			<div style=\"margin:0px 10px 0px 10px;\">\r\n				{foreach from=$examples key=\"key\" item=\"example\"}\r\n					<a href=\"javascript://\" onclick=\"setExample({$key});\">{$example.title}</a><br />\r\n				{foreachelse}\r\n					Sorry, there are no<br />examples for this combination<br />of competition type and<br />invitation letter type.\r\n				{/foreach}\r\n			</div>\r\n		</div></td>\r\n		<td>\r\n			<h2 class=\"withBG\">{$newcomp.invitationType|niceText} Letter</h2>\r\n			<table style=\"border:1px solid #AAAAAA;background-color:#CCCCCC;\" width=\"500\">\r\n			<tr>\r\n				<td><div>\r\n					{if $madlibs|@count}\r\n						<select id=\"madlibsElement\" name=\"newcomp[selectedMadlib]\" onchange=\"setMadlib(this.selectedIndex);\">\r\n							<option value=\"\">(Fill-in-the-Blanks)</option>\r\n						{foreach from=$madlibs item=\"madlib\"}\r\n							<option value=\"{$madlib.id}\">{$madlib.title}</option>\r\n						{/foreach}\r\n						</select>\r\n					{else}\r\n						No Madlibs Available!\r\n					{/if}\r\n					<a href=\"javascript://\" onclick=\"toggleType(\'customLetter\');\" class=\"button\">Create My Own</a>\r\n				</div></td>\r\n			</tr>\r\n			<tr>\r\n				<td align=\"left\">\r\n					<div id=\"madlib\" align=\"left\" style=\"padding:8px;border:1px solid #CCCCCC;background-color:#FFFFFF;display:{if $newcomp.letterType eq \"madlib\"}block{else}none{/if};\">\r\n						{foreach from=$madlibs key=\"key\" item=\"madlib\"}\r\n							<div id=\"madlib{$key}\" style=\"display:{if $newcomp.selectedMadlib eq $madlib.id}block{else}none{/if};\">{eval var=$madlib.body|replace:\"\\n\":\"<br />\"}</div>\r\n						{/foreach}\r\n						</div>\r\n	\r\n					<div id=\"customLetter\" style=\"display:{if $newcomp.letterType eq \"customLetter\" OR not $newcomp.letterType}block{else}none{/if};\">\r\n						<textarea id=\"customLetterElement\" name=\"newcomp[customLetter]\" rows=\"20\" cols=\"40\" style=\"width:480px;\" class=\"textarea\"></textarea></div>\r\n				</td>\r\n			</tr>\r\n			</table>\r\n		</td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n<br />\r\n\r\n<div class=\"hBox\" style=\"text-align:right;margin:0px;\"\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<script language=\"JavaScript\">\r\n	\r\n	var examples = Array();\r\n	{foreach from=$examples key=\"key\" item=\"example\"}\r\n	examples[{$key}] = \'{eval var=$example.body|addslashes|replace:\"\\r\":\"\"|replace:\"\\n\":\"\\\\n\"}\';\r\n	{/foreach}\r\n	\r\n	{literal}\r\n	\r\n	function toggleType(type) {\r\n		if (type == \'customLetter\') {\r\n			document.getElementById(\'customLetter\').style.display = \'block\';\r\n			document.getElementById(\'madlib\').style.display = \'none\';\r\n			document.getElementById(\'letterType\').value = \'customLetter\';\r\n			var madlibsElm = document.getElementById(\'madlibsElement\');\r\n			if (madlibsElm) {\r\n				madlibsElm.selectedIndex = 0;\r\n			}\r\n		} else {\r\n			document.getElementById(\'customLetter\').style.display = \'none\';\r\n			document.getElementById(\'madlib\').style.display = \'block\';\r\n			document.getElementById(\'letterType\').value = \'madlib\';\r\n		}\r\n	}\r\n	\r\n	function setExample(key) {\r\n		toggleType(\'customLetter\');\r\n		var ta = document.getElementById(\'customLetterElement\');\r\n	\r\n		if (!ta.value || confirm(\'Are you sure you want to overwrite your custom letter with this example?\')) {\r\n			ta.value = examples[key];\r\n		}\r\n	}\r\n	\r\n	function setMadlib(key) {\r\n		var obj;\r\n		key--;\r\n		toggleType(\'madlib\');	\r\n		for (var x = 0; x < {/literal}{$madlibs|@count}{literal}; x++) {\r\n			obj = document.getElementById(\'madlib\'+x).style.display = (x != key) ? \'none\' : \'block\';\r\n		}\r\n	}\r\n	{/literal}\r\n</script>'),(1943,119,0.34,'smarty','0','Renamed handlers to have group association.',1088748359,16,'64.85.237.174','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{include_php file=\"shared_handle:newcomp.prepareInvitation\"}\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n{toc_next assign=\"next\"}\r\n{toc_prev assign=\"prev\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 3</h1>\r\n<br />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'letter\', \'hideLetter\', \'showHide\');\"><img id=\"letter_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideLetter}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Review Your Invitation:</h2>\r\n	<input type=\"hidden\" id=\"hideLetter\" name=\"newcomp[hideLetter]\" value=\"{$newcomp.hideLetter|default:\"0\"}\">\r\n\r\n<div><em> Here is your Letter!</em> Take a minute to review your letter to Make sure that you are satisfied with the invitation you will be sending to the other competitors.<br /><br /></div>\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:{if $newcomp.hideLetter eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<br />\r\n	<div style=\"margin:10px;padding:17px;\" class=\"notepaperBG\">\r\n		{eval var=$invitationLetter|nl2br}\r\n	</div>\r\n</div>\r\n<br />\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n<br />\r\n\r\n<a name=\"invitations\" />\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'enterEmails\', \'hideEnterEmails\', \'showHide\');\"><img id=\"enterEmails_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideEnterEmails}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Invite Some Competitors:</h2>\r\n	<input type=\"hidden\" id=\"hideEnterEmails\" name=\"newcomp[hideEnterEmails]\" value=\"{$newcomp.hideEnterEmails|default:\"0\"}\">\r\n\r\n<div>Enter a contact name and email address for each person you would like to invite into this competition. Don\'t worry about gathering everyone\'s email address right now, you can always add more later.<br /><br /></div>\r\n\r\n<div id=\"enterEmails\" style=\"display:{if $newcomp.hideEnterEmails eq \"1\"}none{else}block{/if};\">\r\n	<div class=\"pixel underline2\">&nbsp;</div>\r\n	<div id=\"inviteList\">\r\n	<table align=\"center\" style=\"margin:10px;\">\r\n	<tr>\r\n		<td><div>&nbsp;</div></td>\r\n		<td><h3 class=\"withBG\">Name</h2></td>\r\n		<td><h3 class=\"withBG\">E-Mail</h2></td>\r\n		<td><h3 class=\"withBG\">Your Relation</h2></td>\r\n	</tr> \r\n	{section name=\"contactLoop\" loop=$addCount}  {* $addCount is assigned by the handler... *}\r\n	<tr>\r\n		<td><div>#{$smarty.section.contactLoop.iteration}</div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n		<td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][{$smarty.section.contactLoop.iteration}]\"></div></td>\r\n	</tr>\r\n	{/section}\r\n	</table>\r\n	</div>\r\n	\r\n	<div align=\"right\" style=\"margin-right:30px;\">\r\n		<a href=\"javascript://\" onclick=\"addEmailRows();return false;\">&gt; Click to add more now! &lt;</a>\r\n	</div>\r\n</div>\r\n<div class=\"pixel underline2\">&nbsp;</div>\r\n\r\n\r\n<script language=\"javascript\">\r\n	var addCount = {$addCount};\r\n	{literal}\r\n	function addEmailRows() {\r\n		addCount++;\r\n		var obj = document.getElementById(\'inviteList\');\r\n		var html = obj.innerHTML;\r\n		html = html.replace(/\\<\\/TABLE\\>/i, \'\');\r\n		html += \'<tr><td><div>#\'+addCount+\'</div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][name][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" style=\"width:200px;\" name=\"newcomp[invite][email][\'+addCount+\']\"></div></td><td><div><input type=\"text\" class=\"textInput\" name=\"newcomp[invite][relation][\'+addCount+\']\"></div></td></tr></table>\';\r\n		obj.innerHTML = html;\r\n	}\r\n	{/literal}\r\n</script>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	{if $prev.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_back.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$prev.pageName}\';\">&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\" onclick=\"pg.value=\'{$next.pageName}\';\">{/if}	\r\n</div>\r\n\r\n</form>'),