// JavaScript Document

var prevDetailText;		//Stores the text that is inside the "detailArea" div

//This function changes the text inside the "detailArea" div depending on the value of
//detailType.
function updateDetail(detailType){		
	prevDetailText = document.getElementById("detailArea").innerHTML;
	
	switch(detailType){
		case "custom":
			document.getElementById("detailArea").innerHTML =  click_on_img + custom;
			document.getElementById("screenshot").innerHTML = "<h2>Features</h2><br /><a href='http://www.tiredealersites.com/prototype/' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/Custom_Site.jpg' alt='Prototype Homepage' /></a>";
			break;
		case "menu_13":
			document.getElementById("detailArea").innerHTML = click_on_img + menu_13;
			document.getElementById("screenshot").innerHTML = "<h2>13 Page Menu (prebuilt)</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23102&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/Custom_Menu.jpg'  alt='Homepage Menu' /></a>";
			break;
		case "home_pg":
			document.getElementById("detailArea").innerHTML = click_on_img + home_pg;
			document.getElementById("screenshot").innerHTML = "<h2>Home Page</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23102&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/Custom_Site.jpg'  alt='Prototype Homepage' /></a>";
			break;
		case "photo":
			document.getElementById("detailArea").innerHTML = click_on_img + photo;
			document.getElementById("screenshot").innerHTML = "<h2>Store Photo</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23102&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/store_photo.jpg'  alt='Example Store Photo' /></a>";
			break;
		case "news":
			document.getElementById("detailArea").innerHTML = click_on_img + news;
			document.getElementById("screenshot").innerHTML = "<h2>News Ticker</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23102&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/news_ticker.jpg'  alt='Example News Ticker' /></a>";
			break;
		case "cc":
			document.getElementById("detailArea").innerHTML = click_on_img + cc;
			document.getElementById("screenshot").innerHTML = "<h2>Credit Card Options</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23102&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/cc.jpg'  alt='Some Availible Payment Options' /></a>";
			break;
		case "affil":
			document.getElementById("detailArea").innerHTML = click_on_img + affil;
			document.getElementById("screenshot").innerHTML = "<h2>Affiliations</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23102&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/affil.jpg'  alt='Company Affiliations' /></a>";
			break;
		case "contact":
			document.getElementById("detailArea").innerHTML = click_on_img + contact;
			document.getElementById("screenshot").innerHTML = "<h2>Contact Us Page</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23309&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/contactus.jpg'  alt='Example Contact Us Page' /></a>";
			break;
		case "map":
			document.getElementById("detailArea").innerHTML = click_on_img + map;
			document.getElementById("screenshot").innerHTML = "<h2>Dynamic Map</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23413&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/map_demo.jpg'  alt='Example Map' /></a>";
			break;
		case "employ":
			document.getElementById("detailArea").innerHTML = click_on_img + employ;	
			document.getElementById("screenshot").innerHTML = "<h2>Employment Form</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23107&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/employment.jpg'  alt='Example Employment Form' /></a>";
			break;
		case "selector":
			document.getElementById("detailArea").innerHTML = click_on_img + selector;		
			document.getElementById("screenshot").innerHTML = "<h2>Tire Selector</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23104&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/selector.jpg'  alt='Example Tire Selector' /></a>";
			break;
		case "coupons":
			document.getElementById("detailArea").innerHTML = click_on_img + coupons;	
			document.getElementById("screenshot").innerHTML = "<h2>Custom Coupon Editor</h2><br /><a href='http://www.geckobyte.com/default.asp?id=service&s=3&i=3' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/coupon.jpg'  alt='Custom Coupon Creator' /></a>";
			break;
		case "calendar":
			document.getElementById("detailArea").innerHTML = click_on_img + calendar;	
			document.getElementById("screenshot").innerHTML = "<h2>Calendar of Events</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=27201&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/calender.jpg'  alt='Example Calendar of Events' /></a>";
			break;
		case "products":
			document.getElementById("detailArea").innerHTML = click_on_img + products;	
			document.getElementById("screenshot").innerHTML = "<h2>Products Page</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23311&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/products.jpg'  alt='Example Products Page' /></a>";
			break;
		case "scheduler":
			document.getElementById("detailArea").innerHTML = click_on_img + scheduler;
			document.getElementById("screenshot").innerHTML = "<h2>Appointment Scheduler</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=38642&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/schedule.jpg'  alt='Example Appointment Scheduler'  /></a>";
			break;
		case "survey":
			document.getElementById("detailArea").innerHTML = click_on_img + survey;	
			document.getElementById("screenshot").innerHTML = "<h2>Customer Survey Form</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=26252&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/survey.jpg'  alt='Example Survey Form' /></a>";
			break;
		case "services":
			document.getElementById("detailArea").innerHTML = click_on_img + services;
			document.getElementById("screenshot").innerHTML = "<h2>Services Offered</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23305&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/services.jpg'  alt='Example Service Description Page' /></a>";
			break;
		case "cust_serv":
			document.getElementById("detailArea").innerHTML = cust_serv;
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg'  alt='Customer Service Details' /></a>";
			break;
		case "tire101":
			document.getElementById("detailArea").innerHTML = click_on_img + tire101;	
			document.getElementById("screenshot").innerHTML = "<h2>Tire 101</h2><br /><a href='http://www.tiredealersites.com/prototype/default.asp?ID=1&PageData=23424&P=0' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/tire101.jpg'  alt='Example Tire 101 Page' /></a>";
			break;
		case "unlimited_cust":
			document.getElementById("detailArea").innerHTML = click_on_img + unlimited_cust;	
			document.getElementById("screenshot").innerHTML = "<h2>Add Unlimited Content!</h2><br /><a href='http://www.geckobyte.com/default.asp?id=service&s=3&i=11' target='_blank'><img border='1' src='TDS_NEW/images/screenshots/editor.jpg'  alt='Example Content Editor' /></a>";
			break;
		case "locator_rep":
			document.getElementById("detailArea").innerHTML = locator_rep;	
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "templates":
			document.getElementById("detailArea").innerHTML = templates;	
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "add_custom":
			document.getElementById("detailArea").innerHTML = add_custom;
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "editing":
			document.getElementById("detailArea").innerHTML = editing;	
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "hosting":
			document.getElementById("detailArea").innerHTML = hosting;	
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "domain_reg":
			document.getElementById("detailArea").innerHTML = domain_reg;		
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "email_reg":
			document.getElementById("detailArea").innerHTML = email_reg;		
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "statistics":
			document.getElementById("detailArea").innerHTML = statistics;
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "free_locator":
			document.getElementById("detailArea").innerHTML = free_locator;	
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "toll_free":
			document.getElementById("detailArea").innerHTML = toll_free;
			document.getElementById("screenshot").innerHTML = "<a href='http://www.tiredealersites.com/prototype/'><img border='0' style='border:none;' src='TDS_NEW/images/screenshots/blankimg.jpg' /></a>";
			break;
		case "instructions":
			document.getElementById("detailArea").innerHTML = instructions;
			break;
		case "geckobyte_information":
			document.getElementById("detailArea").innerHTML = geckobyte_information;
			break;
		case "why_choose":
			document.getElementById("detailArea").innerHTML = why_choose;
			break;
	}
}

