function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    ?>
<div id="outerbox"> 			
<h6>Home Page Text</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('main_text', get_option("smallbiz_main_text"));
    ?>
			
		   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
</div> <!--mainpagetext-->
			
			</div> <!--outerbox-->
			
			
<div id="outerbox"> 
<h6>Home Page Image (left side)</h6>
<div id="homepageimage">

			<p>Ideal size: 313px x 203px : <input type="file" class="fileinput" name="page_image"/></p>
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
</div> <!--homepageimage-->
			
			</div> <!--outerbox-->
<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    ?>
<div id="outerbox"> 			
<h6>Home Page Text</h6>
<div id="homepageimage">


            <?php 
    echo tinyMCE_HTMLarea('classic_video_text', get_option("smallbiz_classic_video_text"));
    ?>
			
		   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
</div> <!--mainpagetext-->
			
			</div> <!--outerbox-->
			
			
<div id="outerbox"> 
<h6>Home Page Video (left side)</h6>
<div id="homepageimage">

	<p>Get your video embedd code from Youtube, Vimeo etc. & paste the supplied code into the field below. </p>
	<p>Consider the width of your video - an ideal width would be around 300px wide.</p>
<p>
			<textarea name="classic_video_code" cols="60" rows="10"><?php 
    echo get_option('smallbiz_classic_video_code');
    ?>
</textarea>
		</p>
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
</div> <!--homepageimage-->
			
			</div> <!--outerbox-->
<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    ?>
<div id="outerbox"> 			
<h6>Home Page Text</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('main_text', get_option("smallbiz_main_text"));
    ?>
			
		   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
</div> <!--mainpagetext-->
			
			</div> <!--outerbox-->
			
			
<div id="outerbox"> 
<h6>Home Page Image (left side)</h6>
<div id="homepageimage">

			<p>Ideal size: 313px x 203px : <input type="file" class="fileinput" name="page_image"/></p>
			
			<p>Want a different image? - Simply upload another one. The SmallBiz Theme will automatically replace the current image.</p>
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
</div> <!--homepageimage-->
			
			</div> <!--outerbox-->
<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    ?>
<div id="outerbox">             
<h6>Upper Left Video Box</h6>
<div id="mainpagetext">

<p>1) Copy/Paste your embedd code from YouTube, Vimeo etc.</p>
<p>2) Re-size the Video by changing your Width 472px Height 298px in your embed code.</p>
<p>Optional 1: You can also insert a picture instead of a video (suggested size 472px by 298px) Use the Wordpress Media Uploader ("Media" -> "Add New") to get your image url.</p>
<p>Optional 2: You can use the space as a regular text box too. In the sidebar to your left click on "Appearance" -> "Editor" and add: #homepage-top-left {padding:10px;width: 452px;height: 278px;}</p>

	<p><textarea name="four_business_video" cols="60" rows="10"><?php 
    echo get_option('smallbiz_four_business_video');
    ?>
</textarea>
		</p>

            
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
            
            </div> <!--outerbox-->
            
            
