<?php

	/**

	 * @package WordPress

	 * @subpackage JimmyClean

	 * Template Name: Home Page

	 */



	get_header();



	// Define plugin's admin variables

	$general_option = get_option('general_option');

	$home_page_option = get_option('home_page_option');

?>

	<div id="wrapper">

		<div id="homepage-header-shadow"></div>

		<div id="banner-container">

			<div id="banner">

				<noscript>

					<div>

					<p>Unfortunately your browser does not hava JavaScript capabilities which are required to exploit full functionality of our site. This could be the result of two possible scenarios:</p>

					<ol>

					    <li>You are using an old web browser, in which case you should upgrade it to a newer version. We recommend the latest version of <a href="http://www.getfirefox.com">Firefox</a>.</li>

					    <li>You have disabled JavaScript in you browser, in which case you will have to enable it to properly use our site. <a href="http://www.google.com/support/bin/answer.py?answer=23852">Learn how to enable JavaScript</a>.</li>

					</ol>

					</div>

				</noscript>



				

						<?php if ($home_page_option['simplicity_header_on_off'] != "off") { ?>

							<div id="slider">

								<?php

								$number_of_header_images = $home_page_option['number_of_header_images'];

								if ($number_of_header_images == "" || $number_of_header_images == 0) {

									$number_of_header_images = 3;

								}



								$y = 1;

								while ($y <= $number_of_header_images){

								?>

									

											<?php if ($home_page_option['header_image' . $y . '_link'] != "") { ?>

											<div class="learn-more">

												<a class="color" href="<?php echo $home_page_option['header_image' . $y . '_link']; ?>"></a>

											</div>

											<?php } ?>

												<?php if ($home_page_option['header_image' . $y . '_description'] != "") { ?>

													<div class="description">

														<p><?php echo $home_page_option['header_image' . $y . '_description']; ?></p>

													</div>

												<?php } ?>

											<?php if ($home_page_option['header_image' . $y . '_video'] == "") { ?>

												<img src="<?php echo $home_page_option['header_image' . $y]; ?>" height="258" width="892" />

											<?php }

											else {echo $home_page_option['header_image' . $y . '_video'];  }

											?>

									

								<?php $y = $y + 1; ?>

								<?php } ?>

							</div>

						<?php } else { ?>

							<div class="single-header-image">

								<img src="<?php echo $home_page_option['header_image1']; ?>" />

							</div>

						<?php }?>

						<div class="Clear"></div>

			

				<div class="Clear">

				</div>

			</div>

		</div>



		<div id="content-homepage" role="main">

			<?php if ($home_page_option['welcome_message'] != ""){ ?>

			<div id="welcome-panel">

				<div id="welcome-message">

					<?php echo $home_page_option['welcome_message']; ?>

				</div>

			</div>

			<?php } ?>



			<div id="intro-column-container">

				<div class="introColumn" id="intro-column1">

					<?php if ($home_page_option['simplicity_one_intro_box_image'] != "") { ?>

					<div class="introColumnImage">

						<img src="<?php echo $home_page_option['simplicity_one_intro_box_image']; ?>" />

					</div>

					<?php } ?>

					<?php if ($home_page_option['jimmyclean_one_intro_box_title'] != "") { ?>

					<div class="introColumnTitle title-left">

						<!--

						<img src="<?php echo $home_page_option['jimmyclean_one_intro_box_title']; ?>" />

						-->

						<div id="introColumnTitleText">

							<img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/text_star.png" /> <span class="HomepageColumnTitles"><?php echo $home_page_option['jimmyclean_one_intro_box_title']; ?></span> <img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/text_star.png" /> 

						</div>

					</div>

					<?php } ?>

					

					<div class="introColumnText">

							<ul id="WashClasses">

								

								<li class="superDelux">

								<?php if ($home_page_option['jimmyclean_service_offered_image_one'] != "") { ?>

								<img src="<?php echo $home_page_option['jimmyclean_service_offered_image_one']; ?>" />

								<?php } ?>

								<span class="service_title"><?php echo $home_page_option['jimmyclean_service_offered_title_one']; ?></span>

								<br/>

								<span class="service_text"><?php echo $home_page_option['jimmyclean_service_offered_text_one']; ?> <a href="<?php echo $home_page_option['jimmyclean_service_offered_link_one']; ?>">Read More</a></span>

								</li>

								

								

								<li class="wholeshebang">

								<?php if ($home_page_option['jimmyclean_service_offered_image_two'] != "") { ?>

								<img src="<?php echo $home_page_option['jimmyclean_service_offered_image_two']; ?>" />

								<?php } ?>

						

								<span class="service_title"><?php echo $home_page_option['jimmyclean_service_offered_title_two']; ?></span>

								<br/>

								<span class="service_text"><?php echo $home_page_option['jimmyclean_service_offered_text_two']; ?> <a href="<?php echo $home_page_option['jimmyclean_service_offered_link_two']; ?>">Read More</a></span>

								</li>

								

								<li class="bigwheelie">

								<?php if ($home_page_option['jimmyclean_service_offered_image_three'] != "") { ?>

								<img src="<?php echo $home_page_option['jimmyclean_service_offered_image_three']; ?>" />

							

								<span class="service_title"><?php echo $home_page_option['jimmyclean_service_offered_title_three']; ?></span>

								<?php } ?>

								<br/>

								<span class="service_text"><?php echo $home_page_option['jimmyclean_service_offered_text_three']; ?> <a href="<?php echo $home_page_option['jimmyclean_service_offered_link_three']; ?>">Read More</a></span>

								</li>

								

								<li class="Badabling">

								<?php if ($home_page_option['jimmyclean_service_offered_image_four'] != "") { ?>

								<img src="<?php echo $home_page_option['jimmyclean_service_offered_image_four']; ?>" />

								<?php } ?>

							

								<span class="service_title"><?php echo $home_page_option['jimmyclean_service_offered_title_four']; ?></span>

								<br/>

								<span class="service_text"><?php echo $home_page_option['jimmyclean_service_offered_text_four']; ?> <a href="<?php echo $home_page_option['jimmyclean_service_offered_link_four']; ?>">Read More</a></span>

								</li>

								

								<li class="theoriginal">

								<?php if ($home_page_option['jimmyclean_service_offered_image_five'] != "") { ?>

								<img src="<?php echo $home_page_option['jimmyclean_service_offered_image_five']; ?>" />

								<?php } ?>

								

								<span class="service_title"><?php echo $home_page_option['jimmyclean_service_offered_title_five']; ?></span>

								<br/>

								<span class="service_text"><?php echo $home_page_option['jimmyclean_service_offered_text_five']; ?> <a href="<?php echo $home_page_option['jimmyclean_service_offered_link_five']; ?>">Read More</a></span>

								</li>

							</ul>

					</div>

				</div>



				<div class="introColumn" id="intro-column2">

					<?php if ($home_page_option['simplicity_two_intro_box_title'] != "") { ?>

					<div class="introColumnTitle title-middle">

						<div id="introColumnTitleText">

							<img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/text_star.png" /> 

							<span class="HomepageColumnTitles"><?php echo $home_page_option['simplicity_two_intro_box_title']; ?> </span>

							<img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/text_star.png" /> 

						</div>

					</div>

					<?php } ?>

					

					

					

					<div class="introColumnText">

						<br/>

						<ul id="jimmy_clean_specials">

							<li>

							<span class="special_title"><?php echo $home_page_option['jimmyclean_special_offered_title_one']; ?></span>

							<?php if ($home_page_option['jimmyclean_special_offered_link_one'] != "") { ?>

							<a class="join-wash-freaks-rules-box" href="<?php echo $home_page_option['jimmyclean_special_offered_link_one']; ?>"><img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/buy_it.png"/></a>

							<?php } ?>

							<br/>

							<span class="special_text"><?php echo $home_page_option['jimmyclean_special_offered_text_one']; ?></span>

							</li>

							

							

							<li>

							<span class="special_title"><?php echo $home_page_option['jimmyclean_special_offered_title_two']; ?></span>

							<?php if ($home_page_option['jimmyclean_special_offered_link_two'] != "") { ?>

							<a href="<?php echo $home_page_option['jimmyclean_special_offered_link_two']; ?>"><img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/buy_it.png"/></a>

							<?php } ?>

							<br/>

							<span class="special_text"><?php echo $home_page_option['jimmyclean_special_offered_text_two']; ?></span>

							</li>

							

							

							<li>

							<span class="special_title"><?php echo $home_page_option['jimmyclean_special_offered_title_three']; ?></span>

							<?php if ($home_page_option['jimmyclean_special_offered_link_three'] != "") { ?>

							<a href="<?php echo $home_page_option['jimmyclean_special_offered_link_three']; ?>"><img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/buy_it.png"/></a>

							<?php } ?>

							<br/>

							<span class="special_text"><?php echo $home_page_option['jimmyclean_special_offered_text_three']; ?></span>

							</li>

							

							

							<li class="no_bottom_border">

							<span class="special_title"><?php echo $home_page_option['jimmyclean_special_offered_title_four']; ?></span>

							<?php if ($home_page_option['jimmyclean_special_offered_link_four'] != "") { ?>

							<a href="<?php echo $home_page_option['jimmyclean_special_offered_link_four']; ?>"><img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/newButton.png"/></a>

							<?php } ?>

							<br/>

							<span class="special_text"><?php echo $home_page_option['jimmyclean_special_offered_text_four']; ?></span>

							</li>

						</ul>				

					</div>

				</div>



				<div class="introColumn" id="intro-column3">

					<?php if ($home_page_option['simplicity_three_intro_box_image'] != "") { ?>

					<div class="introColumnImage">

						<img src="<?php echo $home_page_option['simplicity_three_intro_box_image']; ?>" />

					</div>

					<?php } ?>

					<?php if ($home_page_option['simplicity_three_intro_box_title'] != "") { ?>

					<div class="introColumnTitle title-right">

					<div id="introColumnTitleText">

						<img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/text_star.png" />

						<span class="HomepageColumnTitles"><?php echo $home_page_option['simplicity_three_intro_box_title']; ?></span>

						<img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/text_star.png" /> 

						

					

					</div>

					</div>

					<?php } ?>

					<?php if ($home_page_option['simplicity_three_intro_box_text'] != "") { ?>

					<div class="introColumnText location">

						

						<?php echo $home_page_option['simplicity_three_intro_box_text']; ?>

						

						<!--<div id="weather2" style="display:none;"></div>-->

					</div>

					<?php } ?>

					<?php if ($home_page_option['simplicity_three_intro_box_link'] != "") { ?>

					<div class="introColumnLink">

						<a href="<?php echo $home_page_option['simplicity_three_intro_box_link']; ?>">Learn More &raquo;</a>

					</div>

					<?php } ?>

					

				</div>



				<div class="Clear"></div>

			</div>

			<div class="Clear"></div>



			<?php if ($home_page_option['simplicity_intro_twitter'] != "") { ?>

			<div id="intro-twitter">

				<div id="twitter-bird">

					<a href="http://twitter.com/<?php echo $home_page_option['simplicity_intro_twitter']; ?>"><img src="<?php echo get_option('siteurl'); ?>/wp-content/themes/<?php echo get_current_theme() ?>/images/twitter-bird.png" alt="twitter" /></a>

				</div>

				<div id="tweet">

					<?php twitter_messages($home_page_option['simplicity_intro_twitter'], 1, false, true, '', true, true, true); ?>

				</div>

				<div class="Clear"></div>

			</div>

			<?php } ?>

			<div class="Clear"></div>

		</div>



	</div>

	<div class="Clear"></div>



<?php get_footer(); ?>