//This function replaces the current text inside the "detailArea" div with the
//previously saved text.
function revertDetail(){
	document.getElementById("detailArea").innerHTML = prevDetailText;

}

var custom = "<p>Our custom websites focus on providing a professional presentation of your company without needing to write a single line of HTML. Personalize your site with our built-in custom editor, it's as easy as typing email!</p>";

var menu_13 = "<p>Our custom sites come prebuilt with 13 distinct pages that allow your customers to learn more about you, get directions, view your products and services, and more!  Add your own unique touch by adding unlimited additional pages with a variety of content.</p>";

var home_pg = "<p>Greet your customers with a store photo or slideshow, news ticker, and more.  All of your home page content can be easily customized with your unique content.</p>";

var photo = "<p>Include your store photo or choose from one of two customizable, rotating slideshows.</p>";

var news = "<p>Store specials, upcoming events, or other important information can be displayed with your custom news ticker section.</p>";

var cc = "<p>A list of credit card payment options can easily be displayed as part of your home page.</p>";

var affil = "<p>Let your customers know about participating organizations with identifying icons such as AAA, ASA, or ASE.</p>";

var contact = "<p>With our custom site, your customers will be able to send questions or comments by email easily with our pre-built form.</p>";

var map = "<p>Dynamic maps provide your customers with guess-free driving instructions to your location.</p>";