<div id="outerbox">             
<h6>Upper Right Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('four_right_text', get_option("smallbiz_four_right_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
<div id="protip">
<p>ProTip: Upload your own image. Click "Media" -> "Add New" to upload your image and copy/paste the URL into this box.</p>
</div>
            
            </div> <!--outerbox-->
            
<div id="outerbox">             
<h6>Lower Left Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('four_left_bottom_text', get_option("smallbiz_four_left_bottom_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
            
            </div> <!--outerbox-->
            
            

<div id="outerbox">             
<h6>Lower Right Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('four_right_bottom_text', get_option("smallbiz_four_right_bottom_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
            
            </div> <!--outerbox-->

<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    ?>

<div id="outerbox"> 			
  <h6>Home Page Text Box - Top of Page</h6>
  <div id="mainpagetext">
            <?php 
    echo tinyMCE_HTMLarea('allinone_main_text', get_option("smallbiz_allinone_main_text"));
    ?>
			<?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
	
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
  </div> <!--mainpagetext-->			
</div> <!--outerbox-->

<div id="outerbox"> 			
<h6>Home Page Video Box - Video will be inserted to the Left of Top Text Box </h6>
  <div id="mainpagetext">
    <p>1) Copy/Paste your embedd code from YouTube, Vimeo etc.</p>
    <p>2) Re-size the Video by changing your Width 200px Height 175px in your embed code.</p>
    <p>Optional: You can also insert a picture instead of a video. <br />Click on: "Media" -> "Add New" to upload an image. Copy the image URL into the text box. </p>
            
           
           <p><textarea name="allinone_business_video" cols="60" rows="10"><?php 
    echo get_option('smallbiz_allinone_business_video');
    ?>
</textarea></p>
            
           
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
  </div> <!--mainpagetext-->			
</div> <!--outerbox-->			
			
<div id="outerbox"> 			
  <h6>Home Page Text Box - Left Side</h6>
  <div id="mainpagetext">
            <?php 
    echo tinyMCE_HTMLarea('allinone_left_text', get_option("smallbiz_allinone_left_text"));
    ?>
			<?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
	
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
  </div> <!--mainpagetext-->
  <div id="protip">
<p>ProTip: Upload your own image. Click "Media" -> "Add New" to upload your image and copy/paste the URL into this box.</p>
</div>
</div> <!--outerbox-->
			
<div id="outerbox"> 			
  <h6>Home Page Text Box - Middle</h6>
  <div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('allinone_middle_text', get_option("smallbiz_allinone_middle_text"));
    ?>
			

			<?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
  </div> <!--mainpagetext-->
</div> <!--outerbox-->
			
			

<div id="outerbox"> 			
<h6>Home Page Text Box - Right Side</h6>
  <div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('allinone_right_text', get_option("smallbiz_allinone_right_text"));
    ?>
			

			<?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
  </div> <!--mainpagetext-->			
</div> <!--outerbox-->
<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    if (isset($_POST['sales_update'])) {
        if ($_FILES['cynthia_page_image']['tmp_name'] != "") {
            if (file_exists(dirname(__FILE__) . '/images/' . get_option('smallbiz_cynthia_page_image'))) {
                unlink(dirname(__FILE__) . '/images/' . get_option('smallbiz_cynthia_page_image'));
            }
            @move_uploaded_file($_FILES['cynthia_page_image']['tmp_name'], dirname(__FILE__) . '/../../images/' . $_FILES['cynthia_page_image']['name']);
            update_option('smallbiz_cynthia_page_image', $_FILES['cynthia_page_image']['name']);
            update_option('smallbiz_cynthia_page_image_customized', 'true');
        }
    }
    ?>
<div id="outerbox">             
<h6>Home Page Text Box - Left Side</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('cynthia_left_text', get_option("smallbiz_cynthia_left_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext--> 
<div id="protip">
<p>ProTip: Upload your own image. Click "Media" -> "Add New" to upload your image.<br /> 
Toggle the Editor into HTML mode and copy/paste the URL into this box.</p>
</div>
</div> <!--outerbox-->
            
            

<div id="outerbox">             
<h6>Home Page Text Box - Right Side</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('cynthia_main_text', get_option("smallbiz_cynthia_main_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
</div> <!--outerbox-->
            
            
<div id="outerbox"> 
<h6>Home Page Banner (above the two textboxes on the homepage)</h6>
<div id="homepageimage">

            <p>Ideal size: 960px x 200px : <input type="file" class="fileinput" name="cynthia_page_image"/></p>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--homepageimage-->    
<div id="protip">
<p>ProTip: Create your own 960px wide banner. You can make it as tall as you want the theme will scale accordingly. You can also upload an animated GIF created using image software for cool slideshow style effects.</p>
</div>
</div> <!--outerbox-->

<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    ?>

<div id="outerbox">             
<h6>Home Page Main Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_main_text1', get_option("smallbiz_rotator_main_text1"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
</div> <!--outerbox-->
       
<div id="outerbox">             
<h6>Video - Left Side Homepage</h6>
<div id="mainpagetext">
 
 <p>Get your video embedd code from Youtube, Vimeo etc. & paste the supplied code into the field below. </p>
	<p>Consider the width of your video - an ideal width would be around 300px wide.</p>
<p>
			<textarea name="rotator_video" cols="60" rows="10"><?php 
    echo get_option('smallbiz_rotator_video');
    ?>
</textarea>
		</p>
			
			   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
    
</div> <!--mainpagetext-->
</div> <!--outerbox-->      

<div id="outerbox">             
<h6>Bottom Row Box 1</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_boxe1', get_option("smallbiz_rotator_boxe1"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
<div id="protip">
<p>ProTip: Upload your own image. Click "Media" -> "Add New" to upload your image. <br />Toggle the Editor into HTML and copy/paste the Image URL into this box.</p>
</div>
</div> <!--outerbox-->
            
            
<div id="outerbox">             
<h6>Bottom Row Box 2</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_boxe2', get_option("smallbiz_rotator_boxe2"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
</div> <!--outerbox-->
            
<div id="outerbox">             
<h6>Bottom Row Box 3</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_boxe3', get_option("smallbiz_rotator_boxe3"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
</div> <!--outerbox-->
            
            

<div id="outerbox">             
<h6>Bottom Row Box 4</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_boxe4', get_option("smallbiz_rotator_boxe4"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->            
</div> <!--outerbox-->
<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    if (isset($_POST['sales_update'])) {
        if ($_FILES['fi_page_image']['tmp_name'] != "") {
            if (file_exists(dirname(__FILE__) . '/images/' . get_option('smallbiz_fi_page_image'))) {
                unlink(dirname(__FILE__) . '/images/' . get_option('smallbiz_fi_page_image'));
            }
            @move_uploaded_file($_FILES['fi_page_image']['tmp_name'], dirname(__FILE__) . '/../../images/' . $_FILES['fi_page_image']['name']);
            update_option('smallbiz_fi_page_image', $_FILES['fi_page_image']['name']);
            update_option('smallbiz_fi_page_image_customized', 'true');
        }
    }
    ?>
<div id="outerbox">             
<h6>Home Page Main Text Box - Top of Page</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('five_main_text', get_option("smallbiz_five_main_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
</div> <!--outerbox-->

<div id="outerbox"> 
<h6>Home Page Main Text Box Image</h6>
<div id="homepageimage">

            <p>Ideal size: 170px x 260px : <input type="file" class="fileinput" name="fi_page_image"/></p>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
            
</div> <!--homepageimage-->
</div> <!--outerbox-->
            

<div id="outerbox">             
<h6>Upper Left Video Box</h6>
<div id="mainpagetext">

<p>1) Copy/Paste your embedd code from YouTube, Vimeo etc.</p>
<p>2) Re-size the Video by changing your Width 472px Height 298px in your embed code.</p>
<p>Optional 1: You can also insert a picture instead of a video (suggested size 472px by 298px) Use the Wordpress Media Uploader ("Media" -> "Add New") to get your image url.</p>
<p>Optional 2: You can use the space as a regular text box too. In the sidebar to your left click on "Appearance" -> "Editor" and add: #homepage-top-left {padding:10px;width: 452px;height: 278px;}</p>


	<p><textarea name="five_business_video" cols="60" rows="10"><?php 
    echo get_option('smallbiz_five_business_video');
    ?>
</textarea>
		</p>
            
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
	 
</div> <!--mainpagetext-->
</div> <!--outerbox-->
            
            
<div id="outerbox">             
<h6>Upper Right Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('five_right_text', get_option("smallbiz_five_right_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
<div id="protip">
<p>ProTip: Upload your own image. Click "Media" -> "Add New" to upload your image and copy/paste the URL into this box.</p>
</div>
</div> <!--outerbox-->
            
<div id="outerbox">             
<h6>Lower Left Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('five_left_bottom_text', get_option("smallbiz_five_left_bottom_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
</div> <!--outerbox-->
            
            

<div id="outerbox">             
<h6>Lower Right Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('five_right_bottom_text', get_option("smallbiz_five_right_bottom_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->            
</div> <!--outerbox-->

<?php 
}
function smallbiz_theme_option_page()
{
    global $wpdb, $smallbiz_cur_version;
    $cur_version = $smallbiz_cur_version;
    $version = get_option('smallbiz_version');
    if ($version != $cur_version) {
        smallbiz_on_install();
    }
    if (isset($_POST['layout']) && get_option("smallbiz_layout") != $_POST['layout']) {
        smallbiz_on_install();
    }
    if (isset($_POST['authkey_add'])) {
        update_option("smallbiz_authkey", $_POST['authkey_add']);
        update_option("smallbiz_authname", $_POST['authname_add']);
        update_option("smallbiz_authemail", $_POST['authemail_add']);
    }
    if (isset($_POST['sales_update']) || isset($_POST['layout'])) {
        $options = array('name', 'layout', 'name_color', 'sub_header', 'sub_header_color', 'street', 'street_color', 'city', 'city_color', 'state', 'state_color', 'zip', 'zip_color', 'telephone', 'countryprefix', 'telephone_color', 'email', 'email_color', 'headeremail', 'headeremail_color', 'header_box_disabled', 'directions', 'cities', 'credit', 'main_text', 'main_text_color', 'menu_color', 'active_color', 'passive_color', 'hover_color', 'headertag_color', 'pages_color', 'p_color', 'hyper_color', 'hyperhover_color', 'creds_color', 'feature_page_1', 'feature_page_2', 'feature_page_3', 'page_summary_1_color', 'page_summary_2_color', 'page_summary_3_color', 'feature_box_disabled', 'feature_page_summary_1', 'feature_page_summary_2', 'feature_page_summary_3', 'title', 'description', 'keywords', 'seo_disabled', 'webmaster', 'map_link', 'analytics', 'mobile-layout-enabled', 'mobile-button-color', 'mobile-text-button-color', 'mobile-body-color', 'mobile-home-text', 'mobile-home-image', 'mobile-map');
        if (function_exists(smallbiz_layout_extra_options)) {
            $options = array_merge($options, smallbiz_layout_extra_options());
        }
        foreach ($options as $option) {
            if (isset($_POST[$option])) {
                update_option('smallbiz_' . $option, stripcslashes($_POST[$option]));
            }
        }
        // check boxes -- toggle:
        if (isset($_POST['sales_update']) || isset($_POST['layout'])) {
            if (isset($_POST["feature_box_disabled"])) {
                update_option("smallbiz_feature_box_disabled", "true");
            } else {
                update_option("smallbiz_feature_box_disabled", "");
            }
            if (isset($_POST["seo_disabled"])) {
                update_option("smallbiz_seo_disabled", "true");
            } else {
                update_option("smallbiz_seo_disabled", "");
            }
            if (isset($_POST["header_box_disabled"])) {
                update_option("smallbiz_header_box_disabled", "true");
            } else {
                update_option("smallbiz_header_box_disabled", "");
            }
            if (isset($_POST["mobile-layout-enabled"])) {
                update_option("smallbiz_mobile-layout-enabled", "true");
            } else {
                update_option("smallbiz_mobile-layout-enabled", "");
            }
        }
        // update frontpage -- don't include this with the others to avoid confusion with non-smallbiz
        // page_on_front.
        if (isset($_POST['smallbiz_page_on_front'])) {
            update_option('smallbiz_page_on_front', stripcslashes($_POST['smallbiz_page_on_front']));
        }
        // Update photo
        if ($_POST['banner'] == "" && $_FILES['new_banner']['tmp_name'] != "") {
            // No longer remove old files.
            //unlink(dirname(__FILE__).'/images/banners/'.get_option('smallbiz_banner'));
            $newFileName = str_replace(" ", "_", $_FILES['new_banner']['name']);
            @move_uploaded_file($_FILES['new_banner']['tmp_name'], dirname(__FILE__) . '/images/banners/' . $newFileName);
            update_option('smallbiz_banner', $newFileName);
        } else {
            if ($_POST['banner'] != get_option('smallbiz_banner')) {
                update_option('smallbiz_banner', stripcslashes($_POST['banner']));
            }
        }
        if ($_FILES['page_image']['tmp_name'] != "") {
            unlink(dirname(__FILE__) . '/images/' . get_option('smallbiz_page_image'));
            @move_uploaded_file($_FILES['page_image']['tmp_name'], dirname(__FILE__) . '/images/' . $_FILES['page_image']['name']);
            update_option('smallbiz_page_image', $_FILES['page_image']['name']);
        }
        if ($_FILES['mobile-home-image']['tmp_name'] != "") {
            unlink(dirname(__FILE__) . '/images/' . get_option('smallbiz_mobile-home-image'));
            @move_uploaded_file($_FILES['mobile-home-image']['tmp_name'], dirname(__FILE__) . '/images/' . $_FILES['mobile-home-image']['name']);
            update_option('smallbiz_mobile-home-image', $_FILES['mobile-home-image']['name']);
        }
        if ($_FILES['map']['tmp_name'] != "") {
            unlink(dirname(__FILE__) . '/images/' . get_option('smallbiz_map_image'));
            @move_uploaded_file($_FILES['map']['tmp_name'], dirname(__FILE__) . '/images/' . $_FILES['map']['name']);
            update_option('smallbiz_map_image', $_FILES['map']['name']);
        }
        if (is_array($_POST['omit_pages']) && count($_POST['omit_pages']) > 0) {
            $page = join(',', $_POST['omit_pages']);
        }
        $b_hours = $_POST['b_hours_1_s'] . ',' . $_POST['b_hours_1_e'] . ',' . $_POST['b_hours_2_s'] . ',' . $_POST['b_hours_2_e'] . ',' . $_POST['b_hours_3_s'] . ',' . $_POST['b_hours_3_e'] . ',' . $_POST['b_hours_4_s'] . ',' . $_POST['b_hours_4_e'] . ',' . $_POST['b_hours_5_s'] . ',' . $_POST['b_hours_5_e'] . ',' . $_POST['b_hours_6_s'] . ',' . $_POST['b_hours_6_e'] . ',' . $_POST['b_hours_7_s'] . ',' . $_POST['b_hours_7_e'];
        update_option('smallbiz_business_hours', $b_hours);
        update_option('smallbiz_omit_pages', $page);
    }
    ?>

<style>
#message{display:none;}
</style>

<div class="wrap">
<h2>SmallBiz Theme Options Panel</h2>

<!--<div id="optionspanelheader">-->

<div id="welcome-box">
<div id="outerbox"> 
<div id="welcome-box-inner">


<a href="http://members.expand2web.com/E2W-theme-images/optionspanelvideo.php" onclick="window.open('http://members.expand2web.com/E2W-theme-images/optionspanelvideo.php','popup','width=500,height=410,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=0'); return false"><img src="<?php 
    bloginfo('template_url');
    ?>
/sbthemescreen-optionspanel.jpg" style="float:left;border:solid 1px #ccc;margin-right:30px;margin-bottom:15px;border-radius: 6px 6px 6px 6px;"></a>



<h2>Welcome to the Expand2Web SmallBiz Theme!</h2>

<p>Build a complete, professionally designed, search engine optimized website that includes unlimited pages, Blog, <br />  Facebook Pages App and offers a touch-enabled mobile landing page!</p>

    <ul>
	<li>8 Pre-build layouts or create your own</li>
	<li>Touch enabled mobile landing pages (auto detected)</li>
	<li>Comprehensive User Guide and Printable PDF Starter Pack</li> 
	<li>Personal email support, no posting tickets, no dead forums</li>
	<li>Facebook App - manage your Facebook Page Tab content within WordPress</li>
	<li>SEO, custom nav menus, and much, much more...</li>
<li>Upgrade to unlock all Features Now!</li>
	</ul>
		
<p><em>---> Get started building your new website below!</em></p>

</div>
</div>
</div>

<div class="dropdown" id="dropdowns-help">
<a href="javascript:;" onmousedown="if(document.getElementById('helpbox').style.display == 'none'){ document.getElementById('helpbox').style.display = 'block'; }else{ document.getElementById('helpbox').style.display = 'none'; }"><div class="groupbox1"> 			
<div style="float:left;"><img src="http://members.expand2web.com/E2W-theme-images/arrow.png" alt="Expand2Web Arrow" /></div><div style="float:left;padding-top:5px;">Getting Started Video | User-Guide | Affiliate Program</a></div>
</div>
</div> <!--groupbox1-->

<div id="helpbox" style="display:none">
<div id="outerbox"> 
<div id="innerbox-help">

<a href="http://members.expand2web.com/E2W-theme-images/optionspanelvideo.php" onclick="window.open('http://members.expand2web.com/E2W-theme-images/optionspanelvideo.php','popup','width=500,height=410,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=0'); return false"><img src="http://members.expand2web.com/E2W-theme-images/optionspanelvideo.png" alt="Expand2Web Options Panel Video" style="margin-right:15px;" /></a>

<a href="http://userguide.expand2web.com/" target="_blank"><img src="http://members.expand2web.com/E2W-theme-images/userguide.png" alt="Expand2Web User Guide" style="margin-right:15px;" /></a>

<a href="<?php 
    bloginfo('template_url');
    ?>
/palette"
onclick="window.open('<?php 
    bloginfo('template_url');
    ?>
/palette','popup','width=671,height=636,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=0'); return false">
<img src="http://members.expand2web.com/E2W-theme-images/colorhelper.png" alt="Expand2Web Getting Started" style="margin-right:15px;"/></a>

<a href="http://www.expand2web.com/blog/affiliates/" target="_blank"><img src="http://members.expand2web.com/E2W-theme-images/affiliate.png" alt="Expand2Web Affiliate" style="margin-right:15px;" /></a>

</div>

<div id="protip">
<p>Need help? Email us: <a href="mailto:support@expand2web.com?subject=Userguide Support Request">support@expand2web.com</a>
 <span style="display:none;" id="alreadyPurchasedTop">| Already purchased the theme? <a href="#">Click here</a> to authorize this site.</span>
 <?php 
    if (get_option('smallbiz_authkey')) {
        ?>
     <span id="purchaseInfo">| Theme registered to 
         <a href="mailto:<?php 
        echo get_option('smallbiz_authemail');
        ?>
"><?php 
        echo get_option('smallbiz_authname');
        ?>
</a>.
         <input type="hidden" name="authkey" id="authkey" value="<?php 
        echo get_option('smallbiz_authkey');
        ?>
" />
     </span>
 <?php 
    }
    ?>
 
</p>
</div>
</div>
</div>


<div  class="dropdown"  id="dropdowns-header"><a href="javascript:;" onmousedown="e2w.admin.toggleDropdown('headeroptions')"><div class="groupbox1"> 			
<div style="float:left;"><img src="http://members.expand2web.com/E2W-theme-images/arrow.png" alt="Expand2Web Arrow" /></div><div style="float:left;padding-top:5px;">Header Graphic | Business Information | Menu Colors | Background Colors</a></div>
</div>
</div> <!--groupbox1-->
	
<div id="headeroptions" style="display:none">	

<form enctype="multipart/form-data" action="" method="post" id="smallbiz_options_form">

<div class="outerbox" id="outerbox-headeroptions"> 
<h6>Select a Header Graphic or Upload your Own</h6>	
<div class="innerbox">

<p>The header is the anchor of your site. Use it to determine the other colors.</p><p>The Smallbiz Theme will pre-populate color choices for you based on the header graphic you pick. You can overwrite any of the color suggestions.</p>

	<div id="header_banner_table">
			<?php 
    $directory = opendir(dirname(__FILE__) . '/images/banners/');
    //Our directory handler
    // cycle through all fies
    while (false !== ($file = readdir($directory))) {
        if ($file != '.' && $file != '..') {
            $banner_namepart = substr($file, 0, strpos($file, "."));
            ?>
                      <div class="themeHeaderSelector_container">
                          <div class="themeHeaderSelector_radio">
                            <input type="radio" name="banner" id="banner_<?php 
            echo $file;
            ?>
" class="banner_radio" value="<?php 
            echo $file;
            ?>
" <?php 
            if (get_option('smallbiz_banner') == "{$file}") {
                echo " checked=\"checked\" ";
            }
            echo ' onchange="javascript:e2w.admin.change_active_selector(-1,\'banner\',\'themeHeader\',\'\');"';
            ?>
 />
                          </div>
                          <div onclick="javascript:return e2w.admin.change_active_selector('<?php 
            echo $file;
            ?>
','banner','themeHeader','')" class="themeHeaderSelector_option
                          <?php 
            if (get_option('smallbiz_banner') == $file) {
                echo ' themeHeaderSelector_optionSelected';
            }
            echo '" id="themeHeaderSelector_' . $file;
            ?>
"><?php 
            echo '<img src="';
            echo get_bloginfo('template_url') . '/images/banners/' . $file;
            echo '" alt="' . $banner_namepart . '" title="' . $banner_namepart . '" />';
            ?>
                            </div>
                        </div>
                     
                      <?php 
        }
    }
    closedir($directory);
    ?>
            <div class="clear"></div>
            <div class="themeHeaderSelector_container" style="width:400px;">
               <div class="themeHeaderSelector_radio" style="top:20px;">
                  <input type="radio" name="banner" id="banner_" class="banner_radio" value="" 
                   onchange="javascript:e2w.admin.change_active_selector(-1,'banner','themeHeader','');"
                  />
               </div>
               <div onclick="javascript:return e2w.admin.change_active_selector('','banner','themeHeader','')" class="themeHeaderSelector_option" style="width:380px; height:40px"
                 id="themeHeaderSelector_">
			        <table>
			            <tr>
			                <th style="width:136px;" id="new_banner_label">
                                New Header
                                <br/><small>960 x 150px</small>
                            </th>
                            <td class="header_info_cell" >
                                <input type="file" class="fileinput" onchange="javascript:e2w.admin.display_new_banner_message();" name="new_banner" id="new_banner" />
                            </td>
                        </tr>
                    </table>
               </div>
            </div>
            <div class="clear"></div>			
            <p id="new_banner_message" ></p>
            
            <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
	</div>
    <div class="clear"></div>	
    
</div> <!--headerbackground-->
<div id="protip">
<p>ProTip: Download more <a href="http://userguide.expand2web.com/banner-images.php" target="_blank">graphics here</a> and learn how to customize your header in our <a href="http://userguide.expand2web.com/creating-and-adding-your-own-header-graphic/" target="_blank"> User Guide</a> .</p>
</div>
</div> <!--outerbox-->


<div class="outerbox" id="outerbox-header-notext"> 	
<h6>Display no text over the header graphic</h6>
<div class="innerbox"> 		
		
	  	<p><strong>Check box to not display Business name, Tag line and Address on top of your header graphic. </strong> 
		
		<input type="checkbox" name="header_box_disabled"
		<?php 
    if (get_option('smallbiz_header_box_disabled') != "") {
        ?>
			      checked="checked"
			  <?php 
    }
    ?>
		      ></input></p>
		      
		 <p>Use this to hide the header text when you have your own banner or logo and you don't want the header text (Name, Tagline & Address) to write over it. <br />Your Business info will still be <em>available for search engine</em> crawlers to be indexed - but won't over-write your beautiful custom header graphic!</p>
		 
		    <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
</div> <!--hideheader-->
</div> <!--outerbox-->

<div class="outerbox" id="outerbox-businessinfo"> 	
<h6>Business Information</h6>
<div class="innerbox"> 

<script type="text/javascript" src="<?php 
    bloginfo('template_url');
    ?>
/jscolor/jscolor.js"></script>


		<p>Business Name:<br /> <input style="width:400px" type="text" name="name" value="<?php 
    echo get_option("smallbiz_name");
    ?>
" />
			
		Font Color<input class="color" type="text" style="width:100px" name="name_color" value="<?php 
    echo get_option('smallbiz_name_color');
    ?>
"/>  </p>

		<p>Sub Header / Tag Line:<br /> <input style="width:400px" type="text" name="sub_header" value="<?php 
    echo get_option("smallbiz_sub_header");
    ?>
" />

		Font Color<input class="color" type="text" style="width:100px" name="sub_header_color" value="<?php 
    echo get_option('smallbiz_sub_header_color');
    ?>
"/> </p>

		<p>Street Address:<br /> <input style="width:400px" type="text" name="street" value="<?php 
    echo get_option("smallbiz_street");
    ?>
" />

		Font Color<input class="color"type="text" style="width:100px" name="street_color" value="<?php 
    echo get_option('smallbiz_street_color');
    ?>
"/> </p>

		<p>City:<br /> <input style="width:400px" type="text" name="city" value="<?php 
    echo get_option("smallbiz_city");
    ?>
" />

		Font Color<input class="color" type="text" style="width:100px" name="city_color" value="<?php 
    echo get_option('smallbiz_city_color');
    ?>
"/> </p>

		<p>State:<br /> <input style="width:400px" type="text" name="state" value="<?php 
    echo get_option("smallbiz_state");
    ?>
" />

		Font Color<input class="color"type="text" style="width:100px" name="state_color" value="<?php 
    echo get_option('smallbiz_state_color');
    ?>
"/> </p>

		<p>Zip:<br /> <input style="width:400px" type="text" name="zip" value="<?php 
    echo get_option("smallbiz_zip");
    ?>
" />

		Font Color<input class="color" type="text" style="width:100px" name="zip_color" value="<?php 
    echo get_option('smallbiz_zip_color');
    ?>
"/> </p>
		
		<p>Phone Country Code (Example: "+1" for USA, "+44" for UK etc.)<br /> <input style="width:400px" type="text" name="countryprefix" value="<?php 
    echo get_option("smallbiz_countryprefix");
    ?>
" />

		<p>Telephone:<br /> <input style="width:400px" type="text" name="telephone" value="<?php 
    echo get_option("smallbiz_telephone");
    ?>
" />

		Font Color<input class="color" type="text" style="width:100px" name="telephone_color" value="<?php 
    echo get_option('smallbiz_telephone_color');
    ?>
"/> </p>

		<p>Email Address (optional - displayed in page header) :<br /> <input style="width:400px" type="text" name="headeremail" value="<?php 
    echo get_option("smallbiz_headeremail");
    ?>
" />

		Font Color<input class="color" type="text" style="width:100px" name="headeremail_color" value="<?php 
    echo get_option('smallbiz_headeremail_color');
    ?>
"/> </p>
		
		<p>Email Address (used for "Contact Us Page" email form) :<br /> <input style="width:400px" type="text" name="email" value="<?php 
    echo get_option("smallbiz_email");
    ?>
" />

	 </p>
	 
	 <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>

</div> <!--businessinfo-->
<div id="protip">
<p>ProTip: Don't leave the address field blank. Use the Option above to not display the address in the header - Search Engines can still find it.</p>
</div>
		
</div> <!--outerbox-->

			

<div class="outerbox" id="outerbox-menucolor"> 	
<h6>Menu Color Selector</h6>
<div class="innerbox"> 

<script type="text/javascript" src="<?php 
    bloginfo('template_url');
    ?>
/jscolor/jscolor.js"></script>
<p><strong>Pick your Menu colors - the Sidebar will inherent the colors too.</strong></p>
		      
		      <br />
<div style="width:835px; height:190px;">	
		      
<div style="width:480px; height:190px; float:left">
<table width="410" border="0">
  <tr>
    <td width="290">1) Menu Background Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="menu_color" value="<?php 
    echo get_option('smallbiz_menu_color');
    ?>
"/></td>
  </tr>
  
</table>
				
<br />
		
<table width="410" border="0">
  <tr>
    <td width="290">2) Current (Active) - Font Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="active_color" value="<?php 
    echo get_option('smallbiz_active_color');
    ?>
"/></td>
  </tr>
  
  </table>
  
  <br />
  
<table width="410" border="0">
  <tr>
    <td width="290">3) Hover over - Font Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="hover_color" value="<?php 
    echo get_option('smallbiz_hover_color');
    ?>
"/></td>
  </tr>
  
  </table>
  
  <br />
  
<table width="410" border="0">
  <tr>
    <td width="290">4) Passive - Font Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="passive_color" value="<?php 
    echo get_option('smallbiz_passive_color');
    ?>
"/></td>
  </tr>
  
</table>

</div>
<div style="width:355px; float:left;margin-top:16px;">
<p><em>Click image for Menu Color Picker Legend:</em><a href="http://members.expand2web.com/E2W-theme-images/legendmenu.png" alt="Smallbiz Mobile Layout" target="_blank"><img src="http://members.expand2web.com/E2W-theme-images/legendmenu-prev.png" /></a></p>
</div>
</div>

<br />
		
<p><input type="submit" value="Save Changes" name="sales_update" /></p>
</div>
<div id="protip">
<p>ProTip: Need to Omit Pages from the Menu or Create Sub Menus? <a href="http://userguide.expand2web.com/introduction-to-the-wordpress-menu-builder/">Learn about the Menu Builder</a>.</p>
</div>
</div> <!--outerbox-->


<div class="outerbox" id="outerbox-background">
<h6>Page and Body Background Color/Image</h6>
<div class="innerbox" > 		
		
<p><strong>1) Body Background Color </strong></p>
<p>To access the WordPress Background Options click <a href="<?php 
    bloginfo('url');
    ?>
/wp-admin/themes.php?page=custom-background"> HERE</a>.<br />
Or go to "Appearance -> Background" in the left Wordpress Dashboard Sidebar.</p>
<p>Options include a visual color picker and image uploader. You can choose to tile (repeat) and align your image as well.</p>
<br />

<p><strong>2) Page Content and Text Background Color</strong></p>
<p>Page Background Color <input class="color" type="text" style="width:100px" name="pages_color" value="<?php 
    echo get_option('smallbiz_pages_color');
    ?>
"/></p>
<p>Ooops -Can't see your text anymore? ...make sure your text is not the same color as your background! <br /> Use the "Kitchensink" icon <img src="http://members.expand2web.com/E2W-theme-images/kitchensink.png"/> in the WordPress Pages and Post editor to change your text/font colors.</p>


<br />
		
<p><input type="submit" value="Save Changes" name="sales_update" /></p>

</div> 
</div> <!--outerbox-->

</div> <!--Layout options closing-->	


<div  class="dropdown"  id="dropdowns-layouts"><a href="javascript:;" onmousedown="e2w.admin.toggleDropdown('layoutsoptions')"><div class="groupbox1"> 						
<div style="float:left;"><img src="http://members.expand2web.com/E2W-theme-images/arrow.png" alt="Expand2Web Arrow" /></div><div style="float:left;padding-top:5px;">Homepage Layouts | Font Colors | Link Colors</a></div>
</div>
</div> <!--groupbox1-->

<div id="layoutsoptions" style="display:none">	

<div class="outerbox" id="outerbox-layoutsoptions"> 	
<h6>Theme Layout Selector</h6>
<div class="innerbox" > 
<p><strong>Pick a layout for your website. The Options Panel Home Page Text Boxes below will change accordingly.</strong></p>
<p>Your text will not transfer from one layout to another do to size and alignment differences in the layouts. But your text will be saved if you want to come back to a layout.</p>
  <?php 
    $current_layout = get_option('smallbiz_layout');
    if (!$current_layout) {
        $current_layout = "classic";
    }
    $theme_layouts = array("classic", "classic-video", "rotator", "rotator-video", "cynthia", "allinone", "four", "five");
    foreach ($theme_layouts as $theme_layout) {
        ?>
       <div class="themeLayoutSelector_container">
           <div class="themeLayoutSelector_radio">
               <input type="radio" name="layout" id="layout_<?php 
        echo $theme_layout;
        echo '" value="' . $theme_layout . '"';
        if ($current_layout == $theme_layout) {
            echo ' checked="checked" ';
        }
        echo ' onchange="javascript:e2w.admin.change_active_selector(-1,\'layout\',\'themeLayout\',\'\');"';
        ?>
" />
           </div>
           <div onclick="javascript:return e2w.admin.change_active_selector('<?php 
        echo $theme_layout;
        ?>
','layout','themeLayout','')" class="themeLayoutSelector_option
           <?php 
        if ($current_layout == $theme_layout) {
            echo ' themeLayoutSelector_optionSelected';
        }
        echo '" id="themeLayoutSelector_' . $theme_layout;
        ?>
"><?php 
        echo '<img src="' . get_bloginfo('template_url') . '/layouts/' . $theme_layout . '-wire.jpg" ';
        echo '" alt="' . $display_title . '" title="' . $display_title . '" />';
        ?>
           </div>
       </div>
    <?php 
    }
    ?>
    <div class="clear"></div>
    <!--<p id="themeLayoutSelector_message" style="display:none;">After making your selection, click "<a class="smallbizClickToSave" href="javascript:void(0);">Save Changes</a>" to apply.</p>-->
    
     <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
</div>

</div> <!--outerbox-->


<div class="outerbox" id="outerbox-customhome"> 
<h6>Custom Home Page</h6>
<div class="innerbox">
   <p>
              <p><strong>For Experienced WordPress Users:</strong></p>
             <p> If you don't want to use a pre-build layout above - you can create a custom page.</p>
                   <p>Under no circumstances delete the original "Home" page!</p>
              <p>Please refer to this tutorial before proceeding: <a href="http://userguide.expand2web.com/setting-your-own-homepage/" target="_blank">Setting your own Homepage</a></p>
       
       <p>Front page: 
       <select name="smallbiz_page_on_front">
			<?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    $x = get_option('smallbiz_page_on_front');
    $smallbiz_homepage_id = get_option('smallbiz_homepage_id');
    echo '<option ';
    if ($x == $smallbiz_homepage_id) {
        echo "selected='selected' ";
    }
    echo 'value="' . $smallbiz_homepage_id . '">Smallbiz ' . get_option('layout_title') . '</selected>';
    foreach ($pages as $page) {
        if ($page->ID != $smallbiz_homepage_id) {
            if ($x == $page->ID) {
                echo '<option selected="selected" value="' . $page->ID . '">' . $page->post_title . '</option>';
            } else {
                echo '<option value="' . $page->ID . '">' . $page->post_title . '</option>';
            }
        }
    }
    ?>
		</select>       
   </p>
 
   
   <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
</div> <!--navigationMenuBox-->
			<div id="protip">
<p>ProTip: Use the "Menu Builder" (Dashboard -> Appearance -> Menus) if you want to omit pages or if you need even more control over your Navigation Menu.</p>
</div>
</div> <!--outerbox-->

<div class="outerbox" id="outerbox-fontandtext"> 	
<h6>Font and Text Options</h6>
<div class="innerbox" > 	

<p><strong>Pick your Font colors - you can overwrite the colors on a page to page basis by using the Color options and "Kitchensink" in the Wordpress Editor.</strong></p><br />
		
<div style="width:835px; height:190px;">	
		      
<div style="width:480px; height:190px; float:left">
<table width="410" border="0">
  <tr>
    <td width="290">1) Page Title ( 'h2' tag ) Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="headertag_color" value="<?php 
    echo get_option('smallbiz_headertag_color');
    ?>
"/></td>
  </tr>
  
</table>
				
<br />
		
<table width="410" border="0">
  <tr>
    <td width="290">2) Main text ( 'p' paragraph ) Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="p_color" value="<?php 
    echo get_option('smallbiz_p_color');
    ?>
"/></td>
  </tr>
  
  </table>
  
  <br />
  
<table width="410" border="0">
  <tr>
    <td width="290">3) Hyperlink ( 'a' link ) Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="hyper_color" value="<?php 
    echo get_option('smallbiz_hyper_color');
    ?>
"/></td>
  </tr>
  
  </table>
  
    <br />
  
  <table width="410" border="0">
  <tr>
    <td width="290">4) Mouse-over Hyperlink ( 'a:hover' link ) Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="hyperhover_color" value="<?php 
    echo get_option('smallbiz_hyperhover_color');
    ?>
"/></td>
  </tr>
  
  </table>
  
    <br />
  
  <table width="410" border="0">
  <tr>
    <td width="290">5) Footer Credits Color</td>
    <td width="110"><input class="color" type="text" style="width:100px" name="creds_color" value="<?php 
    echo get_option('smallbiz_creds_color');
    ?>
"/></td>
  </tr>
  
  </table>
  
  <br />
  

</div>
<div style="width:355px; float:left;margin-top:-11px;">
<p><em>Click image for Font Color Legend:</em><a href="http://members.expand2web.com/E2W-theme-images/legendfont.png" alt="Smallbiz Mobile Layout" target="_blank"><img src="http://members.expand2web.com/E2W-theme-images/legendfont-prev.png" /></a></p>
</div>
</div>

<br />
<br />
<p><input type="submit" value="Save Changes" name="sales_update" /></p>
</div> 

<div id="protip">
<p>ProTip: Advanced Web Designer - You can change the font family and size by adding your own css overwrites to Appearace -> Editor -> style.css.</a></p>
</div>

</div> <!--outerbox-->

</div> <!--Layout options closing-->	


<div  class="dropdown"  id="dropdowns-business"><a href="javascript:;" onmousedown="if(document.getElementById('businessoptions').style.display == 'none'){ document.getElementById('businessoptions').style.display = 'block'; }else{ document.getElementById('businessoptions').style.display = 'none'; }"><div class="groupbox1"> 			
<div style="float:left;"><img src="http://members.expand2web.com/E2W-theme-images/arrow.png" alt="Expand2Web Arrow" /></div><div style="float:left;padding-top:5px;">Homepage Text & Images | Business Hours | Driving Directions | Feature Boxes | Footer Credits</a></div>
</div>
</div> <!--groupbox1-->

<div id="businessoptions" style="display:none">	

<?php 
    if (function_exists(smallbiz_theme_option_page_layout_options)) {
        smallbiz_theme_option_page_layout_options();
    }
    ?>
		        
<div class="outerbox"  id="outerbox-localinfo"> 
<h6>Local Info - Good for your Customer, Good for SEO</h6>
<div class="innerbox" > 

        <p>List all cities and areas you serve. This information will be displayed in the footer. Leave blank if not desired or applicable :<br />

		<textarea name="cities" cols="70" rows="3"><?php 
    echo get_option('smallbiz_cities');
    ?>
</textarea> </p>
		
		<p>Footer Credits :<br />
		
		<textarea name="credit" cols="70" rows="2"><?php 
    echo get_option('smallbiz_credit');
    ?>
</textarea> </p>
			
			<br />
				
         <p>Local Directions (displayed under Google Maps Element image on Find Us page) :<br />

		<textarea name="directions" cols="70" rows="3"><?php 
    echo get_option('smallbiz_directions');
    ?>
</textarea> </p>

	         

		<p>Use "Google Maps Element" (which is different then Google Maps) Get your Elements code: <a href="http://www.google.com/webelements/maps/" target="_blank">HERE</a> Use Small 300x250px Map :<br />

		<textarea name="map_link" cols="70" rows="10"><?php 
    echo get_option('smallbiz_map_link');
    ?>
</textarea> </p>
		
		<br />
<p><input type="submit" value="Save Changes" name="sales_update" /></p>

</div> <!--local-->
<div id="protip">
<p>ProTip: You could use HTML to link the cities you serve above to a special landing page that could be optimized with keywords for that particular city.<br /><em>Note: Incorrect or Incomplete HTML can break your website. Use code with caution!</em></p>
</div>
</div> <!--outerbox-->
			
<div class="outerbox" id="outerbox-businesshours"> 		       
<h6>Business Hours</h6>
<div class="innerbox" >

<table>

<?php 
    $b_hours = explode(',', get_option('smallbiz_business_hours'));
    ?>

				<tr><td></td><td>Morning</td><td>Afternoon</td></tr>

				<tr><td>Mon</td><td><input type="text" name="b_hours_1_s" value="<?php 
    echo $b_hours[0];
    ?>
"/></td><td><input type="text" name="b_hours_1_e" value="<?php 
    echo $b_hours[1];
    ?>
" /></td></tr>

				<tr><td>Tues</td><td><input type="text" name="b_hours_2_s" value="<?php 
    echo $b_hours[2];
    ?>
" /></td><td><input type="text" name="b_hours_2_e" value="<?php 
    echo $b_hours[3];
    ?>
" /></td></tr>

				<tr><td>Wed</td><td><input type="text" name="b_hours_3_s" value="<?php 
    echo $b_hours[4];
    ?>
" /></td><td><input type="text" name="b_hours_3_e" value="<?php 
    echo $b_hours[5];
    ?>
" /></td></tr>

				<tr><td>Thu</td><td><input type="text" name="b_hours_4_s" value="<?php 
    echo $b_hours[6];
    ?>
" /></td><td><input type="text" name="b_hours_4_e" value="<?php 
    echo $b_hours[7];
    ?>
" /></td></tr>

				<tr><td>Fri</td><td><input type="text" name="b_hours_5_s" value="<?php 
    echo $b_hours[8];
    ?>
" /></td><td><input type="text" name="b_hours_5_e" value="<?php 
    echo $b_hours[9];
    ?>
" /></td></tr>

				<tr><td>Sat</td><td><input type="text" name="b_hours_6_s" value="<?php 
    echo $b_hours[10];
    ?>
" /></td><td><input type="text" name="b_hours_6_e" value="<?php 
    echo $b_hours[11];
    ?>
" /></td></tr>

				<tr><td>Sun</td><td><input type="text" name="b_hours_7_s" value="<?php 
    echo $b_hours[12];
    ?>
" /></td><td><input type="text" name="b_hours_7_e" value="<?php 
    echo $b_hours[13];
    ?>
" /></td></tr>

			</table>
			
			<br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>

</div>
</div> <!--outerbox-->

<div class="outerbox" id="outerbox-featuredfooterleft"> 
<h6>Featured Pages Box</h6>
<div class="innerbox" >

<p>1) Featured Page Box Footer Left<br/>Select the page to feature and provide a brief summary : <select name="feature_page_1">

				<?php 
    $x = get_option('smallbiz_feature_page_1');
    foreach ($pages as $page) {
        if ($x == $page->ID) {
            echo '<option selected value="' . $page->ID . '">' . $page->post_title . '</option>';
        } else {
            echo '<option value="' . $page->ID . '">' . $page->post_title . '</option>';
        }
    }
    ?>

			</select> Font Color<input class="color" type="text" style="width:100px" name="page_summary_1_color" value="<?php 
    echo get_option('smallbiz_page_summary_1_color');
    ?>
"/>
			

			<br/><br/>

			Summary Text 1<br/><textarea name="feature_page_summary_1" cols="40" rows="2"><?php 
    echo get_option('smallbiz_feature_page_summary_1');
    ?>
</textarea>

			
</p>


<p>2) Featured Page Box Footer Middle<br/>Select the page to feature and provide a brief summary : <select name="feature_page_2">

				<?php 
    $x = get_option('smallbiz_feature_page_2');
    foreach ($pages as $page) {
        if ($x == $page->ID) {
            echo '<option selected value="' . $page->ID . '">' . $page->post_title . '</option>';
        } else {
            echo '<option value="' . $page->ID . '">' . $page->post_title . '</option>';
        }
    }
    ?>

			</select> Font Color<input class="color" type="text" style="width:100px" name="page_summary_2_color" value="<?php 
    echo get_option('smallbiz_page_summary_2_color');
    ?>
"/>

			<br/><br/>

			Summary Text 2<br/><textarea name="feature_page_summary_2" cols="40" rows="2"><?php 
    echo get_option('smallbiz_feature_page_summary_2');
    ?>
</textarea>

</p>

		

<p>3) Featured Page Box Footer Right<br/>Select the page to feature and provide a brief summary : <select name="feature_page_3">

				<?php 
    $x = get_option('smallbiz_feature_page_3');
    foreach ($pages as $page) {
        if ($x == $page->ID) {
            echo '<option selected value="' . $page->ID . '">' . $page->post_title . '</option>';
        } else {
            echo '<option value="' . $page->ID . '">' . $page->post_title . '</option>';
        }
    }
    ?>

			</select> Font Color<input class="color" type="text" style="width:100px" name="page_summary_3_color" value="<?php 
    echo get_option('smallbiz_page_summary_3_color');
    ?>
