(2960,98,1.89,'smarty','0','Testing new survey availability display for surveys available at a later time today.',1105398740,2,'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=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</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+60|date_format2:\"g:s 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}'),(2602,169,0.16,'smarty','0','added content',1102054167,16,'128.187.0.164','<h1 class=\"withBG\">Problem</h1>\r\n\r\n<p>Obesity and obesity related diseases cost American businesses $32 billion in actual medical costs, and billions more due to decreased productivity, increased sick days, and higher turnover.\r\nThat translates to a range of $330 - $506 per overweight employee – that money is \"waisted\", not \"lost\".  </p>\r\n\r\n<p>Don\'t think you can\'t get it back – many obese and overweight people are on medications to treat high blood pressure, type II diebetes, cholesterol, and other preventable conditions.  Most people who lose weight will realize an immediate savings to you by no longer needing to take those medications.</p>\r\n\r\n<p>So that is what we are here for – to help you recapture the money that is literally \"waisted\".</p>\r\n\r\n<p><em>Moral Hazard-</em> the possibility of loss arising from the character or circumstances of the parties involved \r\n\r\nThe current position of an insured employee is to receive maximum benefit or coverage from the health plan.  Little or no effort is given on the part of the employee to maintain health for economic reasons.  Therefore, the employer and the insurance company always lose, while the employee benefits in the short run.  In essence, a great \"Moral Hazard\" exists with regard to the employee and the insurance company and employer – the employee has no economic incentive to maintain good health, which actually is one of the causes for higher insurance costs to you. In this sense, the employee is not apart of a balanced equation between the employer and insurance provider.</p>\r\n\r\n<p>Cost – hundreds of dollars a year per employee are lost as a result of overweight and obese employees.  An average company with a headcount of 1,000 employees loses between $330,000 and $506,000 a year on extra costs associated with unhealthy employees.\r\n</p>\r\n\r\n<p> What can you do?  <a href=\"?pg=solution\"> Solution </a></p>'),(2603,169,0.17,'smarty','0','added em tags',1102054255,16,'128.187.0.164','<h1 class=\"withBG\">Problem</h1>\r\n\r\n<p><em>Obesity</em> and obesity related diseases cost American businesses $32 billion in actual medical costs, and billions more due to decreased productivity, increased sick days, and higher turnover.\r\nThat translates to a range of $330 - $506 per overweight employee – that money is \"waisted\", not \"lost\".  </p>\r\n\r\n<p>Don\'t think you can\'t get it back – many obese and overweight people are on medications to treat high blood pressure, type II diebetes, cholesterol, and other preventable conditions.  Most people who lose weight will realize an immediate savings to you by no longer needing to take those medications.</p>\r\n\r\n<p>So that is what we are here for – to help you recapture the money that is literally \"waisted\".</p>\r\n\r\n<p><em>Moral Hazard -</em> the possibility of loss arising from the character or circumstances of the parties involved \r\n\r\nThe current position of an insured employee is to receive maximum benefit or coverage from the health plan.  Little or no effort is given on the part of the employee to maintain health for economic reasons.  Therefore, the employer and the insurance company always lose, while the employee benefits in the short run.  In essence, a great \"Moral Hazard\" exists with regard to the employee and the insurance company and employer – the employee has no economic incentive to maintain good health, which actually is one of the causes for higher insurance costs to you. In this sense, the employee is not apart of a balanced equation between the employer and insurance provider.</p>\r\n\r\n<p><em>Cost –</em> hundreds of dollars a year per employee are lost as a result of overweight and obese employees.  An average company with a headcount of 1,000 employees loses between $330,000 and $506,000 a year on extra costs associated with unhealthy employees.\r\n</p>\r\n\r\n<p> What can you do?  <a href=\"?pg=solution\"> Solution </a></p>'),(2604,171,0.19,'smarty','0','added content',1102054479,16,'128.187.0.164','<h1 class=\"withBG\">Products</h1>\r\n\r\n<h2> Wellness Competitions</h2>\r\n\r\n<p>Using eHealthCompete company wellness directors can create, monitor and host company sponsored health competitions.  These competitions bring the much needed element of motivation and fun into the health picture.</p>\r\n<p>Stop using paper and pencil or Excel as the means to track the wellness competitions you currently run.  Give your employees a real tool to view their progress and see their results.  Using eHealthCompete will automate your current tasks, and motivate your employees.</p>\r\n<p>Many different competitions styles can be created to fit your needs, including % of body weight lost, Exercise minutes, Exercise distance or total weight lost.</p>\r\n<p>Team or individual competitions can be customized to help include every employee in your company.</p>\r\n<p>Competition features include: a real time leader board, informative progress graphs, goal management, discussion board, health calculators, news, weight loss and exercise tips, recipes, and more.</p>\r\n<p>Group stats are displayed to show the overall progress of the company, and provide your management with measurable results.</p>\r\n\r\n<h2>Incentive Programs</h2>\r\n<p>Each Employee will receive their own personal wellness center, where they can track their efforts in Exercise, Nutrition and General Lifestyle.</p>\r\n<p>As employees participate they receive points that can be redeemed for incentives that you provide.  By rewarding your employees for their healthy choices you will demonstrate your commitment to their overall well being.  This can help reduce turnover in your company.</p>\r\n<p>The incentive program comes with the ability to survey your employee population based on whatever criteria you want.  Our survey engine will distribute, collect and display the results of your survey - eliminating the paper based methods you have used in the past.</p>\r\n\r\n<h2>Now What?</h2>\r\n<a href=\"?pg=contact\">Contact us</a> for more information on how your company can benefit from eHealthCompete!'),(2365,167,0.14,'smarty','1','Page created.',1098317196,3,'24.10.224.224','<h1 class=\"underline\">Newsletter Opt Out</h1>\r\n<form action=\"index.php\" method=\"POST\" name=\"optOutForm\">\r\n<input type=\"hidden\" name=\"pg\" value=\"newsletter/removed\">\r\n<div style=\"margin:20px 20px 0px 20px;\"><span>\r\nThis form will add you to our opt-out database so you will not receive any more newsletter emails.<br />\r\nPlease enter your email address below, and then click \"Opt Out\".<br />\r\n<br />\r\n<table align=\"center\">\r\n<tr>\r\n	<td><span><strong>Email Address</strong>: </span></td>\r\n	<td><input type=\"text\" name=\"removeEmail\" value=\"\" size=\"30\"></td>\r\n</tr>\r\n<tr>\r\n	<td colspan=2 align=\"center\"><input type=\"submit\" value=\"Opt Out\" /></td>\r\n</tr>\r\n</table>\r\n</span></div>\r\n</form>\r\n'),(2366,168,0.12,'smarty','0','Page created.',1098317323,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n\r\n'),(2367,168,0.13,'smarty','0','Page created.',1098317539,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n{if $success.isOptOut eq \"\"}{redirect href=\"index.php?pg=newsletter/optout\"}{/if}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n\r\n'),(2368,168,0.14,'smarty','0','Page created.',1098317580,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n{if $success.isOptOut eq \"\"}{redirect href=\"index.php?pg=newsletter/optout\"}{/if}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n'),(2369,168,0.15,'smarty','0','Page created.',1098317682,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n{* if $success.isOptOut eq \"\"}{redirect href=\"index.php?pg=newsletter/optout\"}{/if *}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n'),(2370,168,0.16,'smarty','0','Page created.',1098317790,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n{if $success|@count eq 0}{redirect href=\"index.php?pg=newsletter/optout\"}{/if}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n'),(2371,168,0.17,'smarty','0','Page created.',1098317867,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n{if $success|@count eq 0}{redirect href=\"index.php?pg=newsletter/optout\"}{/if}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n\r\n<div class=\"hBar\" style=\"text-align:right;\"><a class=\"link\" href=\"?pg=home\">Home</a></div>'),(2372,168,0.18,'smarty','0','Page created.',1098317886,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n{if $success|@count eq 0}{redirect href=\"index.php?pg=newsletter/optout\"}{/if}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\"><a class=\"link\" href=\"?pg=home\">Home</a></div>'),(2373,168,0.19,'smarty','1','Page created.',1098317909,3,'24.10.224.224','{include_php file=\"shared_handle:optout\"}\r\n{if $success|@count eq 0}{redirect href=\"index.php?pg=newsletter/optout\"}{/if}\r\n<h1 class=\"underline\">Your Address Has Been Removed</h1>\r\n\r\n<p>Your email address has been added to our Opt-out table, you will no longer recieve any newsletters from us.</p>\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\"><a class=\"link\" href=\"?pg=home\">Back To Home..</a></div>'),(2377,165,0.40,'smarty','0','Page created.',1098318550,3,'24.10.224.224','{if $smarty.request.fromEmail neq \"\"}{include_php file=\"shared_handle:multiMail\"}{/if}\r\n{assign var=\"hideWidgets\" 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<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:800px;\" /><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 />\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>'),(2380,165,0.43,'smarty','0','Page created.',1098318629,3,'24.10.224.224','{if $smarty.request.fromEmail neq \"\"}{include_php file=\"shared_handle:multiMail\"}{/if}\r\n{assign var=\"hideWidgets\" 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<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>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>');
INSERT INTO `_page_history` VALUES (4361,138,0.73,'smarty','0','flashgraph v2 date range now working.',1127175640,3,'216.194.127.150','{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	{assign var=\"vanityStyle\" value=\"`$skinFolder`styles/`$smarty.session.company.companyVanity`.css\"}\r\n	{if $vanityStyle|file_exists}<link rel=\"stylesheet\" href=\"{$vanityStyle}\" type=\"text/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{include_php file=\"shared_handle:assignGraphBackNextTimes\"}\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<div style=\"position:absolute;top:0px;right:0px;\">\r\n	<small><i>{$graphTimeFrom|date_format2:\"M jS\"|replace:\" \":\"&nbsp;\"}-{$graphTimeUntil|date_format2:\"M jS, y\"|replace:\" \":\"&nbsp;\"}</i></small>\r\n</div>\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 \"chad\" OR $user->username eq \"trave\" 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 $user->username eq \"trave\"}\r\n{capture name=\"graphLink\"}?pg=flashgraph-frame&format=small&userIds={$smarty.request.userIds}&esId={$smarty.request.esId}&type={$smarty.request.type|niceText|htmlspecialchars}&precision={$smarty.request.precision|default:1}{/capture}\r\n<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr>\r\n	<td nowrap=\"nowrap\">{if $graphTimeBack}<a href=\"{$smarty.capture.graphLink}&graphTime={$graphTimeBack}\"><small>back (<i>{$graphTimeBack|date_format2:\"M jS, Y\"}</i>)</small></a>{/if}</td>\r\n	<td width=\"100%\" align=\"center\">&nbsp;\r\n	{if $acm->isDomainAdmin() && $user->username neq \"trave\"}\r\n		{$smarty.request.gParams}\r\n		{assign var=\"debugUrl\" value=$url|regex_replace:\"/.*\\?/\":\"?pg=flashgraph&\"}\r\n		<a href=\"{$debugUrl}\" target=\"_blank\">Source</a> | <a href=\"{$debugUrl}&debug=1\" target=\"_blank\">Debugger</a>\r\n	{/if}</td>\r\n	<td nowrap=\"nowrap\">{if $graphTimeNext}<a href=\"{$smarty.capture.graphLink}&graphTime={$graphTimeNext}\"><small>forward (<i>{$graphTimeNext|date_format2:\"M jS, Y\"}</i>)</small></a>{/if}</td>\r\n</tr>\r\n</table>\r\n{/if}\r\n</body></html>'),(2075,131,0.73,'smarty','0','Replaced distanceRun with distanceExercised.',1089223617,2,'67.166.75.203','{* getProfile is included by getStats *}\r\n{include_php file=\"shared_handle:getStats\"}\r\n\r\n<h1 class=\"underline\">My Statistics - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\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=\"middle\">\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		</div>\r\n	</td>\r\n	<td align=\"center\">\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=\"220\" scrollbars=\"no\"></iframe><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	<td valign=\"middle\" align=\"center\">\r\n		<h2 style=\"text-align:center;\"><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\r\n<h2 class=\"withBG\">Weekly Overview and Updates</h2>\r\n<div>This is your Weight Loss Journal. To update your stats for the day or week, click on the appropriate week (column heading) below and a new window will open for you to enter your daily data.</div><br />\r\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td valign=\"top\" align=\"right\">\r\n	<div style=\"text-align:right;width:120px;height:39px;border-right:#000 1px solid;border-bottom:#000 1px solid;\">Click&nbsp;to&nbsp;Update&nbsp;-&gt;&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Weight</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Weight&nbsp;Lost</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>BMI</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Calories</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Carbs</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Fat</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Exercise</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Distance&nbsp;Run</b>&nbsp;</div>\r\n	</td>\r\n	<td valign=\"top\" align=\"left\">\r\n	<div style=\"width:569px;text-align:left;\"><iframe src=\"?pg=myprofile/statsframe&cid={$smarty.get.cid}&userId={$userProfile.id}#recent\" frameborder=\"0\" width=\"569\" height=\"302\" scrollbars=\"auto\"></iframe></div></td>\r\n</tr>\r\n</table>\r\n<br />\r\n(Note: The daily weight loss journal opens up in a new window so if you have a popup blocker you may need to disable it. &nbsp; Once you are finished and have returned to this page, you will need to click your browsers refresh button in order to see these values updated.)\r\n\r\n<br />\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=myhome\" class=\"link\">Back To My Home</a>\r\n</div>\r\n\r\n\r\n\r\n\r\n'),(2504,99,3.25,'smarty','0','and then some more.',1100764466,3,'24.10.224.224','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/comp_layout2.tpl\"}\r\n{if $competition.userId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	{include_php file=\"shared_handle:competition.manageTeams\"}\r\n	{include_php file=\"shared_handle:competition.managePlayers\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition.load\"}\r\n{include_php file=\"shared_handle:competition.verifyInitialPot\"}\r\n<div id=\"jackpot\">${$competition.potAmount|number_format:2}</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 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>${$competition.potAmount|number_format:2}</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			<hr />\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{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small>(${$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 and $acm->isDomainAdmin()}\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}<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 $weelyWinnersMethod1 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 $weelyWinnersMethod1 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		{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			{if $smarty.foreach.method2.iteration gt 3 OR $userValue lte 0}<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 $weelyWinnersMethod2 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 $weelyWinnersMethod2 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\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><a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&totalChange=1&format=wide\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&format=wide\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=fat&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=calories&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=carbs&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Carb Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=minutesExercise&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Exercise Minutes</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=distanceExercised&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Distance Exercised</a>\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\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=\"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=\"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				<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		{/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> *}'),(3191,208,0.12,'smarty','0','Page created.',1109647220,2,'144.35.254.5','<h1>{$page.title}</h1>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"tips\"\r\n	Profile=\"all_tips\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"recipe_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"recipe_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\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'),(3192,208,0.13,'smarty','0','Page created.',1109647438,2,'144.35.254.5','<h1>{$page.title}</h1>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"tips\"\r\n	Profile=\"all_tips\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"tips_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"recipe_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\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'),(1777,131,0.53,'smarty','0','fixed heights, etc.',1088020271,3,'67.166.74.140','<h1 class=\"underline\">My Statistics - {$user->firstName}</h1>\r\n<br />\r\n{* getProfile is included by getStats *}\r\n{include_php file=\"shared_handle:getStats\"}\r\n\r\n<table border=\"0\"><tr><td>\r\n\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</div>\r\n\r\n</td><td>&nbsp;&nbsp;</td><td valign=\"top\">\r\n\r\n<div>This is your statistics history page, if you want to update your stats for the week, click on the appropriate column heading and a new window will open for you to enter your daily data.</div>\r\n\r\n</td></tr></table>\r\n<br />\r\n\r\n<h2 class=\"withBG\">Weekly Overview and Updates</h2>\r\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td valign=\"top\">\r\n	<div style=\"text-align:right;width:120px;height:39px;border-right:#000 1px solid;border-bottom:#000 1px solid;\">Click&nbsp;to&nbsp;Update&nbsp;-&gt;&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Weight</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Weight&nbsp;Lost</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>BMI</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Calories</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Carbs</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Fat</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Exercise</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Distance&nbsp;Run</b>&nbsp;</div>\r\n	</td>\r\n	<td valign=\"top\">\r\n	<div style=\"width:569px;\"><iframe src=\"?pg=myprofile/statsframe&cid={$smarty.get.cid}#recent\" frameborder=\"0\" width=\"569\" height=\"302\" scrollbars=\"auto\"></iframe></div></td>\r\n</tr>\r\n</table>\r\n\r\n\r\n\r\n\r\n\r\n'),(4364,138,0.76,'smarty','0','flashgraph v2 date range now working.',1127176561,3,'216.194.127.150','{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	{assign var=\"vanityStyle\" value=\"`$skinFolder`styles/`$smarty.session.company.companyVanity`.css\"}\r\n	{if $vanityStyle|file_exists}<link rel=\"stylesheet\" href=\"{$vanityStyle}\" type=\"text/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{include_php file=\"shared_handle:assignGraphBackNextTimes\"}\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<div style=\"position:absolute;top:0px;right:0px;\">\r\n	<small><i>{$graphTimeFrom|date_format2:\"M jS, y\"|replace:\" \":\"&nbsp;\"} - {$graphTimeUntil|date_format2:\"M jS, y\"|replace:\" \":\"&nbsp;\"}</i></small>\r\n</div>\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 \"chad\" OR $user->username eq \"trave\" 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 $user->username eq \"trave\"}\r\n{capture name=\"graphLink\"}?pg=flashgraph-frame&format=small&userIds={$smarty.request.userIds}&esId={$smarty.request.esId}&type={$smarty.request.type|niceText|htmlspecialchars}&precision={$smarty.request.precision|default:1}{/capture}\r\n<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr>\r\n	<td nowrap=\"nowrap\">{if $graphTimeBack}<a href=\"{$smarty.capture.graphLink}&graphTime={$graphTimeBack}\"><small>back (<i style=\"font-weight:normal;\">{$graphTimeBack|date_format2:\"M jS, y\"}</i>)</small></a>{/if}</td>\r\n	<td width=\"100%\" align=\"center\">&nbsp;\r\n	{if $acm->isDomainAdmin() && $user->username neq \"trave\"}\r\n		{$smarty.request.gParams}\r\n		{assign var=\"debugUrl\" value=$url|regex_replace:\"/.*\\?/\":\"?pg=flashgraph&\"}\r\n		<a href=\"{$debugUrl}\" target=\"_blank\">Source</a> | <a href=\"{$debugUrl}&debug=1\" target=\"_blank\">Debugger</a>\r\n	{/if}</td>\r\n	<td nowrap=\"nowrap\">{if $graphTimeNext}<a href=\"{$smarty.capture.graphLink}&graphTime={$graphTimeNext}\"><small>forward (<i style=\"font-weight:normal;\">{$graphTimeNext|date_format2:\"M jS, y\"}</i>)</small></a>{/if}</td>\r\n</tr>\r\n</table>\r\n{/if}\r\n</body></html>'),(4366,138,0.78,'smarty','0','flashgraph v2 date range now working.',1127178836,3,'216.194.127.150','{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	{assign var=\"vanityStyle\" value=\"`$skinFolder`styles/`$smarty.session.company.companyVanity`.css\"}\r\n	{if $vanityStyle|file_exists}<link rel=\"stylesheet\" href=\"{$vanityStyle}\" type=\"text/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{include_php file=\"shared_handle:assignGraphBackNextTimes\"}\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<div style=\"position:absolute;top:0px;right:0px;\">\r\n	<small><i>{$graphTimeFrom|date_format2:\"M jS, y\"|replace:\" \":\"&nbsp;\"} - {$graphTimeUntil|date_format2:\"M jS, y\"|replace:\" \":\"&nbsp;\"}</i></small>\r\n</div>\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 true 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 true OR $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 $user->username eq \"trave\"}\r\n{capture name=\"graphLink\"}?pg=flashgraph-frame&format=small&userIds={$smarty.request.userIds}&esId={$smarty.request.esId}&type={$smarty.request.type|niceText|htmlspecialchars}&precision={$smarty.request.precision|default:1}{/capture}\r\n<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr>\r\n	<td nowrap=\"nowrap\">{if $graphTimeBack}<a href=\"{$smarty.capture.graphLink}&graphTime={$graphTimeBack}\"><small>back <i style=\"font-weight:normal;\">({$graphTimeBack|date_format2:\"M jS, y\"})</i></small></a>{/if}</td>\r\n	<td width=\"100%\" align=\"center\">&nbsp;\r\n	{if $acm->isDomainAdmin() && $user->username neq \"trave\"}\r\n		{$smarty.request.gParams}\r\n		{assign var=\"debugUrl\" value=$url|regex_replace:\"/.*\\?/\":\"?pg=flashgraph&\"}\r\n		<a href=\"{$debugUrl}\" target=\"_blank\">Source</a> | <a href=\"{$debugUrl}&debug=1\" target=\"_blank\">Debugger</a>\r\n	{/if}</td>\r\n	<td nowrap=\"nowrap\">{if $graphTimeNext}<a href=\"{$smarty.capture.graphLink}&graphTime={$graphTimeNext}\"><small>forward <i style=\"font-weight:normal;\">({$graphTimeNext|date_format2:\"M jS, y\"})</i></small></a>{/if}</td>\r\n</tr>\r\n</table>\r\n{/if}\r\n</body></html>'),(2510,104,0.37,'smarty','0','changed form name, and javascript call',1101144850,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\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<h1 class=\"underline\">Sign Up - Complete!</h1>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n{include_php file=\"shared_handle:signup.terms\"}\r\n{include_php file=\"shared_handle:signup.profile\"}\r\n\r\n<div>\r\n\r\n<form name=\"signupForm\" method=\"GET\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"home\">\r\n<input type=\"hidden\" name=\"email\" value=\"{$signup.email}\">\r\n\r\n<p>A new message has been added in your Message Center, click the <b>\'Continue\'</b> button below to start brawling!</p>\r\n\r\n<h2 class=\"withBG\">Sign up for our Newsletter?</h2>\r\n<p>Weightlosswars periodically sends its users useful tips and advice from the weightloss 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<br />\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	<a href=\"javascript://\" onclick=\"document.signupForm.submit();\"><img src=\"{$skinFolder}images/btn_continue.gif\" border=\"0\" alt=\"Click Here\" /></a>\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(2511,104,0.38,'smarty','0','changed form name, and javascript call',1101145315,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\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<h1 class=\"underline\">Sign Up - Complete!</h1>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n{include_php file=\"shared_handle:signup.terms\"}\r\n{include_php file=\"shared_handle:signup.profile\"}\r\n\r\n<div>\r\n\r\n<form name=\"signupForm\" method=\"GET\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"home\">\r\n<input type=\"hidden\" name=\"email\" value=\"{$signup.email}\">\r\n\r\n<p>A new message has been added in your Message Center, click the <b>\'Continue\'</b> button below to start brawling!</p>\r\n\r\n<h2 class=\"withBG\">Sign up for our Newsletter?</h2>\r\n<p>Weightlosswars periodically sends its users useful tips and advice from the weightloss 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<br />\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	<a href=\"javascript://document.signupForm.submit();\"><img src=\"{$skinFolder}images/btn_continue.gif\" border=\"0\" alt=\"Click Here\" /></a>\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(2512,104,0.39,'smarty','0','changed form name, and javascript call',1101145703,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\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<h1 class=\"underline\">Sign Up - Complete!</h1>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n{include_php file=\"shared_handle:signup.terms\"}\r\n{include_php file=\"shared_handle:signup.profile\"}\r\n\r\n<div>\r\n\r\n<form name=\"signupForm\" method=\"GET\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"home\">\r\n<input type=\"hidden\" name=\"email\" value=\"{$signup.email}\">\r\n\r\n<p>A new message has been added in your Message Center, click the <b>\'Continue\'</b> button below to start brawling!</p>\r\n\r\n<h2 class=\"withBG\">Sign up for our Newsletter?</h2>\r\n<p>Weightlosswars periodically sends its users useful tips and advice from the weightloss 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<br />\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	<input type=\"image\" src=\"{$skinFolder}images/btn_continue.gif\" border=\"0\" alt=\"Click Here\" onclick=\"document.signupForm.submit();\" />\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(2513,104,0.40,'smarty','0','changed form name, and javascript call',1101145867,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\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<h1 class=\"underline\">Sign Up - Complete!</h1>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n{include_php file=\"shared_handle:signup.terms\"}\r\n{include_php file=\"shared_handle:signup.profile\"}\r\n\r\n<div>\r\n\r\n<form name=\"signupForm\" method=\"POST\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"home\">\r\n<input type=\"hidden\" name=\"email\" value=\"{$signup.email}\">\r\n\r\n<p>A new message has been added in your Message Center, click the <b>\'Continue\'</b> button below to start brawling!</p>\r\n\r\n<h2 class=\"withBG\">Sign up for our Newsletter?</h2>\r\n<p>Weightlosswars periodically sends its users useful tips and advice from the weightloss 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<br />\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	<input type=\"image\" src=\"{$skinFolder}images/btn_continue.gif\" border=\"0\" alt=\"Click Here\" onclick=\"document.signupForm.submit();\" />\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(2514,126,0.19,'smarty','0','Added acceptance text, and fixed second radio button.',1101146455,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\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{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\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\r\n<h2 class=\"withBG\">Sign up for our Newsletter?</h2>\r\n<p>Weightlosswars periodically sends its users useful tips and advice from the weightloss 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>'),(2515,104,0.41,'smarty','0','changed form name, and javascript call',1101146548,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n\r\n{include_php file=\"shared_handle:newsletter\"}\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<h1 class=\"underline\">Sign Up - Complete!</h1>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n{include_php file=\"shared_handle:signup.terms\"}\r\n{include_php file=\"shared_handle:signup.profile\"}\r\n\r\n<div>\r\n\r\n<p>A new message has been added in your Message Center, click the <b>\'Continue\'</b> button below to start brawling!</p>\r\n\r\n<br />\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	<a href=\"?pg=home\"><img src=\"{$skinFolder}images/btn_continue.gif\" border=\"0\" alt=\"Click Here\" /></a>\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(2516,104,0.42,'smarty','0','changed form name, and javascript call',1101146778,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\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<h1 class=\"underline\">Sign Up - Complete!</h1>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n{include_php file=\"shared_handle:signup.terms\"}\r\n{include_php file=\"shared_handle:signup.profile\"}\r\n\r\n<div>\r\n\r\n<p>A new message has been added in your Message Center, click the <b>\'Continue\'</b> button below to start brawling!</p>\r\n\r\n<br />\r\n<div class=\"hBox\" align=\"right\">\r\n	<br />\r\n	<a href=\"?pg=home\"><img src=\"{$skinFolder}images/btn_continue.gif\" border=\"0\" alt=\"Click Here\" /></a>\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(2517,126,0.20,'smarty','0','added the newsletter signup on this step',1101146845,3,'24.10.224.224','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\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{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\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>Weightlosswars periodically sends its users useful tips and advice from the weightloss 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>'),(2518,99,3.31,'smarty','0','removed isDomainAdmin check for Weekly Winners ( weely sinners )',1101150811,3,'24.10.224.224','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/comp_layout2.tpl\"}\r\n{if $competition.userId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	{include_php file=\"shared_handle:competition.manageTeams\"}\r\n	{include_php file=\"shared_handle:competition.managePlayers\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition.load\"}\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	{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{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small style=\"color:#F90;\">(${$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}<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}<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\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><a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&totalChange=1&format=wide\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&format=wide\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=fat&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=calories&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=carbs&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Carb Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=minutesExercise&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Exercise Minutes</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=distanceExercised&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Distance Exercised</a>\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\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=\"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=\"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				<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		{/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> *}'),(1439,130,0.30,'smarty','0','added BMI ranges',1087010920,16,'64.85.237.174','{* *** Container Table *** *}<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\nNote: You must have Javascript enabled to use these calculators.\r\n<br/>\r\n\r\n<div class=\"chunk300\" style=\"width:315px;\">\r\n<h2 class=\"withBG\">Target Weight</h2>\r\n<form name=\"TargetWeightForm\" method=\"post\" style=\"margin:0px;\">\r\n	Calculate your target weight by filling out the information below and clicking \"Calculate\"<br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"pctBdyFat\">Percent Body Fat</label> <input id=\"pctBdyFat\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"percentBodyFat\" value=\"\"><br />\r\n	<label for=\"wght\">Current Weight</label> <input id=\"wght\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"weight\" value=\"{$userProfile.initialWeight}\"><br />\r\n	<label for=\"dsrdBdyFat\">Desired Percent Body Fat</label> <input id=\"dsrdBdyFat\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"desiredBodyFat\" value=\"\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<a href=\"javascript:calculateTargetWeight();\" class=\"button\">Calculate</a>\r\n	<label for=\"trgtWghtTxt\"><textarea name=\"TargetWeightText\" disabled=\"disabled\" style=\"margin-top:5px;width:305px;height:100px;\"></textarea>\r\n	<br/>\r\n	<dl>\r\n	<dt>Percentage of body fat falls into these ranges:</dt>\r\n		<dd>Decreased health risk for men is less than 25%</dd>\r\n		<dd>Decreased health risk for women is less than 32%</dd>\r\n		<dd>Optimal fitness performance for men is less than 15%</dd>\r\n		<dd>Optimal performance for women is less than 23%</dd>\r\n	</dl>\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Body Mass Index</h2>\r\n<form name=\"BMIForm\" method=\"post\" style=\"margin:4px;\">\r\n	Calculate your BMI by filling out the information below and clicking \"Calculate\"<br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"weightlbs\">Weight in lbs</label> <input id=\"weightlbs\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"weightlbs\" value=\"{$userProfile.initialWeight}\"><br />\r\n	<label for=\"height\">Height in inches</label> <input type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"height\" value=\"{$userProfile.height}\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<label for=\"BMIText\">Body Mass Index</label> <input type=\"text\" size=\"4\" name=\"BMIText\" disabled=\"disabled\">\r\n	<a href=\"javascript:calculateBMI();\" class=\"button\">Calculate</a><br />\r\n\r\n	<dl>\r\n	<dt>BMI is the governments standard for measuring obesity, and falls into these ranges:</dt>\r\n		<dd>Normal = BMI less than 25</dd>\r\n		<dd>Overweight = BMI between 25 - 30</dd>\r\n		<dd>Obese = BMI over 30</dd>\r\n	</dl>\r\n\r\n\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Ideal Heart Rate Range</h2>\r\n<form name=\"HeartRangeForm\" method=\"post\" style=\"margin:4px;\">\r\n	Calculate your ideal heart rate range by entering your age and clicking \"Calculate\"<br /><br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"age\">Age</label> <input type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"age\" value=\"{$userProfile.age}\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<br />\r\n	<label for=\"heartRange\">Healthy Heart Range</label> <input type=\"text\" name=\"HeartRangeText\" size=\"6\" disabled=\"disabled\">\r\n	<a href=\"javascript:calculateHeartRange();\" class=\"button\">Calculate</a>\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\" style=\"width:315px;\">\r\n<h2 class=\"withBG\">Hip-to-Waist Ratio</h2>\r\n<form name=\"HipWaistForm\" method=\"post\" style=\"margin:0px;\">\r\n	Calculate your Hip-to-Waist ratio by filling out the information below and clicking \"Calculate\".<br />\r\n	<small>If you bend to the side, the place where your stomach creases is where you should measure your waist. Measure your hips around the largest part of your buttocks.</small><br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"waist\">Waist circumference in inches</label>\r\n	<input id=\"waist\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"waist\" value=\"\"><br />\r\n	<label for=\"hip\">Hip circumference in inches</label>\r\n	<input id=\"hip\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"hip\" value=\"\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<label for=\"hipWaistTxt\">Hip-to-Waist Ratio</label> \r\n	<input id=\"hipWaistTxt\" type=\"text\" name=\"HipWaistText\" size=\"6\" disabled=\"disabled\">\r\n	<a href=\"javascript:calculateHipWaistRatio();\" class=\"button\">Calculate</a>\r\n\r\n	<br/>\r\n	<dl style=\"text-align:left;\">\r\n	<dt>For men:</dt>\r\n		<dd>The ideal ratio is less than .85.</dd>\r\n		<dd>The desireable ratio is .85 - .94.</dd>\r\n		<dd>You are at risk at .95+</dd>\r\n	<dt>For women:</dt>\r\n		<dd>The ideal ratio is less than .75.</dd>\r\n		<dd>The desireable ratio is .75 - .79.</dd>\r\n		<dd>You are at risk at .8+</dd>\r\n	</dl>\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Calculate Calories</h2>\r\n<form name=\"CalorieForm\" method=\"post\" style=\"margin:4px;\">\r\n	Calculate the number of calories you need at rest and how many calories you have to cut out to lose a certain amount of weight by filling out the information below and clicking \"Calculate\".<br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"gender1\">Male</label> <input id=\"gender1\" type=\"radio\" name=\"gender\" value=\"male\"> \r\n	<label for=\"gender2\">Female</label> <input id=\"gender2\" type=\"radio\" name=\"gender\" value=\"female\"> &nbsp; &nbsp; &nbsp; \r\n	<label for=\"weightlbs\">Weight in lbs</label>\r\n	<input id=\"weightlbs\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"weightlbs\" value=\"{$userProfile.initialWeight}\"><br />\r\n	<label for=\"height\">Height in inches</label>\r\n	<input id=\"height\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"height\" value=\"{$userProfile.height}\"><br />\r\n	<label for=\"age\">Age</label>\r\n	<input id=\"age\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"age\" value=\"{$userProfile.age}\"><br />\r\n	<label for=\"poundsToLose\">Pounds to lose</label>\r\n	<input id=\"poundsToLose\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"poundsToLose\" value=\"\"><br />\r\n	<label for=\"days\">Number of days</label>\r\n	<input id=\"days\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"days\" value=\"\"><br />\r\n	<div class=\"overline pixel\" style=\"margin-bottom:5px;\">&nbsp;</div>\r\n	<a href=\"javascript:calculateCalories();\" class=\"button\">Calculate</a>\r\n	<textarea name=\"CalorieText\" style=\"width:290px;height:70px;margin-top:5px;\"></textarea>\r\n</form>\r\n</div>\r\n\r\n{* *** END CONTAINER TABLE *** *}\r\n</td></tr></table>\r\n\r\n<script language=\"JavaScript\" type=\"text/javascript\">\r\n{literal}\r\n\r\nfunction calculateBMI()\r\n{\r\n	var weight = document.BMIForm.weightlbs.value;\r\n	var height = document.BMIForm.height.value;\r\n\r\n	if (height == 0)\r\n	{\r\n		alert(\"You must enter a valid height!\");\r\n		return;\r\n	}\r\n\r\n	if (weight == 0)\r\n	{\r\n		alert(\"You must enter a valid weight!\");\r\n	}\r\n\r\n	var meters = height / 39.37;\r\n	var kilograms = weight / 2.2;\r\n\r\n	var metersSquared = Math.pow(meters, 2);\r\n	\r\n	var bmi = format_number(kilograms / metersSquared, 2);\r\n\r\n	document.BMIForm.BMIText.value = bmi;\r\n}\r\n\r\nfunction calculateHeartRange()\r\n{\r\n	var age = document.HeartRangeForm.age.value;\r\n\r\n	if (age == 0)\r\n	{\r\n		alert(\"You must enter a valid age!\");\r\n		return;\r\n	}\r\n\r\n	var maxHeartRange = 220 - age;\r\n\r\n	var targetLow = .6 * maxHeartRange;\r\n	var targetHigh = .9 * maxHeartRange;\r\n\r\n	document.HeartRangeForm.HeartRangeText.value = Math.round(targetLow) + \" - \" + Math.round(targetHigh);\r\n}\r\n\r\nfunction calculateTargetWeight()\r\n{\r\n	var percentBodyFat = document.TargetWeightForm.percentBodyFat.value;\r\n	var weight = document.TargetWeightForm.weight.value;\r\n	var desiredBodyFat = document.TargetWeightForm.desiredBodyFat.value;\r\n\r\n	if (percentBodyFat == 0)\r\n	{\r\n		alert(\"You must enter a valid Percent Body Fat\");\r\n		return;\r\n	}\r\n\r\n	if (weight == 0)\r\n	{\r\n		alert(\"You must enter a valid weight!\");\r\n		return;\r\n	}\r\n\r\n	if (desiredBodyFat == 0)\r\n	{\r\n		alert(\"You must enter a valid Desired Body Fat!\");\r\n		return;\r\n	}\r\n\r\n	var currentFatWeight = (percentBodyFat / 100) * weight;\r\n	var currentLeanBodyWeight = weight - currentFatWeight;\r\n	var targetWeight = currentLeanBodyWeight / (1 - (desiredBodyFat / 100));\r\n	var poundsToLose = weight - targetWeight;\r\n\r\n	var outputString = \"Current Fat Weight is \" + Math.round(currentFatWeight) + \" lbs.\" +\r\n						\"\\nCurrent Lean Body Weight is \" + Math.round(currentLeanBodyWeight) + \" lbs.\" +\r\n						\"\\nTarget Weight should be \" + Math.round(targetWeight) + \" lbs.\" +\r\n						\"\\n\\nYou need to lose \" + Math.round(poundsToLose) + \" lbs to reach the target weight.\";\r\n\r\n	document.TargetWeightForm.TargetWeightText.value = outputString;\r\n}\r\n\r\nfunction calculateHipWaistRatio()\r\n{\r\n	var waist = document.HipWaistForm.waist.value;\r\n	var hip = document.HipWaistForm.hip.value;\r\n\r\n	if (waist == 0)\r\n	{\r\n		alert(\"You must enter a valid waist size!\");\r\n		return;\r\n	}\r\n\r\n	if (hip == 0)\r\n	{\r\n		alert(\"You must enter a valid hip size!\");\r\n		return;\r\n	}\r\n\r\n	var ratio = format_number(waist / hip, 2);\r\n\r\n	document.HipWaistForm.HipWaistText.value = ratio;\r\n}\r\n\r\nfunction calculateCalories()\r\n{\r\n	var SEDENTARY = 1.1;\r\n	var LIGHT = 1.2;\r\n	var MODERATE = 1.3;\r\n	var ACTIVE = 1.4;\r\n\r\n	var weight = document.CalorieForm.weightlbs.value;\r\n	var height = document.CalorieForm.height.value;\r\n	var age = document.CalorieForm.age.value;\r\n	var poundsToLose = document.CalorieForm.poundsToLose.value;\r\n	var days = document.CalorieForm.days.value;\r\n\r\n	if (document.CalorieForm.gender[0].checked == true)\r\n	{\r\n		value = 5;\r\n	}\r\n	else if (document.CalorieForm.gender[1].checked == true)\r\n	{\r\n		value = -161;\r\n	}\r\n	else\r\n	{\r\n		alert(\"You must select a gender!\");\r\n		return;\r\n	}\r\n\r\n	if (weight == 0)\r\n	{\r\n		alert(\"You must enter a valid weight!\");\r\n		return;\r\n	}\r\n\r\n	if (height == 0)\r\n	{\r\n		alert(\"You must enter a valid height!\");\r\n		return;\r\n	}\r\n\r\n	if (age == 0)\r\n	{\r\n		alert(\"You must enter a valid age!\");\r\n		return;\r\n	}\r\n\r\n	if (poundsToLose == 0)\r\n	{\r\n		alert(\"You must enter a valid entry for how many pounds to lose!\");\r\n		return;\r\n	}\r\n\r\n	if (days == 0)\r\n	{\r\n		alert(\"You must enter a valid entry for how many days to lose the pounds in!\");\r\n		return;\r\n	}\r\n\r\n	var centimeters = (height / 39.37) * 100;\r\n	var kilograms = weight / 2.2;\r\n\r\n	var restingEnergyE = 0;\r\n\r\n	restingEnergyE = (value + (10 * kilograms) + (6.25 * centimeters) - (5 * age));\r\n	var caloriesToLose = poundsToLose * 3500;\r\n	var caloriesPerDay = caloriesToLose / days;\r\n\r\n	var outputString = \"The amount of calories you need at rest per activity level:\\n\\nSedentary: \" + Math.round((restingEnergyE * SEDENTARY)) + \r\n					   \"\\nLight: \" + Math.round((restingEnergyE * LIGHT)) +\r\n					   \"\\nModerate: \" + Math.round((restingEnergyE * MODERATE)) +\r\n					   \"\\nActive: \" + Math.round((restingEnergyE * ACTIVE)) + \r\n					   \"\\n\\nYou need to trim \" + Math.round(caloriesPerDay) + \" calories per day to lose \" + poundsToLose + \" lbs in \" + days + \" days.\";\r\n\r\n	document.CalorieForm.CalorieText.value = outputString;\r\n}\r\n\r\nfunction format_number(p,d) \r\n{\r\n  var r;\r\n  if(p<0){p=-p;r=format_number2(p,d);r=\"-\"+r;}\r\n  else   {r=format_number2(p,d);}\r\n  return r;\r\n}\r\nfunction format_number2(pnumber,decimals) \r\n{\r\n  var strNumber = new String(pnumber);\r\n  var arrParts = strNumber.split(\'.\');\r\n  var intWholePart = parseInt(arrParts[0],10);\r\n  var strResult = \'\';\r\n  if (isNaN(intWholePart))\r\n    intWholePart = \'0\';\r\n  if(arrParts.length > 1)\r\n  {\r\n    var decDecimalPart = new String(arrParts[1]);\r\n    var i = 0;\r\n    var intZeroCount = 0;\r\n     while ( i < String(arrParts[1]).length )\r\n     {\r\n       if( parseInt(String(arrParts[1]).charAt(i),10) == 0 )\r\n       {\r\n         intZeroCount += 1;\r\n         i += 1;\r\n       }\r\n       else\r\n         break;\r\n    }\r\n    decDecimalPart = parseInt(decDecimalPart,10)/Math.pow(10,parseInt(decDecimalPart.length-decimals-1)); \r\n    Math.round(decDecimalPart); \r\n    decDecimalPart = parseInt(decDecimalPart)/10; \r\n    decDecimalPart = Math.round(decDecimalPart); \r\n\r\n    //If the number was rounded up from 9 to 10, and it was for 1 \'decimal\' \r\n    //then we need to add 1 to the \'intWholePart\' and set the decDecimalPart to 0. \r\n\r\n    if(decDecimalPart==Math.pow(10, parseInt(decimals)))\r\n    { \r\n      intWholePart+=1; \r\n      decDecimalPart=\"0\"; \r\n    } \r\n    var stringOfZeros = new String(\'\');\r\n    i=0;\r\n    if( decDecimalPart > 0 )\r\n    {\r\n      while( i < intZeroCount)\r\n      {\r\n        stringOfZeros += \'0\';\r\n        i += 1;\r\n      }\r\n    }\r\n    decDecimalPart = String(intWholePart) + \".\" + stringOfZeros + String(decDecimalPart); \r\n    var dot = decDecimalPart.indexOf(\'.\');\r\n    if(dot == -1)\r\n    {\r\n      decDecimalPart += \'.\'; \r\n      dot = decDecimalPart.indexOf(\'.\'); \r\n    } \r\n    var l=parseInt(dot)+parseInt(decimals); \r\n    while(decDecimalPart.length <= l) \r\n    {\r\n      decDecimalPart += \'0\'; \r\n    }\r\n    strResult = decDecimalPart;\r\n  }\r\n  else\r\n  {\r\n    var dot; \r\n    var decDecimalPart = new String(intWholePart); \r\n\r\n    decDecimalPart += \'.\'; \r\n    dot = decDecimalPart.indexOf(\'.\'); \r\n    var l=parseInt(dot)+parseInt(decimals); \r\n    while(decDecimalPart.length <= l) \r\n    {\r\n      decDecimalPart += \'0\'; \r\n    }\r\n    strResult = decDecimalPart;\r\n  }\r\n  return strResult;\r\n}\r\n\r\n</script>  \r\n\r\n{/literal}\r\n</script>\r\n'),(1440,130,0.31,'smarty','0','added BMI ranges',1087011077,16,'64.85.237.174','{* *** Container Table *** *}<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\nNote: You must have Javascript enabled to use these calculators.\r\n<br/>\r\n\r\n<div class=\"chunk300\" style=\"width:315px;\">\r\n<h2 class=\"withBG\">Target Weight</h2>\r\n<form name=\"TargetWeightForm\" method=\"post\" style=\"margin:0px;\">\r\n	Calculate your target weight by filling out the information below and clicking \"Calculate\"<br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"pctBdyFat\">Percent Body Fat</label> <input id=\"pctBdyFat\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"percentBodyFat\" value=\"\"><br />\r\n	<label for=\"wght\">Current Weight</label> <input id=\"wght\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"weight\" value=\"{$userProfile.initialWeight}\"><br />\r\n	<label for=\"dsrdBdyFat\">Desired Percent Body Fat</label> <input id=\"dsrdBdyFat\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"desiredBodyFat\" value=\"\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<a href=\"javascript:calculateTargetWeight();\" class=\"button\">Calculate</a>\r\n	<label for=\"trgtWghtTxt\"><textarea name=\"TargetWeightText\" disabled=\"disabled\" style=\"margin-top:5px;width:305px;height:100px;\"></textarea>\r\n	<br/>\r\n	<dl style=\"text-align:left;\">\r\n	<dt>Percentage of body fat falls into these ranges:</dt>\r\n		<dd>Decreased health risk for men is less than 25%</dd>\r\n		<dd>Decreased health risk for women is less than 32%</dd>\r\n		<dd>Optimal fitness performance for men is less than 15%</dd>\r\n		<dd>Optimal performance for women is less than 23%</dd>\r\n	</dl>\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Body Mass Index</h2>\r\n<form name=\"BMIForm\" method=\"post\" style=\"margin:4px;\">\r\n	Calculate your BMI by filling out the information below and clicking \"Calculate\"<br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"weightlbs\">Weight in lbs</label> <input id=\"weightlbs\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"weightlbs\" value=\"{$userProfile.initialWeight}\"><br />\r\n	<label for=\"height\">Height in inches</label> <input type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"height\" value=\"{$userProfile.height}\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<label for=\"BMIText\">Body Mass Index</label> <input type=\"text\" size=\"4\" name=\"BMIText\" disabled=\"disabled\">\r\n	<a href=\"javascript:calculateBMI();\" class=\"button\">Calculate</a><br />\r\n\r\n	<dl style=\"text-align:left;\">\r\n	<dt>BMI is the governments standard for measuring obesity, and falls into these ranges:</dt>\r\n		<dd>Normal = BMI less than 25</dd>\r\n		<dd>Overweight = BMI between 25 - 30</dd>\r\n		<dd>Obese = BMI over 30</dd>\r\n	</dl>\r\n\r\n\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Ideal Heart Rate Range</h2>\r\n<form name=\"HeartRangeForm\" method=\"post\" style=\"margin:4px;\">\r\n	Calculate your ideal heart rate range by entering your age and clicking \"Calculate\"<br /><br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"age\">Age</label> <input type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"age\" value=\"{$userProfile.age}\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<br />\r\n	<label for=\"heartRange\">Healthy Heart Range</label> <input type=\"text\" name=\"HeartRangeText\" size=\"6\" disabled=\"disabled\">\r\n	<a href=\"javascript:calculateHeartRange();\" class=\"button\">Calculate</a>\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\" style=\"width:315px;\">\r\n<h2 class=\"withBG\">Hip-to-Waist Ratio</h2>\r\n<form name=\"HipWaistForm\" method=\"post\" style=\"margin:0px;\">\r\n	Calculate your Hip-to-Waist ratio by filling out the information below and clicking \"Calculate\".<br />\r\n	<small>If you bend to the side, the place where your stomach creases is where you should measure your waist. Measure your hips around the largest part of your buttocks.</small><br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"waist\">Waist circumference in inches</label>\r\n	<input id=\"waist\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"waist\" value=\"\"><br />\r\n	<label for=\"hip\">Hip circumference in inches</label>\r\n	<input id=\"hip\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"hip\" value=\"\"><br />\r\n	<div class=\"overline\">&nbsp;</div>\r\n	<label for=\"hipWaistTxt\">Hip-to-Waist Ratio</label> \r\n	<input id=\"hipWaistTxt\" type=\"text\" name=\"HipWaistText\" size=\"6\" disabled=\"disabled\">\r\n	<a href=\"javascript:calculateHipWaistRatio();\" class=\"button\">Calculate</a>\r\n\r\n	<br/>\r\n	<dl style=\"text-align:left;\">\r\n	<dt>For men:</dt>\r\n		<dd>The ideal ratio is less than .85.</dd>\r\n		<dd>The desireable ratio is .85 - .94.</dd>\r\n		<dd>You are at risk at .95+</dd>\r\n	<dt>For women:</dt>\r\n		<dd>The ideal ratio is less than .75.</dd>\r\n		<dd>The desireable ratio is .75 - .79.</dd>\r\n		<dd>You are at risk at .8+</dd>\r\n	</dl>\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Calculate Calories</h2>\r\n<form name=\"CalorieForm\" method=\"post\" style=\"margin:4px;\">\r\n	Calculate the number of calories you need at rest and how many calories you have to cut out to lose a certain amount of weight by filling out the information below and clicking \"Calculate\".<br />\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<label for=\"gender1\">Male</label> <input id=\"gender1\" type=\"radio\" name=\"gender\" value=\"male\"> \r\n	<label for=\"gender2\">Female</label> <input id=\"gender2\" type=\"radio\" name=\"gender\" value=\"female\"> &nbsp; &nbsp; &nbsp; \r\n	<label for=\"weightlbs\">Weight in lbs</label>\r\n	<input id=\"weightlbs\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"weightlbs\" value=\"{$userProfile.initialWeight}\"><br />\r\n	<label for=\"height\">Height in inches</label>\r\n	<input id=\"height\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"height\" value=\"{$userProfile.height}\"><br />\r\n	<label for=\"age\">Age</label>\r\n	<input id=\"age\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"age\" value=\"{$userProfile.age}\"><br />\r\n	<label for=\"poundsToLose\">Pounds to lose</label>\r\n	<input id=\"poundsToLose\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"poundsToLose\" value=\"\"><br />\r\n	<label for=\"days\">Number of days</label>\r\n	<input id=\"days\" type=\"text\" class=\"textInputNotFixed\" size=\"3\" name=\"days\" value=\"\"><br />\r\n	<div class=\"overline pixel\" style=\"margin-bottom:5px;\">&nbsp;</div>\r\n	<a href=\"javascript:calculateCalories();\" class=\"button\">Calculate</a>\r\n	<textarea name=\"CalorieText\" style=\"width:290px;height:70px;margin-top:5px;\"></textarea>\r\n</form>\r\n</div>\r\n\r\n{* *** END CONTAINER TABLE *** *}\r\n</td></tr></table>\r\n\r\n<script language=\"JavaScript\" type=\"text/javascript\">\r\n{literal}\r\n\r\nfunction calculateBMI()\r\n{\r\n	var weight = document.BMIForm.weightlbs.value;\r\n	var height = document.BMIForm.height.value;\r\n\r\n	if (height == 0)\r\n	{\r\n		alert(\"You must enter a valid height!\");\r\n		return;\r\n	}\r\n\r\n	if (weight == 0)\r\n	{\r\n		alert(\"You must enter a valid weight!\");\r\n	}\r\n\r\n	var meters = height / 39.37;\r\n	var kilograms = weight / 2.2;\r\n\r\n	var metersSquared = Math.pow(meters, 2);\r\n	\r\n	var bmi = format_number(kilograms / metersSquared, 2);\r\n\r\n	document.BMIForm.BMIText.value = bmi;\r\n}\r\n\r\nfunction calculateHeartRange()\r\n{\r\n	var age = document.HeartRangeForm.age.value;\r\n\r\n	if (age == 0)\r\n	{\r\n		alert(\"You must enter a valid age!\");\r\n		return;\r\n	}\r\n\r\n	var maxHeartRange = 220 - age;\r\n\r\n	var targetLow = .6 * maxHeartRange;\r\n	var targetHigh = .9 * maxHeartRange;\r\n\r\n	document.HeartRangeForm.HeartRangeText.value = Math.round(targetLow) + \" - \" + Math.round(targetHigh);\r\n}\r\n\r\nfunction calculateTargetWeight()\r\n{\r\n	var percentBodyFat = document.TargetWeightForm.percentBodyFat.value;\r\n	var weight = document.TargetWeightForm.weight.value;\r\n	var desiredBodyFat = document.TargetWeightForm.desiredBodyFat.value;\r\n\r\n	if (percentBodyFat == 0)\r\n	{\r\n		alert(\"You must enter a valid Percent Body Fat\");\r\n		return;\r\n	}\r\n\r\n	if (weight == 0)\r\n	{\r\n		alert(\"You must enter a valid weight!\");\r\n		return;\r\n	}\r\n\r\n	if (desiredBodyFat == 0)\r\n	{\r\n		alert(\"You must enter a valid Desired Body Fat!\");\r\n		return;\r\n	}\r\n\r\n	var currentFatWeight = (percentBodyFat / 100) * weight;\r\n	var currentLeanBodyWeight = weight - currentFatWeight;\r\n	var targetWeight = currentLeanBodyWeight / (1 - (desiredBodyFat / 100));\r\n	var poundsToLose = weight - targetWeight;\r\n\r\n	var outputString = \"Current Fat Weight is \" + Math.round(currentFatWeight) + \" lbs.\" +\r\n						\"\\nCurrent Lean Body Weight is \" + Math.round(currentLeanBodyWeight) + \" lbs.\" +\r\n						\"\\nTarget Weight should be \" + Math.round(targetWeight) + \" lbs.\" +\r\n						\"\\n\\nYou need to lose \" + Math.round(poundsToLose) + \" lbs to reach the target weight.\";\r\n\r\n	document.TargetWeightForm.TargetWeightText.value = outputString;\r\n}\r\n\r\nfunction calculateHipWaistRatio()\r\n{\r\n	var waist = document.HipWaistForm.waist.value;\r\n	var hip = document.HipWaistForm.hip.value;\r\n\r\n	if (waist == 0)\r\n	{\r\n		alert(\"You must enter a valid waist size!\");\r\n		return;\r\n	}\r\n\r\n	if (hip == 0)\r\n	{\r\n		alert(\"You must enter a valid hip size!\");\r\n		return;\r\n	}\r\n\r\n	var ratio = format_number(waist / hip, 2);\r\n\r\n	document.HipWaistForm.HipWaistText.value = ratio;\r\n}\r\n\r\nfunction calculateCalories()\r\n{\r\n	var SEDENTARY = 1.1;\r\n	var LIGHT = 1.2;\r\n	var MODERATE = 1.3;\r\n	var ACTIVE = 1.4;\r\n\r\n	var weight = document.CalorieForm.weightlbs.value;\r\n	var height = document.CalorieForm.height.value;\r\n	var age = document.CalorieForm.age.value;\r\n	var poundsToLose = document.CalorieForm.poundsToLose.value;\r\n	var days = document.CalorieForm.days.value;\r\n\r\n	if (document.CalorieForm.gender[0].checked == true)\r\n	{\r\n		value = 5;\r\n	}\r\n	else if (document.CalorieForm.gender[1].checked == true)\r\n	{\r\n		value = -161;\r\n	}\r\n	else\r\n	{\r\n		alert(\"You must select a gender!\");\r\n		return;\r\n	}\r\n\r\n	if (weight == 0)\r\n	{\r\n		alert(\"You must enter a valid weight!\");\r\n		return;\r\n	}\r\n\r\n	if (height == 0)\r\n	{\r\n		alert(\"You must enter a valid height!\");\r\n		return;\r\n	}\r\n\r\n	if (age == 0)\r\n	{\r\n		alert(\"You must enter a valid age!\");\r\n		return;\r\n	}\r\n\r\n	if (poundsToLose == 0)\r\n	{\r\n		alert(\"You must enter a valid entry for how many pounds to lose!\");\r\n		return;\r\n	}\r\n\r\n	if (days == 0)\r\n	{\r\n		alert(\"You must enter a valid entry for how many days to lose the pounds in!\");\r\n		return;\r\n	}\r\n\r\n	var centimeters = (height / 39.37) * 100;\r\n	var kilograms = weight / 2.2;\r\n\r\n	var restingEnergyE = 0;\r\n\r\n	restingEnergyE = (value + (10 * kilograms) + (6.25 * centimeters) - (5 * age));\r\n	var caloriesToLose = poundsToLose * 3500;\r\n	var caloriesPerDay = caloriesToLose / days;\r\n\r\n	var outputString = \"The amount of calories you need at rest per activity level:\\n\\nSedentary: \" + Math.round((restingEnergyE * SEDENTARY)) + \r\n					   \"\\nLight: \" + Math.round((restingEnergyE * LIGHT)) +\r\n					   \"\\nModerate: \" + Math.round((restingEnergyE * MODERATE)) +\r\n					   \"\\nActive: \" + Math.round((restingEnergyE * ACTIVE)) + \r\n					   \"\\n\\nYou need to trim \" + Math.round(caloriesPerDay) + \" calories per day to lose \" + poundsToLose + \" lbs in \" + days + \" days.\";\r\n\r\n	document.CalorieForm.CalorieText.value = outputString;\r\n}\r\n\r\nfunction format_number(p,d) \r\n{\r\n  var r;\r\n  if(p<0){p=-p;r=format_number2(p,d);r=\"-\"+r;}\r\n  else   {r=format_number2(p,d);}\r\n  return r;\r\n}\r\nfunction format_number2(pnumber,decimals) \r\n{\r\n  var strNumber = new String(pnumber);\r\n  var arrParts = strNumber.split(\'.\');\r\n  var intWholePart = parseInt(arrParts[0],10);\r\n  var strResult = \'\';\r\n  if (isNaN(intWholePart))\r\n    intWholePart = \'0\';\r\n  if(arrParts.length > 1)\r\n  {\r\n    var decDecimalPart = new String(arrParts[1]);\r\n    var i = 0;\r\n    var intZeroCount = 0;\r\n     while ( i < String(arrParts[1]).length )\r\n     {\r\n       if( parseInt(String(arrParts[1]).charAt(i),10) == 0 )\r\n       {\r\n         intZeroCount += 1;\r\n         i += 1;\r\n       }\r\n       else\r\n         break;\r\n    }\r\n    decDecimalPart = parseInt(decDecimalPart,10)/Math.pow(10,parseInt(decDecimalPart.length-decimals-1)); \r\n    Math.round(decDecimalPart); \r\n    decDecimalPart = parseInt(decDecimalPart)/10; \r\n    decDecimalPart = Math.round(decDecimalPart); \r\n\r\n    //If the number was rounded up from 9 to 10, and it was for 1 \'decimal\' \r\n    //then we need to add 1 to the \'intWholePart\' and set the decDecimalPart to 0. \r\n\r\n    if(decDecimalPart==Math.pow(10, parseInt(decimals)))\r\n    { \r\n      intWholePart+=1; \r\n      decDecimalPart=\"0\"; \r\n    } \r\n    var stringOfZeros = new String(\'\');\r\n    i=0;\r\n    if( decDecimalPart > 0 )\r\n    {\r\n      while( i < intZeroCount)\r\n      {\r\n        stringOfZeros += \'0\';\r\n        i += 1;\r\n      }\r\n    }\r\n    decDecimalPart = String(intWholePart) + \".\" + stringOfZeros + String(decDecimalPart); \r\n    var dot = decDecimalPart.indexOf(\'.\');\r\n    if(dot == -1)\r\n    {\r\n      decDecimalPart += \'.\'; \r\n      dot = decDecimalPart.indexOf(\'.\'); \r\n    } \r\n    var l=parseInt(dot)+parseInt(decimals); \r\n    while(decDecimalPart.length <= l) \r\n    {\r\n      decDecimalPart += \'0\'; \r\n    }\r\n    strResult = decDecimalPart;\r\n  }\r\n  else\r\n  {\r\n    var dot; \r\n    var decDecimalPart = new String(intWholePart); \r\n\r\n    decDecimalPart += \'.\'; \r\n    dot = decDecimalPart.indexOf(\'.\'); \r\n    var l=parseInt(dot)+parseInt(decimals); \r\n    while(decDecimalPart.length <= l) \r\n    {\r\n      decDecimalPart += \'0\'; \r\n    }\r\n    strResult = decDecimalPart;\r\n  }\r\n  return strResult;\r\n}\r\n\r\n</script>  \r\n\r\n{/literal}\r\n</script>\r\n'),(1441,140,0.10,'smarty','0','Page created.',1087174908,2,'67.166.71.125',''),(1442,140,0.11,'smarty','0','Page created.',1087175195,2,'67.166.71.125','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\nAnd such.'),(1443,140,0.12,'smarty','0','Page created.',1087175871,2,'67.166.71.125','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1710,145,0.10,'smarty','0','Page created.',1087806845,2,'67.166.74.140',''),(1711,145,0.11,'smarty','0','Page created.',1087806859,2,'67.166.74.140','\r\n{include_php file=\"shared_handle:competition.load\"}\r\n\r\n{if $competition}\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"competition\"\r\n	Profile=\"forum\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"forum_edit.tpl\"\r\n	MainTemplate=\"forum_main.tpl\"\r\n	ListTemplate=\"forum_list.tpl\"\r\n	EditTemplate=\"forum_edit.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"withBG2\"\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{else}\r\n	Competition not loaded.\r\n{/if}'),(1712,145,0.12,'smarty','0','Page created.',1087806961,2,'67.166.74.140','{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"helpforum\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"forum_edit.tpl\"\r\n	MainTemplate=\"forum_main.tpl\"\r\n	ListTemplate=\"forum_list.tpl\"\r\n	EditTemplate=\"forum_edit.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"withBG2\"\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'),(1734,133,0.61,'smarty','0','added block to report when orders are complete',1087862421,3,'67.166.74.140','<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}\r\n<p>Below is a preview list of the selected products and the sub total associated.</p>\r\n<blockquote>\r\n{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n	<small>{$lineItem.title|truncate:20:\"...\"}</small>\r\n	{$lineItem.quantity} @ \r\n	${$lineItem.each|number_format:\"2\"} \r\n	= ${$lineItem.subtotal|number_format:\"2\"}<br />\r\n{/foreach}</blockquote>\r\n<br />\r\n<div class=\"underline pixel\"></div>\r\n\r\n<p>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\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 address for the location where you would like these products shipped to.</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	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	</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[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[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.</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	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 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	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	<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<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\r\n{elseif $success.ccTransId}\r\n	<p>Your order has been processed, <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'),(1736,133,0.63,'smarty','0','removed product description truncation.',1087863328,3,'67.166.74.140','<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}\r\n<p>Below is a preview list of the selected products and the sub total associated.</p>\r\n<blockquote>\r\n{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n	<small>{$lineItem.title}</small>\r\n	{$lineItem.quantity} @ \r\n	${$lineItem.each|number_format:\"2\"} \r\n	= ${$lineItem.subtotal|number_format:\"2\"}<br />\r\n{/foreach}</blockquote>\r\n<br />\r\n<div class=\"underline pixel\"></div>\r\n\r\n<p>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\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 address for the location where you would like these products shipped to.</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	</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.</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:\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	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	<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<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\r\n{elseif $success.ccTransId}\r\n	<p>Your order has been processed, <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'),(1738,133,0.65,'smarty','0','right align.',1087863503,3,'67.166.74.140','<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}\r\n<p>Below is a preview list of the selected products and the sub total associated.</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>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\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 address for the location where you would like these products shipped to.</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	</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.</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:\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	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	<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<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\r\n{elseif $success.ccTransId}\r\n	<p>Your order has been processed, <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'),(1740,133,0.67,'smarty','0','approval message cleanup..',1087865206,3,'67.166.74.140','<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 \'\'}\r\n<p>Below is a preview list of the selected products and the sub total associated.</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>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\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 address for the location where you would like these products shipped to.</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	</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.</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:\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	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	<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<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\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'),(1741,129,0.30,'smarty','0','more cleanup.',1087865408,3,'67.166.74.140','{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<p>Below is a list of your selected shopping cart products, you can update the quantities for each item, or continue on to the check out page.</p>\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\" align=\"center\">\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>Product(s) total:</b></td>\r\n	<td align=\"right\"><b>${$cart.total|number_format:\"2\"}</b></td>\r\n</tr>\r\n</table>\r\n\r\n<br />\r\n<div class=\"hBox\">\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>\r\n	{/if}\r\n</div>\r\n</form>'),(1742,129,0.31,'smarty','0','align right',1087865486,3,'67.166.74.140','{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<p>Below is a list of your selected shopping cart products, you can update the quantities for each item, or continue on to the check out page.</p>\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\" align=\"center\">\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>Product(s) total:</b></td>\r\n	<td align=\"right\"><b>${$cart.total|number_format:\"2\"}</b></td>\r\n</tr>\r\n</table>\r\n\r\n<br />\r\n<div class=\"hBox\" style=\"text-align:right;\">\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>\r\n	{/if}\r\n</div>\r\n</form>'),(1454,140,0.13,'smarty','0','modified',1087198869,3,'24.10.220.247','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1455,140,0.14,'smarty','0','modified',1087202627,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1456,140,0.15,'smarty','0','modified',1087202772,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1457,140,0.16,'smarty','0','modified',1087202828,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1458,140,0.17,'smarty','0','modified',1087202870,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}\r\n	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1459,140,0.18,'smarty','0','modified',1087202942,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}Goo!{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1460,140,0.19,'smarty','0','modified',1087202988,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"10\" cols=\"40\"}Yay, it\'s finally working!!!!\r\n\r\n\"correct!\".{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1461,137,0.13,'smarty','0','blah',1087205423,3,'24.10.220.247','<h1 class=\"underline\">Recipes</h1>\r\n<p>Browse through our gallery of fine dishes, in an attempt to help cut your calories and such.</p>\r\n\r\n{if $smarty.request.viewRecipe gt 0}\r\n<h2>Viewing: Example Recipe</h2>\r\n\r\n{select_query assign=\"recipe\"}\r\ntitle, servings, description, ingredients, directions, calories, fat, carbs, protein, cholesterol, sodium, saturatedFat, fiber\r\nFROM recipes\r\nWHERE id = \"{$smarty.request.viewRecipe|intval}\"\r\nORDER BY title\r\n{/select_query}\r\n{* big preview layout *}\r\n{/if}\r\n\r\n{select_query assign=\"recipe\"}\r\ntitle, servings, description, ingredients, directions, calories, fat, carbs, protein, cholesterol, sodium, saturatedFat, fiber\r\nFROM recipes\r\nWHERE id = \"{$smarty.request.viewRecipe|intval}\"\r\nORDER BY title\r\n{/select_query}\r\n\r\n{assign var=\"intNewCol\" value=$tips|@count|math:\"round(x / 2) + 1\"}\r\n\r\n<table width=\"95%\" cellpadding=\"5\" align=\"center\">\r\n<tr><td valign=\"top\">\r\n{foreach name=\"tips\" from=$tips item=\"current\"}\r\n{if $smarty.foreach.tips.iteration eq $intNewCol}</td><td valign=\"top\">{/if}\r\n<div class=\"notepaperBG\" style=\"padding:17px;\">\r\n	{$current.testimonial}<br />\r\n</div><br />\r\n{/foreach}\r\n</td></tr>\r\n</table>'),(1462,140,0.20,'smarty','0','modified',1087207342,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"40\" cols=\"40\"}Yay, it\'s finally working!!!!\r\n\r\n\"correct!\".{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1463,140,0.21,'smarty','0','modified',1087207365,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"40\" cols=\"400\"}Yay, it\'s finally working!!!!\r\n\r\n\"correct!\".{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"40\"}	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1464,140,0.22,'smarty','0','modified',1087207423,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"40\" cols=\"60\"}Yay, it\'s finally working!!!!\r\n\r\n\"correct!\".{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"55\"}	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(1465,140,0.23,'smarty','1','modified',1087207550,2,'67.166.75.185','<h1>Content Guide Testing</h1>\r\n\r\n{content_guide name=\"intro\" type=\"textarea\" title=\"Intro Text\" rows=\"12\" cols=\"60\"}Yay, it\'s finally working!!!!\r\n\r\n\"correct!\".{/content_guide}\r\n\r\n{content_guide name=\"intro2\" type=\"textarea\" title=\"Intro Text 2\" rows=\"10\" cols=\"55\"}	Welcome to TESTING.com! We provide ... blah<br />\r\n	Our resources include ... blah!\r\n{/content_guide}\r\n\r\n<br /><br />\r\n<b>And such.</b>'),(2424,1,2.81,'smarty','0','Switched to Flash animation',1099783303,3,'24.10.224.224','{assign var=\"hideTopNav\" value=\"1\"} \r\n{swf src=\"`$skinFolder`flash/weightloss.swf\" width=\"690\" height=\"400\"}\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'),(2958,98,1.88,'smarty','0','Changed precision to 1 on weight and change in weight graphs.',1105379707,2,'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=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</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{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}'),(1475,137,0.15,'smarty','0','whoops, it was still looking at the shop profile.',1087253053,3,'24.10.220.247','<h1 class=\"underline\">Recipes</h1>\r\n<p>Browse through our gallery of fine dishes, in an attempt to help cut your calories and such.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"recipes\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"shop_main.tpl\"\r\n	ListTemplate=\"recipe_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"recipe_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\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'),(1476,137,0.16,'smarty','0','updated to use recipe_main, instead of shop_main.',1087257630,3,'24.10.220.247','<h1 class=\"underline\">Recipes</h1>\r\n<p>Browse through our gallery of fine dishes, in an attempt to help cut your calories and such.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"recipes\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"recipe_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"recipe_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\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'),(1477,117,0.23,'smarty','0','Testing... trying to fix show/hide issues.',1087259447,2,'67.166.75.185','{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{include_php file=\"shared_handle:newcomp.review\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Review</h1>\r\n\r\n	{toc_prev assign=\"prev\"}\r\n	{if not $competitionErrors}\r\n		{toc_next assign=\"next\"}\r\n	{/if}\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<div>\r\n	<br />\r\n	You are almost done! Before sending off your invitations,\r\n	please review each item below to make sure everything is correct and then click \'Next\'.\r\n</div>\r\n\r\n<br />\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'parameters\', \'hideReviewParameters\', \'showHide\');\"><img id=\"parameters_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideReviewParameters}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Competition Parameters:</h2>\r\n	<input type=\"hidden\" id=\"hideReviewParameters\" name=\"newcomp[hideReviewParameters]\" value=\"{$newcomp.hideReviewParameters|default:\"0\"}\" />\r\n\r\n<div id=\"parameters\" style=\"margin:15px;display:{if $newcomp.hideReviewParameters eq 1}none{else}block{/if};\">\r\n	<table style=\"margin-left:35px;\">\r\n	<tr>\r\n		<td align=\"right\"><div>Comptition Title:</div></td>\r\n		<td><div><b>{$newcomp.title}</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|default:\"0\" b=$newcomp.endDate|default:\"0\" 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\', \'hideReviewLetter\', \'showHide\');\"><img id=\"letter_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideReviewLetter}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Invitation Letter:</h2>\r\n\r\n<input type=\"hidden\" id=\"hideReviewLetter\" name=\"newcomp[hideReviewLetter]\" value=\"{if $newcomp.hideReviewLetter !== \"0\"}1{else}0{/if}\" />\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:{if $newcomp.hideReviewLetter !== \"0\"}none{else}block{/if};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\', \'hideReviewInvitations\', \'showHide\');\"><img id=\"invitations_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideReviewInvitations}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Who You\'re Inviting:</h2>\r\n	<input type=\"hidden\" id=\"hideReviewInvitations\" name=\"newcomp[hideReviewInvitations]\" value=\"{$newcomp.hideReviewInvitations|default:\"0\"}\" />\r\n\r\n<div id=\"invitations\" style=\"margin:15px;display:{if $newcomp.hideReviewInvitations eq \"1\"}none{else}block{/if};\">\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>Relation</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#invitations\">Change/Update Your Invitations</a>\r\n	<br /><br />\r\n</div>\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{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n'),(1478,136,0.15,'smarty','0','converted to table manager.',1087259500,3,'24.10.220.247','<<h1 class=\"underline\">Latest News<h1>\r\n<p>Things happening specifically with WeightLossWars.com, and other health related news items.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"news\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"news_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"news_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\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'),(1479,136,0.16,'smarty','0','fixed messed h1 tag',1087259547,3,'24.10.220.247','<h1 class=\"underline\">Latest News</h1>\r\n<p>Things happening specifically with WeightLossWars.com, and other health related news items.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"news\"\r\n	DeleteLogFile=\"tm-delete.log\"\r\n	TemplatePath=\"TM/templates/\"\r\n	StyleTablePath=\"systems/wlw/img/st/\"\r\n	AddTemplate=\"slate_edit.tpl\"\r\n	MainTemplate=\"recipe_main.tpl\"\r\n	ListTemplate=\"news_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"news_view.tpl\"\r\n	Action=\"list\"\r\n	LoginRequired=\"true\"\r\n	HeadingColor=\"99CCFF\"\r\n	HighlightColor=\"F6F9D5\"\r\n	HeadingStyle=\"heading\"\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'),(1480,129,0.27,'smarty','0','tiny textual changes..',1087261518,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\" align=\"center\">\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>Product(s) total:</b></td>\r\n	<td align=\"right\"><b>${$cart.total|number_format:\"2\"}</b></td>\r\n</tr>\r\n</table>\r\n\r\n<br />\r\n<div align=\"center\">\r\n{* <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</div>\r\n</form>'),(1482,129,0.28,'smarty','0','added instruction paragraph',1087266065,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<p>Below is a list of your selected shopping cart products, you can update the quantities of each item, or continue on to the check out page.</p>\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\" align=\"center\">\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>Product(s) total:</b></td>\r\n	<td align=\"right\"><b>${$cart.total|number_format:\"2\"}</b></td>\r\n</tr>\r\n</table>\r\n\r\n<br />\r\n<div align=\"center\">\r\n{* <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</div>\r\n</form>'),(1483,129,0.29,'smarty','0','added instruction paragraph',1087266106,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<p>Below is a list of your selected shopping cart products, you can update the quantities for each item, or continue on to the check out page.</p>\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\" align=\"center\">\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>Product(s) total:</b></td>\r\n	<td align=\"right\"><b>${$cart.total|number_format:\"2\"}</b></td>\r\n</tr>\r\n</table>\r\n\r\n<br />\r\n<div align=\"center\">\r\n{* <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</div>\r\n</form>'),(1765,133,0.69,'smarty','0','added hidden orderInvoiceNum',1087879124,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 \'\'}\r\n<p>Below is a preview list of the selected 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>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n\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 address for the location where you would like these products shipped to.</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	</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.</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:\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	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	<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\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'),(2499,99,3.20,'smarty','0','and then some more.',1100763451,3,'24.10.224.224','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/comp_layout2.tpl\"}\r\n{if $competition.userId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	{include_php file=\"shared_handle:competition.manageTeams\"}\r\n	{include_php file=\"shared_handle:competition.managePlayers\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition.load\"}\r\n{include_php file=\"shared_handle:competition.verifyInitialPot\"}\r\n<div id=\"jackpot\">${$competition.potAmount|number_format:2}</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 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>${$competition.potAmount|number_format:2}</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			<hr />\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{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small>(${$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 and $acm->isDomainAdmin()}\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}<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 $weelyWinnersMethod1 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 $weelyWinnersMethod1 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		{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			{if $smarty.foreach.method2.iteration gt 3 OR $userValue lte 0}<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 $weelyWinnersMethod2 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 $weelyWinnersMethod2 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\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><a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&totalChange=1&format=wide\" target=\"graphwindow\">Change in Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=weight&fillPrevious=1&precision=0&format=wide\" target=\"graphwindow\">Weight</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=fat&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Fat Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=calories&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Calorie Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=carbs&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Carb Intake</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=minutesExercise&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Exercise Minutes</a> |\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&type=distanceExercised&fillPrevious=0&precision=1&format=wide\" target=\"graphwindow\">Distance Exercised</a>\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</div>\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<br />\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</h2>\r\nHere are all of the teams and the players involved!<br />\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}\" class=\"clearChunk320\" style=\"width:268px;overflow:hidden;word-wrap:nowrap;\">\r\n			<h2 class=\"withBG\">{if $teams.name eq \"Waiting to Join\"}Not assigned to a team{else}{$teams.name|default:\"&nbsp;\"}{/if}</h2>\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=\"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=\"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				<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		{/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> *}'),(1836,133,0.71,'smarty','0','new CC instructional text',1088033201,3,'67.166.74.140','<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 preview list of the selected 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>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n{else}\r\n	<p>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> to pay for the contents of your shopping cart.</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 address for the location where you would like these products shipped to.</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	</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.</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:\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	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	<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'),(1487,117,0.24,'smarty','0','Testing... trying to fix show/hide issues.',1087268401,2,'144.35.85.139','{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{include_php file=\"shared_handle:newcomp.review\"}\r\n\r\n<h1 class=\"underline\">Create a Competition: Review</h1>\r\n\r\n	{toc_prev assign=\"prev\"}\r\n	{if not $competitionErrors}\r\n		{toc_next assign=\"next\"}\r\n	{/if}\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<div>\r\n	<br />\r\n	You are almost done! Before sending off your invitations,\r\n	please review each item below to make sure everything is correct and then click \'Next\'.\r\n</div>\r\n\r\n<br />\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'parameters\', \'hideReviewParameters\', \'showHide\');\"><img id=\"parameters_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideReviewParameters}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Competition Parameters:</h2>\r\n	<input type=\"hidden\" id=\"hideReviewParameters\" name=\"newcomp[hideReviewParameters]\" value=\"{$newcomp.hideReviewParameters|default:\"0\"}\" />\r\n\r\n<div id=\"parameters\" style=\"margin:15px;display:{if $newcomp.hideReviewParameters eq 1}none{else}block{/if};\">\r\n	<table style=\"margin-left:35px;\">\r\n	<tr>\r\n		<td align=\"right\"><div>Comptition Title:</div></td>\r\n		<td><div><b>{$newcomp.title}</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|default:\"0\" b=$newcomp.endDate|default:\"0\" 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\', \'hideReviewLetter\', \'showHide\');\"><img id=\"letter_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideReviewLetter !== \"0\"}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Your Invitation Letter:</h2>\r\n\r\n<input type=\"hidden\" id=\"hideReviewLetter\" name=\"newcomp[hideReviewLetter]\" value=\"{if $newcomp.hideReviewLetter !== \"0\"}1{else}0{/if}\" />\r\n\r\n<div id=\"letter\" align=\"left\" style=\"display:{if $newcomp.hideReviewLetter !== \"0\"}none{else}block{/if};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\', \'hideReviewInvitations\', \'showHide\');\"><img id=\"invitations_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideReviewInvitations}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Who You\'re Inviting:</h2>\r\n	<input type=\"hidden\" id=\"hideReviewInvitations\" name=\"newcomp[hideReviewInvitations]\" value=\"{$newcomp.hideReviewInvitations|default:\"0\"}\" />\r\n\r\n<div id=\"invitations\" style=\"margin:15px;display:{if $newcomp.hideReviewInvitations eq \"1\"}none{else}block{/if};\">\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>Relation</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#invitations\">Change/Update Your Invitations</a>\r\n	<br /><br />\r\n</div>\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{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n'),(1837,133,0.72,'smarty','0','added strong around payment sub totals, to stick out more.',1088033304,3,'67.166.74.140','<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 preview list of the selected 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>Once you have entered your shipping and billing address, click the Continue button and the forms will be verified for required fields, afterwhich a credit card form will show at the bottom of this page.</p>\r\n{else}\r\n	<p>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> to pay for the contents of your shopping cart.</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 address for the location where you would like these products shipped to.</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	</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.</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:\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'),(1838,131,0.62,'smarty','0','minor text styling update',1088033586,3,'67.166.74.140','<h1 class=\"underline\">My Statistics - {$user->firstName}</h1>\r\n<br />\r\n{* getProfile is included by getStats *}\r\n{include_php file=\"shared_handle:getStats\"}\r\n\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n<table border=\"0\"><tr><td>\r\n\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</div>\r\n\r\n</td><td>&nbsp;&nbsp;</td><td valign=\"top\">\r\n\r\n<div>This is your statistics history page, if you want to update your stats for the week, click on the appropriate column heading and a new window will open for you to enter your daily data.</div>\r\n\r\n</td></tr></table>\r\n<br />\r\n\r\n<h2 class=\"withBG\">Weekly Overview and Updates</h2>\r\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td valign=\"top\" align=\"right\">\r\n	<div style=\"text-align:right;width:120px;height:39px;border-right:#000 1px solid;border-bottom:#000 1px solid;\">Click&nbsp;to&nbsp;Update&nbsp;-&gt;&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Weight</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Weight&nbsp;Lost</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>BMI</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Calories</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Carbs</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Fat</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Exercise</b>&nbsp;</div>\r\n	<div style=\"text-align:right;width:120px;height:29px;border-right:1px solid black;border-bottom:1px solid black;\"><b>Distance&nbsp;Run</b>&nbsp;</div>\r\n	</td>\r\n	<td valign=\"top\" align=\"left\">\r\n	<div style=\"width:569px;text-align:left;\"><iframe src=\"?pg=myprofile/statsframe&cid={$smarty.get.cid}#recent\" frameborder=\"0\" width=\"569\" height=\"302\" scrollbars=\"auto\"></iframe></div></td>\r\n</tr>\r\n</table>\r\n<br />\r\nThe statistics editor will open in a new popup window, you may need to disable a popup blocker from stopping it.<br />\r\nOnce you are finished and back to this page, you will need to click your browsers refresh button in order to see these values get updated.\r\n\r\n<br />\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=myhome\" class=\"link\">Back To My Home</a>\r\n</div>\r\n\r\n\r\n\r\n\r\n'),(2092,133,0.74,'smarty','0','added required field indicators and example telephone entry',1089749463,16,'199.206.254.69','<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 preview list of the selected 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.<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	</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.<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'),(2915,177,0.22,'smarty','0','Testing',1104442011,2,'67.166.75.78','{if $smarty.session.company.logo}<div style=\"float:right; padding:15px; background-color:#fff;\"><img src=\"{$smarty.session.company.logo}\" /></div>{/if}\r\n<h1>Company Management Area</h1>\r\n<h2>{$smarty.session.company.companyName}</h2>\r\n\r\n{display var=$company}\r\n{display var=$toc}\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>'),(2916,177,0.23,'smarty','0','Testing',1104442067,2,'67.166.75.78','{if $smarty.session.company.logo}<div style=\"float:right; padding:15px; background-color:#fff;\"><img src=\"{$smarty.session.company.logo}\" /></div>{/if}\r\n<h1>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>'),(2917,155,0.30,'smarty','0','Page created.',1104462855,16,'64.85.253.211','<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 eHealthCompete, 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 eHealthCompete you get\r\n<ul>	<li>A 30 day 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 “Request a Trainer” 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\nThe whole package is only $39! Additional months are only $10.  Submit a request today and you\'ll be on your way to better health!\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\">Request a Trainer.</a> \r\n'),(2918,155,0.31,'smarty','0','Page created.',1104462856,16,'64.85.253.211','<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 eHealthCompete, 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 eHealthCompete you get\r\n<ul>	<li>A 30 day 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 “Request a Trainer” 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\nThe whole package is only $39! Additional months are only $10.  Submit a request today and you\'ll be on your way to better health!\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\">Request a Trainer.</a> \r\n'),(2919,155,0.32,'smarty','0','Page created.',1104462867,16,'64.85.253.211','<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 eHealthCompete, 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 eHealthCompete you get\r\n<ul>	<li>A 30 day 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 “Request a Trainer” 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\nThe whole package is only $39! Additional months are only $10.  Submit a request today and you\'ll be on your way to better health!\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\">Request a Trainer.</a> \r\n'),(2920,157,0.29,'smarty','0','Page created.',1104463014,16,'64.85.253.211','<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/silouete.jpg\" align=\"right\" width=\"121\" height=\"178\" 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!  <p>eHealthCompete offers personalized diet plans and diet counseling from Registered Dietitians!</p>\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 “Request a Dietitian” button below.<br /></li>\r\n	<li>Our staff will contact you to schedule a telephone appointment with one of our dietitians <br /></li>\r\n	<li>The dietitian will call you at the scheduled time to discuss your goals and preferences, and any diet-related health conditions you have (diabetes, allergies, etc.)<br /></li>\r\n</ol>\r\n</p>\r\n<p>\r\nThe dietitian will create your diet plan with sample menus and email it to you.  You\'ll also receive a copy of the American Dietetic Association\'s Exchange Lists for Weight Management to help you in following your diet plan..<br />\r\n\r\n</p>\r\n<p>      \r\nThe whole package is only $49! Follow-up phone calls if needed are $20.  Submit a request today and you\'ll be on your way to better health!\r\n</p>\r\n<p>Sign up by clicking the button below.\r\n</p>\r\n\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=dietitian/contact\" class=\"button\">Request a Dietitian.</a> \r\n'),(2921,157,0.30,'smarty','0','Page created.',1104463015,16,'64.85.253.211','<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/silouete.jpg\" align=\"right\" width=\"121\" height=\"178\" 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!  <p>eHealthCompete offers personalized diet plans and diet counseling from Registered Dietitians!</p>\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 “Request a Dietitian” button below.<br /></li>\r\n	<li>Our staff will contact you to schedule a telephone appointment with one of our dietitians <br /></li>\r\n	<li>The dietitian will call you at the scheduled time to discuss your goals and preferences, and any diet-related health conditions you have (diabetes, allergies, etc.)<br /></li>\r\n</ol>\r\n</p>\r\n<p>\r\nThe dietitian will create your diet plan with sample menus and email it to you.  You\'ll also receive a copy of the American Dietetic Association\'s Exchange Lists for Weight Management to help you in following your diet plan..<br />\r\n\r\n</p>\r\n<p>      \r\nThe whole package is only $49! Follow-up phone calls if needed are $20.  Submit a request today and you\'ll be on your way to better health!\r\n</p>\r\n<p>Sign up by clicking the button below.\r\n</p>\r\n\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=dietitian/contact\" class=\"button\">Request a Dietitian.</a> \r\n'),(2922,157,0.31,'smarty','0','Page created.',1104463057,16,'64.85.253.211','<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/silouete.jpg\" align=\"right\" width=\"121\" height=\"178\" 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!  <p>eHealthCompete offers personalized diet plans and diet counseling from Registered Dietitians!</p>\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 “Request a Dietitian” button below.<br /></li>\r\n	<li>Our staff will contact you to schedule a telephone appointment with one of our dietitians <br /></li>\r\n	<li>The dietitian will call you at the scheduled time to discuss your goals and preferences, and any diet-related health conditions you have (diabetes, allergies, etc.)<br /></li>\r\n</ol>\r\n</p>\r\n<p>\r\nThe dietitian will create your diet plan with sample menus and email it to you.  You\'ll also receive a copy of the American Dietetic Association\'s Exchange Lists for Weight Management to help you in following your diet plan.<br />\r\n\r\n</p>\r\n<p>      \r\nThe whole package is only $49! Follow-up phone calls if needed are $20.  Submit a request today and you\'ll be on your way to better health!\r\n</p>\r\n<p>Sign up by clicking the button below.\r\n</p>\r\n\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=dietitian/contact\" class=\"button\">Request a Dietitian.</a> \r\n'),(2954,98,1.87,'smarty','0','Made participation points area not show up if the company isn\'t using it.',1105044571,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	-<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{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}'),(1493,124,0.28,'smarty','0','modified the layout a little bit.. renamed the variable',1087281741,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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	<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, State, Zip:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:100px;\" /><br />\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" /><br />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:60px;\" /><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:30px;\" maxlength=\"2\" /><br />\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	</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<blockquote>\r\n	<a href=\"javascript://\"> Submit Transaction </a>\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>'),(1494,124,0.29,'smarty','0','modified the layout a little bit.. renamed the variable',1087282013,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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	<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, State, Zip:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:100px;\" />\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:20px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:60px;\" /><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:30px;\" maxlength=\"2\" /><br />\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	</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<blockquote>\r\n	<a href=\"javascript://\"> Submit Transaction </a>\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>'),(1495,124,0.30,'smarty','0','modified the layout a little bit.. renamed the variable',1087282436,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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	<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, State, Zip:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:100px;\" />\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:20px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:40px;\" /><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:30px;\" maxlength=\"2\" /><br />\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	</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<blockquote>\r\n	<a href=\"javascript://\"> Submit Transaction </a>\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>'),(1496,124,0.31,'smarty','0','modified the layout a little bit.. renamed the variable',1087282538,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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, State, Zip:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:70px;\" />\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:20px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:40px;\" /><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:30px;\" maxlength=\"2\" /><br />\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	</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<blockquote>\r\n	<a href=\"javascript://\"> Submit Transaction </a>\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>'),(1497,124,0.32,'smarty','0','modified the layout a little bit.. renamed the variable',1087282615,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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, State, Zip:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:70px;\" />\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:20px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:40px;\" /><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:30px;\" maxlength=\"2\" /><br />\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	</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<blockquote>\r\n	<a href=\"javascript://\" class=\"button\"> Submit Contribution </a>\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>'),(1498,124,0.33,'smarty','0','modified the layout a little bit.. renamed the variable',1087282694,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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, State, Zip:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:70px;\" />\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:20px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:40px;\" /><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:30px;\" maxlength=\"2\" /><br />\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	</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=\"javascript://\" class=\"button\"> 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>'),(1499,122,0.12,'php','0','Page created.',1087282876,2,'67.166.75.185','{include_php file=\"shared_handle:newcomp.verifyAccount\"}\r\n{include_php file=\"shared_handle:newcomp.verifyInitialPot\"}\r\n\r\n<h1 class=\"underline\">Congratulations! You have successfully created a competition!</h1>\r\n\r\nReturn now to \"<a href=\"?pg=myhome\">My Home</a>\" to view your active competitions!'),(1500,124,0.34,'smarty','0','modified the layout a little bit.. renamed the variable',1087282924,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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:70px;\" /><br />\r\n\r\n	State, Zip, Country:\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	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:50px;\" maxlength=\"2\" /><br />\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	</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=\"javascript://\" class=\"button\"> 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>'),(1501,122,0.13,'smarty','0','Page created.',1087282930,2,'67.166.75.185','{include_php file=\"shared_handle:newcomp.review\"}\r\n{include_php file=\"shared_handle:newcomp.verifyAccount\"}\r\n{include_php file=\"shared_handle:newcomp.verifyInitialPot\"}\r\n{include_php file=\"shared_handle:newcomp.createCompetition\"}\r\n\r\n<h1 class=\"underline\">Congratulations! You have successfully created a competition!</h1>\r\n\r\nReturn now to \"<a href=\"?pg=myhome\">My Home</a>\" to view your active competitions!'),(1502,124,0.35,'smarty','0','modified the layout a little bit.. renamed the variable',1087282946,3,'24.10.220.247','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\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\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=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\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\r\nYou are about to pay the entry fee for the following competition. Please make sure this is the correct competition before proceding!<br /><br />\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=\"underline\">&nbsp;</h2>\r\nTOTAL: <em>${$competition.total|number_format:\"2\"}</em><br />\r\n<h2 class=\"overline\">&nbsp;</h2>\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Billing Information</h2>\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	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:70px;\" /><br />\r\n\r\n	State, Zip, Country:\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;\" />\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:50px;\" maxlength=\"2\" /><br />\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	</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=\"javascript://\" class=\"button\"> 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>'),(1503,122,0.14,'smarty','0','Page created.',1087283061,2,'67.166.75.185','{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{include_php file=\"shared_handle:newcomp.review\"}\r\n{include_php file=\"shared_handle:newcomp.verifyAccount\"}\r\n{include_php file=\"shared_handle:newcomp.verifyInitialPot\"}\r\n{include_php file=\"shared_handle:newcomp.createCompetition\"}\r\n\r\n<h1 class=\"underline\">Congratulations! You have successfully created a competition!</h1>\r\n\r\nReturn now to \"<a href=\"?pg=myhome\">My Home</a>\" to view your active competitions!'),