var employ = "<p>Our Custom Sites include an employment form to help simplify the hiring process.  All forms are submitted straight to your email.</p>";

var selector = "<p>A specialized tire selector compliments your site, allowing customers to select and view your complete tire inventory.</p>";

var contact = "<p>With our specialized contact page, your customers can quickly and easily send questions and comments straight to your email.</p>";

var coupons = "<p>Our fully editable coupon creator allows you to create coupons with current store specials.  All custom coupons are printable.</p>";

var calendar = "<p>Keep track of appointments, list upcoming events, and more with our calandar of events page.</p>";

var products = "<p>Create custom content describing the products you offer or select from a multitude of pre-made content pages, featuring the leading tire brand names.</p>";

var scheduler = "<p>A specialized appointment scheduler allows customers to arrange service visits quickly and easily.</p>";

var survey = "<p>Gain valuable feedback from your customers with our custom survey form. Submissions are sent directly to your email.</p>";

var services = "<p>A multitude of service pages allow you to list the services you offer, while providing informative details to your customers.</p>";

var tire101 = "<p>Our Tire 101 section gives a variety of helpful content to your customers with tips on things such as automotive maintenance, safe driving tips, and more.</p>";

var unlimited_cust = "<p>All of your site's content is customizable to reflect your individual company.  An unlimited number of additional content pages can be added to suit your company's needs!</p>";

var cust_serv = "<p></p>";

var locator_rep = "<p></p>";

var templates = "<p></p>";

var add_custom = "<p></p>";

var editing = "<p></p>";

var hosting = "<p></p>";

var domain_reg = "<p></p>";

var email_reg = "<p></p>";

var statistics = "<p></p>";

var free_locator = "<p></p>";

var toll_free = "<p></p>";

var click_on_img = "<h4 style='color:#990000; margin: 0 0 0 3px;'>Click on Image for Example</h4>";

var instructions = "<ul id='instructions'><li><a href='http://www.geckobyte.com/admin/emailAssets/interfaceinstructsCustom.html'>Custom Website Instructions</a></li><li><a href='http://www.geckobyte.com/admin/EmailAssets/emailInstructionsNew.html'>Email Instructions</a></li><li>Pricing - Contact for Details</li></ul>"

var geckobyte_information = '<br /><br /><p><h2><a href="http://www.geckobyte.com/" target="_blank"><img  border="0" src="TDS_NEW/images/Geck_WebsiteProg.gif" /></a></h2><br /><h3>207 1/2 East Superior Street</h3><h3>Duluth, MN 55802</h3><h3>Phone: (218) 722-3419</h3><h3>Fax: (218) 529-7648</h3><a href="mailto:info@geckobyte.com&amp;Subject=Info Request"><h3>info@geckobyte.com</h3></a></p>';

var why_choose = "<div style='color:#003060;margin:-9px 0 0 0;'><h2 style='line-height:29px'>Why choose TireDealerSites.com?</h2><div style='text-align:left; line-height:18px;'><p>A custom site with TireDealerSites.com provides a wide variety of features.  Each site offers multiple design templates, point-and-click customizable coupons, and content editing that is as easy as typing in your favorite word processor!  Our specialized tire inventory selector, included in your site, allows your customers to quickly and easily browse your entire line of tires.</p><p>Our custom sites require no skill in programming or design; we've done the work so you don't have to!</p><p>In addition to the content provided with our custom site package, you have the freedom to expand your site with as much or minimal content as you see fit.  The choice is yours!</p></div></div>";