"/>

			<br/><br/>

			Summary Text 3<br/><textarea name="feature_page_summary_3" cols="40" rows="2"><?php 
    echo get_option('smallbiz_feature_page_summary_3');
    ?>
</textarea>

			
</p>
<br />

<hr />

<p>Check to completely disable the Featured Pages Box from showing on your Website: <input type="checkbox" name="feature_box_disabled"
			  <?php 
    if (get_option('smallbiz_feature_box_disabled') != "") {
        ?>
			      checked="checked"
			  <?php 
    }
    ?>
 ></input>		
</p>

<br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
			
</div> 

<div id="protip">
<p>ProTip: You can also use Widgets in your Feature Boxes. Go To "Dashboard -> Appearance -> Widgets</p>
</div>		
</div> <!--outerbox-->		
			
</div> <!--Business options closing-->			
	
	
<div  class="dropdown"  id="dropdowns-seo"><a href="javascript:;" onmousedown="e2w.admin.toggleDropdown('seooptions');"><div id="groupbox"> 	

<div style="float:left;"><img src="http://members.expand2web.com/E2W-theme-images/arrow.png" alt="Expand2Web Arrow" /></div><div style="float:left;padding-top:5px;">SEO (Search Engine Optimization) | Google Analytics | Google Webmaster Tools</a></div>
</div>
</div> <!--groupbox-->

