(1670,133,0.53,'smarty','0','added show/hide toggles',1087699061,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}\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<h2 class=\"underline\">Sub Total: ${$cart.total|number_format:\"2\"}</h2>\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=\"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=\"inComps_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\">\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=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	</div>\r\n</div>\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=\"inComps_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\">\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	</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{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(1671,133,0.54,'smarty','0','added show/hide toggles',1087699165,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}\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<h2 class=\"underline\">Sub Total: ${$cart.total|number_format:\"2\"}</h2>\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=\"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=\"inComps_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	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=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	</div>\r\n</div>\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=\"inComps_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	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	</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{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(2229,157,0.22,'smarty','0','Page created.',1095661364,74,'128.187.0.165','<h1 class=\"underline\">Dietitians</h1>\r\n<br />\r\n<h2 class=\"withBG\">Get the Edge on your Competitors?</h2>\r\n\r\n<img src=\"{$skinFolder}images/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>Weightlosswars.com 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 “Schedule an appointment” 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	<li>The 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 /></li>\r\n	<li>Your dietitian will contact you again to explain the diet plan and answer any questions.  At this time you\'ll also discuss plans for email follow-up\'s. <br /></li>\r\n	\r\n</ol>\r\n</p>\r\n\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'),(2230,156,0.12,'smarty','1','Page created.',1095661413,74,'128.187.0.165','{redirect href=\"?pg=contact&mfSubject=Trainer Request\"}'),(2231,155,0.29,'smarty','0','Page created.',1095661541,74,'128.187.0.165','<h1 class=\"underline\">Personal Trainers</h1>\r\n<br />\r\n<h2 class=\"withBG\">Get the Edge on your Competitors?</h2>\r\n\r\n<img src=\"{$skinFolder}images/ptpic.jpg\" align=\"right\" width=\"174\" height=\"145\" alt=\"\" class=\"img1\" hspace=\"20\" vspace=\"20\"/><br />\r\n\r\n<div align=\"left\" class=\"info\">\r\n	At WeightLossWars.com, you give us your schedule and exercise preferences and we\'ll give you a fitness program perfect for you lifestyle.  This fitness plan isn’t created by a computer; it is created by a Certified Personal Trainer who learns your specific needs.\r\n\r\n<p>At WeightLossWars you get\r\n<ul>	<li>A 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'),(2232,157,0.23,'smarty','0','Page created.',1095661577,74,'128.187.0.165','<h1 class=\"underline\">Dietitians</h1>\r\n<br />\r\n<h2 class=\"withBG\">Get the Edge on your Competitors?</h2>\r\n\r\n<img src=\"{$skinFolder}images/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>Weightlosswars.com 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	<li>The 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 /></li>\r\n	<li>Your dietitian will contact you again to explain the diet plan and answer any questions.  At this time you\'ll also discuss plans for email follow-up\'s. <br /></li>\r\n	\r\n</ol>\r\n</p>\r\n\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'),(2233,157,0.24,'smarty','0','Page created.',1095661801,74,'128.187.0.165','<h1 class=\"underline\">Dietitians</h1>\r\n<br />\r\n<h2 class=\"withBG\">Get the Edge on your Competitors?</h2>\r\n\r\n<img src=\"{$skinFolder}images/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>Weightlosswars.com 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'),(2459,138,0.32,'smarty','0','Added text difference for user display (Showing versus Comparing in heading).',1100198226,3,'24.10.224.224','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n\r\n{if $smarty.request.compId}\r\n	{assign var=\"compId\" value=\"comp\"|cat:$smarty.request.compId}\r\n{/if}\r\n{assign var=\"type\" value=$smarty.request.type|default:\"weight\"}\r\n{assign var=\"fillPrevious\" value=$smarty.request.fillPrevious|default:\"1\"}\r\n{assign var=\"precision\" value=$smarty.request.precision|default:\"0\"}\r\n{assign var=\"stars\" value=$smarty.request.stars|default:\"\"}\r\n{assign var=\"totalChange\" value=$smarty.request.totalChange|default:\"0\"}\r\n{assign var=\"userIds\" value=$smarty.request.userIds|default:\"\"}\r\n{if $smarty.request.format eq \"small\"}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher_sm.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"&session_id=\":$smarty.session.session_id}\r\n{elseif $smarty.request.format eq \"wide\"}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher_wide.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"&session_id=\":$smarty.session.session_id}\r\n{else}\r\n	{assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher.swf?id=\":$compId:\"!\":$type:\"!\":$fillPrevious:\"!\":$precision:\"!\":$stars:\"!\":$totalChange:\"!\":$userIds:\"&session_id=\":$smarty.session.session_id}\r\n{/if}\r\n\r\n{* assign var=\"url\" value=$skinFolder|cat:\"/flash/grapher{if $smarty.request.format eq \"small\"}_sm{elseif $smarty.request.format eq \"wide\"}_wide{/if}.swf?id=comp1!weight!1!0!!1&session_id=\":$smarty.session.session_id\" *}\r\n\r\n<h3 class=\"underline\">&nbsp; {if $userIds}Showing{else}Comparing{/if} {if $totalChange}Change in {/if}{$type|niceText} Over Time</h3>\r\n{if $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</body></html>'),(2943,99,3.53,'smarty','0','Updated with competition end stuff taken from Weight Loss Wars.',1104775558,3,'67.166.75.78','{assign var=\"hideWidgets\" value=0}\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"pgLayout\" value=\"file:./layouts/comp_layout2.tpl\"}\r\n\r\n{include_php file=\"shared_handle:competition.load\"}\r\n{if $competition.userId eq $user->id or $acm->isDomainAdmin()}\r\n	{assign var=\"isManager\" value=\"true\"}\r\n	<!-- ismanager -->\r\n	{include_php file=\"shared_handle:competition.management\"}\r\n{/if}\r\n\r\n{include_php file=\"shared_handle:competition.verifyInitialPot\"}\r\n<div id=\"jackpot\">{if $competition.potAmount gt 0}${$competition.potAmount|number_format:2}{/if}</div>\r\n<h1 class=\"underline\">{$competition.title|default:\"Competition Title\"}</h1>\r\n\r\n{* ******************************** COMPETITION END *********************************** *}\r\n{if $competition.endDate lt $smarty.now}   {* COMPETITION IS OVER *}\r\n	{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=\"winnerName\"}    {*key=\"winnerName\"*}\r\n			{assign var=\"winnerData\" value=$competitions.users.$winnerName}\r\n			\r\n			{if $competition.style eq \"Group-vs-Group\"}\r\n				{assign var=\"description\" value=\"Winning Team\"}\r\n				{assign var=\"avg\" value=\"average\"}\r\n			{else}\r\n				{assign var=\"description\" value=\"Winner\"}\r\n			{/if}\r\n\r\n			<h2><br /><b>{$winnerName}</b> is the {$description}{if $competition.potAmount}, taking home <b>$<i>{$competition.potAmount|number_format:2}</i></b>{/if}!</h2>\r\n			<br />\r\n			{strip}\r\n			{if not $competition.results.isTie}   {* Not a Tie *}\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> days of \r\n				fierce competition, <b>{$winnerName}</b> is the \r\n				{$description}!	Based on \r\n				<b>{$competition.results.winningMethod}</b>, <b>{$winnerName}</b> \r\n				won with <b>{$competition.results.winningStat|number_format:2} \r\n				{if $competition.results.winningMethod eq \"Weight Lost\"}{$avg} pounds lost\r\n				{elseif $competition.results.winningMethod eq \"Percentage Weight Lost\"}{$avg} % body weight lost\r\n				{elseif $competition.results.winningMethod eq \"Minutes Exercise\"}{$avg} minutes exercised\r\n				{elseif $competition.results.winningMethod eq \"Distance Exercised\"}{$avg} miles exercised\r\n				{elseif $competition.results.winningMethod eq \"Weight Gained\"}{$avg} pounds gained\r\n				{/if}</b>.\r\n			{else}                                {* A Tie! *}\r\n				{assign var=\"weightLost\" value=\"Weight Lost\"}\r\n				{assign var=\"percentLost\" value=\"Percentage Weight Lost\"}\r\n\r\n				After a difficult <b>{$daysOfCompetition|number_format:0}</b> \r\n				days of fierce competition, there was a tie in the judging \r\n				method, <b>{$competition.scoringMethod}</b>. To break this \r\n				tie, the selected tie breaking method, \r\n				<b>{$competition.tieBreakerMethod}</b>, was used to determine \r\n				<b>{$winnerName}</b> as the {$description}. <b>{$winnerName}</b> \r\n				won with <b>{$competition.results.winningStat|number_format:2}\r\n				{if $competition.results.winningMethod eq \"Weight Lost\"}{$avg} pounds lost\r\n				{elseif $competition.results.winningMethod eq \"Percentage Weight Lost\"}{$avg} % body weight lost\r\n				{elseif $competition.results.winningMethod eq \"Minutes Exercise\"}{$avg} minutes exercised\r\n				{elseif $competition.results.winningMethod eq \"Distance Exercised\"}{$avg} miles exercised\r\n				{elseif $competition.results.winningMethod eq \"Weight Gained\"}{$avg} pounds gained\r\n				{/if}</b>.\r\n				<!--\r\n				<b>{$winnerData.$weightLost|number_format:0} pounds</b>, which \r\n				was <b>{$winnerData.$percentLost|number_format:4}%</b> body weight.\r\n				-->\r\n			{/if}\r\n			{/strip}\r\n			<br />\r\n			<br />\r\n			<b>{$winnerName}</b> won with a <b>{$marginOfVictory|number_format:3}</b> margin over <b>{$competition.results.secondPlaceUser}</b>.\r\n			\r\n			<h2><br />Congratulations to you all!</h2>\r\n			<br />\r\n			<div class=\"underline\"></div>\r\n		{/foreach}\r\n\r\n	{elseif $competition.results.winners|@count gt 1}\r\n		{* There were multiple winners, even after tieBreakerMethod (should RARELY happen) *}\r\n	\r\n		<h2>There was a tie in this competition. The winners, by <b>{$competition.results.winningMethod}</b> having lost <b>{$competition.results.winningStat}</b>, are:<br /></h2>\r\n		<ul>\r\n		{foreach from=$competition.results.winners item=\"winnerData\" key=\"winnerName\"}\r\n			<li>{$winnerName}</li>\r\n		{/foreach}\r\n		</ul>\r\n		\r\n	{else}\r\n		{* For some reason, there were no winners *}\r\n\r\n		<h2><br />\r\n		Winner information is currently unavailable.<br />\r\n		Please check back soon.\r\n		<br /><br /></h2>\r\n	{/if}\r\n	This competition has ended and is no longer active.<br />\r\n{/if}\r\n{* ************************************************************************************ *}\r\n\r\n<div id=\"prizeDesc\">{$competition.potDescription}<br />\r\n{if $competition.potAmount}<small style=\"color:#FFF;\">(${$competition.individualPotAmount} from {$competition.potMethod})</small>{/if}</div>\r\n\r\n{if $competition.startDate lt $smarty.now}\r\n	Time remaining: <b>{$competition.timeLeft}</b><br />\r\n{else}\r\n	This competition has not yet started!<br />\r\n{/if}\r\n\r\nStart{if $competition.startDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.startDate|date_format2:\"n/j/Y\"}</b> &nbsp; \r\nEnd{if $competition.endDate lt $smarty.now}ed{else}s{/if}: <b>{$competition.endDate|date_format2:\"n/j/Y\"}</b></br>\r\n<div style=\"font-size:5px;clear:left;\">&nbsp;</div>\r\n{assign var=\"scoringMethod\" value=$competition.scoringMethod}\r\n{assign var=\"tieBreakerMethod\" value=$competition.tieBreakerMethod}\r\n{assign var=\"weeklyWinnersMethod1\" value=$competition.weeklyWinnersMethod1}\r\n{assign var=\"weeklyWinnersMethod2\" value=$competition.weeklyWinnersMethod2}\r\n\r\n{* ******************** WEEKLY WINNERS ********************* *}\r\n{if $competition.weeklyWinners}\r\n	{if $weeklyWinnersMethod1}             {* DON\'T FORGET TO REMOVE THE ACM CHECK WHEN READY!!! *}\r\n		<h2 class=\"withBG\">\r\n			<div class=\"topRight hideShow\">\r\n			<a href=\"javascript:toggle(\'weeklyWinners\', \'\', \'showHide\');\"><img id=\"weeklyWinners_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n			Last Week\'s Winners<i>!</i> <small style=\"color:#000; font-size:11px;\">(<i><b>{$competition.weeklyWinners.startDate|date_format2:\"D n/j\"}</b> through <b>{$competition.weeklyWinners.endDate|date_format2:\"D n/j\"}</b></i>)</small></h2> \r\n		<div id=\"weeklyWinners\">\r\n		<table width=\"100%\" cellpadding=\"3\" cellspacing=\"0\"><tr>\r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod1}</div>\r\n		<img src=\"{$skinFolder}images/winner_1.gif\" style=\"float:left;\" />\r\n		{strip}\r\n		{foreach name=\"method1\" from=$competition.weeklyWinners.$weeklyWinnersMethod1 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod1}\r\n			{if $smarty.foreach.method1.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method1.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method1.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> led the way last week by \r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{else}<b>default</b>{/if}\r\n			{else}\r\n				{if $smarty.foreach.method1.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod1 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod1 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod1 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod1 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod1 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod2} \r\n		<td valign=\"top\" width=\"50%\">\r\n		<div class=\"cellHeadLarge\" style=\"width:auto;float:none;\">{$weeklyWinnersMethod2}</div>\r\n		<img src=\"{$skinFolder}images/winner_2.gif\" style=\"float:left;\" />\r\n		{* display var=$competition.weeklyWinners.users *}\r\n		{strip}\r\n		{foreach name=\"method2\" from=$competition.weeklyWinners.$weeklyWinnersMethod2 item=\"username\"}\r\n			{assign var=\"userValue\" value=$competition.weeklyWinners.users.$username.$weeklyWinnersMethod2}\r\n			\r\n			{if $smarty.foreach.method2.iteration gt 3 OR $userValue lte 0}{if $smarty.foreach.method2.iteration eq 1}Don\'t forget to update your progress so there will be winners next week{/if}<i>!</i>{php}break;{/php}\r\n			{elseif $smarty.foreach.method2.iteration eq 1}\r\n				<b>{$username|default:\"[ ?? ]\"|ucfirst}</b> won by \r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}losing <b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}losing <b>{$userValue}% of thier body weight{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}exercising <b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}exercising <b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}gaining <b>{$userValue}</b> pounds{/if}\r\n			{else}\r\n				{if $smarty.foreach.method2.iteration eq 2}, followed by <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{else}, and then <b>{$username|default:\"[ ?? ]\"|ucfirst}</b> with \r\n				{/if}\r\n				{if $weeklyWinnersMethod2 eq \'Weight Lost\'}<b>{$userValue}</b> pounds{elseif $weeklyWinnersMethod2 eq \'Percentage Weight Lost\'}<b>{$userValue}%{elseif $weeklyWinnersMethod2 eq \'Minutes Exercise\'}<b>{$userValue}</b> minutes{elseif $weeklyWinnersMethod2 eq \'Distance Exercised\'}<b>{$userValue}</b> miles{elseif $weeklyWinnersMethod2 eq \'Weight Gained\'}<b>{$userValue}</b> pounds{/if}\r\n			{/if}\r\n		{/foreach}\r\n		{/strip}\r\n		</td>\r\n	{/if}\r\n	{if $weeklyWinnersMethod1}\r\n	</tr></table></div>{/if}\r\n{/if}\r\n{* ********************************************************* *}\r\n\r\n{if $acm->isDomainAdmin() and $smarty.request.debug}\r\n	{display var=$competition}\r\n{/if} \r\n\r\n{* ******************************** COMPARISON GRAPHS ***************************************** *}\r\n{if $competition.availableGraphs|@count}\r\n{include_php file=\"shared_handle:competition.graphs\"}\r\n<h2 class=\"withBG\"><a name=\"graph\"></a>\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'graphs\', \'\', \'showHide\');\"><img id=\"graphs_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Comparison Graphs &nbsp; <small><i>No graph? <a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">click here</a> to download the free Flash Player plug-in.</i></small></h2>\r\n<div id=\"graphs\" style=\"display:block;\">\r\n	<table border=\"0\" cellpadding=\"0\" width=\"100%\">\r\n	{if $competition.scoringMethod eq \"Distance Exercised\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=distanceExercised&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{elseif $competition.scoringMethod eq \"Minutes Exercise\"}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=minutesExercise&fillPrevious=0&precision=1&totalChange=0&format=wide\"}\r\n	{else}  {* weight lost, percent lost, weight gained, etc... *}\r\n		{assign var=\"graphURL\" value=\"?pg=flashgraph-frame&compId=`$competition.id`&type=weight&fillPrevious=1&precision=0&totalChange=1&format=wide\"}\r\n	{/if}\r\n	<tr>\r\n		<td><div style=\"border:#999 1px solid;background-color:#FFF;padding:5px;\"><iframe name=\"graphwindow\" src=\"{$graphURL}\" frameborder=\"0\" width=\"625\" height=\"220\" scrollbars=\"no\"></iframe></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td valign=\"top\" align=\"center\" width=\"100%\">\r\n		<small>\r\n		{foreach name=\"graphTypes\" from=$competition.availableGraphs key=\"graphType\" item=\"graphParams\"}\r\n		<a href=\"?pg=flashgraph-frame&compId={$competition.id}&{$graphParams}\" target=\"graphwindow\">{$graphType}</a>{if $smarty.foreach.graphTypes.iteration neq $competition.availableGraphs|@count} | {/if}\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	{* <tr>\r\n		<td colspan=\"2\">\r\n			<h3 class=\"withBG\">Compare With Stars!</h3>\r\n			<div>To graphically and numerically compare to different \"stars\", click a \r\n				category and select one or more stars (hold down the CTRL or SHIFT \r\n				key to select/deselect multiple) then click the \"Compare Now!\" \r\n				button below. When you do, the graph above will be updated to include\r\n				the selected \"stars\" and you will see a comparison window appear below\r\n				to show how you compare.</div>\r\n\r\n			<!-- This DIV is initially Empty. Will contain IFRAME of comparison view. -->\r\n			<div id=\"compareFrameDiv\" style=\"width:375px; display:none;\"><iframe name=\"compareFrame\" src=\"?pg=compare-frame\" frameborder=\"0\" width=\"375\" height=\"180\" scrollbars=\"no\"></iframe></div>\r\n\r\n			<table xwidth=\"99%\" cellspacing=\"1\" cellpadding=\"1\">\r\n			<tr>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'players\');\" class=\"button\">Players</a>\r\n					<div id=\"players\" style=\"display:block;\">\r\n						<select size=\"6\" id=\"comparePlayers\" name=\"compare[players]\" style=\"width:100%\">\r\n						{if $competition.style eq \'Group-vs-Group\'}\r\n							{foreach from=$competition.teams item=\"teams\" key=\"teamName\"}\r\n								{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n									{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$userName}</option>{/if}\r\n								{/foreach}\r\n							{/foreach}\r\n						{else}\r\n							{foreach from=$competition.users item=\"users\" key=\"username\" name=\"dateUpdated\"}\r\n								{if $users.hideInitialWeight neq \"Yes\" OR $users.id eq $user->id}<option value=\"{$users.id}\">{$username}</option>{/if}\r\n							{/foreach}\r\n						{/if}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			<td xwidth=\"10%\" style=\"border-left:1px solid #CCC; border-right:1px solid #CCC;\" valign=\"middle\" align=\"center\"><b>Versus</b></td>\r\n			<td xwidth=\"45%\" align=\"center\">\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'animals\');\" class=\"button\">Animals</a>\r\n					<div id=\"animals\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAnimals\" multiple=\"multiple\" name=\"compare[animals]\" style=\"width:100%;\">\r\n						{foreach from=$stars.animals item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'athletes\');\" class=\"button\">Athletes</a>\r\n					<div id=\"athletes\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareAthletes\" multiple=\"multiple\" name=\"compare[athletes]\" style=\"width:100%;\">\r\n						{foreach from=$stars.athletes item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'movies\');\" class=\"button\">Movie Stars</a>\r\n					<div id=\"movies\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"compareMovies\" multiple=\"multiple\" name=\"compare[movies]\" style=\"width:100%;\">\r\n						{foreach from=$stars.movies item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n				<div class=\"chunk\" style=\"width:150px;\">\r\n					<a href=\"javascript://\" onclick=\"toggle(\'politics\');\" class=\"button\">Politicians</a>\r\n					<div id=\"politics\" style=\"display:none;\">\r\n						<select size=\"6\" id=\"comparePolitics\" multiple=\"multiple\" name=\"compare[politics]\" style=\"width:100%;\">\r\n						{foreach from=$stars.politics item=\"row\"}\r\n							<option value=\"{$row.id}\">{$row.name}</option>\r\n						{/foreach}\r\n						</select>\r\n					</div>\r\n				</div>\r\n			</td>\r\n			</tr>\r\n			<tr>\r\n			<td colspan=\"3\" align=\"center\">\r\n				<br /><a href=\"#graph\" class=\"button\" onclick=\"goCompareGraph();\"> &nbsp; &gt; Compare Now! &lt; &nbsp; </a><br />\r\n			</td>\r\n			</table>\r\n		</td>\r\n	</tr> *}\r\n	</table>\r\n<br />\r\n</div>\r\n{/if}\r\n\r\n{*   comparisons currently disabled\r\n{include_php file=\"shared_handle:getStarStats\"}\r\n\r\n<script language=\"javascript\">{literal}\r\n\r\nfunction goCompareGraph() {\r\n	var elementIds = Array(\'compareAnimals\', \'compareAthletes\', \'compareMovies\', \'comparePolitics\');\r\n	var obj = \'\';\r\n	var ids = \'\';\r\n\r\n	for (var a = 0; a < elementIds.length; a++) {\r\n		obj = document.getElementById(elementIds[a]);\r\n\r\n		for (var x = 0; x < obj.options.length; x++) {\r\n			if (obj.options[x].selected)\r\n				ids += obj.options[x].value + \',\';\r\n		}\r\n	}\r\n\r\n	if (ids) {\r\n		ids = ids.replace(/\\,$/, \'\');\r\n		var url = \'?pg=flashgraph-frame&compId={/literal}{$competition.id}{literal}&type=weight&fillPrevious=1&precision=0&stars=\' + ids;\r\n		graphwindow.location.replace(url);\r\n\r\n		// Now update the content of the compare frame.\r\n		obj = document.getElementById(\'compareFrameDiv\');\r\n		obj.style.display = \'block\';\r\n		\r\n		obj = document.getElementById(\'comparePlayers\');\r\n		var userIds = \'\';\r\n\r\n		for (var x = 0; x < obj.options.length; x++)\r\n			if (obj.options[x].selected)\r\n				userIds += obj.options[x].value;\r\n\r\n		compareFrame.location.replace(\'?pg=compare-frame&stars=\' + ids + \'&userId=\' + userIds);\r\n	} else {\r\n		alert (\'Click on one of the categories to the left and select as many \"stars\" as you would like.\\n\\nTo select multiple \"stars\", hold down the SHIFT or CTRL key while clicking on their names.\\n\\nWhen finished, click this link again to see the comparison.\');\r\n	}\r\n}\r\n\r\n{/literal}</script>\r\n*}  {* End commented out comparison stuff *}\r\n\r\n{* ******************************** GROUP TEAMS/PLAYERS SUMMARY W/MOVING ***************************************** *}\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'teams\', \'\', \'showHide\');\"><img id=\"teams_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	The Teams &nbsp; <small><i>Assignments and statistics</i></small></h2>\r\n<div id=\"teams\" style=\"display:block;\">\r\n<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\"><tr><td>\r\n	{if $isManager}\r\n		<form name=\"changeTeam\" action=\"index.php\" method=\"POST\" style=\"margin:0px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$competition.id}\">\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n	{/if}\r\n		{assign var=\"minEx\" value=\"Minutes Exercise\"}\r\n		{assign var=\"distEx\" value=\"Distance Exercised\"}\r\n		{assign var=\"pctLst\" value=\"Percentage Weight Lost\"}\r\n		{assign var=\"wtLst\" value=\"Percentage Weight Lost\"}\r\n		{foreach from=$competition.teams item=\"teams\" key=\"teamName\"}\r\n			{counter name=\"counterI\" start=\"0\" print=0}\r\n			<div id=\"playersList{counter}\" style=\"float:left;width:310px;overflow:hidden;word-wrap:nowrap; margin:0px 5px 5px 0px;\">\r\n			<h4>{if $teams.name eq \"Waiting to Join\"}Not assigned to a team{else}{$teams.name|default:\"&nbsp;\"}{/if}</h4>\r\n		{if $scoringMethod|regex_match:\"/exercise/i\"}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			<span class=\"cellHeadSmall\">Min.</span>\r\n			<span class=\"cellHeadSmall\">Dist.</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" style=\"width:14px;height:14px;margin:0px 2px;\" />{/if}{$userName}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$minEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.$distEx|default:\"-\"|replace:\".00\":\"\"}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.dateOfEntry|date_format2:\"n/j/y\"|default:\"-\"}</small></span>\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{else}\r\n			<span class=\"cellHeadLarge\">Name</span>\r\n			<span class=\"cellHeadTiny\">%</span>\r\n			<span class=\"cellHeadSmall\">Update</span><br />\r\n			{foreach from=$teams.users item=\"users\" key=\"userName\"}\r\n				<span class=\"cellLarge\" style=\"clear:left;text-align:left;\"><small>{if $isManager}<input type=\"checkbox\" name=\"changeTeam[players][{$userName}]\" />{/if}{$userName}</small></span>\r\n				<span class=\"cellTiny\"><small>{if $users.hideInitialWeight neq \"Yes\"}{$users.$pctLst|number_format:\"2\"|replace:\".00\":\"\"}{else}-{/if}</small></span>\r\n				<span class=\"cellSmall\"><small>{$users.dateOfEntry|date_format2:\"n/j/y\"|default:\"-\"}</small></span><br />\r\n			{foreachelse}\r\n				{* No players assigned to this team. *}\r\n			{/foreach}\r\n		{/if}\r\n			</div>\r\n		{/foreach}\r\n	{if $isManager}\r\n		<br />\r\n		<select name=\"changeTeam[team]\">\r\n			<option value=\"\">Move selected players to...</option>\r\n			{foreach from=$competition.teams item=\"newTeams\" key=\"newTeamName\"}\r\n				{*if $newTeams.name ne $teams.name and $newTeams.name ne \"Waiting to Join\"*}\r\n				{if $newTeams.name ne \"Waiting to Join\"}\r\n					<option value=\"{$newTeams.name}\">{$newTeams.name}</option>\r\n				{/if}\r\n			{/foreach}\r\n		</select><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Submit Changes\">\r\n		</form>\r\n	{/if}\r\n</td></tr></table>\r\n</div>\r\n{/if}\r\n\r\n{* ********************** LEADERS ******************************* *}\r\n{* <div class=\"chunk300\">\r\n<h2 class=\"withBG\">Leaders</h2>\r\n<div id=\"leadersList\" class=\"contentColumn\">\r\n	<span class=\"cellHeadLarge\">{if $competition.style eq \'Group-vs-Group\'}# of members{else}Competitor{/if}</span\r\n	><span class=\"cellHeadSmall\">{if $scoringMethod eq \"Percentage Weight Lost\"}% Lost{elseif $scoringMethod eq \"Weight Lost\"}lbsLost{elseif $scoringMethod eq \"Weight Gained\"}lbsGain{elseif $scoringMethod eq \"Minutes Exercise\"}Min.{elseif $scoringMethod eq \"Distance Exercised\"}Dist.{/if}</span\r\n	><br />\r\n{if $competition.style eq \'Group-vs-Group\'}\r\n	{foreach from=$competition.teams item=\"compUser\" key=\"username\"}\r\n	<span class=\"cell\"><small>{$compUser.userCount}</small></span><br />\r\n	{/foreach}\r\n{else}\r\n	{foreach from=$competition.users item=\"compUser\" key=\"username\" name=\"leaders\"}\r\n	{*$smarty.foreach.leaders.iteration* }<span class=\"cellLarge\"><small>{$username}</small></span>\r\n	<span class=\"cellSmall\"><small>{if $scoringMethod eq \"Percentage Weight Lost\"}{$compUser.$scoringMethod|number_format:\"2\"} %{else}{$compUser.$scoringMethod}{/if}</small></span><br />\r\n	{/foreach}\r\n{/if}\r\n</div> *}'),(2470,91,0.81,'smarty','0','Adding weekly winners category selection',1100648695,2,'144.35.86.125','{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"newcomp\" from=\"newcomp\" assign=\"newcomp\"}\r\n\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n{* display var=$newcomp *}\r\n\r\n<h1 class=\"underline\">Create a Competition: Step 1</h1>\r\n<p>In this first step you will select the competition arena, all the detials of your competition, and the type of invitation letter you want to send. Then click \'Next\'</p>\r\n\r\n<form name=\"compStartForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{toc_next}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectComp\',\'hideSelectComp\', \'showHide\');\"><img id=\"selectComp_img\" src=\"./img/blank.gif\" width=\"48\" height=\"17\" class=\"showHide_{if $newcomp.hideSelectComp eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Select a Competition Arena:</h2>\r\n<input type=\"hidden\" id=\"hideSelectComp\" name=\"newcomp[hideSelectComp]\" value=\"{$newcomp.hideSelectComp|default:0}\" />\r\n<div id=\"selectComp\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectComp eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div id=\"corporate\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Corporate</h2>\r\n				Discover how WeightLossWars can help your business cut costs, and boost productivity!</div>\r\n			</div>\r\n					\r\n			<div id=\"friends\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Family/Friends</h2>\r\n				\'Call out\' your friends and see who has what it takes to win the Weight War!</div>\r\n			</div>\r\n				\r\n			<div id=\"partner\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Partner/Spouse</h2>\r\n				Face off in a grueling head to head competition against your spouse or close friend.</div>\r\n			</div>\r\n				\r\n			<div id=\"group\" style=\"display:{if $newcomp.type eq \"group\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_alert.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Group/Club</h2>\r\n				Team up with your homies to battle another group in an all-out weight loss rumble</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"compRadios\">\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"corporateRadio\" value=\"corporate\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'corporateRadio\').checked=\'true\';selectType();return false;\">Corporate</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"friendsRadio\" value=\"friends\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendsRadio\').checked=\'true\';selectType();return false;\">Family / Friends</a><br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"partnerRadio\" value=\"partner\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'partnerRadio\').checked=\'true\';selectType();return false;\">Partner / Spouse</a><!-- <br />\r\n				<input type=\"radio\" name=\"newcomp[type]\" id=\"groupRadio\" value=\"group\" onclick=\"selectType();\" onchange=\"selectType();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'groupRadio\').checked=\'true\';selectType();return false;\">Group / Club</a> -->\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n{assign var=\"includeX\" value=\"true\"}\r\n\r\n{if $newcomp.startDate}\r\n	{assign var=\"startDate\" value=$newcomp.startDate}\r\n{else}\r\n	{assign var=\"startDate\" value=$smarty.now}\r\n{/if}\r\n{if $newcomp.endDate}\r\n	{assign var=\"endDate\" value=$newcomp.endDate}\r\n{else}\r\n	{assign var=\"endDate\" value=$smarty.now|math:\"x+5184000\"}  {* Now + 2 Months *}\r\n{/if}\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectParams\',\'hideSelectParams\', \'showHide\');\"><img id=\"selectParams_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideSelectParams eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Competition Details:</h2>\r\n<input type=\"hidden\" id=\"hideSelectParams\" name=\"newcomp[hideSelectParams]\" value=\"{$newcomp.hideSelectParams|default:0}\" />\r\n<div id=\"selectParams\" style=\"margin:10px; display:{if $newcomp.hideSelectParams eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Title:</div></td>\r\n		<td><input type=\"text\" name=\"newcomp[title]\" class=\"textInput\" size=\"22\" maxlength=\"32\" style=\"width:220px;\" /></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Give your competition a title.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Start Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar0\" style=\"float:left; display:none; border:#999999 1px solid; width:100px; z-index:20;\" align=\"center\">\r\n				<iframe name=\"frameCalendar\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=0&year={$startDate|date_format2:\"Y\"}&month={$startDate|date_format2:\"m\"}&day={$startDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLabel\" disabled=\"disabled\" name=\"newcomp[startDateViewable]\" value=\"{if not $newcomp.startDate}Click a Date >{else}{$newcomp.startDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar0\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[startDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>End Date:</div></td>\r\n		<td valign=\"middle\"><div id=\"fCalendar1\" style=\"float:left; display:none; border:#999999 1px solid; width:100px;\" align=\"center\">\r\n				<iframe name=\"frameCalendar2\" height=\"144\" width=\"100%\" src=\"?pg=jscalendar&id=1&year={$endDate|date_format2:\"Y\"}&month={$endDate|date_format2:\"m\"}&day={$endDate|date_format2:\"j\"}\" scrolling=\"No\" frameborder=\"image/gif\"></iframe>\r\n			</div>\r\n			<input type=\"text\" class=\"textLabel\" disabled=\"disabled\" name=\"newcomp[endDateViewable]\" value=\"{if not $newcomp.endDate}Click a Date ^{else}{$newcomp.endDate|date_format2:\"M j, Y\"}{/if}\">\r\n			<a href=\"javascript:toggle(\'fCalendar1\');\" onmouseover=\"self.status=\'Show/Hide Calendar\'; return true;\" onmouseout=\"self.status=\'\'; return true;\"><img src=\"{$skinFolder}images/ico_calendar.gif\" border=\"0\" alt=\"Show/Hide Calendar\" /></a>\r\n			<input type=\"hidden\" name=\"newcomp[endDate]\" value=\"\">\r\n		</td>\r\n	</tr>\r\n	\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Competition Type:</div></td>\r\n		<td><select name=\"newcomp[style]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Everyone-vs-Everyone\">Belly to Belly</option>\r\n			<option value=\"Group-vs-Group\">Team vs. Team</option>\r\n			<option value=\"One-on-One\">One on One</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Award Method:</div></td>\r\n		<td><select name=\"newcomp[potMethod]\" size=\"1\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Per-competitor Donations\">Each competitor Donates</option>\r\n			<option value=\"Individual Charity\">I will supply the prize</option>\r\n			<option value=\"Company Charity\">My Company will supply the prize</option>\r\n			<option value=\"Other-None\">Other-None</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>The Award can be pooled together by everyone, or you can supply it all yourself by selecting \"I will supply the prize\".</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\" nowrap><div>Award Contribution Amount:</div></td>\r\n		<td valign=\"middle\"><span style=\"position:relative; top:-5px;\">$</span><input type=\"text\" name=\"newcomp[individualPotAmount]\" class=\"textInput\" size=\"4\" maxlength=\"4\" style=\"width:30px;\" /><span style=\"position:relative; top:-5px;\">.00</span></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Enter the amount that each competitor will need to agree to pay to the winner, or if you are supplying it all yourself, enter that amount! (This amount is not collected by WeightLossWars, it is only displayed to provide motivation)</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\" nowrap><div>Award Description:</div></td>\r\n		<td valign=\"middle\"><input type=\"text\" name=\"newcomp[potDescription]\" class=\"textInput\" size=\"22\" maxlength=\"255\" style=\"width:220px;\"  /></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>(optional) Enter a brief description of the Award.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>The Judging Method:</div></td>\r\n		<td><select name=\"newcomp[scoringMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage of Body Weight Lost</option>\r\n			<option value=\"Minutes Exercise\">Minutes Exercise</option>\r\n			<option value=\"Distance Exercised\">Distance Exercised</option>\r\n			<option value=\"Weight Gained\">Weight Gained</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>This is how the winner is determined.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><span>Tie-Breaker Method:</span></td>\r\n		<td><select name=\"newcomp[tieBreakerMethod]\" size=\"1\" onchange=\"updateScoringMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\"{if not $newcomp.tieBreakerMethod} selected{/if}>Percentage Weight Lost</option>\r\n			<option value=\"Minutes Exercise\">Minutes Exercise</option>\r\n			<option value=\"Distance Exercised\">Distance Exercised</option>\r\n			<option value=\"Weight Gained\">Weight Gained</option></select></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>This is how the winner is determined, in the event of a tie.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><div>Weekly Winners Method 1:</div></td>\r\n		<td><select name=\"newcomp[weeklyWinnersMethod1]\" size=\"1\" onchange=\"updateWeeklyWinnersMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"\">-- None --</option>\r\n			<option value=\"Weight Lost\"{if not $newcomp.weeklyWinnersMethod1} selected{/if}>Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage of Body Weight Lost</option>\r\n			<option value=\"Minutes Exercise\">Minutes Exercise</option>\r\n			<option value=\"Distance Exercised\">Distance Exercised</option>\r\n			<option value=\"Weight Gained\">Weight Gained</option></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Weekly winners will be displayed, based on this stat.</small></div></td>\r\n	</tr>\r\n	<tr>\r\n		<td align=\"right\" valign=\"middle\"><span>Weekly Winners Method 2:</span></td>\r\n		<td><select name=\"newcomp[weeklyWinnersMethod2]\" size=\"1\" onchange=\"updateWeeklyWinnersMethod(this);\" class=\"textInput\" style=\"width:220px;\" />\r\n			<option value=\"\">-- None --</option>\r\n			<option value=\"Weight Lost\">Weight Lost</option>\r\n			<option value=\"Percentage Weight Lost\">Percentage Weight Lost</option>\r\n			<option value=\"Minutes Exercise\"{if not $newcomp.weeklyWinnersMethod2} selected{/if}>Minutes Exercise</option>\r\n			<option value=\"Distance Exercised\">Distance Exercised</option>\r\n			<option value=\"Weight Gained\">Weight Gained</option></select></select></td>\r\n	</tr>\r\n	<tr>\r\n		<td>&nbsp;</td>\r\n		<td><div style=\"margin-left:15px;\"><small>Additional weekly winners category.</small></div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'selectInvite\', \'hideSelectInvite\', \'showHide\');\"><img id=\"selectInvite_img\" src=\"./img/blank.gif\" class=\"showHide_{if $newcomp.hideSelectInvite eq 1}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Choose an Invitation Style:</h2>\r\n<input type=\"hidden\" id=\"hideSelectInvite\" name=\"newcomp[hideSelectInvite]\" value=\"{$newcomp.hideSelectInvite|default:0}\" />	\r\n<div id=\"selectInvite\" style=\"margin:10px;\" style=\"display:{if $newcomp.hideSelectInvite eq 1}none{else}block{/if};\">\r\n	<table>\r\n	<tr>\r\n		<td><div>\r\n			Select the type of invitation you want to send. You can smack talk them to get their blood boiling, send them a motivating challenge, or a friendly, inspiring invitation.</div>\r\n				\r\n		<div id=\"smack\" style=\"display:{if $newcomp.type eq \"corporate\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_money.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">SMACK!</h2>\r\n				<b>example:</b><br /> &quot;Hey Blubber Butt,I challenge you to the battle of all battles...&quot;</div>\r\n			</div>\r\n					\r\n			<div id=\"challenge\" style=\"display:{if $newcomp.type eq \"friends\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_family.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Challenge</h2>\r\n				<b>example:</b><br /> &quot;I\'m putting up $100 that says I can take you down in a 6-week weight-loss competition...&quot;</div>\r\n			</div>\r\n				\r\n			<div id=\"friendly\" style=\"display:{if $newcomp.type eq \"partner\"}block{else}none{/if};\">\r\n				<img src=\"{$skinFolder}images/icon_weights.gif\" width=\"150\" height=\"150\" class=\"icon\" style=\"float:left;\" />\r\n				<div class=\"chunk\" style=\"text-align:left; width:250px; height:140px;\"><h2 class=\"withBG\">Friendly</h2>\r\n				<b>example:</b><br /> &quot;A healthy weight loss challenge is what we all need to lose these extra pounds...&quot;</div>\r\n			</div>\r\n			\r\n			<div class=\"chunk\" style=\"text-align:left; width:140px; height:140px;\" id=\"inviteRadios\">\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"smackRadio\" value=\"smack\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'smackRadio\').checked=\'true\';selectInvite();return false;\">SMACK!</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"challengeRadio\" value=\"challenge\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'challengeRadio\').checked=\'true\';selectInvite();return false;\">Challenge</a><br />\r\n				<input type=\"radio\" name=\"newcomp[invitationType]\" id=\"friendlyRadio\" value=\"friendly\" onclick=\"selectInvite();\" onchange=\"selectInvite();\"> <a href=\"javascript://\" onclick=\"document.getElementById(\'friendlyRadio\').checked=\'true\';selectInvite();return false;\">Friendly</a>\r\n			</div></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"javascript:document.compStartForm.submit();\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>\r\n\r\n{stored_object_fill_form object=$newcomp name=\"newcomp\"}\r\n\r\n</form>\r\n\r\n	<script language=\"JavaScript\">{literal}\r\n	function selectType() {\r\n		var type;\r\n		var types = Array(\'corporate\',\'friends\',\'partner\',\'group\');\r\n		var elems = document.getElementsByName(\'newcomp[type]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'friends\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function selectInvite() {\r\n		var type;\r\n		var types = Array(\'smack\',\'challenge\',\'friendly\');\r\n		var elems = document.getElementsByName(\'newcomp[invitationType]\');\r\n	\r\n		for (var x = 0; x < elems.length; x++) {\r\n			if (elems[x].checked) {\r\n				type = elems[x].value;\r\n				break;\r\n			}\r\n		}\r\n	\r\n		if (!type) type = \'smack\';\r\n	\r\n		for (x = 0; x < types.length; x++) {\r\n			document.getElementById(types[x]).style.display = (types[x] != type) ? \'none\' : \'block\';\r\n		}\r\n	\r\n		return false;\r\n	}\r\n	\r\n	function updateScoringMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[scoringMethod]\') ? \'newcomp[tieBreakerMethod]\' : \'newcomp[scoringMethod]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		if (obj.selectedIndex == other.selectedIndex) {\r\n			if (obj.selectedIndex == 0) {\r\n				other.selectedIndex = 1;\r\n			} else {\r\n				other.selectedIndex = 0;\r\n			}\r\n		}		\r\n	}\r\n	\r\n	function updateWeeklyWinnersMethod(obj) {\r\n		var name = obj.name;\r\n		var other = (name == \'newcomp[weeklyWinnersMethod1]\') ? \'newcomp[weeklyWinnersMethod2]\' : \'newcomp[weeklyWinnersMethod1]\';\r\n		other = document.getElementsByName(other)[0];\r\n	\r\n		if (obj.selectedIndex == other.selectedIndex) {\r\n			if (obj.selectedIndex == 0) {\r\n				other.selectedIndex = 1;\r\n			} else {\r\n				other.selectedIndex = 0;\r\n			}\r\n		}\r\n\r\n		if (name == \'newcomp[weeklyWinnersMethod2]\' && obj.selectedIndex > 0 && other.selectedIndex == 0) {\r\n			other.selectedIndex = obj.selectedIndex;\r\n			obj.selectedIndex = 0;\r\n		} else if (name == \'newcomp[weeklyWinnersMethod1]\' && obj.selectedIndex == 0 && other.selectedIndex > 0) {\r\n			obj.selectedIndex = other.selectedIndex;\r\n			other.selectedIndex = 0;\r\n		}\r\n	}\r\n	\r\n	{/literal}\r\n</script>'),(2665,113,1.18,'smarty','0','Fixed redirect to not specify the vanity and domain',1103320920,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{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{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\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\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	<div style=\"float:left;\">*Country:</div>\r\n	<div id=\"signupcountry\" style=\"float:right; border:1px solid black;\"><input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n<div style=\"clear:left;\">* indicates a required field</div>\r\n</td></tr></table>\r\n\r\n\r\n<div id=\"fMatches\" class=\"xFloat\" style=\"padding:3px; background-color:#FFFFFF; border:#666666 1px solid;\">\r\n</div>\r\n\r\n{if $modules.spadeAutoComplete}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete2}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', states, true);\r\n		initAutoComplete(\'signup[country]\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" 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}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(4594,268,0.10,'smarty','0','Page created.',1131738592,1124,'128.187.0.165',''),(4595,268,0.11,'smarty','0','Page created.',1131739422,1124,'128.187.0.165','<hl>Strength Training for Older Adults</hl>\r\n<p>Research has shown that strengthening exercises are both safe and effective for women and men of all ages, including those who are not in perfect health. In fact, people with health concerns—including heart disease or arthritis—often benefit the most from an exercise program that includes lifting weights a few times each week.</p>\r\n\r\n<p>Strength training, particularly in conjunction with regular aerobic exercise, can also have a profound impact on a person\'s mental and emotional health.</p>\r\n<p><b>Benefits of Strength Training</b></p>\r\n<p>There are numerous benefits to strength training regularly, particularly as you grow older. It can be very powerful in reducing the signs and symptoms of numerous diseases and chronic conditions, among them:</p>\r\n•	<li>arthritis</li>\r\n•	<li>diabetes</li>\r\n•	<li>osteoporosis</li>\r\n•	<li>obesity</li>\r\n•	<li>back pain</li>\r\n•	<li>depression <li>\r\n\r\n<p><b>Arthritis Relief</b></p>\r\n<p>Tufts University recently completed a strength-training program with older men and women with moderate to severe knee osteoarthritis. The results of this sixteen-week program showed that strength training decreased pain by 43%, increased muscle strength and general physical performance, improved the clinical signs and symptoms of the disease, and decreased disability. The effectiveness of strength training to ease the pain of osteoarthritis was just as potent, if not more potent, as medications. Similar effects of strength training have been seen in patients with rheumatoid arthritis.</p>\r\n\r\n<p><b>Strengthening of Bone</b></p>\r\n<p>Post-menopausal women can lose 1-2% of their bone mass annually. Results from a study conducted at Tufts University, which were published in the Journal of the American Medical Association in 1994, showed that strength training increases bone density and reduces the risk for fractures among women aged 50-70.</p>\r\n\r\n<p><b>Proper Weight Maintenance</b></p>\r\n<p>Strength training is crucial to weight control, because individuals who have more muscle mass have a higher metabolic rate. Muscle is active tissue that consumes calories while stored fat uses very little energy. Strength training can provide up to a 15% increase in metabolic rate, which is enormously helpful for weight loss and long-term weight control.</p>\r\n\r\n<p><b>Improved Glucose Control</b></p>\r\n<p>More than 14 million Americans have type II diabetes—a staggering three-hundred percent increase over the past forty years—and the numbers are steadily climbing. In addition to being at greater risk for heart and renal disease, diabetes is also the leading cause of blindness in older adults. Fortunately, studies now show that lifestyle changes such as strength training have a profound impact on helping older adults manage their diabetes. In a recent study of Hispanic men and women, 16 weeks of strength training produced dramatic improvements in glucose control that are comparable to taking diabetes medication. Additionally, the study volunteers were stronger, gained muscle, lost body fat, had less depression, and felt much more self-confident.</p>\r\n\r\n<p><b>Healthy State of Mind</b></p>\r\n<p>Strength training provides similar improvements in depression as anti-depressant medications. Currently, it is not known if this is because people feel better when they are stronger or if strength training produces a helpful biochemical change in the brain. It is most likely a combination of the two. When older adults participate in strength training programs, their self-confidence and self-esteem improve, which has a strong impact on their overall quality of life.</p>\r\n\r\n<p><b>Sleep Improvement</b></p>\r\n<p>People who exercise regularly enjoy improved sleep quality. They fall asleep more quickly, sleep more deeply, awaken less often, and sleep longer. As with depression, the sleep benefits obtained as a result of strength training are comparable to treatment with medication but without the side effects or the expense.</p>\r\n\r\n<p><b>Healthy Heart Tissue</b></p>\r\n<p>Strength training is important for cardiac health because heart disease risk is lower when the body is leaner. One study found that cardiac patients gained not only strength and flexibility but also aerobic capacity when they did strength training three times a week as part of their rehabilitation program. This and other studies have prompted the American Heart Association to recommend strength training as a way to reduce risk of heart disease and as a therapy for patients in cardiac rehabilitation programs.</p>\r\n'),(5040,133,0.87,'smarty','1','Updated userInfo to get email address and phone from user profile.',1146540895,2,'24.2.76.126','<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, email, phone1\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n{/if}\r\n{include_php file=\"shared_handle:cart\"}{include_php file=\"shared_handle:checkout\"}\r\n{if $cart.items|@count gt 0 AND $cart.items neq \'\'}{** Show INPUT **}\r\n{if $success.shipIsValid eq \"\" OR $success.billIsValid eq \"\"}\r\n	<p>Below is a list of your shopping cart products.</p>\r\n	<blockquote>\r\n	<table>\r\n	{foreach from=$cart.items key=\"productCode\" item=\"lineItem\"}\r\n		<tr><td align=\"right\"><small>{$lineItem.title}</small></td>\r\n		<td>{$lineItem.quantity} @ \r\n		${$lineItem.each|number_format:\"2\"} \r\n		= ${$lineItem.subtotal|number_format:\"2\"}</td></tr>\r\n	{/foreach}</table></blockquote>\r\n	<br />\r\n	<div class=\"underline pixel\"></div>\r\n	\r\n	<p>Enter the shipping and 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_{if $success.shipIsValid}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n	Shipping Information</h2>\r\n\r\n	<p>Enter the shipping address.<br />\r\n	<small>(* indicates a required field)</small></p>\r\n	\r\n	<div id=\"shipInfo\" style=\"display:{if $success.shipIsValid}none{else}block{/if};\">\r\n	<a href=\"javascript:shipFromBill();\" class=\"button\">Same as Billing</a><br />\r\n	*First Name:\r\n	<input type=\"text\" name=\"ship[firstname]\" value=\"{$smarty.request.ship.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	*Last Name:\r\n	<input type=\"text\" name=\"ship[lastname]\" value=\"{$smarty.request.ship.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	\r\n	Company:\r\n	<input type=\"text\" name=\"ship[company]\" value=\"{$smarty.request.ship.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*Address:\r\n	<input type=\"text\" name=\"ship[address1]\" value=\"{$smarty.request.ship.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"ship[address2]\" value=\"{$smarty.request.ship.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"ship[city]\" value=\"{$smarty.request.ship.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"ship[state]\" value=\"{$smarty.request.ship.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"ship[zip]\" value=\"{$smarty.request.ship.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	\r\n	*Country:\r\n	<input type=\"text\" name=\"ship[country]\" value=\"{$smarty.request.ship.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	*Email:\r\n	<input type=\"text\" name=\"ship[email]\" value=\"{$smarty.request.ship.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Method:\r\n	<input type=\"radio\" name=\"ship[method]\" value=\"3-5-day\"{if $smarty.request.ship.method neq \"2-day\"} checked{/if}> 3 - 5 day \r\n	<input type=\"radio\" name=\"ship[method]\" value=\"2-day\"{if $smarty.request.ship.method eq \"2-day\"} checked{/if}> 2 day <br />\r\n\r\n	</div>\r\n</div>\r\n\r\n<script language=\"javascript\">{literal}\r\n\r\nfunction billFromShip() {\r\n	df = document.checkoutForm;\r\n	df[\'bill[firstname]\'].value = df[\'ship[firstname]\'].value;\r\n	df[\'bill[lastname]\'].value = df[\'ship[lastname]\'].value;\r\n	df[\'bill[company]\'].value = df[\'ship[company]\'].value;\r\n	df[\'bill[address1]\'].value = df[\'ship[address1]\'].value;\r\n	df[\'bill[address2]\'].value = df[\'ship[address2]\'].value;\r\n	df[\'bill[city]\'].value = df[\'ship[city]\'].value;\r\n	df[\'bill[state]\'].value = df[\'ship[state]\'].value;\r\n	df[\'bill[zip]\'].value = df[\'ship[zip]\'].value;\r\n	df[\'bill[country]\'].value = df[\'ship[country]\'].value;\r\n}\r\n\r\nfunction shipFromBill() {\r\n	df = document.checkoutForm;\r\n	df[\'ship[firstname]\'].value = df[\'bill[firstname]\'].value;\r\n	df[\'ship[lastname]\'].value = df[\'bill[lastname]\'].value;\r\n	df[\'ship[company]\'].value = df[\'bill[company]\'].value;\r\n	df[\'ship[address1]\'].value = df[\'bill[address1]\'].value;\r\n	df[\'ship[address2]\'].value = df[\'bill[address2]\'].value;\r\n	df[\'ship[city]\'].value = df[\'bill[city]\'].value;\r\n	df[\'ship[state]\'].value = df[\'bill[state]\'].value;\r\n	df[\'ship[zip]\'].value = df[\'bill[zip]\'].value;\r\n	df[\'ship[country]\'].value = df[\'bill[country]\'].value;\r\n}\r\n\r\n{/literal}</script>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">\r\n		<div class=\"topRight hideShow\"><a href=\"javascript:toggle(\'billInfo\', \'\', \'showHide\');\"><img id=\"billInfo_img\" src=\"./img/blank.gif\" class=\"showHide_{if $success.billIsValid}off{else}on{/if}\" alt=\"show/hide\" border=\"0\" /></a></div>\r\n		Billing Information</h2>\r\n	<p>Enter the billing information for the credit card owner.<br />\r\n	<small>(* indicates a required field)</small></p>\r\n	\r\n	<div id=\"billInfo\" style=\"display:{if $success.billIsValid}none{else}block{/if};\">\r\n	<a href=\"javascript:billFromShip();\" class=\"button\">Same as Shipping</a><br />\r\n	*First Name:\r\n	<input type=\"text\" name=\"bill[firstname]\" value=\"{$smarty.request.bill.firstname|default:$userInfo.firstName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	*Last Name:\r\n	<input type=\"text\" name=\"bill[lastname]\" value=\"{$smarty.request.bill.lastname|default:$userInfo.lastName}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Company:\r\n	<input type=\"text\" name=\"bill[company]\" value=\"{$smarty.request.bill.company|default:$userInfo.company}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*Address:\r\n	<input type=\"text\" name=\"bill[address1]\" value=\"{$smarty.request.bill.address1|default:$userInfo.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"bill[address2]\" value=\"{$smarty.request.bill.address2|default:$userInfo.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"bill[city]\" value=\"{$smarty.request.bill.city|default:$userInfo.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"bill[state]\" value=\"{$smarty.request.bill.state|default:$userInfo.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"bill[zip]\" value=\"{$smarty.request.bill.zip|default:$userInfo.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"bill[country]\" value=\"{$smarty.request.bill.country|default:$userInfo.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n\r\n	*Phone:<small>(xxx-xxx-xxxx)\r\n	<input type=\"text\" name=\"bill[phone]\" value=\"{$smarty.request.bill.phone|default:$userInfo.phone1}\" 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	<script language=\"javascript\">{literal}\r\n	function verifyFormatCcnum(obj) {\r\n		if (obj.value.match(/[^\\d]/)) {\r\n			alert(\'The Credit Card Number should contain no dashes or spaces.\\n\\nI.E.  4007000000027\');\r\n			obj.value = obj.value.replace(/[^\\d]/g, \'\');\r\n			obj.focus();\r\n		}\r\n	}\r\n	function verifyFormatCcexp(obj) {\r\n		if (obj.value.match(/[^\\d]/)) {\r\n			alert(\'The format for Credit Card expiration date is MMYY with no slash.\\n\\nI.E.  0606  for June, 2006\');\r\n			obj.value = obj.value.replace(/[^\\d]/g, \'\');\r\n			obj.focus();\r\n		}\r\n	}\r\n	{/literal}</script>\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;\" onchange=\"verifyFormatCcnum(this);\" onkeyup=\"verifyFormatCcnum(this);\" /><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;\" onchange=\"verifyFormatCcexp(this);\" onkeyup=\"verifyFormatCcexp(this);\" /><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'),(5351,210,0.31,'smarty','0','Commented out the join later button',1302709620,12335,'208.53.57.52','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n<br />\r\nHi\r\n<br />\r\n<h2 class=\"withBG\">{$smarty.session.company.companyName}</h2>\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n<form name=\"joinCompetitions\" 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{* style_table folder=\"img/st/floatbox\" *}\r\n  <table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" width=\"100%\">\r\n	<tr>\r\n		<td bgcolor=\"#EEEEEE\">&nbsp;</td>\r\n		<td bgcolor=\"#EEEEEE\"><b>ID #</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Title</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Start Date</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>End Date</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Style</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Scoring Method</b></td>\r\n	</tr>\r\n	{foreach from=$availableCompetitions item=\"comp\"}\r\n	<tr>\r\n		{if not $user->inGroupName($comp.code)}\r\n		{assign var=\"isJoinable\" value=\"true\"}\r\n		<td><input type=\"checkbox\" name=\"joinComp[]\" value=\"{$comp.id}\" /></td>\r\n		<td>{$comp.id}</td>\r\n		<td>{$comp.title}</td>\r\n		<td>{$comp.startDate|date_format2:\"D n/j/y\"}</td>\r\n		<td>{$comp.endDate|date_format2:\"D n/j/y\"}</td>\r\n		<td>{$comp.style}</td>\r\n		<td>{$comp.scoringMethod}</td>\r\n		{else}\r\n		{assign var=\"isInComps\" value=\"true\"}\r\n		<td bgcolor=\"#FFCCCC\">&times;</td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.id}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.title}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.startDate|date_format2:\"D n/j/y\"}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.endDate|date_format2:\"D n/j/y\"}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.style}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.scoringMethod}</i></td>\r\n		{/if}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"7\" align=\"center\">There are currently no active competitions available.</td>\r\n	</tr>	\r\n	{/foreach}\r\n  </table>\r\n{* /style_table *}\r\n\r\n{* if !$isJoinable}{* log_error message=\'There are no competitions to join\' db_log=0 is_critical=0 * }{store_messages}{redirect href=\"?pg=my_login\"}{/if *}\r\n\r\n<br />\r\n<div align=\"center\">{if $isJoinable}<input type=\"submit\" name=\"submitBtn\" value=\"Join Selected Competitions\" />{*<input type=\"submit\" name=\"submitBtn\" value=\"Join Later\" />*}{else}<b>No Competitions To Join</b> <input type=\"submit\" name=\"submitBtn\" value=\"Go to Announcements\" />{/if}</div>\r\n{if $isInComps}\r\n<br />\r\n<div style=\"background-color:#FCC; margin-left:20px; width:250px;\">&times; - You are already a member</div>\r\n{/if}\r\n\r\n</form>\r\n\r\n{if $company.vanity eq \"myfamily\"}\r\n<div>\r\nClick <a href=\"?pg=5to9Rules\">here</a> for the 5 to 9 a-day instructions and rules\r\n</div>\r\n{/if}'),(5352,210,0.32,'smarty','0','Commented out the join later button',1302709643,12335,'208.53.57.52','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<h1>{$page.title}</h1>\r\n\r\nHi\r\n<br />\r\n<br />\r\n<h2 class=\"withBG\">{$smarty.session.company.companyName}</h2>\r\n\r\n{include_php file=\"shared_handle:availableCompetitions\"}\r\n\r\n<form name=\"joinCompetitions\" 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{* style_table folder=\"img/st/floatbox\" *}\r\n  <table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" width=\"100%\">\r\n	<tr>\r\n		<td bgcolor=\"#EEEEEE\">&nbsp;</td>\r\n		<td bgcolor=\"#EEEEEE\"><b>ID #</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Title</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Start Date</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>End Date</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Style</b></td>\r\n		<td bgcolor=\"#EEEEEE\"><b>Scoring Method</b></td>\r\n	</tr>\r\n	{foreach from=$availableCompetitions item=\"comp\"}\r\n	<tr>\r\n		{if not $user->inGroupName($comp.code)}\r\n		{assign var=\"isJoinable\" value=\"true\"}\r\n		<td><input type=\"checkbox\" name=\"joinComp[]\" value=\"{$comp.id}\" /></td>\r\n		<td>{$comp.id}</td>\r\n		<td>{$comp.title}</td>\r\n		<td>{$comp.startDate|date_format2:\"D n/j/y\"}</td>\r\n		<td>{$comp.endDate|date_format2:\"D n/j/y\"}</td>\r\n		<td>{$comp.style}</td>\r\n		<td>{$comp.scoringMethod}</td>\r\n		{else}\r\n		{assign var=\"isInComps\" value=\"true\"}\r\n		<td bgcolor=\"#FFCCCC\">&times;</td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.id}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.title}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.startDate|date_format2:\"D n/j/y\"}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.endDate|date_format2:\"D n/j/y\"}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.style}</i></td>\r\n		<td bgcolor=\"#FFCCCC\"><i>{$comp.scoringMethod}</i></td>\r\n		{/if}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"7\" align=\"center\">There are currently no active competitions available.</td>\r\n	</tr>	\r\n	{/foreach}\r\n  </table>\r\n{* /style_table *}\r\n\r\n{* if !$isJoinable}{* log_error message=\'There are no competitions to join\' db_log=0 is_critical=0 * }{store_messages}{redirect href=\"?pg=my_login\"}{/if *}\r\n\r\n<br />\r\n<div align=\"center\">{if $isJoinable}<input type=\"submit\" name=\"submitBtn\" value=\"Join Selected Competitions\" />{*<input type=\"submit\" name=\"submitBtn\" value=\"Join Later\" />*}{else}<b>No Competitions To Join</b> <input type=\"submit\" name=\"submitBtn\" value=\"Go to Announcements\" />{/if}</div>\r\n{if $isInComps}\r\n<br />\r\n<div style=\"background-color:#FCC; margin-left:20px; width:250px;\">&times; - You are already a member</div>\r\n{/if}\r\n\r\n</form>\r\n\r\n{if $company.vanity eq \"myfamily\"}\r\n<div>\r\nClick <a href=\"?pg=5to9Rules\">here</a> for the 5 to 9 a-day instructions and rules\r\n</div>\r\n{/if}'),(1681,133,0.57,'smarty','0','Added no_expire to the form.',1087702926,2,'24.2.105.196','<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	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=\"bill[email]\" value=\"{$smarty.request.bill.email|default:$userInfo.email}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n	</div>\r\n</div>\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	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	</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{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(1687,131,0.47,'smarty','0','added nowraps and heights on td\'s',1087776887,3,'24.10.220.247','<h1>My Profile - {$user->firstName}</h1>\r\n\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<br /><br />\r\n</td></tr></table>\r\n\r\n<table width=\"98%\" border=\"0\" height=\"302\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr>\r\n	<td height=\"60\" align=\"right\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\">Click to Update -&gt; &nbsp;</td>\r\n	<td rowspan=\"8\" width=\"555\"><iframe src=\"?pg=myprofile/statsframe&cid={$smarty.get.cid}#recent\" frameborder=\"0\" width=\"555\" height=\"328\" scrollbars=\"auto\"></iframe></td>\r\n</tr>\r\n<tr>\r\n	<td height=\"20\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>Weight </b>&nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"30\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>Weight Lost</b> &nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"30\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>BMI </b>&nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"30\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>Calories </b>&nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"30\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>Carbs </b>&nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"30\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>Fat </b>&nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"30\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>Exercise </b>&nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"30\" align=\"right\" valign=\"middle\" style=\"border-right: 1px solid black; border-bottom: 1px solid black;\" nowrap=\"nowrap\"><b>Distance Run</b> &nbsp;</td>\r\n</tr>\r\n<tr>\r\n	<td height=\"12\"><div style=\"height:12px;\"></div></td>\r\n</tr>\r\n</table>\r\n\r\n\r\n\r\n\r\n\r\n'),(1692,143,0.44,'smarty','0','heights in div styles, removed extra nbsp,',1087794877,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"none\"}{include_php file=\"shared_handle:getStats\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	<style>\r\n	.verticalText {ldelim}\r\n		writing-mode: tb-rl;\r\n		filter: flipv fliph;\r\n	{rdelim}\r\n	.tch {ldelim}\r\n		height:70px;\r\n		border-right:1px solid black;\r\n		border-bottom:1px solid black;\r\n		background-color:#9CF;\r\n	{rdelim}\r\n	.tc {ldelim}\r\n		height:30px;\r\n		border-right:1px dashed #CCC;\r\n		border-bottom:1px dashed #CCC;\r\n		background-color:#FFF;\r\n	{rdelim}\r\n	</style>\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{* display var=$userStats *}\r\n{* display var=$compData *}\r\n<table width=\"100%\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr>\r\n	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"70\" nowrap=\"nowrap\" align=\"right\" class=\"tch\"><div class=\"verticalText\">&nbsp;<b><a href=\"?pg=myprofile/update&start={$week.weekOfTimestamp}\" target=\"_blank\">Week {$num}</a></b>&nbsp;<br />{$week.weekOf}&nbsp;</div></td>\r\n		{/foreach}\r\n	{else}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"70\" nowrap=\"nowrap\" align=\"right\" class=\"tch\"><div class=\"verticalText\">&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</div></td>\r\n		{/foreach}\r\n	{/if}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.weight}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.totalLost|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.bmi|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.calories|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.carbs|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.fat|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.minutesExercise|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.distanceRun|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n</table><a name=\"recent\"></a>\r\n</body>\r\n</html>'),(1693,143,0.45,'smarty','0','text-align:center;',1087795047,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"none\"}{include_php file=\"shared_handle:getStats\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	<style>\r\n	.verticalText {ldelim}\r\n		writing-mode: tb-rl;\r\n		filter: flipv fliph;\r\n	{rdelim}\r\n	.tch {ldelim}\r\n		height:70px;\r\n		border-right:1px solid black;\r\n		border-bottom:1px solid black;\r\n		background-color:#9CF;\r\n	{rdelim}\r\n	.tc {ldelim}\r\n		height:30px;\r\n		border-right:1px dashed #CCC;\r\n		border-bottom:1px dashed #CCC;\r\n		background-color:#FFF;\r\n		text-align:center;\r\n	{rdelim}\r\n	</style>\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{* display var=$userStats *}\r\n{* display var=$compData *}\r\n<table width=\"100%\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr>\r\n	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"70\" nowrap=\"nowrap\" align=\"right\" class=\"tch\"><div class=\"verticalText\">&nbsp;<b><a href=\"?pg=myprofile/update&start={$week.weekOfTimestamp}\" target=\"_blank\">Week {$num}</a></b>&nbsp;<br />{$week.weekOf}&nbsp;</div></td>\r\n		{/foreach}\r\n	{else}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"70\" nowrap=\"nowrap\" align=\"right\" class=\"tch\"><div class=\"verticalText\">&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</div></td>\r\n		{/foreach}\r\n	{/if}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.weight}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.totalLost|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.bmi|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.calories|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.carbs|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.fat|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.minutesExercise|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.distanceRun|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n</table><a name=\"recent\"></a>\r\n</body>\r\n</html>'),(1697,143,0.47,'smarty','0','adding xWindow.. might not work.',1087797278,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"none\"}{include_php file=\"shared_handle:getStats\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	<style>\r\n	.verticalText {ldelim}\r\n		writing-mode: tb-rl;\r\n		filter: flipv fliph;\r\n	{rdelim}\r\n	.tch {ldelim}\r\n		height:40px;\r\n		border-right:1px solid black;\r\n		border-bottom:1px solid black;\r\n		background-color:#EEE;\r\n	{rdelim}\r\n	.tc {ldelim}\r\n		height:30px;\r\n		border-right:1px dashed #CCC;\r\n		border-bottom:1px dashed #CCC;\r\n		background-color:#FFF;\r\n		text-align:center;\r\n	{rdelim}\r\n	</style>\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{* display var=$userStats *}\r\n{* display var=$compData *}\r\n<table width=\"100%\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr>\r\n	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\">&nbsp;<a href=\"javascript://\" onclick=\"xWindow(\'weekUpdater\', 400, 300, 100, 200, \'?pg=myprofile/update&start={$week.weekOfTimestamp}\', 0, 0, \'auto\', 0, 0);\"><em>Week {$num}</em></a>&nbsp;<br /><small>{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{else}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\"><small>&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{/if}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.weight}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.totalLost|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.bmi|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.calories|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.carbs|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.fat|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.minutesExercise|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.distanceRun|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n</table><a name=\"recent\"></a>\r\n</body>\r\n</html>\r\n\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\n{/literal}</script>'),(1701,144,0.35,'smarty','0','added js for xWindow',1087800870,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'no\', \'no\', \'no\', \'no\', \'no\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" 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=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\">\r\n<tr>\r\n	<td colspan=\"8\"><h2 class=\"withBG\">Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}</h2></td>\r\n</tr>\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][id]\" value=\"{$dayInfo.$dayNo.id}\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Calories</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][calories]\" value=\"{$dayInfo.$dayNo.calories}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><small>(<a href=\"javascript://\" onclick=\"xWindow.load(\'?pg=nutrition&layout=false\');return false;\">Help</a>)</small> Carbs</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][carbs]\" value=\"{$dayInfo.$dayNo.carbs}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Fat</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][fat]\" value=\"{$dayInfo.$dayNo.fat}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Minutes Exercise</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][minutesExercise]\" value=\"{$dayInfo.$dayNo.minutesExercise}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Distance Run</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][distanceRun]\" value=\"{$dayInfo.$dayNo.distanceRun}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><input type=\"submit\" class=\"button\" value=\"Submit Updates!\"></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n{/if}'),(1702,143,0.50,'smarty','0','arg, fixed misplaced js in a tag.',1087801321,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"none\"}{include_php file=\"shared_handle:getStats\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	<style>\r\n	.verticalText {ldelim}\r\n		writing-mode: tb-rl;\r\n		filter: flipv fliph;\r\n	{rdelim}\r\n	.tch {ldelim}\r\n		height:40px;\r\n		border-right:1px solid black;\r\n		border-bottom:1px solid black;\r\n		background-color:#EEE;\r\n	{rdelim}\r\n	.tc {ldelim}\r\n		height:30px;\r\n		border-right:1px dashed #CCC;\r\n		border-bottom:1px dashed #CCC;\r\n		background-color:#FFF;\r\n		text-align:center;\r\n	{rdelim}\r\n	</style>\r\n\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'updateWindow\', 600, 360, 100, 100, \'yes\', \'no\', \'no\', \'no\', \'yes\', \'no\');\r\n{/literal}</script>\r\n\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{* display var=$userStats *}\r\n{* display var=$compData *}\r\n<table width=\"100%\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr>\r\n	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\">&nbsp;<a href=\"javascript://\" onclick=\"winUpdater.load(\'?pg=myprofile/update&start={$week.weekOfTimestamp}\');return false;\"><em>Week {$num}</em></a>&nbsp;<br /><small>{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{else}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\"><small>&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{/if}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.weight}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.totalLost|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.bmi|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.calories|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.carbs|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.fat|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.minutesExercise|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.distanceRun|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n</table><a name=\"recent\"></a>\r\n</body>\r\n</html>\r\n'),(1704,141,0.15,'smarty','0','arg, not none, i wanted blank.tpl',1087801568,3,'24.10.220.247','{if $smarty.request.layout eq \"false\"}{assign var=\"pgLayout\" value=\"blank\"}{/if}\r\n<h1 class=\"underline\">Nutrition Data</h1>\r\n<p>Browse through our database of nutrition information, to help you track your calories and such. This data has been provided by the USDA.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"nutrition\"\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=\"nutrition_main.tpl\"\r\n	ListTemplate=\"nutrition_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"nutrition_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'),(1705,141,0.16,'smarty','0','arg, not none, i wanted blank.tpl',1087801607,3,'24.10.220.247','{if $smarty.request.layout eq \"false\"}{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}{/if}\r\n<h1 class=\"underline\">Nutrition Data</h1>\r\n<p>Browse through our database of nutrition information, to help you track your calories and such. This data has been provided by the USDA.</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"nutrition\"\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=\"nutrition_main.tpl\"\r\n	ListTemplate=\"nutrition_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"nutrition_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'),(1706,144,0.37,'smarty','0','added location and status bars for window.',1087801682,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'no\', \'no\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" 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=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\">\r\n<tr>\r\n	<td colspan=\"8\"><h2 class=\"withBG\">Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}</h2></td>\r\n</tr>\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][id]\" value=\"{$dayInfo.$dayNo.id}\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Calories</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][calories]\" value=\"{$dayInfo.$dayNo.calories}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><small>(<a href=\"javascript://\" onclick=\"winUpdater.load(\'?pg=nutrition&layout=false\');return false;\">Help</a>)</small> Carbs</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][carbs]\" value=\"{$dayInfo.$dayNo.carbs}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Fat</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][fat]\" value=\"{$dayInfo.$dayNo.fat}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Minutes Exercise</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][minutesExercise]\" value=\"{$dayInfo.$dayNo.minutesExercise}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Distance Run</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][distanceRun]\" value=\"{$dayInfo.$dayNo.distanceRun}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><input type=\"submit\" class=\"button\" value=\"Submit Updates!\"></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n{/if}'),(1707,144,0.38,'smarty','0','er, i guess it needs scrolling too. :]',1087801738,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'no\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" 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=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\">\r\n<tr>\r\n	<td colspan=\"8\"><h2 class=\"withBG\">Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}</h2></td>\r\n</tr>\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][id]\" value=\"{$dayInfo.$dayNo.id}\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Calories</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][calories]\" value=\"{$dayInfo.$dayNo.calories}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><small>(<a href=\"javascript://\" onclick=\"winUpdater.load(\'?pg=nutrition&layout=false\');return false;\">Help</a>)</small> Carbs</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][carbs]\" value=\"{$dayInfo.$dayNo.carbs}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Fat</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][fat]\" value=\"{$dayInfo.$dayNo.fat}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Minutes Exercise</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][minutesExercise]\" value=\"{$dayInfo.$dayNo.minutesExercise}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Distance Run</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][distanceRun]\" value=\"{$dayInfo.$dayNo.distanceRun}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><input type=\"submit\" class=\"button\" value=\"Submit Updates!\"></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n{/if}'),(1708,144,0.39,'smarty','0','and its fine to resize, sheesh',1087801796,3,'24.10.220.247','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" 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=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\">\r\n<tr>\r\n	<td colspan=\"8\"><h2 class=\"withBG\">Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}</h2></td>\r\n</tr>\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][id]\" value=\"{$dayInfo.$dayNo.id}\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Calories</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][calories]\" value=\"{$dayInfo.$dayNo.calories}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><small>(<a href=\"javascript://\" onclick=\"winUpdater.load(\'?pg=nutrition&layout=false\');return false;\">Help</a>)</small> Carbs</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][carbs]\" value=\"{$dayInfo.$dayNo.carbs}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Fat</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][fat]\" value=\"{$dayInfo.$dayNo.fat}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Minutes Exercise</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][minutesExercise]\" value=\"{$dayInfo.$dayNo.minutesExercise}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Distance Run</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][distanceRun]\" value=\"{$dayInfo.$dayNo.distanceRun}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><input type=\"submit\" class=\"button\" value=\"Submit Updates!\"></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n{/if}'),(1709,133,0.58,'smarty','0','added same as ship/bill',1087805792,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}\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.bill.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{else}\r\n	{redirect href=\"?pg=cart\"}\r\n{/if}\r\n'),(1713,145,0.13,'smarty','0','Page created.',1087807128,2,'67.166.74.140','<h1 class=\"underline\">Help Forum</h1>\r\n\r\n{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'),(1714,118,0.12,'smarty','0','Page created.',1087807272,2,'67.166.74.140','<h1 class=\"underline\">HELP!</h1>\r\n\r\n\r\n<div align=\"center\" style=\"text-align:left;\">\r\nThere are several ways to get help!\r\n<ul>\r\n	{toc_display start_id=$page.id level_limit=1 hide_start=1}\r\n		{literal}\r\n			<li><a href=\"?pg={$toc_pageName}\" style=\"color:#003366;\">{$toc_title}</a></li>\r\n		{/literal}\r\n	{/toc_display}\r\n</ul>\r\n</div>'),(1715,146,0.10,'smarty','0','Page created.',1087807288,2,'67.166.74.140',''),(1716,146,0.11,'smarty','0','Page created.',1087807326,2,'67.166.74.140','{redirect href=\"?pg=contact\"}'),(1717,147,0.10,'smarty','0','Page created.',1087807344,2,'67.166.74.140',''),(1718,147,0.11,'smarty','1','Page created.',1087807373,2,'67.166.74.140','{redirect href=\"?pg=faq\"}'),(1719,109,0.22,'smarty','0','Fixed... did not have a closing form tag.',1087807551,2,'67.166.74.140','{include_php file=\"shared_handle:contactForm\"}\r\n\r\n<h1 class=\"underline\">Contact Us</h1>\r\n\r\n<strong>You can contact us by E-mail, phone, or U.S. mail. </strong><br><br>\r\n\r\n<form name=\"contactForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"mfName\" value=\"{$smarty.request.mfName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"mfEmail\" value=\"{$smarty.request.mfEmail|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Subject:</span></td>\r\n	<td><input type=\"text\" name=\"mfSubject\" value=\"{$smarty.request.mfSubject|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Message Body:</span></td>\r\n	<td><textarea cols=\"35\" rows=\"6\" name=\"mfMessage\">{$smarty.request.mfMessage|stripslashes|htmlspecialchars}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n<div class=\"underline\">&nbsp;</div>\r\n<br />\r\n<table>\r\n<tr>\r\n	<td><span>E-Mail:</span></td>\r\n	<td><span><strong>Fill out the form above or email us at <br>{mailto address=\"customerservice@weightlosswars.com\" text=\"customerservice@weightlosswars.com\" encode=\"javascript\"}</strong></span></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Phone:</span></td>\r\n	<td><span><strong>1-510-415-3030</strong></span></td>\r\n</tr>\r\n<!--tr>\r\n	<td><span>Fax:</span></td>\r\n	<td><span><strong>1-801-555-5555 </strong></span></td>\r\n</tr-->\r\n<tr>\r\n	<td valign=\"top\" nowrap><span><br>U.S. Mail: &nbsp; &nbsp; </span></td>\r\n	<td><span><strong><br>WeightLossWars, L.L.C. <br>\r\n			2111 N. 120 W. #263<br>\r\n			Provo, UT 84604</strong></span></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n'),(1720,146,0.12,'smarty','1','Page created.',1087807610,2,'67.166.74.140','{redirect href=\"?pg=contact&mfSubject=HELP!\"}'),(1721,145,0.14,'smarty','0','Added surrounding table.',1087808185,2,'67.166.74.140','<h1 class=\"underline\">Help Forum</h1>\r\n\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n{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</td></tr></table>'),(1722,132,0.41,'smarty','0','Changed default for competition ID to use smarty.post instead of smarty.request because request would interfere with the session value.',1087808476,2,'67.166.74.140','{include_php file=\"shared_handle:joinCompetition\"}\r\n\r\n<h1 class=\"underline\">Join a Competition</h1>\r\n<br />\r\nFill out the following form to be submitted to the competition organizer, please use a valid email address in order to receive confirmation instructions.<br />\r\n\r\n<form name=\"joinCompetitionForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n<input type=\"hidden\" name=\"join_attempt\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n\r\n<table><tr><td align=\"right\" nowrap>\r\n{if $competition}\r\n<div class=\"chunk300\" style=\"text-align:left;\">\r\n<h2 class=\"withBG\">Selected Competition</h2>\r\n<b>ID</b>: {$competition.id}<br />\r\n<b>Title</b>: {$competition.title}<br />\r\n<b>Type</b>: {$competition.type|niceText}, {$competition.style}<br />\r\n<b>Owner</b>: {$competition.firstName} {$competition.lastName} ({$competition.username})<br />\r\n<b>Term</b>: {$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}<br /><br />\r\n	<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n		<input type=\"checkbox\" name=\"confirmOK\" value=\"true\" /> <b>This is the correct competition</b>\r\n		&nbsp; &nbsp;<a href=\"javascript:document.joinCompetitionForm.submit();\" class=\"button\">Go</a>\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Join Form</h2>\r\n<label for=\"compID\">Competition ID#</label>\r\n<input id=\"compID\" class=\"textInput\" name=\"cid\" value=\"{$smarty.post.cid}\"> &nbsp;<br />\r\n<label for=\"name\">Your Name</label>\r\n<input id=\"name\" class=\"textInput\" name=\"applicantName\" value=\"{if $user->isLoggedIn() and not $smarty.request.applicantName}{$user->firstName} {$user->lastName}{else}{$smarty.request.applicantName}{/if}\"> &nbsp;<br />\r\n<label for=\"email\">Email</label>\r\n<input id=\"email\" class=\"textInput\" name=\"applicantEmail\" value=\"{$smarty.request.applicantEmail|default:$user->email}\"> &nbsp;<br />\r\n<label for=\"comment\">Comment</label>\r\n<input id=\"comment\" class=\"textInput\" name=\"comment\" value=\"{$smarty.request.comment}\" maxlength=\"255\"> &nbsp;\r\n<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n<a href=\"javascript:document.joinCompetitionForm.submit();\" class=\"button\">Submit</a>\r\n</div>\r\n</td></tr></table>\r\n\r\n</form>\r\n\r\n'),(2849,98,1.75,'smarty','0','Including surveyList handler.',1104245755,3,'24.10.217.227','{assign var=\"pgLayout\" value=\"layouts/myhome_layout2.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"hideWLWLinks\" value=\"true\"}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{* getProfile is included by getStats *}\r\n{* include_php file=\"shared_handle:getStats\" *}\r\n\r\n{* Now getting only Profile because getStats does TONS of unneccesary processing *}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\n{if $smarty.request.debug}\r\n	{display var=$competitions}\r\n{/if}\r\n\r\n<h1 class=\"underline\">My Home - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n\r\n{$user->firstName}, this is your personal Wellness &quot;Home&quot;.\r\nFrom this page you can manage the competitions you are in, and update your wellness profile. \r\nClick on the \'Update Profile\' button to change your Motto, and other information about yourself, or \'Account Settings\' to change your password.<br />\r\n<br />\r\n<script language=\"javascript\">{literal}\r\nfunction goNewGraph() {\r\n	var obj = document.getElementById(\'graphDropdown\');\r\n	var url;\r\n\r\n	for (var x = 0; x < obj.options.length; x++) {\r\n		if (obj.options[x].selected)\r\n			url = obj.options[x].value;\r\n	}\r\n\r\n	graphwindow.location.replace(url);\r\n\r\n	obj.selectedIndex = 0;\r\n}{/literal}\r\n</script>\r\n\r\n<table border=\"0\">\r\n<tr>\r\n	<td valign=\"top\">\r\n		<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n			<h2 class=\"withBG\">Your Profile</h2>\r\n			<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n			<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n			<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n			<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n			<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n		<br />\r\n                {* <form name=\"notUsed\" style=\"margin:0px;\">\r\n		<select id=\"graphDropdown\" onchange=\"goNewGraph();\">\r\n			<option value=\"\">(Change Graph)</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\">Change in Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</option>\r\n		</select>\r\n		</form> *}\r\n		<h2 class=\"withBG\">Links</h2>\r\n		<small>\r\n		&nbsp;&middot; <a href=\"?pg=tips\">Weight Loss Tips</a><br /> \r\n		&nbsp;&middot; <a href=\"?pg=calculators\">Calculators</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=recipes\">Recipes</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=nutrition\">Nutrition Data</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=ptinfo\">Customized Fitness Plan</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=dietitianinfo\">Personal Nutrition Coach</a><br />\r\n		</small>\r\n                </div>\r\n               	</td>\r\n	<td align=\"center\">\r\n		<div style=\"margin:0px 10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&type=weight&fillPrevious=1&precision=0&totalChange=0&userIds={$userProfile.id}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n		<small>\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small>\r\n</td>\r\n	<td valign=\"top\" width=\"100%\" style=\"padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"|replace:\'\"\':\'\'}\"</i></h2>\r\n		</td>\r\n</tr>\r\n</table>\r\n<br />\r\n{if $smarty.request.hideComps neq \"1\"}\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n{* ********************************* COMPETITIONS I AM IN ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Am In</h2>\r\nHere are the competitions you have signed up to participate in. If you have an ID of a competition you would like to join, enter it below.<br />\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n\r\n	<div style=\"text-align:right;\">\r\n	<form name=\"joinCompForm\" method=\"post\" style=\"margin:4px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<b>Competition ID#</b> <input type=\"text\" class=\"textInput\" name=\"cid\"> <a href=\"javascript:document.joinCompForm.submit();\" class=\"button\">Join</a><br />\r\n	</form>\r\n	</div>\r\n</div>\r\n</td><td valign=\"top\" style=\"margin-left:10px;\">\r\n{* ********************************* COMPETITIONS I HAVE STARTED ********************************** *}\r\n{if $user->inGroupName(\'coordinators\')}\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.title}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{else}\r\n	<div class=\"underline2\">&nbsp;</div>\r\n	<small>&nbsp; &nbsp; You have not created any competitions.</small>\r\n{/if}\r\n{/if}\r\n</div>\r\n<br />\r\n</form>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myIncentives\', \'\', \'showHide\');\"><img id=\"myIncentives_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	My Incentives Program</h2>\r\n\r\n<div id=\"myIncentives\" style=\"display:block;\">\r\n        <div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n        <table id=\"surveyContainer\" width=\"100%\">\r\n           {include_php file=\"shared_handle:company/surveyList\"}\r\n           <thead>\r\n               <tr><td width=\"100%\"><u>Survey Name</u></td><td><u>Available</u></td><td nowrap><u>Points Earned</u></td></tr>\r\n           </thead>\r\n           <tbody>\r\n           {foreach from=$surveys item=item name=\"loopSurveys\"}<tr><td nowrap>\r\n		{if $item.dateAvailable gt 0}\r\n		<small>{$item.surveyName}</small></td><td><small>{$item.dateAvailable|date_format2:\"m/d/y\"}</small></td>\r\n		{else}\r\n		<small><a href=\"javascript://\" onclick=\"openSurvey({$item.id});\">{$item.surveyName}</a></small></td><td><small>Now</small></td>\r\n		{/if}{if $smarty.foreach.loopSurveys.first}<td rowspan=\"999\"><em>999</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>\r\n</div>\r\n</td></tr></table>\r\n{/if}'),(1727,132,0.44,'smarty','0','Now setting special value called $joinCID',1087848772,3,'67.166.74.140','{include_php file=\"shared_handle:joinCompetition\"}\r\n\r\n<h1 class=\"underline\">Join a Competition</h1>\r\n<br />\r\nFill out the following form to be submitted to the competition organizer, please use a valid email address in order to receive confirmation instructions.<br />\r\n\r\n{assign var=\"joinCID\" value=$smarty.post.cid|default:$smarty.get.cid}\r\n\r\n<form name=\"joinCompetitionForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n<input type=\"hidden\" name=\"join_attempt\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"cid\" />\r\n\r\n<table><tr><td align=\"right\" nowrap>\r\n{if $competition}\r\n<div class=\"chunk300\" style=\"text-align:left;\">\r\n<h2 class=\"withBG\">Selected Competition</h2>\r\n<b>ID</b>: {$competition.id}<br />\r\n<b>Title</b>: {$competition.title}<br />\r\n<b>Type</b>: {$competition.type|niceText}, {$competition.style}<br />\r\n<b>Owner</b>: {$competition.firstName} {$competition.lastName} ({$competition.username})<br />\r\n<b>Term</b>: {$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}<br /><br />\r\n	<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n		<input type=\"checkbox\" name=\"confirmOK\" value=\"true\" /> <b>This is the correct competition</b>\r\n		&nbsp; &nbsp;<a href=\"javascript:document.joinCompetitionForm.submit();\" class=\"button\">Go</a>\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Join Form</h2>\r\n<label for=\"compID\">Competition ID#</label>\r\n<input id=\"compID\" class=\"textInput\" name=\"cid\" value=\"{$joinCID}\"> &nbsp;<br />\r\n<label for=\"name\">Your Name</label>\r\n<input id=\"name\" class=\"textInput\" name=\"applicantName\" value=\"{if $user->isLoggedIn() and not $smarty.request.applicantName}{$user->firstName} {$user->lastName}{else}{$smarty.request.applicantName}{/if}\"> &nbsp;<br />\r\n<label for=\"email\">Email</label>\r\n<input id=\"email\" class=\"textInput\" name=\"applicantEmail\" value=\"{$smarty.request.applicantEmail|default:$user->email}\"> &nbsp;<br />\r\n<label for=\"comment\">Comment</label>\r\n<input id=\"comment\" class=\"textInput\" name=\"comment\" value=\"{$smarty.request.comment}\" maxlength=\"255\"> &nbsp;\r\n<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n<a href=\"javascript:document.joinCompetitionForm.submit();\" class=\"button\">Submit</a>\r\n</div>\r\n</td></tr></table>\r\n\r\n</form>\r\n\r\n'),(1726,132,0.43,'smarty','0','Added no_expire_keep_alive for CID.',1087848656,3,'67.166.74.140','{include_php file=\"shared_handle:joinCompetition\"}\r\n\r\n<h1 class=\"underline\">Join a Competition</h1>\r\n<br />\r\nFill out the following form to be submitted to the competition organizer, please use a valid email address in order to receive confirmation instructions.<br />\r\n\r\n<form name=\"joinCompetitionForm\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n<input type=\"hidden\" name=\"join_attempt\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"cid\" />\r\n\r\n<table><tr><td align=\"right\" nowrap>\r\n{if $competition}\r\n<div class=\"chunk300\" style=\"text-align:left;\">\r\n<h2 class=\"withBG\">Selected Competition</h2>\r\n<b>ID</b>: {$competition.id}<br />\r\n<b>Title</b>: {$competition.title}<br />\r\n<b>Type</b>: {$competition.type|niceText}, {$competition.style}<br />\r\n<b>Owner</b>: {$competition.firstName} {$competition.lastName} ({$competition.username})<br />\r\n<b>Term</b>: {$competition.startDate|date_format2:\"M j, Y\"} to {$competition.endDate|date_format2:\"M j, Y\"}<br /><br />\r\n	<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n		<input type=\"checkbox\" name=\"confirmOK\" value=\"true\" /> <b>This is the correct competition</b>\r\n		&nbsp; &nbsp;<a href=\"javascript:document.joinCompetitionForm.submit();\" class=\"button\">Go</a>\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Join Form</h2>\r\n<label for=\"compID\">Competition ID#</label>\r\n<input id=\"compID\" class=\"textInput\" name=\"cid\" value=\"{$smarty.post.cid}\"> &nbsp;<br />\r\n<label for=\"name\">Your Name</label>\r\n<input id=\"name\" class=\"textInput\" name=\"applicantName\" value=\"{if $user->isLoggedIn() and not $smarty.request.applicantName}{$user->firstName} {$user->lastName}{else}{$smarty.request.applicantName}{/if}\"> &nbsp;<br />\r\n<label for=\"email\">Email</label>\r\n<input id=\"email\" class=\"textInput\" name=\"applicantEmail\" value=\"{$smarty.request.applicantEmail|default:$user->email}\"> &nbsp;<br />\r\n<label for=\"comment\">Comment</label>\r\n<input id=\"comment\" class=\"textInput\" name=\"comment\" value=\"{$smarty.request.comment}\" maxlength=\"255\"> &nbsp;\r\n<div class=\"underline\" style=\"margin-bottom:4px;\">&nbsp;</div>\r\n<a href=\"javascript:document.joinCompetitionForm.submit();\" class=\"button\">Submit</a>\r\n</div>\r\n</td></tr></table>\r\n\r\n</form>\r\n\r\n'),(1728,117,0.25,'smarty','0','Added showing of Pot Description.',1087857162,2,'67.166.74.140','{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>{if $newcomp.individualPotAmount}<b>${$newcomp.individualPotAmount|number_format:\"2\"}</b> {if $newcomp.potMethod eq \"Per-competitor Donations\"}(each) {/if}by {/if}<b>{$newcomp.potMethod}</b>{if $newcomp.potDescription}<br />({$newcomp.potDescription}){/if}</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'),(1731,117,0.26,'smarty','0','Added showing of Pot Description.',1087857715,2,'67.166.74.140','{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>Jack Pot:</div></td>\r\n		<td><div>{if $newcomp.individualPotAmount}<b>${$newcomp.individualPotAmount|number_format:\"2\"}</b> {if $newcomp.potMethod eq \"Per-competitor Donations\"}(each) {/if}by {/if}<b>{$newcomp.potMethod}</b></div></td>\r\n	</tr>\r\n{if $newcomp.potDescription}\r\n	<tr>\r\n		<td align=\"right\"><div>Jack Pot Description:</div></td>\r\n		<td><div><b>{$newcomp.potDescription}</b></div></td>\r\n	</tr>\r\n{/if}\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'),(1732,124,0.46,'smarty','0','Added no_expire_keep_alive values.',1087858380,2,'67.166.74.140','<h1>Competition Entry Fee Payment</h1>\r\n\r\n{include_php file=\"shared_handle:competition.prepareContribution\"}\r\n{include_php file=\"shared_handle:competition.processContribution\"}\r\n\r\n{select_query assign=\"userInfo\" return=\"row\"}\r\n	firstName, lastName, address1, address2, city, state, country, zip\r\n	FROM _users	\r\n	WHERE id = \'{$user->id}\'\r\n{/select_query}\r\n\r\n{if $isComplete}\r\n	<div align=\"right\"><a href=\"?pg={$smarty.request.return|default:\"home\"}\" class=\"button\">Continue</a></div>\r\n{else}\r\n\r\n<form name=\"potContribution\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"no_exire_keep_alive\" value=\"cid newcomp return\" />\r\n<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:\"home\"}\" />\r\n<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n<input type=\"hidden\" name=\"newcomp\" value=\"{$smarty.request.newcomp}\">\r\n\r\n{if $competition}\r\n\r\n<input type=\"hidden\" name=\"contribution[cid]\" value=\"{$competition.id|default:\"newcomp\"}\" />\r\n<input type=\"hidden\" name=\"contribution[total]\" value=\"{$competition.total}\" />\r\n<input type=\"hidden\" name=\"contribution[entryFee]\" value=\"{$competition.entryFee}\" />\r\n<input type=\"hidden\" name=\"contribution[individualPotAmount]\" value=\"{$competition.individualPotAmount}\" />\r\n\r\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:200px;\" /><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</div>\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Payment Information</h2>\r\n	Payment Method:\r\n	<select name=\"bill[paymentMethod]\" size=\"1\">\r\n		<option value=\"Visa\"{if $smarty.request.bill.paymentMethod eq \"Visa\"} selected{/if}>Visa</option>\r\n		<option value=\"Mastercard\"{if $smarty.request.bill.paymentMethod eq \"Mastercard\"} selected{/if}>Mastercard</option>	\r\n	</select><br />\r\n\r\n	Card Number:\r\n	<input type=\"text\" name=\"bill[ccnum]\" value=\"\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	Expiration Date: <small>(MMYY)</small>\r\n	<input type=\"text\" name=\"bill[ccexp]\" value=\"\" class=\"textInput\" maxlength=\"4\" style=\"width:50px;\" /><br />\r\n</div>\r\n</td></tr></table>\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"javascript://\" onclick=\"document.forms[\'potContribution\'].submit(); return false;\" 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>\r\n\r\n{/if}  {* If is NOT complete... *}'),(1735,133,0.62,'smarty','0','Added company to both shipping and billing info',1087862622,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	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'),(1737,133,0.64,'smarty','0','put line items into a table for better formatting',1087863460,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><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'),(1739,133,0.66,'smarty','0','logic fix for no items after cc is approved',1087865093,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	<p>Your order has been processed and approved, an email receipt has been mailed to you. <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'),(1743,144,0.40,'smarty','0','and its fine to resize, sheesh',1087868201,2,'67.166.74.140','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" 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=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\">\r\n<tr>\r\n	<td colspan=\"8\"><h2 class=\"withBG\">Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}</h2></td>\r\n</tr>\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a href=\"?pg={$page.name}&start={$lastWeek}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a href=\"?pg={$page.name}&start={$nextWeek}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][id]\" value=\"{$dayInfo.$dayNo.id}\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Calories</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][calories]\" value=\"{$dayInfo.$dayNo.calories}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><small>(<a href=\"javascript://\" onclick=\"winUpdater.load(\'?pg=nutrition&layout=false\');return false;\">Help</a>)</small> Carbs</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][carbs]\" value=\"{$dayInfo.$dayNo.carbs}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Fat</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][fat]\" value=\"{$dayInfo.$dayNo.fat}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Minutes Exercise</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][minutesExercise]\" value=\"{$dayInfo.$dayNo.minutesExercise}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Distance Run</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][distanceRun]\" value=\"{$dayInfo.$dayNo.distanceRun}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><input type=\"submit\" class=\"button\" value=\"Submit Updates!\"></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n{/if}'),(1744,144,0.41,'smarty','0','Added previous/next buttons.',1087868249,2,'67.166.74.140','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{include_php file=\"shared_handle:updateStats\"}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" 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=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<table align=\"center\" cellpadding=\"2\" cellspacing=\"2\">\r\n<tr>\r\n	<td colspan=\"8\"><h2 class=\"withBG\">Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}</h2></td>\r\n</tr>\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td style=\"border-right:1px solid black; border-bottom:1px solid black;\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Weight</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][weight]\" value=\"{$dayInfo.$dayNo.weight}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][id]\" value=\"{$dayInfo.$dayNo.id}\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Calories</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][calories]\" value=\"{$dayInfo.$dayNo.calories}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><small>(<a href=\"javascript://\" onclick=\"winUpdater.load(\'?pg=nutrition&layout=false\');return false;\">Help</a>)</small> Carbs</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][carbs]\" value=\"{$dayInfo.$dayNo.carbs}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Fat</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][fat]\" value=\"{$dayInfo.$dayNo.fat}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Minutes Exercise</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][minutesExercise]\" value=\"{$dayInfo.$dayNo.minutesExercise}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\">Distance Run</td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td align=\"right\" style=\"border-right:1px solid black; border-bottom:1px solid black;\"><input type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][distanceRun]\" value=\"{$dayInfo.$dayNo.distanceRun}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"></td>\r\n	{/section}\r\n</tr>\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><input type=\"submit\" class=\"button\" value=\"Submit Updates!\"></td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n{/if}'),(1745,143,0.51,'smarty','0','Added some height to popup stats window and allowed that window to scroll.',1087868604,2,'67.166.74.140','{assign var=\"pgLayout\" value=\"none\"}{include_php file=\"shared_handle:getStats\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	<style>\r\n	.verticalText {ldelim}\r\n		writing-mode: tb-rl;\r\n		filter: flipv fliph;\r\n	{rdelim}\r\n	.tch {ldelim}\r\n		height:40px;\r\n		border-right:1px solid black;\r\n		border-bottom:1px solid black;\r\n		background-color:#EEE;\r\n	{rdelim}\r\n	.tc {ldelim}\r\n		height:30px;\r\n		border-right:1px dashed #CCC;\r\n		border-bottom:1px dashed #CCC;\r\n		background-color:#FFF;\r\n		text-align:center;\r\n	{rdelim}\r\n	</style>\r\n\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'updateWindow\', 600, 400, 100, 100, \'yes\', \'no\', \'no\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{* display var=$userStats *}\r\n{* display var=$compData *}\r\n<table width=\"100%\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr>\r\n	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\">&nbsp;<a href=\"javascript://\" onclick=\"winUpdater.load(\'?pg=myprofile/update&start={$week.weekOfTimestamp}\');return false;\"><em>Week {$num}</em></a>&nbsp;<br /><small>{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{else}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\"><small>&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{/if}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.weight}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.totalLost|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.bmi|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.calories|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.carbs|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.fat|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.minutesExercise|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.distanceRun|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n</table><a name=\"recent\"></a>\r\n</body>\r\n</html>\r\n'),(2851,184,0.30,'smarty','0','Page created.',1104248573,3,'24.10.217.227','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n<h2 class=\"withBG\">{$survey.surveyName|default:\"Unnamed Survey\"}</h2>\r\n<div style=\"margin-left:20px;\"><small>\r\n	May be taken: <i>{$survey.frequency}</i><br />\r\n	Logged in as: <i>{$user->firstName} {$user->lastName} ({$user->username})</i><br />	\r\n</small></div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>\r\n		{if $question.A != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E != \"\"}<dt><input id=\"q{$smarty.foreach.questions.iteration}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" /> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$smarty.foreach.questions.iteration}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" name=\"surveyAction\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2852,184,0.31,'smarty','0','Page created.',1104249123,3,'24.10.217.227','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n<h2 class=\"withBG\">{$survey.surveyName|default:\"Unnamed Survey\"}</h2>\r\n<div style=\"margin-left:20px;\"><small>\r\n	May be taken: <i>{$survey.frequency}</i><br />\r\n	Logged in as: <i>{$user->firstName} {$user->lastName} ({$user->username})</i><br />	\r\n</small></div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>{assign var=\"i\" value=$smarty.foreach.questions.iteration}\r\n		{if $question.A != \"\"}<dt><input id=\"q{$i}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" {if $smarty.post.q.$i eq \"A\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B != \"\"}<dt><input id=\"q{$i}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" {if $smarty.post.q.$i eq \"B\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C != \"\"}<dt><input id=\"q{$i}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" {if $smarty.post.q.$i eq \"C\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D != \"\"}<dt><input id=\"q{$i}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" {if $smarty.post.q.$i eq \"D\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E != \"\"}<dt><input id=\"q{$i}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" {if $smarty.post.q.$i eq \"E\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\"><input type=\"submit\" name=\"surveyAction\" value=\"Submit Responses\" /></div>\r\n</form>\r\n'),(2853,184,0.32,'smarty','0','added Not available close btn.',1104251427,3,'24.10.217.227','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n<h2 class=\"withBG\">{$survey.surveyName|default:\"Unnamed Survey\"}</h2>\r\n<div style=\"margin-left:20px;\"><small>\r\n	May be taken: <i>{$survey.frequency}</i><br />\r\n	Logged in as: <i>{$user->firstName} {$user->lastName} ({$user->username})</i><br />	\r\n</small></div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}\r\n	<dl>{assign var=\"i\" value=$smarty.foreach.questions.iteration}\r\n		{if $question.A != \"\"}<dt><input id=\"q{$i}A\" type=\"radio\" name=\"q[{$question.id}]\" value=\"A\" {if $smarty.post.q.$i eq \"A\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B != \"\"}<dt><input id=\"q{$i}B\" type=\"radio\" name=\"q[{$question.id}]\" value=\"B\" {if $smarty.post.q.$i eq \"B\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C != \"\"}<dt><input id=\"q{$i}C\" type=\"radio\" name=\"q[{$question.id}]\" value=\"C\" {if $smarty.post.q.$i eq \"C\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D != \"\"}<dt><input id=\"q{$i}D\" type=\"radio\" name=\"q[{$question.id}]\" value=\"D\" {if $smarty.post.q.$i eq \"D\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E != \"\"}<dt><input id=\"q{$i}E\" type=\"radio\" name=\"q[{$question.id}]\" value=\"E\" {if $smarty.post.q.$i eq \"E\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div style=\"text-align:center;\">{if $survey.dateAvailable eq \"now\"}<input type=\"submit\" name=\"surveyAction\" value=\"Submit Responses\" />{else}<input type=\"button\" onclick=\"window.close();\" value=\"Not available until {$survey.dateAvailable|date_format2:\"m/d/y\"}\" />{/if}</div>\r\n</form>\r\n'),(2854,98,1.77,'smarty','0','Including surveyList handler.',1104267903,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/myhome_layout2.tpl\"}\r\n{include_php file=\"shared_handle:acceptRejectRequests\"} \r\n{include_php file=\"shared_handle:myHome\"}\r\n\r\n{assign var=\"hideUserBox\" value=\"false\"}\r\n{assign var=\"showCompanyNews\" value=\"true\"}\r\n{assign var=\"hideWLWLinks\" value=\"true\"}\r\n{assign var=\"hideWidgets\" value=\"true\"}\r\n\r\n{* getProfile is included by getStats *}\r\n{* include_php file=\"shared_handle:getStats\" *}\r\n\r\n{* Now getting only Profile because getStats does TONS of unneccesary processing *}\r\n{include_php file=\"shared_handle:getProfile\"}\r\n\r\n{if $smarty.request.debug}\r\n	{display var=$competitions}\r\n{/if}\r\n\r\n<h1 class=\"underline\">My Home - {$userProfile.firstName} {$userProfile.lastName} ({$userProfile.username})</h1>\r\n<br />\r\n\r\n{$user->firstName}, this is your personal Wellness &quot;Home&quot;.\r\nFrom this page you can manage the competitions you are in, and update your wellness profile. \r\nClick on the \'Update Profile\' button to change your Motto, and other information about yourself, or \'Account Settings\' to change your password.<br />\r\n<br />\r\n<script language=\"javascript\">{literal}\r\nfunction goNewGraph() {\r\n	var obj = document.getElementById(\'graphDropdown\');\r\n	var url;\r\n\r\n	for (var x = 0; x < obj.options.length; x++) {\r\n		if (obj.options[x].selected)\r\n			url = obj.options[x].value;\r\n	}\r\n\r\n	graphwindow.location.replace(url);\r\n\r\n	obj.selectedIndex = 0;\r\n}{/literal}\r\n</script>\r\n\r\n<table border=\"0\">\r\n<tr>\r\n	<td valign=\"top\">\r\n		<div id=\"UserProfileColumn\" class=\"contentColumn\">\r\n			<h2 class=\"withBG\">Your Profile</h2>\r\n			<span class=\"cellHeadLarge\">Age:</span><span class=\"cellSmall\">{$userProfile.age}</span><br />\r\n			<span class=\"cellHeadLarge\">Start Weight:</span><span class=\"cellSmall\">{$userProfile.initialWeight}</span><br />\r\n			<span class=\"cellHeadLarge\">Height:</span><span class=\"cellSmall\">{$userProfile.heightFeet}\'{$userProfile.heightInches}&quot;</span><br />\r\n			<span class=\"cellHeadLarge\">Start BMI:</span><span class=\"cellSmall\">{$userProfile.startBMI}</span><br />\r\n			<span class=\"cellHeadLarge\">Goal Weight:</span><span class=\"cellSmall\">{$userProfile.goalWeight}</span><br />\r\n		<br />\r\n                {* <form name=\"notUsed\" style=\"margin:0px;\">\r\n		<select id=\"graphDropdown\" onchange=\"goNewGraph();\">\r\n			<option value=\"\">(Change Graph)</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\">Change in Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</option>\r\n			<option value=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</option>\r\n		</select>\r\n		</form> *}\r\n		<h2 class=\"withBG\">Links</h2>\r\n		<small>\r\n		&nbsp;&middot; <a href=\"?pg=tips\">Weight Loss Tips</a><br /> \r\n		&nbsp;&middot; <a href=\"?pg=calculators\">Calculators</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=recipes\">Recipes</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=nutrition\">Nutrition Data</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=ptinfo\">Customized Fitness Plan</a><br />\r\n		&nbsp;&middot; <a href=\"?pg=dietitianinfo\">Personal Nutrition Coach</a><br />\r\n		</small>\r\n                </div>\r\n               	</td>\r\n	<td align=\"center\">\r\n		<div style=\"margin:0px 10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&type=weight&fillPrevious=1&precision=0&totalChange=0&userIds={$userProfile.id}\" frameborder=\"0\" width=\"425\" height=\"230\" scrollbars=\"no\"></iframe></div>\r\n		<small>\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0&totalChange=1\" target=\"graphwindow\">Change in Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=weight&fillPrevious=1&precision=0\" target=\"graphwindow\">Weight</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=fat&fillPrevious=0&precision=1\" target=\"graphwindow\">Fat Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=calories&fillPrevious=0&precision=1\" target=\"graphwindow\">Calorie Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=carbs&fillPrevious=0&precision=1\" target=\"graphwindow\">Carb Intake</a><br />\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=water&fillPrevious=0&precision=1\" target=\"graphwindow\">Water Intake</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=minutesExercise&fillPrevious=0&precision=1\" target=\"graphwindow\">Exercise</a> |\r\n			<a href=\"?pg=flashgraph-frame&compId={$compData.id}&format=small&userIds={$userProfile.id}&type=distanceExercised&fillPrevious=0&precision=1\" target=\"graphwindow\">Distance Exercised</a>\r\n		</small>\r\n</td>\r\n	<td valign=\"top\" width=\"100%\" style=\"padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"|replace:\'\"\':\'\'}\"</i></h2>\r\n		</td>\r\n</tr>\r\n</table>\r\n<br />\r\n{if $smarty.request.hideComps neq \"1\"}\r\n<table width=\"100%\"><tr><td valign=\"top\">\r\n{* ********************************* COMPETITIONS I AM IN ********************************** *}\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'inComps\', \'\', \'showHide\');\"><img id=\"inComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Am In</h2>\r\nHere are the competitions you have signed up to participate in. If you have an ID of a competition you would like to join, enter it below.<br />\r\n<div id=\"inComps\" style=\"display:block;\">	\r\n	<div style=\"margin:10px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\"><span>&nbsp;<b>ID</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Title</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Type</b></span></td>\r\n		<td class=\"underline2\"><span>&nbsp;<b>Style</b></span></td>\r\n		{* <td class=\"underline2\"><span>&nbsp;<b>Rank</b></span></td> *}\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Time Remaining</b></span></td> *}\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Ends</b></span></td>\r\n		{* <td class=\"underline2\" nowrap><span>&nbsp;<b>Prize</b></span></td> *}\r\n	</tr>\r\n	{* Set up the warning period... 7 days from now (604800 = 7 days in seconds) *}\r\n	{math assign=\"endsSoon\" equation=\"x + y\" x=$smarty.now y=\"604800\"}\r\n	{foreach from=$competitions item=\"comp\"}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;<a href=\"?pg=competition&cid={$comp.id}\">{$comp.title|truncate:35:\"...\"}</a> &nbsp;</small></span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{$comp.type|niceText}</small> &nbsp;</span></td>\r\n		<td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.style eq \"Group-vs-Group\"}Team{else}Individual{/if}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\"><span><small>&nbsp;{if $comp.rank ne \"N/A\"}{$comp.rank}/{$comp.rankOutOf}{else}N/A{/if}</small> &nbsp;</span></td> *}\r\n		{* <td nowrap><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.timeLeft}</small> &nbsp;</span></td> *}\r\n		<td nowrap=\"nowrap\"><span><small{if $comp.endDate lt $smarty.now} style=\"font-weight:bold;\"{elseif $comp.endDate lt $endsSoon} style=\"color:#C00;font-weight:bold;\"{/if}>&nbsp;{$comp.endDate|date_format2:\"D n/j/y\"}</small> &nbsp;</span></td>\r\n		{* <td nowrap=\"nowrap\" align=\"right\"><span><small>&nbsp;{if not $comp.potAmount and $comp.potDescription}(Special){else}{math assign=\"fontSizeFactor\" equation=\"x / y\" x=$comp.potAmount y=\"100\"}{math assign=\"fontSize\" equation=\"x + y\" x=\"11\" y=$fontSizeFactor|number_format:\"0\"}<span style=\"font-size:{$fontSize}px;\">${$comp.potAmount|number_format:\"0\"}</span>{/if}</small> &nbsp;</span></td> *}\r\n	</tr>\r\n	{foreachelse}\r\n	<tr>\r\n		<td colspan=\"6\"><span><small>You have not joined any competitions.</small></span></td>\r\n	</tr>\r\n	{/foreach}\r\n	</table>\r\n	</div>\r\n	<span style=\"margin-left:65px;\"><small>(NOTE: <b>Bold Date</b> = Ended, <span style=\"color:#C00;\"><b>Red Date</b></span> = Ends Soon)</small></span>\r\n\r\n	<div style=\"text-align:right;\">\r\n	<form name=\"joinCompForm\" method=\"post\" style=\"margin:4px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"competition/join\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<b>Competition ID#</b> <input type=\"text\" class=\"textInput\" name=\"cid\"> <a href=\"javascript:document.joinCompForm.submit();\" class=\"button\">Join</a><br />\r\n	</form>\r\n	</div>\r\n</div>\r\n</td><td valign=\"top\" style=\"margin-left:10px;\">\r\n{* ********************************* COMPETITIONS I HAVE STARTED ********************************** *}\r\n{if $user->inGroupName(\'coordinators\')}\r\n<form name=\"requestsForm\" action=\"index.php\" method=\"post\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n<input type=\"hidden\" name=\"acceptReject\" value=\"\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myComps\', \'\', \'showHide\');\"><img id=\"myComps_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	Competitions I Have Started</h2>\r\n\r\n<div id=\"myComps\" style=\"display:block;\">\r\n{if $myCompetitions|@count gt 0}\r\n	<div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n	<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n	<tr>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>ID</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Title</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>Type</b> &nbsp;</span></td>\r\n		<td class=\"underline2\" nowrap><span>&nbsp;<b>People wanting to join</b> &nbsp;</span></td>\r\n	</tr>\r\n	{foreach from=$myCompetitions item=\"comp\"}\r\n	<tr>\r\n		<td valign=\"top\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.id}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\" style=\"overflow:hidden;\"><span>&nbsp;<small><a href=\"?pg=competition&cid={$comp.id}\">{$comp.title}</a></small></span></td>\r\n		<td valign=\"top\" nowrap=\"nowrap\">&nbsp;<span><small>{$comp.type}</small></td>\r\n		<td valign=\"top\" style=\"border-left:1px solid #000;\"><span>{if $comp.requests|@count}{assign var=\"isRequests\" value=\"true\"}{/if}{foreach from=$comp.requests item=\"request\"}<div class=\"hangingIndent\"><input type=\"checkbox\" name=\"request[{$comp.id}][]\" value=\"{$request.id}\"><small>({$request.dateAdded|date_format2:\"n/j/y\"}) {$request.name} &lt;{mailto address=$request.email encode=\"javascript\"}&gt;: &quot;<i>{$request.comment|strip_tags}</i>&quot;</small></div>{foreachelse}&nbsp;None right now.{/foreach}</span></td>\r\n	</tr>\r\n	{/foreach}\r\n	{if $isRequests}\r\n	<tr>\r\n		<td colspan=\"4\" align=\"center\">\r\n			<span><br /><a href=\"javascript://\" onclick=\"acceptReject.value=\'accept\';requestsForm.submit();return false;\" class=\"button\">Accept Selected</a>\r\n			<a href=\"javascript://\" onclick=\"acceptReject.value=\'reject\';requestsForm.submit();return false;\" class=\"button\">Reject Selected</a><small><br /><br /></small></span></td>\r\n	</tr>\r\n	{/if}\r\n	</table>\r\n	</div>\r\n{else}\r\n	<div class=\"underline2\">&nbsp;</div>\r\n	<small>&nbsp; &nbsp; You have not created any competitions.</small>\r\n{/if}\r\n{/if}\r\n</div>\r\n<br />\r\n</form>\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'myIncentives\', \'\', \'showHide\');\"><img id=\"myIncentives_img\" src=\"./img/blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a></div> \r\n	My Incentives Program</h2>\r\n\r\n<div id=\"myIncentives\" style=\"display:block;\">\r\n        <div style=\"margin:0px;padding:5px;background-color:#FFF;border:#999 1px solid;\">\r\n        <table id=\"surveyContainer\" 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 Points</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>{$item.dateAvailable|date_format2:\"m/d/y\"}</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>999</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	<a href=\"index.php?pg=surveyHistory\">View Survey History</a>\r\n        </div>\r\n</div>\r\n</td></tr></table>\r\n{/if}'),(2496,99,3.17,'smarty','0','and then some more.',1100762538,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}${$competition.potAmount|number_format:2}\r\n<div id=\"jackpot2\">${$competition.potAmount|number_format:2}{else}Jackpot<div id=\"jackpot2\">Jackpot{/if}</div></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\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=\"5\" 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</h2>\r\nIf you are unable to see the graph below, <a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\">click here</a> to download the free Flash Player plug-in.\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> *}'),(2019,154,0.10,'smarty','0','Page created.',1089151998,2,'67.164.251.69',''),(2020,154,0.11,'smarty','0','Began adding HTML layout.',1089152103,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n\r\n\r\n</body>\r\n</html>'),(2021,154,0.12,'smarty','0','Including handler.',1089152727,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n\r\n</body>\r\n</html>'),(2022,154,0.13,'smarty','0','Including handler.',1089153516,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n<h3 class=\"underline\">&nbsp; How You Compare</h3>\r\nYour current weight: {$userStats.weight} as of {$userStats.dateOfEntry|date_format2:\"n/j/Y\"}<br />\r\n<br />\r\n{foreach from=$stars item=\"star\"}\r\n	{math assign=\"pct\" equation=\"x / y * 100\" x=$userStats.weight y=$star.weight}\r\n	&nbsp; You weigh <b>{$pct|number_format:2}%</b> as much as <b>{$star.name}</b> ({$star.weight} lbs.)<br />\r\n{foreachelse}\r\n	No stars to compare with!\r\n{/foreach}\r\n</body>\r\n</html>'),(2023,154,0.14,'smarty','0','Looking good...!',1089154538,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n<h3 class=\"underline\">&nbsp; How You Compare</h3>\r\n<u>Your current weight:</u> <b>{$userStats.weight}</b> as of <b>{$userStats.dateOfEntry|date_format2:\"n/j/Y\"}</b><br />\r\n<br />\r\n{foreach from=$stars item=\"star\"}\r\n	{math assign=\"pct\" equation=\"x / y\" x=$userStats.weight y=$star.weight}\r\n	&nbsp; You weigh as much as <b>{$pct|number_format:2}</b> <b>{$star.name}(s)</b> ({$star.weight} lbs.)<br />\r\n{foreachelse}\r\n	&nbsp; No stars to compare with!\r\n{/foreach}\r\n</body>\r\n</html>'),(2024,154,0.15,'smarty','0','Added body padding.',1089154643,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:4px;background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n<h3 class=\"underline\">&nbsp; How You Compare</h3>\r\n<u>Your current weight:</u> <b>{$userStats.weight}</b> as of <b>{$userStats.dateOfEntry|date_format2:\"n/j/Y\"}</b><br />\r\n<br />\r\n{foreach from=$stars item=\"star\"}\r\n	{math assign=\"pct\" equation=\"x / y\" x=$userStats.weight y=$star.weight}\r\n	&nbsp; You weigh as much as <b>{$pct|number_format:2}</b> <b>{$star.name}(s)</b> ({$star.weight} lbs.)<br />\r\n{foreachelse}\r\n	&nbsp; No stars to compare with!\r\n{/foreach}\r\n</body>\r\n</html>'),(2054,154,0.17,'smarty','0','Added check to make sure that the user info was found.',1089169277,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:2px 1px 1px 4px; background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n<h3 class=\"underline\">&nbsp; How You Compare</h3>\r\n\r\n{if not $userStats.weight}\r\n	Unable to compare! Cannot find any stats for the specified user.\r\n{else}\r\n	<u>Your current weight:</u> <b>{$userStats.weight}</b> as of <b>{$userStats.dateOfEntry|date_format2:\"n/j/Y\"}</b><br />\r\n	<br />\r\n	{foreach from=$stars item=\"star\"}\r\n		{math assign=\"pct\" equation=\"x / y\" x=$userStats.weight y=$star.weight}\r\n		&nbsp; You weigh as much as <b>{$pct|number_format:2}</b> <b>{$star.name}(s)</b> ({$star.weight} lbs.)<br />\r\n	{foreachelse}\r\n		&nbsp; No stars to compare with!\r\n	{/foreach}\r\n{/if}\r\n</body>\r\n</html>'),(2057,154,0.20,'smarty','0','Changed title to \"Comparing with Stars\".',1089169775,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:2px 1px 1px 4px; background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n<h3 class=\"underline\">&nbsp; Comparing with Stars</h3>\r\n\r\n{if not $userStats.weight}\r\n	Unable to compare! Cannot find any stats for {$userStats.firstName} {$userStats.lastName} ({$userStats.username}).\r\n{else}\r\n	<u>Your current weight:</u> <b>{$userStats.weight}</b> as of <b>{$userStats.dateOfEntry|date_format2:\"n/j/Y\"}</b><br />\r\n	<br />\r\n	{foreach from=$stars item=\"star\"}\r\n		{math assign=\"pct\" equation=\"x / y\" x=$userStats.weight y=$star.weight}\r\n		&nbsp; You weigh as much as <b>{$pct|number_format:2}</b> <b>{$star.name}(s)</b> ({$star.weight} lbs.)<br />\r\n	{foreachelse}\r\n		&nbsp; No stars to compare with!\r\n	{/foreach}\r\n{/if}\r\n</body>\r\n</html>'),(2056,154,0.19,'smarty','0','Made user info not found message more detailed.',1089169715,2,'67.164.251.69','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:2px 1px 1px 4px; background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n<h3 class=\"underline\">&nbsp; How You Compare</h3>\r\n\r\n{if not $userStats.weight}\r\n	Unable to compare! Cannot find any stats for {$userStats.firstName} {$userStats.lastName} ({$userStats.username}).\r\n{else}\r\n	<u>Your current weight:</u> <b>{$userStats.weight}</b> as of <b>{$userStats.dateOfEntry|date_format2:\"n/j/Y\"}</b><br />\r\n	<br />\r\n	{foreach from=$stars item=\"star\"}\r\n		{math assign=\"pct\" equation=\"x / y\" x=$userStats.weight y=$star.weight}\r\n		&nbsp; You weigh as much as <b>{$pct|number_format:2}</b> <b>{$star.name}(s)</b> ({$star.weight} lbs.)<br />\r\n	{foreachelse}\r\n		&nbsp; No stars to compare with!\r\n	{/foreach}\r\n{/if}\r\n</body>\r\n</html>'),(2058,141,0.17,'smarty','0','added search tips',1089172751,16,'64.85.237.174','{if $smarty.request.layout eq \"false\"}{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}{/if}\r\n<h1 class=\"underline\">Nutrition Data</h1>\r\n<p>Browse through our database of nutrition information, to help you track your nutrition. This data has been provided by the USDA.</p>\r\n<p><em>Search Tips</em> Use specific descriptors to refine the search:\r\n example: \"milk, lowfat\" or \"soup, tomato\"\r\n\r\nTry avoiding brand-names.  For example, the database\r\nwill not recognize \"coke\" but you can find the item by\r\ntyping \"carbonated beverage.\"\r\n\r\nIf the item is not found, try making it plural: \"jellies\"\r\ninstead of \"jelly.\"\r\n\r\nFor fast food items, type in \"Fast foods, [food]\" for\r\nexample, \"Fast foods, burrito\" or \"Fast foods,\r\nhamburger\"  Good luck in your search!</p>\r\n\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"nutrition\"\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=\"nutrition_main.tpl\"\r\n	ListTemplate=\"nutrition_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"nutrition_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'),(2059,141,0.18,'smarty','0','added search tips',1089173077,16,'64.85.237.174','{if $smarty.request.layout eq \"false\"}{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}{/if}\r\n<h1 class=\"underline\">Nutrition Data</h1>\r\n<p>Browse through our database of nutrition information, to help you track your nutrition. This data has been provided by the USDA.</p>\r\n<p><em>Search Tips</em> \r\n<ul>\r\n	<li>Use specific descriptors to refine the search:example: \"milk, lowfat\" or \"soup, tomato\"<br /></li>\r\n	<li>Try avoiding brand-names.  For example, the database will not recognize \"coke\" but you can find the item by typing \"carbonated beverage.\"<br /></li>\r\n	<li>If the item is not found, try making it plural: \"jellies\" instead of \"jelly.\"<br /></li>\r\n	<li>For fast food items, type in \"Fast foods, [food]\" for example, \"Fast foods, burrito\" or \"Fast foods, hamburger\"<br /></li>\r\n</ul>\r\n Good luck in your search!</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"nutrition\"\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=\"nutrition_main.tpl\"\r\n	ListTemplate=\"nutrition_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"nutrition_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'),(2060,141,0.19,'smarty','0','added search tips',1089173266,16,'64.85.237.174','{if $smarty.request.layout eq \"false\"}{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}{/if}\r\n<h1 class=\"underline\">Nutrition Data</h1>\r\n<p>Browse through our database of nutrition information, to help you track your nutrition. This data has been provided by the USDA.</p>\r\n<p><em>Search Tips</em> \r\n<ul>\r\n	<li>Use specific descriptors to refine the search, example: \"milk, lowfat\" or \"soup, tomato\"<br /></li>\r\n	<li>Try avoiding brand-names.  For example, the database will not recognize \"coke\" but you can find the item by typing \"carbonated beverage.\"<br /></li>\r\n	<li>If the item is not found, try making it plural: \"jellies\" instead of \"jelly.\"<br /></li>\r\n	<li>For fast food items, type in \"Fast foods, [food]\" for example, \"Fast foods, burrito\" or \"Fast foods, hamburger\"<br /></li>\r\n</ul>\r\n Good luck in your search!</p>\r\n\r\n{tablemanager\r\n	Assign=\"tm\"\r\n	Group=\"display_tools\"\r\n	Profile=\"nutrition\"\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=\"nutrition_main.tpl\"\r\n	ListTemplate=\"nutrition_list.tpl\"\r\n	EditTemplate=\"slate_edit.tpl\"\r\n	ViewTemplate=\"nutrition_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'),(2061,148,0.30,'smarty','0','Will pass hidden fields now for the non-editables.',1089173764,16,'64.85.237.174','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>We know goals change throughout the weight loss experience.  Here you can change your goals and other profile items. Your Personal Goal and Motto will show up on your about page <em>(Coming Soon)</em>, and the signature will go at the bottom of your discussion board messages when you post a new message.</p>\r\n\r\n{include_php file=\"shared_handle:myProfile\"}\r\n\r\n<form name=\"myProfileForm\" 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 cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\n	Date of Birth: <b>{$profile.dateOfBirth|date_format2:\"n/j/Y\"}</b>\r\n	<input type=\"hidden\" name=\"profile[dateOfBirth]\" value=\"{$profile.dateOfBirth}\" />\r\n	<br />\r\n	Hide my weight from others?:\r\n	<input type=\"radio\" name=\"profile[hideInitialWeight]\" value=\"Yes\"{if $profile.hideInitialWeight eq \"Yes\"} checked{/if} /> Yes &nbsp; <input type=\"radio\" name=\"profile[hideInitialWeight]\" value=\"No\"{if $profile[hideInitialWeight] neq \"Yes\"} checked{/if} /> No\r\n	<br />\r\n	Initial Weight: <b>{$profile.initialWeight}</b>\r\n	<input type=\"hidden\" name=\"profile[initialWeight]\" value=\"{$profile.initialWeight}\" />\r\n	<br />\r\n	Goal Weight:\r\n	<input type=\"text\" name=\"profile[goalWeight]\" value=\"{$profile.goalWeight}\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" />\r\n	<br />\r\n	Current Height:\r\n	<input type=\"text\" name=\"profile[height][feet]\" value=\"{$profile.height.feet|htmlspecialchars}\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n	<input type=\"text\" name=\"profile[height][inches]\" value=\"{$profile.height.inches|htmlspecialchars}\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"profile[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\">{$profile.personalGoal|htmlspecialchars}</textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"profile[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\">{$profile.personalSaying|htmlspecialchars}</textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"profile[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\">{$profile.signature|htmlspecialchars}</textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a href=\"javascript://\" onclick=\"document.myProfileForm.submit();return false;\" class=\"link\">Submit Changes</a> | \r\n	<a href=\"?pg=myhome\" class=\"link\">Back to My Home</a>\r\n</div>\r\n\r\n</form>\r\n'),(2062,95,0.15,'smarty','0','testing out style divs..',1089174489,3,'24.10.220.247','{style_div id=\"sd1\" class=\"sdChrome\"}\r\nHola!\r\n{/style_div}'),(2063,95,0.16,'smarty','1','testing out style divs..',1089176372,3,'24.10.220.247','{style_div id=\"sd1\"}\r\nHola!\r\n{/style_div}'),(2064,131,0.71,'smarty','0','New layout work.',1089179176,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}</h1>\r\n<br />\r\n{assign var=\"hideWidgets\" value=\"true\"}\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><table><tr>\r\n		<td><iframe name=\"graphwindow\" src=\"?pg=flashgraph-frame&format=small&type=weight&fillPrevious=1&precision=0&totalChange=0&userIds={$userProfile.id}\" frameborder=\"0\" width=\"425\" height=\"220\" scrollbars=\"no\"></iframe></td>\r\n	</tr></table></td>\r\n	<td valign=\"middle\">\r\n		<h2><i>\"{$userProfile.personalSaying|default:\"Your personal motto goes here.\"}\"</i></h2>\r\n	</td>\r\n</tr>\r\n<tr>\r\n	<td colspan=\"3\">\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>\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<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'),(2079,154,0.21,'smarty','1','Made it non-specific to current user.',1089244004,2,'67.166.75.203','{assign var=\"pgLayout\" value=\"none\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n</head>\r\n<body style=\"margin:2px 1px 1px 4px; background-image:none;\">\r\n{include_php file=\"shared_handle:compareStars\"}\r\n<h3 class=\"underline\">&nbsp; Comparing with Stars</h3>\r\n\r\n{if $userStats.username eq $user->username}\r\n	{assign var=\"possessive\" value=\"Your\"}\r\n	{assign var=\"presentTense\" value=\"You weigh\"}\r\n{else}\r\n	{assign var=\"possessive\" value=$userStats.username|cat:\"\'s\"}\r\n	{assign var=\"presentTense\" value=$userStats.username|cat:\" weighs\"}\r\n{/if}\r\n\r\n{if not $userStats.weight}\r\n	Unable to compare! Cannot find any stats for {$userStats.firstName} {$userStats.lastName} ({$userStats.username}).\r\n{else}\r\n	<u>{$possessive} current weight:</u> <b>{$userStats.weight}</b> as of <b>{$userStats.dateOfEntry|date_format2:\"n/j/Y\"}</b><br />\r\n	<br />\r\n	{foreach from=$stars item=\"star\"}\r\n		{math assign=\"pct\" equation=\"x / y\" x=$userStats.weight y=$star.weight}\r\n		&nbsp; {$presentTense} as much as <b>{$pct|number_format:2}</b> <b>{$star.name}(s)</b> ({$star.weight} lbs.)<br />\r\n	{foreachelse}\r\n		&nbsp; No stars to compare with!\r\n	{/foreach}\r\n{/if}\r\n</body>\r\n</html>'),(2427,143,0.54,'smarty','0','Changed distanceRun to distanceExercised.',1099786864,3,'24.10.224.224','{assign var=\"pgLayout\" value=\"none\"}{include_php file=\"shared_handle:getStats\"}<html>\r\n<head>\r\n	<link rel=\"stylesheet\" href=\"{$skinFolder}/styles/base.css\" />\r\n	<style>\r\n	.verticalText {ldelim}\r\n		writing-mode: tb-rl;\r\n		filter: flipv fliph;\r\n	{rdelim}\r\n	.tch {ldelim}\r\n		height:40px;\r\n		border-right:1px solid black;\r\n		border-bottom:1px solid black;\r\n		background-color:#EEE;\r\n	{rdelim}\r\n	.tc {ldelim}\r\n		height:30px;\r\n		border-right:1px dashed #CCC;\r\n		border-bottom:1px dashed #CCC;\r\n		background-color:#FFF;\r\n		text-align:center;\r\n	{rdelim}\r\n	</style>\r\n\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'updateWindow\', 600, 400, 100, 100, \'yes\', \'no\', \'no\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n\r\n</head>\r\n<body style=\"margin:0px;background-image:none;\">\r\n{* display var=$userStats *}\r\n{* display var=$compData *}\r\n<table width=\"100%\" height=\"280\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"left\">\r\n<tr>\r\n	{if $user->id eq $userProfile.id OR $acm->isDomainAdmin()}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\">&nbsp;<a href=\"?pg=myprofile/update&start={$week.weekOfTimestamp}&userId={$userProfile.id}\'\" target=\"profileUpdateFrame\"><em>Week {$num}</em></a>&nbsp;<br /><small>{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{else}\r\n		{foreach name=\"headingLoop\" from=$userStats.weeks item=\"week\" key=\"num\"}\r\n		<td height=\"40\" nowrap=\"nowrap\" align=\"center\" class=\"tch\"><div class=\"\"><small>&nbsp;<b>Week {$num}</b>&nbsp;<br />{$week.weekOf}&nbsp;</small></div></td>\r\n		{/foreach}\r\n	{/if}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.weight}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.totalLost|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.bmi|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.calories|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.carbs|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.fat|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.minutesExercise|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n<tr>\r\n	{foreach from=$userStats.weeks item=\"week\"}\r\n	<td height=\"30\" valign=\"middle\" align=\"right\" class=\"tc\"><div>{$week.distanceExercised|default:\"0\"}</div></td>\r\n	{/foreach}\r\n</tr>\r\n</table><a name=\"recent\"></a>\r\n</body>\r\n</html>\r\n'),(4593,102,0.67,'smarty','0','Modified dates to just use a statically generated dropdown.',1131601895,2,'24.2.76.126','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" from=\"signup\" assign=\"signup\"}\r\n<!-- return:{$smarty.request.signup.return} -->\r\n{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:\"\" type=\"signup\" destroy=\"true\"}{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 2 - Your Profile</h1>\r\n<p>This step includes recording you initial weight and goals. Each field will be used to calculate \r\nother factors including your Body Mass Index. To hide your body weight from others select \'Yes.\' \r\nBy selecting \'Yes\' others will only see your change in weight (i.e. -5 lbs).<br />\r\n<br />\r\n<small> * indicates a required field</small></p>\r\n\r\n{include_php file=\"shared_handle:signup.details\"}\r\n\r\n<div>\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\n*Date of Birth:\r\n{* get_month name=\"signup[dob][month]\" *}\r\n<select name=\"signup[dob][month]\">\r\n	<option value=\"\"></option>\r\n	<option value=\"1\">January</option>\r\n	<option value=\"2\">February</option>\r\n	<option value=\"3\">March</option>\r\n	<option value=\"4\">April</option>\r\n	<option value=\"5\">May</option>\r\n	<option value=\"6\">June</option>\r\n	<option value=\"7\">July</option>\r\n	<option value=\"8\">August</option>\r\n	<option value=\"9\">September</option>\r\n	<option value=\"10\">October</option>\r\n	<option value=\"11\">November</option>\r\n	<option value=\"12\">December</option>\r\n</select>\r\n\r\n{* get_day   name=\"signup[dob][day]\" *}\r\n<select name=\"signup[dob][day]\">\r\n	<option value=\"\"></option>\r\n	<option value=\"1\">1</option>\r\n	<option value=\"2\">2</option>\r\n	<option value=\"3\">3</option>\r\n	<option value=\"4\">4</option>\r\n	<option value=\"5\">5</option>\r\n	<option value=\"6\">6</option>\r\n	<option value=\"7\">7</option>\r\n	<option value=\"9\">9</option>\r\n	<option value=\"10\">10</option>\r\n	<option value=\"11\">11</option>\r\n	<option value=\"12\">12</option>\r\n	<option value=\"13\">13</option>\r\n	<option value=\"14\">14</option>\r\n	<option value=\"15\">15</option>\r\n	<option value=\"16\">16</option>\r\n	<option value=\"17\">17</option>\r\n	<option value=\"19\">19</option>\r\n	<option value=\"20\">20</option>\r\n	<option value=\"21\">21</option>\r\n	<option value=\"22\">22</option>\r\n	<option value=\"23\">23</option>\r\n	<option value=\"24\">24</option>\r\n	<option value=\"25\">25</option>\r\n	<option value=\"26\">26</option>\r\n	<option value=\"27\">27</option>\r\n	<option value=\"29\">29</option>\r\n	<option value=\"30\">30</option>\r\n	<option value=\"31\">31</option>\r\n</select>\r\n\r\n{* math assign=\"end_year\" equation=\"x - 18\" x=$smarty.now|date_format2:\"Y\" *}  {* Minimum age is 18 years for now *}\r\n{* get_year  name=\"signup[dob][year]\" start=\"1915\" end=$end_year *}\r\n<select name=\"signup[dob][year]\">\r\n	<option value=\"\"></option>\r\n	<option value=\"1915\">1915</option>\r\n	<option value=\"1916\">1916</option>\r\n	<option value=\"1917\">1917</option>\r\n	<option value=\"1918\">1918</option>\r\n	<option value=\"1919\">1919</option>\r\n	<option value=\"1920\">1920</option>\r\n	<option value=\"1921\">1921</option>\r\n	<option value=\"1922\">1922</option>\r\n	<option value=\"1923\">1923</option>\r\n	<option value=\"1924\">1924</option>\r\n	<option value=\"1925\">1925</option>\r\n	<option value=\"1926\">1926</option>\r\n	<option value=\"1927\">1927</option>\r\n	<option value=\"1928\">1928</option>\r\n	<option value=\"1929\">1929</option>\r\n	<option value=\"1930\">1930</option>\r\n	<option value=\"1931\">1931</option>\r\n	<option value=\"1932\">1932</option>\r\n	<option value=\"1933\">1933</option>\r\n	<option value=\"1934\">1934</option>\r\n	<option value=\"1935\">1935</option>\r\n	<option value=\"1936\">1936</option>\r\n	<option value=\"1937\">1937</option>\r\n	<option value=\"1938\">1938</option>\r\n	<option value=\"1939\">1939</option>\r\n	<option value=\"1940\">1940</option>\r\n	<option value=\"1941\">1941</option>\r\n	<option value=\"1942\">1942</option>\r\n	<option value=\"1943\">1943</option>\r\n	<option value=\"1944\">1944</option>\r\n	<option value=\"1945\">1945</option>\r\n	<option value=\"1946\">1946</option>\r\n	<option value=\"1947\">1947</option>\r\n	<option value=\"1948\">1948</option>\r\n	<option value=\"1949\">1949</option>\r\n	<option value=\"1950\">1950</option>\r\n	<option value=\"1951\">1951</option>\r\n	<option value=\"1952\">1952</option>\r\n	<option value=\"1953\">1953</option>\r\n	<option value=\"1954\">1954</option>\r\n	<option value=\"1955\">1955</option>\r\n	<option value=\"1956\">1956</option>\r\n	<option value=\"1957\">1957</option>\r\n	<option value=\"1958\">1958</option>\r\n	<option value=\"1959\">1959</option>\r\n	<option value=\"1960\">1960</option>\r\n	<option value=\"1961\">1961</option>\r\n	<option value=\"1962\">1962</option>\r\n	<option value=\"1963\">1963</option>\r\n	<option value=\"1964\">1964</option>\r\n	<option value=\"1965\">1965</option>\r\n	<option value=\"1966\">1966</option>\r\n	<option value=\"1967\">1967</option>\r\n	<option value=\"1968\">1968</option>\r\n	<option value=\"1969\">1969</option>\r\n	<option value=\"1970\">1970</option>\r\n	<option value=\"1971\">1971</option>\r\n	<option value=\"1972\">1972</option>\r\n	<option value=\"1973\">1973</option>\r\n	<option value=\"1974\">1974</option>\r\n	<option value=\"1975\">1975</option>\r\n	<option value=\"1976\">1976</option>\r\n	<option value=\"1977\">1977</option>\r\n	<option value=\"1978\">1978</option>\r\n	<option value=\"1979\">1979</option>\r\n	<option value=\"1980\">1980</option>\r\n	<option value=\"1981\">1981</option>\r\n	<option value=\"1982\">1982</option>\r\n	<option value=\"1983\">1983</option>\r\n	<option value=\"1984\">1984</option>\r\n	<option value=\"1985\">1985</option>\r\n	<option value=\"1986\">1986</option>\r\n	<option value=\"1987\">1987</option>\r\n</select>\r\n<br />\r\n\r\n*Gender: \r\n<input type=\"radio\" name=\"signup[gender]\" value=\"not specified\" checked />Not Specified &nbsp;<input type=\"radio\" name=\"signup[gender]\" value=\"male\" />Male &nbsp; <input type=\"radio\" name=\"signup[gender]\" value=\"female\" />Female &nbsp;<br />\r\n\r\n*Current Weight:\r\n<input type=\"text\" name=\"signup[initialWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\n*Hide Weight From Others?:\r\n<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"Yes\"{if $signup[hideInitialWeight] neq \"No\"} checked{/if} /> Yes &nbsp;<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"No\"{if $signup[hideInitialWeight] eq \"No\"} checked{/if} /> No &nbsp;<br />\r\n\r\n*Goal Weight:\r\n<input type=\"text\" name=\"signup[goalWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\n*Height:\r\n<input type=\"text\" name=\"signup[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"signup[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Department and Personal Goal</h2>\r\n        Please enter the name of the department you work in and also your personal goal.  Your department name will be used to put you onto a team.\r\n	<textarea name=\"signup[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n        This will show up on your about page, and can be changed often.\r\n	<textarea name=\"signup[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n        Be creative with your signature! This will go at the bottom of the messages you post on the discussion board and can be changed often.\r\n	<textarea name=\"signup[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" 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\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>\r\n</div>'),(1780,148,0.10,'smarty','0','Page created.',1088021715,3,'67.166.74.140',''),(1781,148,0.11,'smarty','0','Initial page from signup process',1088021793,3,'67.166.74.140','<h1 class=\"withBG\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nDate of Birth:\r\n{get_month name=\"signup[dob][month]\"}\r\n{get_day   name=\"signup[dob][day]\"}\r\n{math assign=\"end_year\" equation=\"x - 18\" x=$smarty.now|date_format2:\"Y\"}  {* Minimum age is 18 years for now *}\r\n{get_year  name=\"signup[dob][year]\" end=$end_year}<br />\r\n\r\nCurrent Weight:\r\n<input type=\"text\" name=\"signup[initialWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHide Initial Weight?:\r\n<input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"signup[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n\r\nGoal Weight:\r\n<input type=\"text\" name=\"signup[goalWeight]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHeight:\r\n<input type=\"text\" name=\"signup[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"signup[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"signup[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"signup[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"signup[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" 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\">{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n\r\n</form>\r\n'),(1782,148,0.12,'smarty','0','some updates.',1088022419,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n\r\nHeight:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br /><a class=\"button\" href=\"javascript://\">Update</a>\r\n</div>\r\n\r\n</form>\r\n'),(1783,148,0.13,'smarty','0','some updates.',1088022463,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br /><a class=\"button\" href=\"javascript://\">Update</a>\r\n</div>\r\n\r\n</form>\r\n'),(1784,148,0.14,'smarty','0','and more.',1088022503,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<br /><a class=\"button\" href=\"javascript://\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1785,131,0.54,'smarty','0','fixed heights, etc.',1088022597,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<br />\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=myhome\">Back To My Home</a>\r\n</div>\r\n\r\n\r\n\r\n\r\n'),(1788,148,0.15,'smarty','0','update button to link.',1088022998,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a class=\"button\" href=\"javascript://\" class=\"button\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1789,148,0.16,'smarty','0','update button to link.',1088023021,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a class=\"button\" href=\"javascript://\" class=\"link\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1790,148,0.17,'smarty','0','update button to link.',1088023041,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a href=\"javascript://\" class=\"link\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1793,149,0.11,'smarty','1','Page created.',1088023541,2,'67.166.74.140','{redirect href=\"?pg=acceptInvitation\"}'),(1794,150,0.10,'smarty','0','Page created.',1088023555,2,'67.166.74.140',''),(1795,150,0.11,'smarty','0','Page created.',1088023583,2,'67.166.74.140','<h1 class=\"underline\">Accept an Invitation</h1>'),(1796,131,0.56,'smarty','0','added explanitory text to the bottom of the page',1088023873,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<small>The 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.</small>\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'),(1801,152,0.10,'smarty','0','Page created.',1088024365,3,'67.166.74.140',''),(1802,151,0.11,'smarty','1','Page created.',1088024384,2,'67.166.74.140','{redirect href=$blah|cat:\"?pg=acceptInvitation&icode=\":$smarty.get.icode:\"&cid=\":$smarty.get.cid}'),(1803,150,0.12,'smarty','0','Page created.',1088024422,2,'67.166.74.140','{include_php file=\"shared_handle:loadInvitation\"}\r\n\r\n<h1 class=\"underline\">Accept an Invitation</h1>'),(1804,152,0.11,'smarty','0','initial page',1088024717,3,'67.166.74.140','<h1 class=\"underline\">Account Settings</h1>\r\n\r\n<p>Change your system password, and customize this site to fit your style.</p>\r\n\r\n<div class=\"chunk\">\r\n<h2 class=\"withBG\">Change Password</h2>\r\n<form method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\nCurrent Password: <input type=\"password\" class=\"textInput\" name=\"curPass\" value=\"\" /><br />\r\nNew Password: <input type=\"password\" class=\"textInput\" name=\"newPass\" value=\"\" /><br />\r\nConfirm New: <input type=\"password\" class=\"textInput\" name=\"newPass2\" value=\"\" /><br />\r\n<div class=\"underline\">&nbsp;</div>\r\n<a href=\"javascript://\">Change My Password Now!</a>\r\n</form>\r\n</div>'),(2884,187,0.24,'smarty','0','Page created.',1104278020,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n<h2 class=\"withBG\">My Survey History</h2>\r\n\r\n{select_query return=\"array\" assign=\"aSurveys\"}\r\nst.id, st.surveyId, st.dateTaken, st.pointsEarned, s.surveyName \r\nFROM surveys_taken st\r\nLEFT JOIN surveys s ON (s.id = st.surveyId)\r\nWHERE userId = {$user->id} \r\nORDER BY dateTaken\r\n{/select_query}\r\n\r\n<table width=\"100%\">\r\n<thead>\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><small><b><u>Survey Name</u></b></small></td>\r\n		<td nowrap=\"nowrap\"><small><b><u>Date Taken</u></b></small></td>\r\n		<td nowrap=\"nowrap\"><small><b><u>Points Earned</u></b></small></td>\r\n		<td><small><b><u>Action</u></b></small></td>\r\n	</tr>\r\n</thead>\r\n{foreach from=$aSurveys item=item name=survey}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><small>{$item.surveyName}</small></td>\r\n		<td><small>{$item.dateTaken|date_format2:\"m/d/y\"}</small></td>\r\n		<td><small>{$item.pointsEarned}</small></td>\r\n		<td><small><a href=\"index.php?pg=surveyReview&takenId={$item.id}\">Review</a></small></td>\r\n	</tr>\r\n{/foreach}\r\n</table>\r\n<br /><br />\r\n<div class=\"underline\"></div>\r\n<div style=\"text-align:center;margin-top:20px;\"><input type=\"button\" onclick=\"window.close();\" value=\"Close this Window\" /></div>\r\n'),(2885,187,0.25,'smarty','0','Page created.',1104278033,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n<h2 class=\"withBG\">My Survey History</h2>\r\n\r\n{select_query return=\"array\" assign=\"aSurveys\"}\r\nst.id, st.surveyId, st.dateTaken, st.pointsEarned, s.surveyName \r\nFROM surveys_taken st\r\nLEFT JOIN surveys s ON (s.id = st.surveyId)\r\nWHERE userId = {$user->id} \r\nORDER BY dateTaken\r\n{/select_query}\r\n\r\n<table width=\"100%\">\r\n<thead>\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><small><b><u>Survey Name</u></b></small></td>\r\n		<td nowrap=\"nowrap\"><small><b><u>Date Taken</u></b></small></td>\r\n		<td nowrap=\"nowrap\"><small><b><u>Points Earned</u></b></small></td>\r\n		<td><small><b><u>Action</u></b></small></td>\r\n	</tr>\r\n</thead>\r\n{foreach from=$aSurveys item=item name=survey}\r\n	<tr>\r\n		<td nowrap=\"nowrap\"><small>{$item.surveyName}</small></td>\r\n		<td><small>{$item.dateTaken|date_format2:\"m/d/y\"}</small></td>\r\n		<td><small>{$item.pointsEarned}</small></td>\r\n		<td><small><a href=\"index.php?pg=surveyReview&takenId={$item.id}\">Review</a></small></td>\r\n	</tr>\r\n{/foreach}\r\n</table>\r\n<br />\r\n<div class=\"underline\"></div>\r\n<div style=\"text-align:center;margin-top:20px;\"><input type=\"button\" onclick=\"window.close();\" value=\"Close this Window\" /></div>\r\n'),(2886,184,0.36,'smarty','0','fixed reposting of selected values.',1104279122,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"file:./layouts/lite.tpl\"}\r\n{include_php file=\"shared_handle:company/survey\"}\r\n\r\n<h2 class=\"withBG\">{$survey.surveyName|default:\"Unnamed Survey\"}</h2>\r\n<div style=\"margin-left:20px;\"><small>\r\n	May be taken: <i>{$survey.frequency}</i><br />\r\n	Logged in as: <i>{$user->firstName} {$user->lastName} ({$user->username})</i><br />	\r\n</small></div>\r\n\r\n<form name=\"surveyForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n<input type=\"hidden\" name=\"id\" value=\"{$smarty.request.id}\" />\r\n\r\n<ol id=\"surveyQuestionList\">\r\n	{foreach name=\"questions\" from=$survey.questions item=\"question\"}\r\n	<li>{$question.question}{assign var=\"qid\" value=$question.id}\r\n	<dl>{assign var=\"i\" value=$smarty.foreach.questions.iteration}\r\n		{if $question.A != \"\"}<dt><input id=\"q{$i}A\" type=\"radio\" name=\"q[{$qid}]\" value=\"A\" {if $smarty.post.q.$qid eq \"A\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}A\').checked = true;\">{$question.A}</a></dt>{/if}\r\n		{if $question.B != \"\"}<dt><input id=\"q{$i}B\" type=\"radio\" name=\"q[{$qid}]\" value=\"B\" {if $smarty.post.q.$qid eq \"B\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}B\').checked = true;\">{$question.B}</a></dt>{/if}\r\n		{if $question.C != \"\"}<dt><input id=\"q{$i}C\" type=\"radio\" name=\"q[{$qid}]\" value=\"C\" {if $smarty.post.q.$qid eq \"C\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}C\').checked = true;\">{$question.C}</a></dt>{/if}\r\n		{if $question.D != \"\"}<dt><input id=\"q{$i}D\" type=\"radio\" name=\"q[{$qid}]\" value=\"D\" {if $smarty.post.q.$qid eq \"D\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}D\').checked = true;\">{$question.D}</a></dt>{/if}\r\n		{if $question.E != \"\"}<dt><input id=\"q{$i}E\" type=\"radio\" name=\"q[{$qid}]\" value=\"E\" {if $smarty.post.q.$qid eq \"E\"}checked=\"checked\" {/if}/> <a href=\"javascript://\" onclick=\"document.getElementById(\'q{$i}E\').checked = true;\">{$question.E}</a></dt>{/if}\r\n	</dl></li>\r\n	{/foreach}\r\n</ol>\r\n\r\n<div class=\"underline\"></div>\r\n<div style=\"text-align:center;margin-top:10px;\">{if $survey.dateAvailable eq \"now\"}<input type=\"submit\" name=\"surveyAction\" value=\"Submit Responses\" />{else}<input type=\"button\" onclick=\"location.replace(\'index.php?pg=surveyHistory\');\" value=\"Not available until {$survey.dateAvailable|date_format2:\"m/d/y\"}\" />{/if}</div>\r\n</form>\r\n'),(1806,152,0.12,'smarty','0','chunk300 and container table',1088024855,3,'67.166.74.140','<h1 class=\"underline\">Account Settings</h1>\r\n\r\n<p>Change your system password, and customize this site to fit your style.</p>\r\n\r\n<table><tr><td>\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Change Password</h2>\r\n<form method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\nCurrent Password: <input type=\"password\" class=\"textInput\" name=\"curPass\" value=\"\" /><br />\r\nNew Password: <input type=\"password\" class=\"textInput\" name=\"newPass\" value=\"\" /><br />\r\nConfirm New: <input type=\"password\" class=\"textInput\" name=\"newPass2\" value=\"\" /><br />\r\n<div class=\"underline\">&nbsp;</div>\r\n<a href=\"javascript://\">Change My Password Now!</a>\r\n</form>\r\n</div>\r\n</td></tr></table>'),(1807,152,0.13,'smarty','0','added Site Skin chunk, and back to home btm nav',1088025220,3,'67.166.74.140','<h1 class=\"underline\">My Account Settings</h1>\r\n\r\n<p>Change your system password, and customize this site to fit your style.</p>\r\n\r\n<table><tr><td>\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Change Password</h2>\r\n<form name=\"passForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\nCurrent Password: <input type=\"password\" class=\"textInput\" name=\"curPass\" value=\"\" /><br />\r\nNew Password: <input type=\"password\" class=\"textInput\" name=\"newPass\" value=\"\" /><br />\r\nConfirm New: <input type=\"password\" class=\"textInput\" name=\"newPass2\" value=\"\" /><br />\r\n<div class=\"underline\">&nbsp;</div>\r\n<a href=\"javascript://\">Change My Password Now!</a>\r\n</form>\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Site Skin</h2>\r\n<form name=\"skinForm\" method=\"post\" action=\"index.php\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\nSelect a background: <select name=\"bgImage\">\r\n	<option value=\"\">White</option>\r\n	<option value=\"\">Rivets</option>\r\n</select>\r\n<div class=\"underline\">&nbsp;</div>\r\n<a href=\"javascript://\">Save Changes</a>\r\n</form>\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a class=\"link\" href=\"?pg=myhome\">Back to My Home</a>\r\n</div>'),(1808,148,0.18,'smarty','0','added descriptive text.',1088025392,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\nYour Personal Goal and Motto will show up on your about page, and the signature will go at the bottom of your discussion board messages.\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a href=\"javascript://\" class=\"link\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1809,148,0.19,'smarty','0','added descriptive text.',1088025435,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Here you can update your personal motto, etc. &nbsp; Your Personal Goal and Motto will show up on your about page, and the signature will go at the bottom of your discussion board messages.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a href=\"javascript://\" class=\"link\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1810,148,0.20,'smarty','0','removed placeholder text',1088025471,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Your Personal Goal and Motto will show up on your about page, and the signature will go at the bottom of your discussion board messages.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a href=\"javascript://\" class=\"link\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1811,148,0.21,'smarty','0','removed placeholder text',1088025471,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Your Personal Goal and Motto will show up on your about page, and the signature will go at the bottom of your discussion board messages.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a href=\"javascript://\" class=\"link\">Update Now</a>\r\n</div>\r\n\r\n</form>\r\n'),(1812,148,0.22,'smarty','0','added Back to My Home link',1088025536,3,'67.166.74.140','<h1 class=\"underline\">My Profile</h1>\r\n\r\n<p>Your Personal Goal and Motto will show up on your about page, and the signature will go at the bottom of your discussion board messages.</p>\r\n\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\r\n<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td>\r\n\r\n<div class=\"chunk300\" style=\"width:310px;\">\r\n<h2 class=\"withBG\">Personal Profile</h2>\r\nHide my weight from others?:\r\n<input type=\"radio\" name=\"erow[hideInitialWeight][]\" value=\"Yes\" /> Yes &nbsp; <input type=\"radio\" name=\"erow[hideInitialWeight]\" value=\"No\"{if not $signup[hideInitialWeight]} checked{/if} /> No<br />\r\n<br />\r\nGoal Weight:\r\n<input type=\"text\" name=\"erow[goalWeight][]\" size=\"4\" maxlength=\"3\" class=\"textInput\" style=\"width:25px;\" /><br />\r\n<br />\r\nCurrent Height:\r\n<input type=\"text\" name=\"erow[height][feet]\" class=\"textInput\" maxlength=\"1\" style=\"width:18px;\" /> feet, \r\n<input type=\"text\" name=\"erow[height][inches]\" class=\"textInput\" maxlength=\"2\" style=\"width:20px;\" /> inches<br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Goal</h2>\r\n	<textarea name=\"erow[personalGoal]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Personal Motto</h2>\r\n	<textarea name=\"erow[personalSaying]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n	<h2 class=\"withBG\">Your Signature</h2>\r\n	<textarea name=\"erow[signature]\" cols=\"30\" rows=\"5\" style=\"width:295px; height:125px;\"></textarea><br />\r\n</div>\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" align=\"right\">\r\n	<a href=\"javascript://\" class=\"link\">Update Now</a> | \r\n	<a href=\"?pg=myhome\" class=\"link\">Back to My Home</a>\r\n</div>\r\n\r\n</form>\r\n'),(2538,169,0.10,'smarty','0','Page created.',1101826495,3,'24.10.224.224',''),(2539,169,0.11,'smarty','0','Page created.',1101826604,3,'24.10.224.224','<h1 class=\"withBG\">Problem</h1>\r\n\r\n<p>Content</p>'),(2540,169,0.12,'smarty','0','Page created.',1101826793,3,'24.10.224.224','<h1 class=\"withBG\">Problem</h1>\r\n\r\n<p>Enter the Page Content here</p>'),(2541,170,0.10,'smarty','0','Page created.',1101826812,3,'24.10.224.224',''),(2542,170,0.11,'smarty','0','Page created.',1101826833,3,'24.10.224.224','<h1 class=\"withBG\">Solution</h1>\r\n\r\n<p>Enter the Page Content here</p>'),(2543,171,0.10,'smarty','0','Page created.',1101826848,3,'24.10.224.224',''),(2544,171,0.11,'smarty','0','Page created.',1101826873,3,'24.10.224.224','<h1 class=\"withBG\">Products</h1>\r\n\r\n<p>Enter the Page Content here</p>'),(2545,172,0.10,'smarty','0','Page created.',1101826882,3,'24.10.224.224',''),(2546,172,0.11,'smarty','0','Page created.',1101826924,3,'24.10.224.224','<h1 class=\"withBG\">Company</h1>\r\n\r\n<p>Enter the Page Content here</p>'),(4521,256,0.17,'smarty','0','Loop to update parent estat graph links.',1130252536,16,'216.194.127.150','{assign var=\"pgLayout\" value=\"file:layouts/blank.tpl\"}\r\n{include_php file=\"shared_handle:estats/userEntry\"}\r\n\r\n{capture name=\"headExtra\"}\r\n<script language=\"javascript\">{literal}\r\nfunction xWindow(name, w, h, x, y, loc, men, res, scr, sta, too)\r\n{\r\n  var f = \'\';\r\n  if (w && h) {\r\n    if (document.layers) f = \'screenX=\' + x + \',screenY=\' + y;\r\n    else f = \'left=\' + x + \',top=\' + y;\r\n    f += \',width=\' + w + \',height=\' + h + \',\';\r\n  }\r\n  f += (\'location=\'+loc+\',menubar=\'+men+\',resizable=\'+res\r\n    +\',scrollbars=\'+scr+\',status=\'+sta+\',toolbar=\'+too);\r\n  this.features = f;\r\n  this.name = name;\r\n  this.load = function(sUrl) {\r\n    if (this.wnd && !this.wnd.closed) this.wnd.location.href = sUrl;\r\n    else this.wnd = window.open(sUrl, this.name, this.features);\r\n    this.wnd.focus();\r\n    return false;\r\n  }\r\n}\r\nwinUpdater = new xWindow(\'nutritionWin\', 750, 500, 10, 10, \'yes\', \'no\', \'yes\', \'yes\', \'yes\', \'no\');\r\n{/literal}</script>\r\n{/capture}\r\n\r\n{if $userInfo.id}\r\n<form name=\"updateForm\" 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=\"start\" value=\"{$smarty.request.start}\">\r\n<input type=\"hidden\" name=\"userId\" value=\"{$smarty.request.userId}\">\r\n\r\n<h2 class=\"withBG\">\r\n	<div class=\"topRight hideShow\">\r\n		<a href=\"javascript:toggle(\'statsUpdateTable\', \'\', \'showHide\');updateParentHeight();\"><img id=\"statsUpdateTable_img\" src=\"blank.gif\" class=\"showHide_on\" alt=\"show/hide\" border=\"0\" /></a>\r\n	</div>\r\n	Update Stats{if $userInfo.id neq $user->id} For: {$userInfo.firstName} {$userInfo.lastName} ({$userInfo.username}){/if}\r\n</h2>\r\n<table id=\"statsUpdateTable\" cellpadding=\"2\" cellspacing=\"2\" style=\"display:block;\">\r\n<tr>\r\n	<td colspan=\"4\" align=\"left\"><div>{if $lastWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$lastWeek}&userId={$userInfo.id}\">&lt; Previous Week</a>{/if}</div></td>\r\n	<td colspan=\"4\" align=\"right\"><div>{if $nextWeek}<a class=\"button\" href=\"?pg={$page.name}&start={$nextWeek}&userId={$userInfo.id}\">Next Week &gt;</a>{/if}</div></td>\r\n</tr>\r\n<tr>\r\n	<td class=\"\"><div>&nbsp;</div></td>\r\n	{section loop=\"7\" name=\"day\"}{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n		<td width=\"75\" align=\"right\" class=\"datacell\"><b>{$dayInfo.$dayNo.timestamp|date_format2:\"l\"}</b><br />{$dayInfo.$dayNo.timestamp|date_format2:\"n/j/y\"}</td>\r\n	{/section}\r\n</tr>\r\n{assign var=\"columnCounter\" value=0}\r\n{foreach from=$estats item=\"estat\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"daily\"}\r\n<tr>	\r\n	<td align=\"right\" class=\"\">\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{section loop=\"7\" name=\"day\"}\r\n			{assign var=\"dayNo\" value=$smarty.section.day.iteration}\r\n			<td align=\"right\" class=\"datacell\"><input tabindex=\"{$smarty.section.day.iteration*7}\" type=\"text\" class=\"largeInput\" name=\"day[{$dayNo}][estats][{$estatId}][value]\" value=\"{if $dayInfo.$dayNo.estats.$estatId.id gt 0}{$dayInfo.$dayNo.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.$dayNo.estats.$estatId.id}\"></td>\r\n		{/section}\r\n</tr>\r\n{/if}\r\n{/foreach}\r\n\r\n{foreach from=$estats item=\"estat\"}\r\n{assign var=\"estatId\" value=$estat.id}\r\n{if $estat.frequency eq \"weekly\"}\r\n{if $columnCounter eq 0 OR !$hasShownWeeklyHeader}<tr>{/if}\r\n	{if $estat.frequency eq \"weekly\" && !$hasShownWeeklyHeader}\r\n		{assign var=\"hasShownWeeklyHeader\" value=1}\r\n		<td>&nbsp;</td>\r\n		<td colspan=\"7\" align=\"center\"><br /><small>The following statistics are entered only once per week.<br /><br /></small></td>\r\n	</tr>\r\n	<tr>\r\n	{/if}	\r\n	<td align=\"right\" class=\"\"{if $columnCounter gt 0} colspan=\"2\"{/if}>\r\n	{if $estat.description}\r\n		<a href=\"javascript://\" onmouseover=\"toggle(\'eStatNote_{$estatId}\');\" onmouseout=\"toggle(\'eStatNote_{$estatId}\');\"><b>{$estat.name|niceText}</b></a><br />\r\n		<div id=\"eStatNote_{$estatId}\" class=\"floatInfoBox\" style=\"display:none;\">&quot;{$estat.description}&quot;{if $estat.groupName}<br /><small><i>Requested By:</i> <b>{$estat.groupDescription}</b></small>{/if}</div>\r\n	{else}\r\n		<b>{$estat.name|niceText}</b><br />\r\n	{/if}\r\n		{if $estat.units}<small class=\"note\">({$estat.units.name|niceText})</small>{/if}</td>\r\n		{assign var=\"columnCounter\" value=$columnCounter|math:\"x+1\"}\r\n		<td align=\"center\" class=\"datacell\"><input type=\"text\" class=\"largeInput\" name=\"day[1][estats][{$estatId}][value]\" value=\"{if $dayInfo.1.estats.$estatId.id gt 0}{$dayInfo.1.estats.$estatId.value}{/if}\" onfocus=\"this.className=\'largeInputSelected\';\" onblur=\"this.className=\'largeInput\';\"><input type=\"hidden\" name=\"day[{$dayNo}][estats][{$estatId}][id]\" value=\"{$dayInfo.1.estats.$estatId.id}\"></td>\r\n{if !$hasShownWeeklyHeader OR $columnCounter eq 3}{assign var=\"columnCounter\" value=0}</tr>{/if}\r\n{/if}\r\n{/foreach}\r\n<tr>\r\n	<td colspan=\"8\" align=\"right\"><br />\r\n		<input type=\"submit\" class=\"button\" value=\"Save Updates!\" />\r\n		<input type=\"button\" value=\"Add a New Tracking Category\" onclick=\"location.replace(\'?pg=eStatWizard\');\" />\r\n	</td>\r\n</tr>\r\n</table>\r\n\r\n</form>\r\n\r\n{if $user->username eq \"trave\"}\r\n{include_php file=\"shared_handle:estats/getEstatsInfo\"}\r\n<div id=\"graphLinksDiv\" style=\"display:none;\">\r\n	<table width=\"100%\">\r\n	<tr>\r\n		<td width=\"100%\" align=\"center\"><small>\r\n		{foreach from=$aEstats item=\"es\" name=\"loopEstats\"}\r\n			<a href=\"?pg=flashgraph-frame&format=small&userIds={$smarty.request.userId|default:$user->id}&esId={$es.id}&type={$es.name|niceText|htmlspecialchars}&precision={$es.units.decimalPlaces|default:1}\" target=\"graphwindow\">{$es.name|niceText|replace:\" \":\"&nbsp;\"}</a> {if !$smarty.foreach.loopEstats.last}|{/if}\r\n		{foreachelse}\r\n			<b>No Available eStat Graphs</b>\r\n		{/foreach}\r\n		</small></td>\r\n	</tr>\r\n	</table>\r\n</div>\r\n{/if}\r\n\r\n<span id=\"eStatsSinker\">&nbsp;</span>\r\n{/if}\r\n<script type=\"text/javascript\">{literal}\r\n	function xDef() {\r\n		for(var i=0; i<arguments.length; ++i) {\r\n			if(typeof(arguments[i])==\'undefined\') return false;\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function xPageY(e) {\r\n	  if (!(e=document.getElementById(e))) return 0;\r\n	  var y = 0;\r\n	  while (e) {\r\n	    if (xDef(e.offsetTop)) y += e.offsetTop;\r\n	    e = xDef(e.offsetParent) ? e.offsetParent : null;\r\n	  }\r\n	  return y;\r\n	}\r\n\r\n	parent.xHeight(\'profileUpdateIFrame\', xPageY(\'eStatsSinker\')+30);\r\n	parent.xHeight(\'statsContainer\', xPageY(\'eStatsSinker\')+30);\r\n\r\n	if (e=document.getElementById(\'graphLinksDiv\')) {\r\n		parent.updateGraphLinks(e.innerHTML);\r\n	}\r\n\r\n{/literal}</script>'),(5270,109,0.37,'smarty','1','Fixed... did not have a closing form tag.',1246482399,16,'208.53.57.52','{if $user->isLoggedIn()}{assign var=\"pgLayout\" value=\"file:layouts/withLeftNav.tpl\"}{/if}\r\n{include_php file=\"shared_handle:contactForm\"}\r\n\r\n<h1>Contact Us</h1>\r\n\r\n<strong>For more information on creating an employee wellness program that fits your company\'s health goals and objectives, please contact us using the form below </strong><br><br>\r\n\r\n<form name=\"contactForm\" action=\"index.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<table>\r\n<tr>\r\n	<td><span>Your Name:</span></td>\r\n	<td><input type=\"text\" name=\"mfName\" value=\"{$smarty.request.mfName|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your E-mail Address:</span></td>\r\n	<td><input type=\"text\" name=\"mfEmail\" value=\"{$smarty.request.mfEmail|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Your Phone:</span></td>\r\n	<td><input type=\"text\" name=\"mfPhone\" value=\"{$smarty.request.mfPhone|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n\r\n<tr>\r\n	<td><span>Subject:</span></td>\r\n	<td><input type=\"text\" name=\"mfSubject\" value=\"{$smarty.request.mfSubject|stripslashes|htmlspecialchars}\"></td>\r\n</tr>\r\n<tr>\r\n	<td><span>Message Body:</span></td>\r\n	<td><textarea cols=\"35\" rows=\"6\" name=\"mfMessage\">{$smarty.request.mfMessage|stripslashes|htmlspecialchars}</textarea></td>\r\n</tr>\r\n<tr>\r\n	<td><span>&nbsp;</span></td>\r\n	<td><input type=\"submit\" value=\"Send Now\"></td>\r\n</tr>\r\n</table>\r\n{if $smarty.session.company.preferences.contact_email eq \"\"}\r\n	<div class=\"underline\">&nbsp;</div>\r\n	<br />\r\n	<table>\r\n	<tr>\r\n		<td><span>E-Mail:</span></td>\r\n		<td><span><strong>Fill out the form above or email us at <br>{mailto address=\"contact@ehealthcompete.com\" text=\"contact@ehealthcompete.com\" encode=\"javascript\"}</strong></span></td>\r\n	</tr>\r\n	<tr>\r\n		<td><span>Phone:</span></td>\r\n		<td><span><strong>801.753.8844</strong></span></td>\r\n	</tr>\r\n	<!--tr>\r\n		<td><span>Fax:</span></td>\r\n		<td><span><strong>1-801-555-5555 </strong></span></td>\r\n	</tr-->\r\n	<tr>\r\n		<td valign=\"top\" nowrap><span><br>U.S. Mail: &nbsp; &nbsp; </span></td>\r\n		<td><span><strong><br>eHealthCompete, INC. <br>\r\n				1639 S. 825 W.<br>\r\n				Lehi, Ut 84043</strong></span></td>\r\n	</tr>\r\n	</table>\r\n{/if}\r\n</form>\r\n'),(2549,171,0.12,'smarty','0','Page created.',1101837840,16,'128.187.0.164','<h1 class=\"withBG\">Products</h1>\r\n\r\n<p>Competition Creator</p>\r\n\r\n\r\n<p>Incentive Programs</p>'),(2550,100,0.20,'smarty','0','added content again',1101844002,3,'24.10.224.224','<h1>Privacy Statement</h1>\r\n\r\n<h2>WeightLossWars, L.L.C. PRIVACY POLICY</h2>\r\n<hr noshade size=\"1\" />\r\n\r\nWeightLossWars, L.L.C. (\"WLW,\" \"we\" or \"us\") provides a variety of online services and products, including without limitation, subscription, newsletter and update services (\"Services\"), to subscribers via email and on numerous websites throughout the World Wide Web (the \"Sites\"). WLW is strongly committed to protecting the privacy of your personal information, and providing a safe and secure environment for its subscribers.<br /><br />\r\nTHE PURPOSE OF THIS WLW PRIVACY POLICY (THE \"POLICY\") IS TO HELP YOU UNDERSTAND THE KINDS OF INFORMATION WE MAY GATHER ABOUT YOU WHEN YOU VISIT THE SITES OR USE ANY OF OUR SERVICES, HOW WE MAY USE THAT INFORMATION, IN WHICH MANNER WE WILL DISCLOSE IT, AND HOW YOU CAN CORRECT AND/OR UPDATE THE INFORMATION. PLEASE NOTE THAT BY USING THE SERVICES OR VISITING THE SITES, YOU SIGNIFY YOUR AGREEMENT WITH THIS POLICY. IF YOU DO NOT AGREE TO THE TERMS OF THIS POLICY, PLEASE DO NOT USE THE SERVICES OR REFRAIN FROM VISITING THE SITES. <br /><br />\r\nPlease note that the Policy applies only to WLW\'s Services and Sites, but not to other websites to which we may link, or to advertisers on the Sites. Additionally, your use of the Services and/or the Sites is governed by WLW\'s Terms of Service, as well as by any other published rules pertaining to either a particular Site or Service. <br /><br />\r\n\r\n<b>Children\'s Information</b><br />\r\nWLW\'s policy is that it does not knowingly collect personally identifiable information from subscribers under thirteen years of age. The Services or Sites are not directed or intended for children under thirteen years of age. If you are under thirteen years of age, you should not register to become a Subscriber or provide personally identifiable information on any of the Sites. If you are the parent or guardian of a subscriber under the age of thirteen whom you believe has disclosed personally identifiable information to WLW, please contact WLW at contact@weightlosswars.com so that we may delete and remove such subscriber\'s information from our systems. <br /><br />\r\n\r\n<b>The Information We Gather</b><br />\r\nWLW collects information from you at several different points on the Sites or through use of the Services in various ways. For example, WLW continually reviews its visitors\' demographics, interests and pages viewed, and WLW may require its subscribers and users to provide certain personal information if they wish to participate in various activities on the Sites (e.g., consummating transactions and entering into contests, drawings or surveys). However, WLW can only collect your personally identifiable information if, and when, it is voluntarily offered. Whenever we collect personal information, we will make an effort to include a link to this Policy on that page. This personal information may be given for the following reasons: to provide contact information to contracted dietitians and personal trainers, mailing products, contacting the user for solicitation by the members of WeightLossWars, or for any other reason that will facilitate the provision of products or services to the user.<br /><br />\r\n\r\n<b>Message Board and Chats</b><br />\r\nAmong the many Services which WLW offers subscribers on the Sites, we provide message boards and chat rooms. Please be aware that any visitor may read your postings on a message board or in a chat room. Furthermore, any information which you may post to a message board or in a chat room, including your profile information, will be disclosed and available to all users of that message board or chat room, and is therefore no longer private. WLW cannot guarantee the security of such information that you disclose or communicate online in public areas such as message boards and chat rooms, and you do so at your own risk. WLW reserves the right to republish your postings from message boards or chat rooms elsewhere on the Web in any format. <br /><br />\r\n\r\n<b>How We Use the Information That We Gather</b><br />\r\nWLW uses certain technologies, such as \"cookies,\" to personalize and improve your online experience. <br />\r\n<ul>\r\n	<li>Cookies are alphanumeric identifiers that we transfer to your computer\'s hard drive. Cookies store information about your visit to the Sites or your use of the Services, thereby allowing you to access certain WLW\'s features not otherwise available. The information in the cookie is transmitted from your computer to WLW or to one of our third-party authorized service contractors. The information contained in these cookies makes it possible for our systems to know if you are presently logged onto a Site or using any of the Services, or whether you have done so in a prior visit. This technology enables WLW to instantly determine your access privileges while allowing you to navigate the Sites or use any of the Services without having to repeatedly log in. <br /><br /></li>\r\n	<li>Cookies from WLW and/or one of our authorized service contractors are also used to collect standard information transmitted from your web browser including, without limitation: your Internet address, browser type, web pages you visited with date and time, purchases you made on any of the Sites and the type of operating system on your computer. This information is used to help us understand and meet the ever-changing needs and interests of our subscribers. <br /><br /></li>\r\n	<li>WLW may also use cookies to track your access to, and use of the message boards, forums and chat rooms on the Sites, as well as your responses to any of our online surveys. <br /><br /></li>\r\n	<li>You always have the option of setting your browser to warn you when a cookie is being accessed on your computer or to decline cookies altogether. However, to take full advantage of the Sites, Services and features offered by WLW, we recommend that you set your browser to accept cookies. Setting your computer to accept or refuse cookies varies depending on the web browser you are running. Please check the help tab of your browser for specifics on your software. <br /><br /></li>\r\n	<li>WLW does not control any cookies you may receive from an advertiser and these are not subject to this Policy. <br /><br /></li>\r\n	</ul>\r\n\r\nIn addition to the foregoing, WLW uses the information obtained from its subscribers and users in order to enhance and customize their online experiences. <br /><br />\r\n\r\nDue to the existing regulatory environment, WLW cannot ensure that all of your personally identifiable information and communications will remain private and will never be disclosed in ways not otherwise described in this Policy. Therefore, although we maintain and make every effort to comply with industry privacy standards, we do not promise, nor should you expect, that your personally identifiable information or private communications will always remain private. <br /><br />\r\n\r\nAs a matter of policy and unless otherwise stated herein, WLW does not rent, sell, or share your personally identifiable information with other people or non-affiliated companies. However, WLW reserves the right to use your personally identifiable information to notify you of certain products or Services about which you previously inquired or requested, special promotional offers, and to investigate violations of the terms and provisions of this Policy or the Terms of Use. In addition, WLW aggregates (gathers and organizes data across all subscriber and user accounts) personally identifiable information from among its subscriber and user base and discloses only that portion of the information which is non-personally identifiable to advertisers and other third parties for marketing, promotional and other commercial purposes. For example, your name, email address, password, credit card number and bank account number will never to be disclosed without your express prior written consent. <br /><br />\r\n\r\n<b>Disclosure of Personal Information in the Event of Merger or Sale of Assets</b><br />\r\nWLW, its parent, subsidiaries or affiliates, could merge with or be acquired by another business entity, or all or substantially all of their respective assets could be acquired. Should such a combination, acquisition or transaction occur, you should expect that WLW will share some or all of your personally identifiable information with the acquiring or merged entity in order to continue serving you and others information, updates and offers concerning the Sites or Services. <br /><br />\r\n\r\n<b>Co-branded and Other Affiliated Sites</b><br />\r\nAs stated above, certain information or Services offered or provided through the Sites may, from time to time, be provided on or through other websites operated by or in conjunction with third party providers (\"Partners\"). These websites and the features thereon may have the same \"look and feel\" as WLW\'s Sites and/or Services. WLW terms these websites \"co-branded sites\", and often times a Partner\'s logo or name may appear on the website, or the Partner\'s name may appear in the URL. Although WLW will continue to own any personally identifiable information collected about you from one of these co-branded sites, such information may be shared by WLW with that Partner. However, a Partner will not rent, sell, or disclose any of your personally identifiable information to third parties unless you consent to such disclosures and use in advance (for example, you may be asked to opt-in on a particular co-branded site in order to receive information or offers from a Partner, its affiliates or agents). <br /><br />\r\n\r\n<b>Third Party Links</b><br />\r\nWLW does not monitor, control or endorse the information collection or privacy practices of any third parties including, without limitation, any co-branded, Partner or affiliated sites which may or may not be owned or operated by or in conjunction with WLW or other third parties who may provide services throughout the Sites. Please be aware that the Sites may contain links to other websites on the Internet and the Services may be provided by such third parties WLW assumes no liability or responsibility for the information collection and privacy practices of such third party. Please consult each website\'s privacy policy. In addition, WLW is not responsible for the content or data collection practices of any third party websites, including a third party\'s use of cookies or other data-collection applications. Even though certain information collected by such third parties might not identify you personally, we strongly encourage you to become familiar with their privacy practices, and to contact them if you have any questions about their respective privacy policies and practices. <br /><br />\r\n\r\nOn behalf of various sponsors, the Sites may provide sponsored links to third-party websites or resources (\"Linked Sites\"). WLW neither controls nor have we reviewed or approved the content that appears on such Linked Sites. You acknowledge and agree that WLW is not responsible for the legality, accuracy or inappropriate nature of any content, advertising, products or other materials on or available from such Linked Sites. You further acknowledge and agree that WLW shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, and services available on or through any such Linked Site. <br /><br />\r\n\r\n<b>Security</b><br />\r\nWLW places a priority on the security of personally identifiable information, and we undertake reasonable security measures that comply with federal regulations to protect the data that resides on our servers. WLW also uses secure server software (SSL) to process all transactions which occur on the Sites. SSL encrypts all of your personal information transmitted over the Internet, including your credit card number, name and address. However, no security system is impenetrable. WLW cannot warrant or guarantee the security of its servers, nor can it guarantee that information supplied by Subscribers or other users will not be intercepted while being transmitted to WLW over the Internet. <br /><br />\r\n\r\n<b>Correction/Updating Personal Information</b><br />\r\nIf your personally identifiable information changes (such as your address, zip code), or if you no longer desire to use or access one of the Sites or Services, WLW encourages you to correct, update or remove the personal information that you provided. This can be done at the \"Manage My Account\" page on each of the Sites. Keep in mind, however, that even if you delete your account from WLW\'s records, there will be residual information that will remain within WLW\'s databases, access logs, and other records, which may or may not contain personally identifiable information. <br /><br />\r\n\r\n<b>How To Contact Us</b><br />\r\nPlease relay any questions you may have pertaining to our above stated policies to our Customer Service Department at {mailto address=\"contact@weightlosswars.com\" encode=\"hex\"}<br /><br />\r\n\r\n<b>Privacy Policy Changes</b><br />\r\nThis Policy was last changed on November 12, 2002. If WLW makes changes to any of the terms or conditions of the Policy, the changes will be posted in this document so that you will always know what information we gather, how we might use that information and to whom we will disclose it. We reserve the right to change, modify, add or remove portions of this Policy at any time, and any changes will become effective immediately upon being posted unless WLW advises you otherwise. Your continued use of the Services and/or the Sites after this Policy has been amended shall be deemed to be your continued acceptance of the terms and conditions of the Policy, as amended. We encourage you to bookmark this web page and review this Policy regularly. Copyright © 2004, WeightLossWars, L.L.C. All rights reserved.<br /><br />\r\n'),(2692,113,1.45,'smarty','0','Working on AutoComplete stuff..',1103340227,3,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/default.tpl\"}\r\n{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{assign var=\"return\" value=$smarty.request.return|default:$signup.return|default:\"home\"}\r\n<!-- {$return} -->\r\n{if $user->isLoggedIn() and $return neq \"\"}\r\n	{if $return eq \"home\"}\r\n		{message type=\"error\" value=\"You cannot sign up for a membership when you are already logged in.\"}\r\n	{/if}\r\n	{store_messages}\r\n	{redirect href=\"?pg=`$return`\"}\r\n{/if}\r\n\r\n<h1 class=\"underline\">Sign Up - Step 1</h1>\r\nCreating your <em>FREE</em> membership is simple.  Just fill out the forms below and click Next.\r\n<br />\r\n\r\n<table cellpadding=\"0\" cellspacing=\"0\"><tr><td>\r\n\r\n<div class=\"chunk300\">\r\n	<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n	<input type=\"hidden\" name=\"pg\" value=\"{$page.name}\" />\r\n	<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.returndefault:\"home\"}\" />\r\n	<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n	<h2 class=\"withBG\">Already a Member?</h2>\r\n		<b>Log in now.</b><br />\r\n		Username: <input type=\"text\" name=\"username\" class=\"textInput\" size=\"12\" /><br />\r\n		Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n		<div class=\"underline\">&nbsp;</div>\r\n		<a href=\"javascript:document.loginForm2.submit();\">Submit</a> | <a href=\"javascript:doForgotPassword();\">Forgot Password?</a>\r\n	</form>\r\n</div>\r\n<div class=\"underline\" style=\"clear:left;\"></div>\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\" id=\"signupReturn\" name=\"signup[return]\" value=\"{$return}\">\r\n\r\n<table><tr><td>\r\n\r\n<div class=\"chunk300 h150 w300\">\r\n<h2 class=\"withBG\">Create your Membership </h2>\r\n	*First Name:\r\n	<input type=\"text\" name=\"signup[firstName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*Last Name:\r\n	<input type=\"text\" name=\"signup[lastName]\" class=\"textInput\" size=\"20\" /><br />\r\n\r\n	*E-mail:\r\n	<input type=\"text\" name=\"signup[email]\" class=\"textInput\" size=\"30\" /><br />\r\n\r\n	*Desired Username:\r\n	<input type=\"text\" name=\"signup[username]\" class=\"textInput\" size=\"12\"><br />\r\n</div>\r\n\r\n<div class=\"chunk300\">\r\n<h2 class=\"withBG\">Password</h2>\r\n{if $signup.password}\r\n	<small>You have already chosen a valid password. If you would like to choose a different one, enter it below and confirm it.</small><br /><br />\r\n{/if}\r\n	*Choose Your Password:\r\n	<input type=\"password\" name=\"signupSecure[password]\" size=\"12\" class=\"textInput\"><br />\r\n	<small>(Password must be at least 8 characters long)</small><br />\r\n\r\n	*Confirm Your Password:\r\n	<input type=\"password\" name=\"signupSecure[passwordConfirm]\" size=\"12\" class=\"textInput\"><br />\r\n</div>\r\n\r\n</td><td valign=\"top\">\r\n\r\n<div class=\"chunk300 w300\">\r\n	<h2 class=\"withBG\">Shipping &amp; Contact Address</h2>\r\n	\r\n	<div id=\"addressInfo\" style=\"display:block; width:auto;\">\r\n	*Address:\r\n	<input type=\"text\" name=\"signup[address1]\" value=\"{$smarty.request.signup.address1}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n	Line 2:\r\n	<input type=\"text\" name=\"signup[address2]\" value=\"{$smarty.request.signup.address2}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*City:\r\n	<input type=\"text\" name=\"signup[city]\" value=\"{$smarty.request.signup.city}\" class=\"textInput\" style=\"width:200px;\" /><br />\r\n\r\n	*State, *Zip:\r\n	<input type=\"text\" name=\"signup[state]\" value=\"{$smarty.request.signup.state}\" class=\"textInput\" style=\"width:30px;\" maxlength=\"2\" />\r\n	<input type=\"text\" name=\"signup[zip]\" value=\"{$smarty.request.signup.zip}\" class=\"textInput\" style=\"width:50px;\" /><br />\r\n	<div id=\"signupstate\" style=\"text-align:left; margin-left:200px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	*Country:\r\n	<input type=\"text\" name=\"signup[country]\" value=\"{$smarty.request.signup.country}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"30\" /><br />\r\n	<div id=\"signupcountry\" style=\"text-align:left; float:left; margin-left:100px; position:absolute; background-color:#fff; border:1px solid black;\"></div>\r\n\r\n	Phone:\r\n	<input type=\"text\" name=\"signup[phone1]\" value=\"{$smarty.request.signup.phone1}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	Phone 2:\r\n	<input type=\"text\" name=\"signup[phone2]\" value=\"{$smarty.request.signup.phone2}\" class=\"textInput\" style=\"width:200px;\" maxlength=\"80\" /><br />\r\n\r\n	</div>\r\n</div>\r\n<div style=\"clear:left;\">* indicates a required field</div>\r\n</td></tr></table>\r\n\r\n{if $modules.spadeAutoComplete2}\r\n	{capture name=\"headAddendum\"}\r\n	<script language=\"javascript\" src=\"{$modules.spadeAutoComplete2}\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_states.js\"></script>\r\n	<script language=\"javascript\" src=\"js/auto-complete_countries.js\"></script>\r\n	{/capture}\r\n	<script language=\"javascript\">\r\n		initAutoComplete(\'signup[state]\', \'signupstate\', states, true);\r\n		initAutoComplete(\'signup[country]\', \'signupcountry\', countries, true);\r\n	</script>\r\n{/if}\r\n</td></tr></table>\r\n\r\n<div class=\"hBox\" 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}\';\"><!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;&lt;&lt; Back&nbsp;\" onclick=\"pg.value=\'{$prev.pageName}\';\"> |-->&nbsp; {/if}\r\n	{if $next.pageName}<input type=\"image\" src=\"{$skinFolder}images/btn_next.gif\" class=\"btn_image\"> <!-- <input type=\"submit\" class=\"btn\" value=\"&nbsp;Next &gt;&gt;&nbsp;\"> -->	{/if}\r\n</div>\r\n\r\n{stored_object_fill_form object=$signup name=\"signup\"}\r\n<script language=\"javascript\">document.getElementById(\'signupReturn\').value = \'{$return}\';</script>\r\n\r\n</form>'),(1822,150,0.16,'smarty','0','Testing...',1088028698,2,'67.166.74.140','{include_php file=\"shared_handle:loadInvitation\"}\r\n\r\n<h1 class=\"underline\">Accept an Invitation</h1>\r\n\r\n{toc_next assign=\"next\"}\r\n\r\n<div><br />\r\nWelcome \"<b>{$invitation.name}</b>\". <b>{$competition.ownerName}</b> ({$competition.ownerUsername}), \r\nwho described you as \"<b>{$invitation.relation}</b>\" has invited you to join a Weight Loss War&trade;\r\ntitled \"<b>{$competition.title}</b>\", which will end on <b>{$competition.endDate|date_format2:\"l n/j/Y\"}</b>. \r\nAre you up to the challenge?<br />\r\n<br />\r\n{$competition.ownerName} selected <b>{$competition.scoringMethod}</b> as the final judging method and \r\n{if $competition.potMethod eq \"Individual Charity\"}\r\n	{if $competition.individualPotAmount}\r\n		<b>${$competition.individualPotAmount|number_format:2}</b>\r\n	{else}\r\n		no money\r\n	{/if}\r\n	to be put up by each competitor.\r\n{elseif $competition.potMethod neq \"Other-None\"}\r\n	{if $competition.individualPotAmount}\r\n		a jackpot of <b>${$competition.individualPotAmount|number_format:2}</b> provided by {$competition.potMethod}.\r\n	{else}\r\n		an unspecified jackpot.\r\n	{/if}\r\n{else}\r\n	an unspecified jackpot.\r\n{/if}\r\n{if $competition.potDescription}\r\n	The jackpot was further described as \"<b>{$competition.potDescription}</b>\".\r\n{/if}\r\n\r\n<br />\r\nIf you would like to accept this invitation and join the competition, just click the \"Next\" button below!<br />\r\n<br />\r\n{if not $user->isLoggedIn()}\r\n	<b>Note:</b> If you are already a member of this site, <b>please log in now</b>, before proceeding!<br /><br />\r\n{/if}\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"?pg={$next}&cid={$competition.id}&icode={$smarty.request.icode}\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>'),(3175,1,2.92,'smarty','0','Temporary fix to send ABC corp to new my_home',1109228206,2,'67.166.75.78','{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{* TEMPORARY FIX *}\r\n	{if $smarty.session.company.companyName eq \"abc\"}\r\n		{redirect href=\"?pg=my_home\"}\r\n	{else}	\r\n		{redirect href=\"?pg=myhome\"}\r\n	{/if}\r\n{elseif $smarty.session.company.companyName}\r\n	{store_messages}\r\n	{redirect href=\"?pg=login\"}\r\n{/if}\r\n{if not $errors|@count}\r\n	{assign var=\"pgLayout\" value=\"file:./layouts/home.tpl\"}\r\n{/if}'),(3178,175,0.52,'smarty','0','Changed back to normal, but target pg is now myhome',1109228510,2,'67.166.75.78','	{* TEMPORARY FIX *}\r\n{if $smarty.session.company.companyVanity eq \"abc\"}\r\n	{assign var=\"targetPage\" value=\"my_home\"}\r\n{else}\r\n	{assign var=\"targetPage\" value=\"myhome\"}\r\n{/if}\r\n{if $user->isLoggedIn()}\r\n	{store_messages}\r\n	{redirect href=\"index.php?pg=`$targetPage`\"}\r\n{else}\r\n{assign var=\"hideLogin\" value=\"true\"}\r\n<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tr><td align=\"center\">\r\n	<h2>{$smarty.session.company.companyName}</h2>\r\n</td></tr>\r\n<tr><td>\r\n	<div align=\"center\" class=\"chunk300\">\r\n		<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n		<input type=\"hidden\" name=\"pg\" value=\"{$targetPage}\" />\r\n		<input type=\"hidden\" name=\"return\" value=\"{$smarty.request.return|default:$signup.return|default:\"home\"}\" />\r\n		<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n		<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n	\r\n		<h2 class=\"withBG\">Log In:</h2>\r\n			Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n			Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n			<div class=\"underline\">&nbsp;</div>\r\n			<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n			<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n		</form>\r\n		<script language=\"javascript\">\r\n			document.forms.loginForm2.username.focus();\r\n		</script>\r\n	</div>\r\n</td></tr>\r\n<tr><td align=\"right\">\r\n	<br />\r\n	<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n</td></tr>\r\n</table>\r\n{/if}'),(3179,137,0.17,'smarty','0','updated to use recipe_main, instead of shop_main.',1109462986,2,'67.166.75.78','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n<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'),(4416,202,0.93,'smarty','0','Added company preference check to show SHOPPING stuff.',1127435206,3,'216.194.127.150','{assign var=\"pgLayout\" value=\"layouts/withLeftNav.tpl\"}\r\n\r\n{if $smarty.request.showNewMenu eq \"true\"}\r\n<div class=\"rightSideMenu\">\r\n	<div class=\"rightMenuBox\">\r\n	<h3>EHC News</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<span class=\"floatLeft iconNew\"></span>\r\n		<small><a href=\"#\">Portion Control Article in the nutrition corner. Click here to read</a></small>\r\n		</div>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Learn more about carbohydrates and how they affect your body.</a></small>\r\n		</div>	\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>Product Highlight</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<img src=\"{$skinFolder}images/rypHeartMonitor_small.jpg\" align=\"right\" class=\"img1\" alt=\"\" height=\"120\" width=\"91\" /><br />\r\n		<small><a href=\"#\">Reebok\'s Heart Rate Monitor.  Click here.</a></small>\r\n		</div>\r\n	</div>\r\n	<div class=\"rightMenuBox\">\r\n	<h3>To Do List:</h3>\r\n		<div class=\"rightMenuItem\">\r\n		<small><a href=\"#\">Update your progress</a><br />\r\n		<a href=\"#\">Earn more incentive points</a><br />\r\n		<a href=\"#\">Check out the competition</a><br />\r\n		<a href=\"#\">Read New Articles</a></small>\r\n		</div>\r\n	</div>\r\n</div>\r\n{/if}\r\n\r\n{if $user->isLoggedIn()}\r\n	<img src=\"{if $smarty.session.company.preferences.landing_logo_url}{$smarty.session.company.preferences.landing_logo_url}{else}{$skinFolder}images/ehc/corporateBuilding_sm.jpg{/if}\" style=\"margin-right:10px; float:left; border:#CCC 1px solid;\" />\r\n\r\n	{include_php file=\"shared_handle:company/announcements\"}\r\n	<h2 class=\"uline\">Company Announcements:</h2>\r\n\r\n	<blockquote>\r\n		<dl>\r\n		{foreach from=$announcements item=\"current\"}\r\n			<dt><div style=\"float:right;\"><small><i>{$current.postedDate|date_format2:\"D, M j\"}</i></small></div>\r\n			    {$current.title}</dt>\r\n			<dd>{$current.description}</dd>\r\n		{foreachelse}\r\n			<dt>No announcements at this time</dt>\r\n		{/foreach}\r\n		</dl>\r\n	</blockquote>\r\n\r\n	{include_php file=\"shared_handle:company/companySurveyList\"}\r\n	{if $landingSurveyText OR $surveys|@count gt 0}\r\n		<h2 class=\"uline\">Company Surveys:</h2>\r\n		<blockquote>\r\n		{$landingSurveyText}\r\n		{if $surveys|@count gt 0}\r\n			<table>\r\n			<tr><td colspan=\"2\">\r\n				<h3>Available Surveys:</h3></td>\r\n			    <td valign=\"middle\"></td></tr>\r\n			{foreach from=$surveys item=item name=\"loopSurveys\"}<tr><td nowrap>\r\n			<tr><td valign=\"top\" nowrap=\"nowrap\">\r\n				{if $item.dateAvailable gt 0}\r\n					<img class=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></td>\r\n				   <td valign=\"top\"><b><u>{$item.surveyName}</u>:</b> {if $item.frequency eq \"Once\"}Taken{elseif (($item.dateAvailable - $smarty.now) < 43000)}<small>Available At:</small> {$item.dateAvailable|date_format2:\"g:i A\"}{else}<small>Available On:</small> {$item.dateAvailable|date_format2:\"m/d/y\"}{/if}<br />\r\n					{$item.feedbackTitle|default:\"No feedback available.\"}<br />\r\n					<a href=\"?pg=my_feedback&surveyId={$item.id}&amp;feedbackId={$item.feedbackId}\">Click here to learn more<b><i>!</i></b></a><br />\r\n					<br /></td>\r\n				   <td valign=\"middle\" align=\"right\"><em>{$item.pointsEarned}</em></td></tr>\r\n				{else}\r\n					<a href=\"javascript://\" onclick=\"openSurvey({$item.id});\"><img class=\"icoSurvey\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></a></td>\r\n				   <td valign=\"top\" nowrap=\"nowrap\"><b><u>{$item.surveyName}</u>:</b> <a href=\"javascript://\" onclick=\"openSurvey({$item.id});\">Available Now</a><br />\r\n					{$item.feedbackTitle|default:\"No feedback available.\"}<br />\r\n					<a href=\"?pg=my_feedback&surveyId={$item.id}&amp;feedbackId={$item.feedbackId}\">Click here to learn more<b><i>!</i></b></a><br />\r\n					<br /></td>\r\n				   <td valign=\"middle\" align=\"right\"><em>{$item.pointsEarned}</em></td></tr>\r\n				{/if}\r\n			{foreachelse}\r\n			<tr><td valign=\"top\" colspan=\"3\">\r\n				None found.</td></tr>\r\n			{/foreach}\r\n			</table>\r\n		{/if}\r\n		</blockquote>\r\n	{/if}\r\n	{if $smarty.session.company.preferences.hide_shop neq \"yes\"}\r\n		<h2 class=\"uline\">eHealthCompete Highlights:</h2>\r\n		\r\n		<table>\r\n		<tr><td valign=\"middle\">\r\n		<blockquote>\r\n		<dl>	\r\n			<dt>Pedometer Deal</dt>\r\n			<dd>eHealthCompete has just negotiated a great deal on RYP Pedometers.  If you have been looking to purchase a pedometer the eHealthCompete price and quality could be your best bet.  This deal is only available to members of EHC.</dd>\r\n			\r\n		</dl>\r\n		</blockquote></td>\r\n		<td valign=\"top\" align=\"center\">\r\n			<a href=\"?pg=my_shop&sub=&tma=VIEW&eids=9\">\r\n			<img id=\"pedometerDealImg\" src=\"blank.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /><br />\r\n			Buy one now</a>\r\n		</td></tr></table>\r\n	{/if}\r\n{else}\r\n	{assign var=\"hideLogin\" value=\"true\"}\r\n		<script language=\"JavaScript\">{literal}\r\n			function doForgotPassword(boxId, formName) {\r\n				if (!formName) formName = \'loginForm\';\r\n				if (!boxId) boxId = \'usernameBox\';\r\n\r\n				var df = document.forms[formName];\r\n				var obj = document.getElementById(boxId);\r\n		\r\n				if (obj.value == \'\') {\r\n					obj.value = prompt(\'Enter your username:\', \'\');\r\n				}\r\n				\r\n\r\n				df.forgotPassword.value = \'true\';\r\n				df.submit();	\r\n			}\r\n\r\n		{/literal}</script>\r\n	<table align=\"center\" width=\"305\" cellpadding=\"0\" cellspacing=\"0\">\r\n	<tr><td align=\"center\">\r\n		<h2>{$smarty.session.company.companyName}</h2>\r\n	</td></tr>\r\n	<tr><td>\r\n		<div align=\"center\" class=\"chunk300\">\r\n		{if $smarty.session.company.preferences.hide_login eq \"yes\"}\r\n			<p>Direct Log-In has been disabled, you must log in from the company site.  If you have any questions please contact our support department.</p>\r\n		{else}\r\n			<form name=\"loginForm2\" method=\"post\" action=\"index.php\" style=\"margin:3px;\">\r\n			<input type=\"hidden\" name=\"pg\" value=\"{$smarty.request.return|default:$signup.return|default:\"my_login\"}\" />\r\n			<input type=\"hidden\" name=\"cid\" value=\"{$smarty.request.cid}\" />\r\n			<input type=\"hidden\" name=\"no_expire\" value=\"true\" />\r\n			<input type=\"hidden\" name=\"no_expire_keep_alive\" value=\"pg cid\" />\r\n			<input type=\"hidden\" name=\"forgotPassword\" value=\"\" />\r\n		\r\n			<h2 class=\"withBG\">Log In:</h2>\r\n				Username: <input id=\"usernameBox2\" type=\"text\" name=\"username\" value=\"{$smarty.request.username}\" class=\"textInput\" size=\"12\" /><br />\r\n				Password: <input type=\"password\" name=\"password\" class=\"textInput\" size=\"12\" /><br />\r\n				<div class=\"underline\">&nbsp;</div>\r\n				<a href=\"javascript:document.forms[\'loginForm2\'].submit();\">Submit</a> | <a href=\"javascript:doForgotPassword(\'usernameBox2\', \'loginForm2\');\">Forgot Password?</a>\r\n				<input type=\"submit\" name=\"loginSubmit\" value=\"Submit\" style=\"position:absolute; top:-300px; left:-300px;\" />\r\n			</form>\r\n			<script language=\"javascript\">\r\n				document.forms.loginForm2.username.focus();\r\n			</script>\r\n		{/if}\r\n		</div>\r\n	</td></tr>\r\n	<tr><td align=\"right\">\r\n		<br />\r\n		{if $smarty.session.company.companyName}\r\n			<small>Not registered yet?</small> <a href=\"?pg=signup/begin\">Sign Up Now!</a> &nbsp;\r\n		{else}\r\n			<!-- Place holder for sign up info content. -->\r\n		{/if}\r\n	</td></tr>\r\n	</table>\r\n{/if}'),(1824,150,0.17,'smarty','0','Has all the info, but doesn\'t look too great yet.',1088029138,2,'67.166.74.140','{include_php file=\"shared_handle:loadInvitation\"}\r\n\r\n<h1 class=\"underline\">Accept an Invitation</h1>\r\n\r\n{toc_next assign=\"next\"}\r\n\r\n<div><br />\r\nWelcome \"<b>{$invitation.name}</b>\". <b>{$competition.ownerName}</b> (username: {$competition.ownerUsername}), \r\nwho described you as \"<b>{$invitation.relation}</b>\" has invited you to join a Weight Loss War&trade;\r\ntitled \"<b>{$competition.title}</b>\", which will end on <b>{$competition.endDate|date_format2:\"l n/j/Y\"}</b>. \r\nAre you up to the challenge?<br />\r\n<br />\r\n{$competition.ownerName} selected <b>{$competition.scoringMethod}</b> as the final judging method and \r\n{if $competition.potMethod eq \"Individual Charity\"}\r\n	{if $competition.individualPotAmount}\r\n		<b>${$competition.individualPotAmount|number_format:2}</b>\r\n	{else}\r\n		no money\r\n	{/if}\r\n	to be put up by each competitor.\r\n{elseif $competition.potMethod neq \"Other-None\"}\r\n	{if $competition.individualPotAmount}\r\n		a jackpot of <b>${$competition.individualPotAmount|number_format:2}</b> provided by {$competition.potMethod}.\r\n	{else}\r\n		an unspecified jackpot.\r\n	{/if}\r\n{else}\r\n	an unspecified jackpot.\r\n{/if}\r\n{if $competition.potDescription}\r\n	The jackpot was further described as \"<b>{$competition.potDescription}</b>\".\r\n{/if}\r\n\r\n<br />\r\nIf you would like to accept this invitation and join the competition, just click the \"Next\" button below!<br />\r\n<br />\r\n{if not $user->isLoggedIn()}\r\n	<b>Note:</b> If you are already a member of this site, <b>please log in now</b>, before proceeding!<br /><br />\r\n{/if}\r\n\r\n<div class=\"hBox\" align=\"right\" style=\"margin:0px;\">\r\n	<a href=\"?pg={$next}&cid={$competition.id}&icode={$smarty.request.icode}\"><img src=\"{$skinFolder}images/btn_next.gif\" border=\"0\" /></a></div>'),(1825,153,0.10,'smarty','0','Page created.',1088029149,2,'67.166.74.140',''),(1826,131,0.59,'smarty','0','alignment updates.',1088029197,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\" 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\n<small>The statistics editor will open in a new popup window, you may need to disable a popup blocker from stopping it. &nbsp; Once 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.</small>\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'),(1831,104,0.26,'smarty','0','Moved the signup handler back here...',1088032107,2,'67.166.74.140','{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>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.goals\"}\r\n\r\n<div>\r\n\r\n<form name=\"signup\" method=\"post\" action=\"index.php\" style=\"margin:0px;\">\r\n<input type=\"hidden\" name=\"pg\" value=\"{$prev.pageName}\">\r\n<input type=\"hidden\" name=\"no_expire\" value=\"true\">\r\n\r\n<div align=\"right\">\r\n	<br />\r\n	<a href=\"?pg={$return|default:\"home\"}\" class=\"button\">Continue</a>\r\n</div>\r\n\r\n</form>\r\n</div>\r\n'),(1832,153,0.12,'smarty','0','Page created.',1088032403,2,'67.166.74.140','{include_php file=\"shared_handle:acceptInvitation\"}\r\n\r\n<h1 class=\"underline\">Invitation Accepted!</h1>\r\n\r\n<p>You are now a member of the competition entitled \"<b>{$competition.title}</b>\".\r\n To go to this competition now, <a href=\"?pg=competition&cid={$competition.id}\">click here</a>.\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=myhome\">Go to My Home</a>\r\n</div>'),(1833,153,0.13,'smarty','0','Page created.',1088032483,2,'67.166.74.140','{include_php file=\"shared_handle:acceptInvitation\"}\r\n\r\n<h1 class=\"underline\">Invitation Accepted!</h1>\r\n\r\n<p>You are now a member of the competition entitled \"<b>{$competition.title}</b>\".</p>\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=competition&cid={$competition.id}\" class=\"link\">Go to {$competition.title}</a> | <a href=\"?pg=myhome\" class=\"link\">Go to My Home</a>\r\n</div>'),(1834,153,0.14,'smarty','1','Pretty much done.',1088032527,2,'67.166.74.140','{include_php file=\"shared_handle:acceptInvitation\"}\r\n\r\n<h1 class=\"underline\">Invitation Accepted!</h1>\r\n\r\n<p>You are now a member of the competition entitled \"<b>{$competition.title}</b>\".</p>\r\n\r\n<div class=\"hBox\" style=\"text-align:right;\">\r\n	<a href=\"?pg=competition&cid={$competition.id}\" class=\"link\">Go to the Competition Now</a> | <a href=\"?pg=myhome\" class=\"link\">Go to My Home</a>\r\n</div>'),