DarkCustom.templates = {
	sendFriend: {
		sendFriendTemplates: {
			sendFriendInstructionalText : 'Fill in the fields and we\'ll fire off an email to your friend. Don\'t fret&#150;we won\'t share your info with anyone else. The proof is in our <a onclick=\"javascript:window.open(\'http://www.harley-davidson.com/wcm/Content/Pages/Utility/privacy_policy.jsp?locale=en_US\',\'\', \'width=598,height=540,scrollbars=yes,resizable=yes,toolbar=no,location=no,menubar=no,directories=no,status=no\')\" href=\"javascript:void(0)\">Privacy Policy</a>.<p>* Indicates required fields</p>'
		}
	},
	comments: {
		commentsTemplates: {
			termsConditionsText : 'By submitting this comment, I consent that my name, my comment, any other reproductions of my information and likeness (the "Materials") may be used by Harley-Davidson, its affiliates (collectively referred to as "Harley-Davidson") and/or others with its consent, for the purpose of illustration, advertising, promotions, duplication or publication or for any other purpose in any manner and in any media without further consideration. I represent and warrant that I am the owner of the Materials and have the right to dispose of my ownership rights as I see fit. I hereby assign to Harley-Davidson all rights, title and interest in the Material and any other tangible medium of expression of my information including all copyrights therein that I provide to Harley-Davidson.<br><p>Do not include the following in your comment or they will be removed:</p><ul><li>Illegal or abusive activity references</li><li>Pornographic or sexually explicit messages</li><li>Offensive language</li><li>Harassment, libeling or slandering of others</li><li>Off topic comments</li></ul>',
			titleSingleLabel : '<strong>${number} Comment</strong> So Far',
			titleMultiLabel : '<strong>${number} Comments</strong> So Far'
		}
	},
	upload: {
		uploadTemplates: {
			overlayHtml :  '\
			<div id="hdwcUGCSubmission">\
				<div class="dblRuleBtm">\
					<div class="head">${templates.getUploadLabel()}</div>\
				</div>\
				<div class="hdwcLrgPadBtm">\
			    	<div id="hdwcInstructions">\
			    		${templates.getPersonalizedLabel(user, loggedInLevel, config.showNewMemberMessage)}\
			    	</div>\
				</div>\
				<div id="hdwcBody">\
					<div class="hdwcLrgPadBtm ${hooks.SCROLLER}" id="scrollableDiv" style="height:410px;overflow-y:auto;overflow-x:hidden;padding:0;">\
						<div class="hdwcLrgPadBtm">\
						    <div id="submissionInstructions">\
				    			<div class="hdInstructionsBox">\
				    				<div class="hdwcMedPadBtm">${templates.getIntroText()}</div>\
					    			<div class="hdInstructionsBox ${hooks.SUGGESTIONS}" id="suggestionsAndGuidelines"></div>\
									<div class="boldText">${templates.getRequiredText()}</div>\
								</div>\
							</div>\
					        <div class="hdwcLrgPadBtm">\
					        	<div id="submissionContent">\
						        	<form name="hdUploadForm" id="hdUploadForm" class="hdUpload hdWidget ${hooks.FORM}" action="/Community/services/fileUpload" enctype="multipart/form-data" method="post">\
						        		{if errors && errors.length > 0}\
							        		<div id="hdValidationErrors">\
							                    <div id="hdwcErrorOverlayLarge ${hooks.ERRORS}">\
							                    {if _MODIFIERS.hasError(errors,"error.required")}\
								                    <div class="hdwcValidationError ${hooks.ERROR_VALIDATION}">\
							                            <p class="formLabel">Fields in bold with an asterisk (*) are required.</p>\
							                        </div>\
							                    {/if}\
							                    {var reqErrorsDone = false}\
												{for error in _MODIFIERS.sortErrors(errors,["error.required"],["category","title","story"])}\
													{if error.errorType == "error.required"}\
														<div class="hdwcErrorOverlayLarge">- ${error|getError}</div>\
													{else}\
														{if !reqErrorsDone}\
															<br />\
															{var reqErrorsDone = true}\
														{/if}\
														<div class="hdwcErrorOverlayLarge">${error|getError}</div>\
													{/if}\
												{/for}\
							                    </div>\
							                  </div>\
					                    {/if}\
					                    {if _MODIFIERS.hasError(errors,"error.required","category")}\
											<div class="hdwcValidationError ${hooks.ERROR_VALIDATION}">\
										{else}\
											<div>\
										{/if}\
										{if config.categories.length > 1}\
											<div class="formLabel">${templates.getCategoryLabel()}<span class="reqIndicator">*</span></div>\
											<select name="category">\
												<option value="">${templates.getCategoryDefaultText()}&nbsp;</option>\
												{for category in config.categories}\
													{if upload.category == category}\
														<option value="${category}" selected>${config.categoriesFriendly[category_index]}</option>\
													{else}\
														<option value="${category}">${config.categoriesFriendly[category_index]}</option>\
													{/if}\
												{/for}\
											</select>\
										</div><br/>\
										{else}\
											<input type="hidden" value="${config.categories[0]}" name="category" style="display:none;"></input>\
										{/if}\
										{if _MODIFIERS.hasError(errors,"error.required","title")}\
											<div class="hdwcValidationError ${hooks.ERROR_VALIDATION}">\
										{else}\
											<div>\
										{/if}\
											<div class="formLabel">${templates.getUploadMediaLabel()}<span class="reqIndicator">*</span></div>\
											<input type="text" maxlength="23" class="title" name="title" value="${upload.title}"></input>\
										</div><br/>\
										{if _MODIFIERS.hasError(errors,"error.required","story")}\
											<div class="hdwcValidationError ${hooks.ERROR_VALIDATION}">\
										{else}\
											<div>\
										{/if}\
											<div class="formLabel">${templates.getDescriptionLabel()}<span class="reqIndicator">*</span></div>\
											<textarea cols="70" rows="4" name="story">${upload.story}</textarea>\
											<br />${templates.getDescriptionInstructionText()}\
										</div><br />\
										{if _MODIFIERS.hasError(errors,"error.required","path")}\
											<div class="hdwcValidationError ${hooks.ERROR_VALIDATION}">\
										{else}\
											<div>\
										{/if}\
											<div class="formLabel">\
					                            ${templates.getUploadMediaTypeLabel(config.contentType)}<span class="reqIndicator">*</span>\
					                        </div>\
											<input type="file" value="Browse" name="path" id="browseFile"></input>\
											<input type="hidden" value="" name="type" style="display:none;"></input>\
											<input type="hidden" value="${config.siteName}" name="siteName" style="display:none;"></input>\
											<br/><br />\
											<div class="hdFormattedDiv hdwcSmlPadBtm">\
												${templates.getMediaInstructionsText(config.contentType)}\
											</div>\
										</div>\
										<div id="progressBar" class="${hooks.PROGRESSBAR}" style="display: none;">\
								            <div id="theMeter">\
								                <div id="progressBarBox">\
								                    <div id="progressBarBoxContent" class="${hooks.PROGRESSBAR_METER}"></div>\
								                </div>\
								                <div id="progressBarText" class="${hooks.PROGRESSBAR_TEXT}"></div>\
								            </div>\
								        </div>\
										<div class="hdwcLrgPadBtm">\
									  		<br/>\
									  		<div id="submitStatement">\
									  			${templates.getTermsAgreeText()}\
									  		</div>\
									  	</div>\
							        	<div class="hdwcMedPadBtm">\
							        	     <input id="submitVideoButton" type="submit" value="SUBMIT" style="display:none;"></input>\
							        		 <div class="btnOrange">\
							        		 	<a onclick="document.getElementById(\'submitVideoButton\').click();" id="hdwcLoginSaveButton" href="javascript:void(0)">${templates.getSubmitLabel()}</a>\
							        		 </div>\
							            	<div class="btnDarkGrey hdClose">\
							            		<a href="javascript:void(0)">${templates.getCancelLabel()}</a></div>\
							        	</div>\
									</form>\
					        	</div>\
						  </div>\
					</div>\
				</div>\
			</div>'
		}
	},
	
	overlays:{

		licensing: {
			states:{
			    AL: {
					name:'Alabama',
					url: 'http://www.dps.alabama.gov/DriverLicense/FAQ.aspx'
				},
				AK: {
					name:'Alaska',
					url: 'http://doa.alaska.gov/dmv/akol/motor.htm'
				},
				AZ: {
					name:'Arizona',
					url: 'http://www.azdot.gov/mvd/azwelcome.asp#TypesOfLicenses'
				},
				AR: {
					name:'Arkansas',
					url: 'http://www.dfa.arkansas.gov/offices/driverServices/Pages/FAQ%27s.aspx#j'
				},
				CA: {
					name:'California',
					url: 'http://www.dmv.ca.gov/dl/dl_info.htm#two505'
				},
				CO: {
					name:'Colorado',
					url: 'http://www.colorado.gov/cs/Satellite/Revenue-MV/RMV/1190796317325'
				},
				CT: {
					name:'Connecticut',
					url: 'http://www.ct.gov/dmv/cwp/view.asp?a=805&Q=244754&dmvPNavCtr=|28100|#28110'
				},
				DE: {
					name:'Delaware',
					url: 'http://www.dmv.de.gov/services/driver_services/drivers_license/dr_lic_motorcycle.shtml'
				},
				FL: {
					name:'Florida',
					url: 'http://www.flhsmv.gov/ddl/mtcynewlaw.html'
				},
				GA: {
					name:'Georgia',
					url: 'http://www.dds.ga.gov/drivers/dldata.aspx?con=1749319514&ty=dl'
				},
				HI: {
					name:'Hawaii',
					url: 'http://www.co.honolulu.hi.us/csd/vehicle/faqs_dl.htm#permit_motorcycle'
				},
				IA: {
					name:'Iowa',
					url: 'http://www.iowadot.gov/mvd/ods/mcmanual.pdf'
				},
				ID: {
					name:'Idaho',
					url: 'http://itd.idaho.gov/dmv/driverservices/MotorcycleEndorsement.htm'
				},
				IL: {
					name:'Illinois',
					url: 'http://www.cyberdriveillinois.com/departments/drivers/drivers_license/motorcycle.html'
				},
				IN: {
					name:'Indiana',
					url: 'https://myweb.in.gov/BMV/mybmvportal/LicensesAndIDCards/MotorcycleEndorsements.aspx'
				},
				KS: {
					name:'Kansas',
					url: 'http://www.ksrevenue.org/dmvfees.htm'
				},
				KY: {
					name:'Kentucky',
					url: 'http://kentuckymotorcycleeducationandsafety.ky.gov/vehicleinfo.htm'
				},
				LA: {
					name:'Louisiana',
					url: 'http://www.dmv.org/la-louisiana/motorcycle-license.php'
				},
				MA: {
					name:'Massachusetts',
					url: 'http://www.mass.gov/rmv/license/6motcy.htm'
				},
				MD: {
					name:'Maryland',
					url: 'http://www.mva.maryland.gov/MVAProg/moto/classM.htm'
				},
				ME: {
					name:'Maine',
					url: 'http://www.maine.gov/sos/bmv/forms/'
				},
				MI: {
					name:'Michigan',
					url: 'http://www.michigan.gov/sos/0,1607,7-127-1627_46351-75447--,00.html'
				},
				MN: {
					name:'Minnesota',
					url: 'http://www.dps.state.mn.us/mmsc/latest/MMSCHomeSecondary.asp?cid=3&mid=47&scat=14'
				},
				MS: {
					name:'Mississippi',
					url: 'http://www.dmv.org/ms-mississippi/motorcycle-license.php'
				},
				MO: {
					name:'Missouri',
					url: 'http://dor.mo.gov/forms/Motorcycle_Operator_Manual.pdf'
				},
				MT: {
					name:'Montana',
					url: 'http://www.doj.mt.gov/driving/forms/25-1300.pdf'
				},
				NE: {
					name:'Nebraska',
					url: 'http://www.dmv.ne.gov/highwaysafety/areas/mc.html'
				},
				NV: {
					name:'Nevada',
					url: 'http://www.dmvstat.com/motorcycle.htm'
				},
				NH: {
					name:'New Hampshire',
					url: 'http://www.nh.gov/safety/divisions/dmv/motorcycle/faq.html#A1'
				},
				NJ: {
					name:'New Jersey',
					url: 'http://www.state.nj.us/mvc/Licenses/Motorcycle.htm'
				},
				NM: {
					name:'New Mexico',
					url: 'http://www.dmv.com/nm/new-mexico/apply-motorcycle-license'
				},
				NY: {
					name:'New York',
					url: 'http://www.nysdmv.com/mcmanual/mclicenses.htm'
				},
				NC: {
					name:'North Carolina',
					url: 'http://www.ncdot.org/dmv/driver_services/motorcyclists/applying.html'
				},
				ND: {
					name:'North Dakota',
					url: 'http://www.dot.nd.gov/divisions/dlts/docs/motorcycle1.pdf'
				},
				OH: {
					name:'Ohio',
					url: 'http://www.motorcycle.ohio.gov/faq.htm#license'
				},
				OK: {
					name:'Oklahoma',
					url: 'http://www.dps.state.ok.us/dls/pub/MOM.pdf'
				},
				OR: {
					name:'Oregon',
					url: 'http://www.oregon.gov/ODOT/DMV/driverid/motorcycle.shtml'
				},
				PA: {
					name:'Pennsylvania',
					url: 'http://www.dmv.state.pa.us/centers/motorcycleCenter.shtml'
				},
				RI: {
					name:'Rhode Island',
					url: 'http://www.dmv.ri.gov/licenses/motorcycles.php'
				},
				SC: {
					name:'South Carolina',
					url: 'http://www.scdmvonline.com/DMVNew/default.aspx?n=motorcycle_training'
				},
				SD: {
					name:'South Dakota',
					url: 'http://www.southdakotasafetycouncil.org/motorcycle/index.htm'
				},
				TN: {
					name:'Tennessee',
					url: 'http://tennessee.gov/safety/driverlicense/classm.htm'
				},
				TX : {
					name:'Texas',
					url: 'http://www.txdps.state.tx.us/msb/motorcyclingintexas.htm'
				},
				UT: {
					name:'Utah',
					url: 'http://publicsafety.utah.gov/dld/motorcycle.html'
				},
				VT: {
					name:'Vermont',
					url: 'http://dmv.vermont.gov/licenses/drivers/motorcycles'
				},
				VA: {
					name:'Virginia',
					url: 'http://www.dmv.virginia.gov/webdoc/citizen/drivers/motorcycle.asp'
				},
				WA: {
					name:'Washington',
					url: 'http://www.dol.wa.gov/driverslicense/motoendorsement.html'
				},
				WV: {
					name:'West Virginia',
					url: 'http://www.transportation.wv.gov/dmv/Motor%20Safety/Pages/default.aspx'
				},
				WI : {
					name:'Wisconsin',
					url: 'http://www.dot.wisconsin.gov/drivers/drivers/apply/types/motorcyc.htm#Operation Requirements'
				},
				WY: {
					name:'Wyoming',
					url: 'http://www.dot.state.wy.us/wydot/driver_license_records/pid/220'
				}
			},
			html:'\
				<div id="licensing">\
					<div class="head">${stateName}</div>\
					<div class="ovBody">\
						<div id="hdInfo" class="hdDescription">\
							<p>Follow the link below for information specific to your state.</p>\
							<p><a href="${stateURL}" class="stateLink" target="_blank">Motorcycle Endorsement Information</a></p>\
						</div>\
						<div class="hdForm hdDescription">\
							<p>Come across a broken link? Or have a better link? Let us know and we\'ll have a look.</p>\
							<form class="formStateURL" id="hdURLSubmitForm">\
								<div class="hdErrors"></div>\
								<input type="text" class="hdwcInput" name="url" id="url" size="256" value="" />\
								<input type="hidden" name="state" id="state" value="${stateName}" />\
								<input type="hidden" name="currentUrl" id="currentUrl" value="${stateURL}" />\
								<img class="hdSubmitBtn" src="/en_US/Media/images/Content/Pictorial/dark_custom_v3/DC_submit_btn.jpg" value="Submit"/>\
							</form>\
						</div>\
						<div class="hdThanks hdDescription hdHidden">\
							<p>Thank you for your feedback.</p>\
						</div>\
					</div>\
				</div>',
			showState: function(state){
				var template = this.html;
				template = template.replace(/\$\{stateName\}/g, state.name);
				template = template.replace(/\$\{stateURL\}/g, state.url);
				return template;
			}
		}
	
	}


};