<div id="seooptions" style="display:none">			
<div id="seobox">

<p><strong>You do <u>not</u> need a SEO Plugin such as the All-in-One Seo Plugin. <br />The Smallbiz Theme has Custom Meta Options for all Pages and Posts.<br />If you decide to use a third-party make sure you are not submitting duplicate meta data.</strong></p>


<script type="text/javascript">
<!--
maxKeys = 70;
var IE = (document.all) ? 1 : 0;
var DOM = 0;
if (parseInt(navigator.appVersion) >=5) {
DOM=1
};
function txtshow(txt2show) {
if (DOM) {
var viewer = document.getElementById("txtmsg");
viewer.innerHTML=txt2show;
}
else if(IE) {
document.all["txtmsg"].innerHTML=txt2show;
}
}
function keyup(what) {
var str = new String(what.value);
var len = str.length;
var showstr = len + " characters of " + maxKeys + " recommended";
if (len > maxKeys) showstr += '<br><strong>You are using more than 70 Characters. Characters above the suggested count will be capped by Google, we suggest to revise your entry. </strong>';
txtshow(showstr);
}
//-->
</script>


<p>1) Homepage Title</p>
<p>For SEO purposes: Describe your home page title. Anything over 69 characters will be truncated in Google search results.<br/>

			<input type="text" style="width:400px" name="title" onkeyup="keyup(this)" value="<?php 
    echo get_option('smallbiz_title');
    ?>
"/>

	</p>
	
<div id="txtmsg">You are using 0 characters of 70 recommended by Google for your Title Tag</div>
	
	<br />
	
	<script type="text/javascript">
<!--
maxKeys1 = 150;
var IE = (document.all) ? 1 : 0;
var DOM = 0;
if (parseInt(navigator.appVersion) >=5) {
DOM=1
};
function txtshow1(txt2show1) {
if (DOM) {
var viewer = document.getElementById("txtmsg1");
viewer.innerHTML=txt2show1;
}
else if(IE) {
document.all["txtmsg1"].innerHTML=txt2show1;
}
}
function keyupdesc(what) {
var str = new String(what.value);
var len = str.length;
var showstr = len + " characters of " + maxKeys1 + " recommended";
if (len > maxKeys1) showstr += '<br><strong>You are using more than 150 Characters. Characters above the suggested count will be capped by Google, we suggest to revise your entry. </strong>';
txtshow1(showstr);
}
//-->
</script>
		
<p>2) Homepage Description</p>
<p>For SEO purposes: Describe your home page in more detail. Anything over 150 characters will be truncated in Google search results.<br/>

			<input type="text" style="width:400px" onkeyup="keyupdesc(this)" name="description" value="<?php 
    echo get_option('smallbiz_description');
    ?>
"/>
	</p>

<div id="txtmsg1">You are using 0 characters of 150 recommended by Google for your Meta Description</div>

<br/>

	

<p>3) Keywords</p>
<p>For SEO purposes, use a comma to split each keyword.<br/>

			<input type="text" style="width:400px" name="keywords" value="<?php 
    echo get_option('smallbiz_keywords');
    ?>
"/>

		</p>
		<div id="txtmsg2">There is no max character recommendedation by Google for your Meta Keywords</div>
		
		
		<br />

<hr />

	
<p>Check to completely disable the Smallbiz SEO Features - Use this when you want to use a Third-Party SEO Plugin: <input type="checkbox" name="seo_disabled"
<?php 
    if (get_option('smallbiz_seo_disabled') != "") {
        ?>
checked="checked"<?php 
    }
    ?>
 ></input>
		
</p>
		
		<br />
<p><input type="submit" value="Save Changes" name="sales_update" /></p>
		
<div style="background:#f2f2f4;margin-left:-10px;">
<p style="padding-left:10px;">ProTip: You do not need an SEO Plugin with our Theme. Look for SEO option fields when creating a new Post or Page.</p>
</div>	
		
</div> <!--seobox-->

			
					
<div class="outerbox" id="outerbox-analytics"> 			
<h6>Optional yet essential tools to keep track of your Websites performance!</h6>
<div class="innerbox" >

<p>Google Analytics</p>
<p>(Sign up: <a href="http://www.google.com/analytics/" target="_blank">HERE</a> & paste the supplied code into the field. <br />

			<textarea name="analytics" cols="40" rows="10"><?php 
    echo get_option('smallbiz_analytics');
    ?>
</textarea>
		</p>
		
<p>Google Webmaster Tools</p>
<p>(Sign up: <a href="http://www.google.com/webmaster/" target="_blank">HERE</a> & paste the entire "Verifying with Meta Tag" code snippet into the field. <br />

			<textarea name="webmaster" cols="40" rows="2"><?php 
    echo get_option('smallbiz_webmaster');
    ?>
</textarea>
			<br />
			<em>(Note: Make sure "Privacy Settings" are not on - otherwise your site will not vaildate)</em>
		</p>
		
			<br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
		
</div> <!--webtools-->
<div style="background:#f2f2f4;">
<p style="padding-left:10px;">ProTip: Our theme will automatically insert your Google Analytics code into every existing and future page and post.</p>
</div>

</div> <!--seo options closing-->
</div>


<div  class="dropdown"  id="dropdowns-mobile"><a href="javascript:;" onmousedown="e2w.admin.toggleDropdown('mobileoptions')"><div id="groupbox"> 			
<div style="float:left;"><img src="http://members.expand2web.com/E2W-theme-images/arrow.png" alt="Expand2Web Arrow" /></div><div style="float:left;padding-top:5px;">Mobile Device Page Settings</a></div>
</div>
</div> <!--groupbox-->

<div id="mobileoptions" style="display:none">			
			
<div id="mobilebox">
<div style="float:left; width:95px;padding-left:20px">
<a href="http://members.expand2web.com/E2W-theme-images/mobile-layout.png" alt="Smallbiz Mobile Layout" target="_blank"><img src="http://members.expand2web.com/E2W-theme-images/mobilepagescreen.png" alt="Smallbiz Mobile Layout Small"></a>
</div>

<p>The Expand2Web Smallbiz Wordpress Theme is designed to automatically detect Mobile and Handheld Devices such as the iPhone, Android, Blackberry etc. </p> <p>The "Call" Button in the mobile layout will only work correctly if you have your phone country code prefix specified in the "Business Information" section above.</p><p>All of our stock layouts are optimized to be viewed on mobile devices, however you can serve a special touch enabled layout by checking the box below.
</p>
<p><a href="http://members.expand2web.com/E2W-theme-images/reguar-themes-on-mobile.jpg" alt="Smallbiz Layouts on Mobile" target="_blank"># Click for Screenshot of all regular layouts viewed on a Mobile Device</a>.
<br />
<a href="http://members.expand2web.com/E2W-theme-images/mobile-layout-new-oct2011.png" alt="Smallbiz Mobile Layout" target="_blank"># Click for Screenshot of Touch enabled layout activated.</a>
</p>
<br />
<hr />
<p><strong>Activate Mobile Touch-Interface Enabled Layout</strong></p>
<p>Check box to display the mobile layout when a mobile device is detected.
		
		<input type="checkbox" name="mobile-layout-enabled"
		<?php 
    if (get_option('smallbiz_mobile-layout-enabled')) {
        ?>
			      checked="checked"
			  <?php 
    }
    ?>
		      ></input></p>
		      
		      <p><input type="submit" value="Save Changes" name="sales_update" /></p>
		      
		 <p>All of our stock layouts are optimized to be viewed on mobile devices, however you can serve a special touch enabled layout by checking the box above.</p>
		 
		 <br />
		 
		 <p><strong>Additional Mobile Pages and Mobile Menu</strong></p>
		 <p>Learn how to <a href="http://userguide.expand2web.com/creating-mobile-pages-and-a-mobile-menu/">add additional Mobile Pages and a Mobile Menu</a> if desired.</p>
<br />
<hr />
<p><strong>Homepage Text for Mobile Layout</strong></p>
<p>Keep it short and to the point with a clear call to action. Keep in mind the small size of mobile screens. </p>

<?php 
    echo tinyMCE_HTMLarea('mobile-home-text', get_option("smallbiz_mobile-home-text"));
    ?>

<br />
<hr />
<p><strong>Homepage Image for Mobile Layout </strong></p>
<p>Use a high quality image without intricate artwork text or fonts. </p>

<p>Ideal size: W:95px x H:105px : <input type="file" class="fileinput" name="mobile-home-image"/></p>

<br />
<hr />
<p><strong>Google Maps Link for Directions Button</strong></p>
<p>Go to <a href="http://maps.google.com/" target="_blank">Google Maps</a>, enter your address and click the "Link" icon in the upper right to obtain an "http" link. Do not paste an iframe in here.<br/> The button will trigger the mobile devices native maps app.</p>
</p>
			<input type="text" style="width:400px" name="mobile-map" value="<?php 
    echo get_option('smallbiz_mobile-map');
    ?>
"/>

	</p>
<br />
	   <br />
	   
	<hr />
<p><strong>Mobile Page and Touch Enabled Button(s) Color Picker</strong></p>  


<p>Mobile Page Background Color <input class="color" type="text" style="width:100px" name="mobile-body-color" value="<?php 
    echo get_option('smallbiz_mobile-body-color');
    ?>
"/></p>

<p>Button Background Color <input class="color" type="text" style="width:100px" name="mobile-button-color" value="<?php 
    echo get_option('smallbiz_mobile-button-color');
    ?>
"/></p>
	      
<p>Button Font Color <input class="color" type="text" style="width:100px" name="mobile-text-button-color" value="<?php 
    echo get_option('smallbiz_mobile-text-button-color');
    ?>
"/></p>
	   
	     <br />
	   
<p><input type="submit" value="Save Changes" name="sales_update" /></p>

<div style="background:#f2f2f4;margin-left:-10px;">
<p style="padding-left:10px;">ProTip: Click "Save Changes" - Take a break and stretch.</p>
</div>	
</div> <!--mobilebox-->
			
					
</div> <!--mobileoptions closing-->			

<div  class="dropdown"  id="dropdowns-facebook"><a href="javascript:;" onmousedown="e2w.admin.toggleDropdown('fboptions')"><div id="groupbox"> 			
<div style="float:left;"><img src="http://members.expand2web.com/E2W-theme-images/arrow.png" alt="Expand2Web Arrow" /></div><div style="float:left;padding-top:5px;">Facebook Page Setup</a></div>
</div>
</div> <!--groupbox-->
			
<div id="fboptions" style="display:none">		


<div id="facebookbox">

<div style="float:left; width:180px;padding-left:10px">
<img src="http://members.expand2web.com/E2W-theme-images/fbpagescreen.png" alt="Smallbiz Facebook App" style="border:solid 1px #ccc solid;"></a>
</div>

<p><strong>The Expand2Web SmallBiz Wordpress Theme lets you create and manage content on your Facebook Page Tabs.</strong></p> 
<p><strong>1)</strong> Create a Facebook Page. New to Facebook? - <a href="http://www.facebook.com/help/?page=904" target="_blank">Here is How To</a></p>
<p><strong>2)</strong> Create Page(s) using the SmallBiz Facebook Page Templates.  - <a href="http://userguide.expand2web.com/the-smallbiz-facebook-pages-and-app/" target="_blank">Here is How To</a></p>
<p><strong>3)</strong> If you are done with Step 1 and 2 - Use the SmallBiz Facebook App to link it all together. <a href="http://apps.facebook.com/smallbiz-wp-tabs" target="_blank">Click here to launch the App</a></p>

<p>Facebook mandated Security Requirements: <br /><em>The content you serve using <u>any</u> app must be delivered from a secure server. <br />This means you need to get an SSL certificate on your hosting server where your content is being delivered from.</em></p>

<br />

</div> <!--fbbox-->


</div> <!--fboptions closing-->	

	</form>


<div id="pillar-box">
<div id="outerbox"> 
<div id="pillar-box-inner">
<h2>Why Most Small Business Websites Don't Work... And What To Do About It!</h2>
<br/>

<div style="float:left;padding-right:22px;">
<img style="border:1px solid #ccc;" src="http://members.expand2web.com/E2W-theme-images/block-pillar-vidtest.png" />
</div>

<p><strong>Learn how to build a complete Web presence that brings you tons of traffic</strong> using the <br />
"Circle of Trust" method. Enter your email below and we'll send you this video series for FREE!</p>
<br />

<div style="float:left;margin-right:20px;">
<!-- AWeber Web Form Generator 3.0 -->
<style type="text/css">
#af-form-1865653734 .af-body .af-textWrap{width:98%;display:block;float:none;}
#af-form-1865653734 .af-body .privacyPolicy{color:#000000;font-size:11px;font-family:Verdana, sans-serif;}
#af-form-1865653734 .af-body a{color:#094C80;text-decoration:underline;font-style:normal;font-weight:normal;font-size:10px;}
#af-form-1865653734 .af-body input.text, #af-form-1865653734 .af-body textarea{background-color:#FFFFFF;border-color:#919191;border-width:1px;border-style:solid;color:#000000;text-decoration:none;font-style:normal;font-weight:normal;font-size:12px;font-family:Verdana, sans-serif;}
#af-form-1865653734 .af-body input.text:focus, #af-form-1865653734 .af-body textarea:focus{background-color:#FFFAD6;border-color:#030303;border-width:1px;border-style:solid;}
#af-form-1865653734 .af-body label.previewLabel{display:block;float:none;text-align:left;width:auto;color:#000000;text-decoration:none;font-style:normal;font-weight:normal;font-size:12px;font-family:Verdana, sans-serif;}
#af-form-1865653734 .af-body{padding-bottom:15px;background-repeat:no-repeat;background-position:inherit;background-image:none;color:#000000;font-size:11px;font-family:Verdana, sans-serif;}
#af-form-1865653734 .af-header{padding-bottom:9px;padding-top:9px;padding-right:10px;padding-left:10px;background-image:url('http://forms.aweber.com/images/auto/body/ff5/555/993/333');background-position:top left;background-repeat:repeat-x;background-color:#993333;border-width:1px;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;color:#FFFFFF;font-size:16px;font-family:Verdana, sans-serif;}
#af-form-1865653734 .af-quirksMode .bodyText{padding-top:2px;padding-bottom:2px;}
#af-form-1865653734 .af-quirksMode{padding-right:15px;padding-left:15px;}
#af-form-1865653734 .af-standards .af-element{padding-right:15px;padding-left:15px;}
#af-form-1865653734 .bodyText p{margin:1em 0;}
#af-form-1865653734 .buttonContainer input.submit{background-image:url("http://forms.aweber.com/images/auto/gradient/button/c44.png");background-position:top left;background-repeat:repeat-x;background-color:#ac2424;border:1px solid #ac2424;color:#FFFFFF;text-decoration:none;font-style:normal;font-weight:normal;font-size:14px;font-family:Verdana, sans-serif;}
#af-form-1865653734 .buttonContainer input.submit{width:auto;}
#af-form-1865653734 .buttonContainer{text-align:center;}
#af-form-1865653734 body,#af-form-1865653734 dl,#af-form-1865653734 dt,#af-form-1865653734 dd,#af-form-1865653734 h1,#af-form-1865653734 h2,#af-form-1865653734 h3,#af-form-1865653734 h4,#af-form-1865653734 h5,#af-form-1865653734 h6,#af-form-1865653734 pre,#af-form-1865653734 code,#af-form-1865653734 fieldset,#af-form-1865653734 legend,#af-form-1865653734 blockquote,#af-form-1865653734 th,#af-form-1865653734 td{float:none;color:inherit;position:static;margin:0;padding:0;}
#af-form-1865653734 button,#af-form-1865653734 input,#af-form-1865653734 submit,#af-form-1865653734 textarea,#af-form-1865653734 select,#af-form-1865653734 label,#af-form-1865653734 optgroup,#af-form-1865653734 option{float:none;position:static;margin:0;}
#af-form-1865653734 div{margin:0;}
#af-form-1865653734 fieldset{border:0;}
#af-form-1865653734 form,#af-form-1865653734 textarea,.af-form-wrapper,.af-form-close-button,#af-form-1865653734 img{float:none;color:inherit;position:static;background-color:none;border:none;margin:0;padding:0;}
#af-form-1865653734 input,#af-form-1865653734 button,#af-form-1865653734 textarea,#af-form-1865653734 select{font-size:100%;}
#af-form-1865653734 p{color:inherit;}
#af-form-1865653734 select,#af-form-1865653734 label,#af-form-1865653734 optgroup,#af-form-1865653734 option{padding:0;}
#af-form-1865653734 table{border-collapse:collapse;border-spacing:0;}
#af-form-1865653734 ul,#af-form-1865653734 ol{list-style-image:none;list-style-position:outside;list-style-type:disc;padding-left:40px;}
#af-form-1865653734,#af-form-1865653734 .quirksMode{width:225px;}
#af-form-1865653734.af-quirksMode{overflow-x:hidden;}
#af-form-1865653734{background-color:#F0F0F0;border-color:#CF4449;border-width:3px;border-style:dashed;}
#af-form-1865653734{overflow:hidden;}
.af-body .af-textWrap{text-align:left;}
.af-body input.image{border:none!important;}
.af-body input.submit,.af-body input.image,.af-form .af-element input.button{float:none!important;}
.af-body input.text{width:100%;float:none;padding:2px!important;}
.af-body.af-standards input.submit{padding:4px 12px;}
.af-clear{clear:both;}
.af-element label{text-align:left;display:block;float:left;}
.af-element{padding:5px 0;}
.af-form-wrapper{text-indent:0;}
.af-form{text-align:left;}
.af-header{margin-bottom:0;margin-top:0;padding:10px;}
.af-quirksMode .af-element{padding-left:0!important;padding-right:0!important;}
.lbl-right .af-element label{text-align:right;}
body {
}
</style>
<form method="post" name="videoform" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl" target="_new"  >
<div style="display: none;">
<input type="hidden" name="meta_web_form_id" value="1865653734" />
<input type="hidden" name="meta_split_id" value="" />
<input type="hidden" name="listname" value="4pillars" />
<input type="hidden" name="redirect" value="http://www.aweber.com/thankyou-coi.htm?m=text" id="redirect_5bc7ae546248e7f4d8948b97fda32a08" />

<input type="hidden" name="meta_adtracking" value="My_Web_Form" />
<input type="hidden" name="meta_message" value="1" />
<input type="hidden" name="meta_required" value="email" />

<input type="hidden" name="meta_tooltip" value="" />
</div>
<div id="af-form-1865653734" class="af-form"><!--<div id="af-header-1865653734" class="af-header"><div class="bodyText"><p style="text-align: center;"><strong><span style="font-size: 18px;">&nbsp;FREE 4-Week Teleseminar Worth $497</span></strong></p></div></div>-->
<div id="af-body-1865653734" class="af-body af-standards">
<div class="af-element">
<div class="bodyText"><!--<p><span style="font-size: 14px;">Yes, Please reserve my spot at your <strong>FREE 4-Week Teleseminar</strong> and send me my videos right away.</span></p>--></div><div class="af-clear"></div>
</div>
<!--<div class="af-element">
<label class="previewLabel" for="awf_field-25653209">Name: </label>
<div class="af-textWrap">
<input id="awf_field-25653209" type="text" name="name" class="text" value=""  tabindex="500" />
</div>
<div class="af-clear"></div></div>-->
<div class="af-element">
<label class="previewLabel" for="awf_field-25653210">Email: </label>
<div class="af-textWrap"><input class="text" id="awf_field-25653210" type="text" name="email" value="" tabindex="501"  />
</div><div class="af-clear"></div>
</div>
<div class="af-element buttonContainer">
<input name="submit" class="submit" type="submit" value="Send My Videos" tabindex="502" />
<div class="af-clear"></div>
</div>
<div class="af-element privacyPolicy" style="text-align: center"><p><a title="Privacy Policy" href="http://www.aweber.com/permission.htm" target="_blank">We respect your email privacy</a></p>
<div class="af-clear"></div>
</div>
</div>
</div>
<div style="display: none;"><img src="http://forms.aweber.com/form/displays.htm?id=jBxsrGyszOzMLA==" alt="" /></div>
</form>
<script type="text/javascript">
    <!--
    (function() {
        var IE = /*@cc_on!@*/false;
        if (!IE) { return; }
        if (document.compatMode && document.compatMode == 'BackCompat') {
            if (document.getElementById("af-form-1865653734")) {
                document.getElementById("af-form-1865653734").className = 'af-form af-quirksMode';
            }
            if (document.getElementById("af-body-1865653734")) {
                document.getElementById("af-body-1865653734").className = "af-body inline af-quirksMode";
            }
            if (document.getElementById("af-header-1865653734")) {
                document.getElementById("af-header-1865653734").className = "af-header af-quirksMode";
            }
            if (document.getElementById("af-footer-1865653734")) {
                document.getElementById("af-footer-1865653734").className = "af-footer af-quirksMode";
            }
        }
    })();
    -->
</script>
</div>

<ul>
<li>Video 1:  How to build a Website that works for you</li>
<li>Video 2:  Why having a Blog brings you more traffic</li>
<li>Video 3:  Use Social Media to boost your rankings</li>
<li>Video 4:  How to Mobile enable your site and get more business</li>
</ul>

</div>
</div>
</div>



<div id="lower-help">
<p><a href="http://www.expand2web.com/blog/smallbiz-getting-started/" target="_blank">Getting Started</a> | <a href="http://userguide.expand2web.com/" target="_blank">Smallbiz Theme User Guide & Tutorials</a> | <a href="http://www.expand2web.com/blog/affiliates" target="_blank"> Become an Affiliate</a> 
<?php 
    if (!get_option('smallbiz_authkey')) {
        ?>
| <a href="javascript:e2w.admin.showDemoAuthDialog();">Existing Customer Unlock Theme</a>
<?php 
    }
    ?>

<br /> Need help? Email us: <a href="mailto:support@expand2web.com?subject=Userguide Support Request">support@expand2web.com</a> </p>

<div style="float:right;margin-top:-57px;margin-right:35px;"><p><img src="http://members.expand2web.com/E2W-theme-images/Expand2WebLogo45.png" alt="E2W logo" /></p></div>


</div>


		
</div>

<script type="text/javascript">
/* <![CDATA[ */
<?php 
    if (get_option('smallbiz_authkey')) {
        ?>
if(typeof e2w == "undefined"){   e2w = {};         }
e2w.auth = { key:"<?php 
        echo get_option('smallbiz_authkey');
        ?>
", name:"<?php 
        echo get_option('smallbiz_authname');
        ?>
", email:"<?php 
        echo get_option('smallbiz_authemail');
        ?>
" };
<?php 
    }
    ?>
 
e2w.admin.check_enable_upload_banner();
/* ]]> */
</script>

<?php 
}
function smallbiz_theme_option_page_layout_options()
{
    global $wpdb, $smallbiz_cur_version;
    ?>

<div id="outerbox">             
<h6>Home Page Main Text Box</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_main_text', get_option("smallbiz_rotator_main_text"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
</div> <!--outerbox-->
       
<div id="outerbox">             
<h6>Rotating Images - Slideshow on Homepage</h6>
<div id="mainpagetext">
<p><strong>Image Slideshow Instructions</strong></p>
 
<p>1) Create images (with image editing software of your choice) that are 320px Wide by 215px Height.</p>
<p>2) Upload your images using Wordpress "Media" -> "Add Media" (upper-left Wordpress Dashboard sidebar).</p>
<p>3) Copy the image URL(s) into the field(s) below.</p>
<p>4) Leave fields empty if you want less than 5 images.</p>
<p>5) You can link each image to a page or any URL you want. Insert "#" if you don't want to link. </p>

<br />

<p>Image URL 1:<br /> <input style="width:600px" type="text" name="rotator_imgs1" value="<?php 
    echo get_option("smallbiz_rotator_imgs1");
    ?>
" /></p>

<p>Link Image 1 to the following page or use # for no link:<br /> <input style="width:400px" type="text" name="rotator_lks1" value="<?php 
    echo get_option("smallbiz_rotator_lks1");
    ?>
" /></p>

<br />

<p>Image URL 2:<br /> <input style="width:600px" type="text" name="rotator_imgs2" value="<?php 
    echo get_option("smallbiz_rotator_imgs2");
    ?>
" /></p>

<p>Link Image 2 to the following page or use # for no link:<br /> <input style="width:400px" type="text" name="rotator_lks2" value="<?php 
    echo get_option("smallbiz_rotator_lks2");
    ?>
" /></p>

<br />

<p>Image URL 3:<br /> <input style="width:600px" type="text" name="rotator_imgs3" value="<?php 
    echo get_option("smallbiz_rotator_imgs3");
    ?>
" /></p>

<p>Link Image 3 to the following page or use # for no link:<br /> <input style="width:400px" type="text" name="rotator_lks3" value="<?php 
    echo get_option("smallbiz_rotator_lks3");
    ?>
" /></p>

<br />

<p>Image URL 4:<br /> <input style="width:600px" type="text" name="rotator_imgs4" value="<?php 
    echo get_option("smallbiz_rotator_imgs4");
    ?>
" /></p>

<p>Link Image 4 to the following page or use # for no link:<br /> <input style="width:400px" type="text" name="rotator_lks4" value="<?php 
    echo get_option("smallbiz_rotator_lks4");
    ?>
" /></p>

<br />

<p>Image URL 5:<br /> <input style="width:600px" type="text" name="rotator_imgs5" value="<?php 
    echo get_option("smallbiz_rotator_imgs5");
    ?>
" /></p>

<p>Link Image 5 to the following page or use # for no link:<br /> <input style="width:400px" type="text" name="rotator_lks5" value="<?php 
    echo get_option("smallbiz_rotator_lks5");
    ?>
" /></p>

<br />

<p><em>(Note: We restricted the slideshow to 5 images to keep your page load times fast. Google does check for it)</em></p>

               <br />
<p><input type="submit" value="Save Changes" name="sales_update" /></p>
    
</div> <!--mainpagetext-->
</div> <!--outerbox-->      

<div id="outerbox">             
<h6>Bottom Row Box 1</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_box1', get_option("smallbiz_rotator_box1"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
<div id="protip">
<p>ProTip: Upload your own image. Ideal size: 185px x 135px <br /> In the Wordpress Dashboard (upper left) Click "Media" -> "Add New" to upload your image. <br />Click the "Tree" icon above and copy/paste the Image URL into this box.</p>
</div>
</div> <!--outerbox-->
            
            
<div id="outerbox">             
<h6>Bottom Row Box 2</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_box2', get_option("smallbiz_rotator_box2"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
<div id="protip">
<p>ProTip: Upload your own image. Ideal size: 185px x 135px <br /> In the Wordpress Dashboard (upper left) Click "Media" -> "Add New" to upload your image. <br />Click the "Tree" icon above and copy/paste the Image URL into this box.</p>
</div>
</div> <!--outerbox-->
            
<div id="outerbox">             
<h6>Bottom Row Box 3</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_box3', get_option("smallbiz_rotator_box3"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->
<div id="protip">
<p>ProTip: Upload your own image. Ideal size: 185px x 135px <br /> In the Wordpress Dashboard (upper left) Click "Media" -> "Add New" to upload your image. <br />Click the "Tree" icon above and copy/paste the Image URL into this box.</p>
</div>
</div> <!--outerbox-->
            
            

<div id="outerbox">             
<h6>Bottom Row Box 4</h6>
<div id="mainpagetext">

            <?php 
    echo tinyMCE_HTMLarea('rotator_box4', get_option("smallbiz_rotator_box4"));
    ?>
            

            <?php 
    $pages = $wpdb->get_results('select * from ' . $wpdb->prefix . 'posts where post_type="page" and post_status="publish"');
    ?>
            
               <br />
	 <p><input type="submit" value="Save Changes" name="sales_update" /></p>
            
</div> <!--mainpagetext-->      
<div id="protip">
<p>ProTip: Upload your own image. Ideal size: 185px x 135px <br /> In the Wordpress Dashboard (upper left) Click "Media" -> "Add New" to upload your image. <br />Click the "Tree" icon above and copy/paste the Image URL into this box.</p>
</div>
</div> <!--outerbox-->
<?php 
}