<?php
   require_once "C:/Inetpub/charlotteparent/cmsAdmin/lib/viewer_functions.php";
    list($main_menuRecords, $main_menuMetaData) = getRecords(array(
    'tableName'   => 'main_menu',
    'limit'       => '1',     
	'allowSearch' => false,
  ));
  $main_menuRecord = @$main_menuRecords[0]; // get first record
  
  list($secondary_menuRecords, $secondary_menuMetaData) = getRecords(array(
    'tableName'   => 'secondary_menu',
    'limit'       => '1',     
	'allowSearch' => false,
  ));
  $secondary_menuRecord = @$secondary_menuRecords[0]; // get first record
  
  list($directories_menuRecords, $directories_menuMetaData) = getRecords(array(
    'tableName'   => 'directories_menu',
  ));
  
  list($publicationsmenuRecords, $publicationsmenuMetaData) = getRecords(array(
    'tableName'   => 'publicationsmenu',
  ));
  list($homenewRecords, $homenewMetaData) = getRecords(array(
    'tableName'   => 'homenew',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $homenewRecord = @$homenewRecords[0]; // get first record
  
   list($tipofthe_weekRecords, $tipofthe_weekMetaData) = getRecords(array(
    'tableName'   => 'tipofthe_week',
    'limit'       => '1',     
	'allowSearch' => false,
  ));
  $tipofthe_weekRecord = @$tipofthe_weekRecords[0]; // get first record
  
   list($copyright_textRecords, $copyright_textMetaData) = getRecords(array(
    'tableName'   => 'copyright_text',
    'allowSearch' => '0',
    'limit'       => '1',
  ));
  $copyright_textRecord = @$copyright_textRecords[0]; // get first record
  
  list($featuredarticlestwoRecords, $articlesMetaData) = getRecords(array(  
	'tableName' => 'blogs',         		
	'where'       => "category LIKE '%\tThe Daily Post\t%'",
	'limit'         => '1',   	
	));
  
   list($blogsRecords, $blogsMetaData) = getRecords(array(
    'tableName'   => 'blogs',
	'limit'         => '6',   
	
  ));  
    
  	list($featuredarticlesthreeRecords, $articlesMetaData) = getRecords(array(  
	'tableName' => 'contest_list',         		
	'limit'         => '3',   	
	));
	
?>

<?PHP   function maxWords($textOrHtml, $maxWords) { 
  $text = ($textOrHtml);
  $words = preg_split("/\s+/", $text, $maxWords+1);
  if (count($words) > $maxWords) { unset($words[$maxWords]); } 
  $output = join(' ', $words);
  
  return $output;   
  }  
  ?>
<?php include_once("C:/Inetpub/charlotteparent/oneadmin/config.php"); include_once("C:/Inetpub/charlotteparent/oneadmin/common/session.php"); ?> 
   <!doctype html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title><?php echo $homenewRecord['page_title'] ?></title>
<meta name="description" content="<?php echo $homenewRecord['page_description'] ?> " />
<meta name="keywords" content="<?php echo $homenewRecord['page_keywords'] ?> " />
<link href="css/boilerplate.css" rel="stylesheet" type="text/css">
<link href="css/home.css" rel="stylesheet" type="text/css">
<link href="css/new.css" rel="stylesheet" type="text/css">
<link href="css/meganizr.css" rel="stylesheet" type="text/css">
<link href="css/twitter.css" rel="stylesheet" type="text/css">
<link href="trans_banner/style.css" rel="stylesheet" type="text/css">
<link href="css/flexslider.css" rel="stylesheet" type="text/css"  media="all">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<script src="jsnew/jquery-1.7.2.min.js"></script>

<script src="trans_banner/jquery.easing.1.3.min.js"></script>
<script src="trans_banner/trans-banner.min.js"></script>
<script src="trans_banner/trans-banner.min.js"></script>
<script src="trans_banner/slideshow.js"></script>
<script src="jsnew/respond.min.js"></script>
<script type="text/javascript">var switchTo5x=false;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'19f48c6c-364e-4e0a-9e27-f4b71609270b'});</script>
<script type="text/javascript" src="//use.typekit.net/lzt6wua.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script src="js/google.js" type="text/javascript"></script>
</head>
<body>
<div class="gridContainer clearfix">
  <div id="headertop">
    <div id="news"><? include "C:/Inetpub/charlotteparent/templates/headernews.php"; ?> <!--End news--></div>
    <div id="info-social"><? include "C:/Inetpub/charlotteparent/templates/headerinfo-social.php"; ?><!--End info-social--></div>
    <div id="search"> <form action="http://www.charlotteparent.com/search/results.php" id="cse-search-box">
    
	<input type="text"  size="25" value="Search Charlotte Parent" onfocus="this.value=''" style="font-family: Arial; font-size:11px;" name="q"> 
    <input type="image" src="imagesnew/searchiconfinal.png" name="sa" />
    <input type="hidden" name="cx" value="partner-pub-1130980330851222:omewr4pzse6" />
    <input type="hidden" name="cof" value="FORID:9" />
    <input type="hidden" name="ie" value="ISO-8859-1" />
 
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script><!--End search--></div>
  <!--End headertop--></div>
   <div id="header">
  	<div id="adres"><? include "C:/Inetpub/charlotteparent/templates/headeradres.php"; ?><!--End adres--></div>
    <div id="logo"><? include "C:/Inetpub/charlotteparent/templates/headerlogo.php"; ?><!--End logo--></div>
    <div id="ad"><?php echo $homenewRecord['banner_ad'] ?></div>
  <!--End header--></div>
  
  <div id="nav"><? include "C:/Inetpub/charlotteparent/templates/navigation.php"; ?> <!--End nav--></div>
  <div id="responsive-nav"><? include "C:/Inetpub/charlotteparent/templates/navres.php"; ?> <!--End res-nav--></div>
   <div id="tablet-slides"><? include "C:/Inetpub/charlotteparent/templates/slideshow.php"; ?><!--End of tablet-slides id--></div>
  <div id="tablet-tabpanel"><? include "C:/Inetpub/charlotteparent/templates/tabs.php"; ?></div>
  <div id="tablet-featured"><? include "C:/Inetpub/charlotteparent/templates/featured.php"; ?></div>
<div id="article"> 
 <div id="quick-links">
     <div class="toggle">
		<h3><a href="#">Charlotte Family Events</a></h3>
		<div><ul class="toggle-list">
        <li><a href="http://www.charlotteparent.com/thingstodo/calendar/index.php">Calendar</a></li>
         <li><a href="http://www.charlotteparent.com/articlemain.php?Library-Storytimes-2011-3410">Library Storytimes</a></li>
          <li><a href="http://www.charlotteparent.com/resources/forms/calendar.php?form_id=44">Submit Your Calendar event</a></li>                                        
      </ul></div></div>
   <div class="toggle">
		<h3><a href="#"><?php echo $secondary_menuRecord['sidebar_directoriestext'] ?></a></h3>
		<div><ul class="toggle-list">
                        <?php foreach ($directories_menuRecords as $record): ?>
                            <li><a href="<?php echo $record['dirurl'] ?>"><?php echo $record['title'] ?></a></li>
                          <?php endforeach; ?>                           
                        </ul></div></div>
  <!--End of quick-links id--></div>	
  <div id="slides"><? include "C:/Inetpub/charlotteparent/templates/slideshow.php"; ?> <!--End of Slides id--> </div>
  <div id="slides-res"><? include "C:/Inetpub/charlotteparent/templates/resslideshow.php"; ?></div>
  <div id="tabpanel"> <ul class="tabs">
					<li><a class="active" href="#tab1"><?php echo $homenewRecord['tab_title1'] ?></a></li>
					<li><a href="#tab2"><?php echo $homenewRecord['tab_title2'] ?></a></li>
					<li><a href="#tab3"><?php echo $homenewRecord['tab_title3'] ?></a></li>
			</ul>

			<ul class="tabs-content">
					<li class="active" id="tab1">
                    
                      	<!--TAB 1--><div class="tabs-hottopics">
                         <?php if ($homenewRecord['daily_postauto']): ?>
                <?php foreach($featuredarticlestwoRecords as $record):?> 
                <h3 class="margin-bottom"><?php echo $record['title'] ?></h3>
                
                
              <?php foreach ($record['photo'] as $upload): ?>
         <?php if ($upload['isImage']): ?>
          <img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" align="left" class="dailypost-pic"/><?php endif ?>
      <?php endforeach ?>
      <p><?PHP echo maxWords($record['content'], 150);?><br><br><a href="<?php echo $record['_link']; ?>">Read More...</a><br></p><?php endforeach; ?>
	
     
	<?php else: ?>
                
                
                <h3 class="margin-bottom"><?php echo $homenewRecord['content_title'] ?> </h3>
                
	<?php foreach ($homenewRecord['dailypost_photo'] as $upload): ?>
         <?php if ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" align="left" class="dailypost-pic"/><?php endif ?>
      <?php endforeach ?><p><?php echo $homenewRecord['content'] ?><?php foreach($featuredarticlestwoRecords as $record):?><br><br><a href="<?php echo $record['_link']; ?>">Read More...</a></p> <?php endforeach; ?>
          <?php endif ?><br>
          
          
     
          <h3 class="diagonal-header"><span><?php echo $homenewRecord['content_title2'] ?></span></h3>
          
          <ul class="parentnews">
          <li><h4><a href="<?php echo $homenewRecord['link_url_1'] ?>" target="_blank"><?php echo $homenewRecord['link_title_1'] ?> </a></h4>
          <p><?php echo $homenewRecord['linksummary_1'] ?> </p></li>
         
          <li><h4><a href="<?php echo $homenewRecord['link_url_2'] ?>" target="_blank"><?php echo $homenewRecord['link_title_2'] ?> </a></h4>
          <p><?php echo $homenewRecord['linksummary_2'] ?> </p></li>
         
          <li><h4><a href="<?php echo $homenewRecord['link_url_3'] ?>" target="_blank"><?php echo $homenewRecord['link_title_3'] ?> </a></h4>
          <p><?php echo $homenewRecord['linksummary_3'] ?> </p></li>
          
          <li><h4><a href="<?php echo $homenewRecord['link_url_4'] ?>" target="_blank"><?php echo $homenewRecord['link_title_4'] ?> </a></h4>
          <p><?php echo $homenewRecord['linksummary_4'] ?> </p></li>
       
          <li><h4><a href="<?php echo $homenewRecord['link_url_5'] ?>" target="_blank"><?php echo $homenewRecord['link_title_5'] ?> </a></h4>
          <p><?php echo $homenewRecord['linksummary_5'] ?> </p></li>
          
          <li><h4><a href="<?php echo $homenewRecord['link_url_6'] ?>" target="_blank"><?php echo $homenewRecord['link_title_6'] ?> </a></h4>
          <p><?php echo $homenewRecord['linksummary_6'] ?> </p></li>
               </ul>      
                        </div>
                      	                   	
                    </li>
					<!--TAB 2--><li id="tab2">
                     <?php if ($homenewRecord['blogs_auto']): ?>
        
   <?php $counter = 1; ?>             
               <?php foreach ($blogsRecords as $blogs):
 //This if statement will skip a loop if the daily post is found in the related header label.
 if(in_array("The Daily Post", $blogs['header:labels'])  || in_array("Parenting Tip of the Week", $blogs['header:labels']) ){ continue;}
 //If three articles have been displayed, exit out of the loop.
  if($counter > 3){ break; }
  
 ?>
   <?php
   
$num = $blogs['header'];   
 
list($header_images_smallRecords, $header_images_smallMetaData) = getRecords(array(  
  'tableName' => 'header_images_small',  
  'where'	  => "num ='$num'", 
  
)); 
 ?> 
 
 	<?php if($count>3){$count=1;} ?>
   
  <?php $count=3;?> 
		<div class="tabs-innerlft">
         <?php foreach ($header_images_smallRecords as $header_image): ?>


            <?php foreach ($header_image['image'] as $upload): ?>
          <?php if ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image" /><br/>


          <?php endif ?>
        <?php endforeach ?></div>
        <?php endforeach ?> 
        <div class="tabs-innerrgt">     
    <h3><a href="<?php echo $blogs['_link'] ?>"><span class="articlehead"><?php echo $blogs['title'] ?></span></a></h3>
    <p><?php echo preg_replace("/<img[^>]+\>/i", "", maxWords($blogs['content'], 37)); ?>...<a href="<?php echo $blogs['_link']; ?>">More</a> </p></div>
 	  <!-- increase the counter value by 1 -->
  <?php $counter++; ?>
 <?php endforeach; ?>
 
 <?php else: ?>
                     	<div class="tabs-innerlft">
						<?php foreach ($homenewRecord['tab2_photo1'] as $upload): ?>
          				<?php if ($upload['isImage']): ?>
            				<a href="<?php echo $homenewRecord['tab2_url1'] ?>"><img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image" /></a><br/>

          <?php endif ?>
        <?php endforeach ?> </div>
                      	<div class="tabs-innerrgt"><h3><a href="<?php echo $homenewRecord['tab2_url1'] ?>"><?php echo $homenewRecord['tab2_title1'] ?></a></h3>
  												<p><?php echo $homenewRecord['tab2_content1'] ?> </p></div>
                                                
                       <div class="tabs-innerlft">
						<?php foreach ($homenewRecord['tab2_photo2'] as $upload): ?>
          				<?php if ($upload['isImage']): ?>
            				<a href="<?php echo $homenewRecord['tab2_url2'] ?>"><img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image" /></a><br/>

          <?php endif ?>
        <?php endforeach ?> </div>
                      	<div class="tabs-innerrgt"><h3><a href="<?php echo $homenewRecord['tab2_url2'] ?>"><?php echo $homenewRecord['tab2_title2'] ?></a></h3>
  												<p><?php echo $homenewRecord['tab2_content2'] ?> </p></div>     
                                                
                        <div class="tabs-innerlft">
						<?php foreach ($homenewRecord['tab2_photo3'] as $upload): ?>
          				<?php if ($upload['isImage']): ?>
            				<a href="<?php echo $homenewRecord['tab2_url3'] ?>"><img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image" /></a><br/>

          <?php endif ?>
        <?php endforeach ?> </div>
                      	<div class="tabs-innerrgt"><h3><a href="<?php echo $homenewRecord['tab2_url3'] ?>"><?php echo $homenewRecord['tab2_title3'] ?></a></h3>
  												<p><?php echo $homenewRecord['tab2_content3'] ?> </p></div>                                            
                       </li> <?php endif ?>
                       
                       
					<!--TAB 3--><li id="tab3">
                     <?php if ($homenewRecord['contests_auto']): ?>
                  <?php foreach($featuredarticlesthreeRecords as $record):?> 
                  
                  <?php if($count>3){$count=1;} ?>
    			 <?php $count=3;?> 
                 
				<div class="tabs-innerlft">      
              <?php foreach ($record['contest_photo'] as $upload): ?>
              <?php if ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" title="" class="image" /><br/>
		<?php endif ?> 
        <?php endforeach ?></div>
      
<div class="tabs-innerrgt">     
   <h3><a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a></h3>
   <p><?php echo preg_replace("/<img[^>]+\>/i", "", maxWords($record['content'], 25)); ?>...<a href="<?php echo $record['_link']; ?>">More</a> </p></div>
  <?php endforeach; ?>

<?php else: ?>
        
                    <div class="tabs-innerlft">
							<?php foreach ($homenewRecord['tab3_photo1'] as $upload): ?>
          					<?php if ($upload['isImage']): ?>
            				<a href="<?php echo $homenewRecord['tab3_url1'] ?>"><img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image" /></a><br/>

          <?php endif ?>
        <?php endforeach ?> </div>
                      	<div class="tabs-innerrgt"><h3><a href="<?php echo $homenewRecord['tab3_url1'] ?>"><?php echo $homenewRecord['tab3_title1'] ?></a></h3>
   													<p><?php echo $homenewRecord['tab3_content1'] ?> </p></div>
                                                
                       <div class="tabs-innerlft">
							<?php foreach ($homenewRecord['tab3_photo2'] as $upload): ?>
          					<?php if ($upload['isImage']): ?>
            				<a href="<?php echo $homenewRecord['tab3_url2'] ?>"><img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image" /></a><br/>

          <?php endif ?>
        <?php endforeach ?> </div>
                      	<div class="tabs-innerrgt"><h3><a href="<?php echo $homenewRecord['tab3_url2'] ?>"><?php echo $homenewRecord['tab3_title2'] ?></a></h3>
   													<p><?php echo $homenewRecord['tab3_content2'] ?> </p></div>     
                                                
                        <div class="tabs-innerlft">
							<?php foreach ($homenewRecord['tab3_photo3'] as $upload): ?>
          					<?php if ($upload['isImage']): ?>
            				<a href="<?php echo $homenewRecord['tab3_url3'] ?>"><img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image" /></a><br/>

          <?php endif ?>
        <?php endforeach ?> </div>
                      	<div class="tabs-innerrgt"><h3><a href="<?php echo $homenewRecord['tab3_url3'] ?>"><?php echo $homenewRecord['tab3_title3'] ?></a></h3>
   													<p><?php echo $homenewRecord['tab3_content3'] ?> </p></div>
                    
                    
                    </li><?php endif ?>
			</ul>
  	
   </div>
   <div id="home-featured">
   <div id="feature-titleres"><?php echo $homenewRecord['header_title'] ?><br>
   <div class="diagonal-header">&nbsp;</div>
   </div>
     <div id="feature-title">
	 <h3 class="diagonal-header"><span><?php echo $homenewRecord['header_title'] ?></span></h3>
     </div>
   <div id="feature1"><?php foreach ($homenewRecord['featured1_photo'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" title="" class="pic" /><br/>

          <?php endif ?>
        <?php endforeach ?>
     			<span><h4><a href="<?php echo $homenewRecord['featured1_url'] ?>"><?php echo $homenewRecord['featured1_title'] ?></a></h4>
    <p><?php echo $homenewRecord['featured1_text'] ?></p></span></div>
    
   <div id="feature2"><?php foreach ($homenewRecord['featured2_photo'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" title="" class="pic" /><br/>

          <?php endif ?>
        <?php endforeach ?>
     			<h4><a href="<?php echo $homenewRecord['featured2_url'] ?>"><?php echo $homenewRecord['featured2_title'] ?></a></h4>
   <p><?php echo $homenewRecord['featured2_text'] ?></p></div>
    
   <div id="feature3"><?php foreach ($homenewRecord['featured3_photo'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" title="" class="pic" /><br/>

          <?php endif ?>
        <?php endforeach ?>
     			<h4><a href="<?php echo $homenewRecord['featured3_url'] ?>"><?php echo $homenewRecord['featured3_title'] ?></a></h4>
    <p><?php echo $homenewRecord['featured3_text'] ?></p></div>
    
   </div>
   
   <div id="home-open">
     <div id="poll">
    <div class="container">
	 <h3 class="green"><?php echo $homenewRecord['pollbox_header'] ?></h3>
     <div class="container-content"><div class="pollfont"><?php $campaign_id=61; include("C:/Inetpub/charlotteparent/oneadmin/votecaster/home.vote.php"); ?></div>
     <div class="right"><a href="<?php echo $homenewRecord['polls_url'] ?> "><?php echo $homenewRecord['pollslink_title'] ?></a></div></div>
     </div>
     
     </div>
     
     <div id="highlight">
   <div class="container">
	 <h3 class="green"><?php echo $homenewRecord['open_header'] ?></h3>
    <div class="container-content">
<?php foreach ($homenewRecord['openphoto'] as $upload): ?>
          <?php if ($upload['isImage']): ?>
            <div class="center"><img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image"/></div><br/>
          <?php endif ?>
        <?php endforeach ?>
		<?php echo $homenewRecord['opencontent'] ?></div>
     </div></div>

 </div>

   <div id="home-issue">
     <div id="cover">
	 <div class="container">
	 <h3 class="green"><?php echo $homenewRecord['magazine_header'] ?></h3>
     <div id="cover-container">
       <div id="cover-content"><?php foreach ($homenewRecord['magazinephoto'] as $upload): ?>
          <?php if ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" title="<?php echo $upload['info1'] ?>" class="image"/><br/>
         
          <?php endif ?>
        <?php endforeach ?></div>
       <div id="cover-links">
       <h5><?php echo $homenewRecord['magazinetitle_1'] ?></h5>
        <ul class="cover-list">
           <li><a href="<?php echo $homenewRecord['magazinelink_url1'] ?>"><?php echo $homenewRecord['magazinelink_title1'] ?></a></li>
          <li><a href="<?php echo $homenewRecord['magazinelink_url2'] ?>"><?php echo $homenewRecord['magazinelink_title2'] ?></a></li>
          <li><a href="<?php echo $homenewRecord['magazinelink_url3'] ?>"><?php echo $homenewRecord['magazinelink_title3'] ?></a></li>
                       </ul>
         <h5><?php echo $homenewRecord['magazinetitle_2'] ?></h5>
        <ul class="cover-list">
           <li><a href="<?php echo $homenewRecord['publicationslink_url1'] ?>"><?php echo $homenewRecord['publicationslink_title1'] ?></a></li>
          <li><a href="<?php echo $homenewRecord['publicationslink_url2'] ?>"><?php echo $homenewRecord['publicationslink_title2'] ?></a></li>
          <li><a href="<?php echo $homenewRecord['publicationslink_url3'] ?>"><?php echo $homenewRecord['publicationslink_title3'] ?></a></li>
          <li><a href="<?php echo $homenewRecord['publicationslink_url4'] ?>"><?php echo $homenewRecord['publicationslink_title4'] ?></a></li>
                       </ul>
       
       </div>
     </div>
     </div>
     </div>
     <div id="tip">
     <div class="container">
	 <h3 class="green"><?php echo $tipofthe_weekRecord['title'] ?></h3>
      <div id="cover-container">
        <blockquote>
         <img class="leftquote" src="images/leftquote.png"><?php echo $tipofthe_weekRecord['content'] ?><img class="rightquote" src="images/rightquote.png">
        </blockquote>
 
        <p><a href="<?php echo $tipofthe_weekRecord['link_url'] ?>"><?php echo $tipofthe_weekRecord['link_title'] ?></a></p>
        
      </div></div>
     </div>
    </div>
    <div id="tablet-mommies">
   <div class="container">
    <h3 class="green"><?php echo $homenewRecord['mommies_header'] ?></h3>
<div class="container-content">
<h4 class="aside-header"><?php echo $homenewRecord['mommiescontent'] ?></h4>
<div class="mommies"><a href="<?php echo $homenewRecord['mommieslink_url1'] ?>"><?php echo $homenewRecord['mommieslink_title1'] ?></a></div>
<?php echo $homenewRecord['mommiescontent2'] ?><br><br>
<div class="center"><a href="<?php echo $homenewRecord['mommieslogo_url'] ?>" target="_blank"><img src="images/cmommies.png" alt="charlottemommies" /></a></div>
</div></div>
   </div>
   <div id="bannerad-footerres"><img src="imagesnew/smallad.jpg"></div>
    <div id="bannerad-footer">
  <script type="text/javascript" src="http://www.charlotteparent.com/adpeeps/adpeeps.php?bfunction=showad&amp;uid=100000&amp;bmode=off&amp;gpos=center&amp;bzone=new_ros_leaderboard&amp;bsize=728x90&amp;btype=3&amp;bpos=default&amp;ver=2.0&amp;btotal=1&amp;btarget=_blank&amp;bborder=0&amp;gspacing=1">
</script>
<noscript>
<a href="http://www.charlotteparent.com/adpeeps/adpeeps.php?bfunction=clickad&amp;uid=100000&amp;bmode=off&amp;bzone=new_ros_leaderboard&amp;bsize=728x90&amp;btype=1&amp;bpos=default&amp;ver=2.0" target="_blank">
<img src="http://www.charlotteparent.com/adpeeps/adpeeps.php?bfunction=showad&amp;uid=100000&amp;bmode=off&amp;bzone=new_ros_leaderboard&amp;bsize=728x90&amp;btype=1&amp;bpos=default&amp;ver=2.0"  alt="Click Here!" title="Click Here!" border="0" /></a>
</noscript>

</div>
<div id="newsres"><? include "C:/Inetpub/charlotteparent/templates/headernewsres.php"; ?> <!--End newsres--></div>
</div><!--End of Article-->
  
  <div id="aside"><div class="aside-adsponsor"><?php echo $homenewRecord['ad_spot'] ?></div>
   <div class="container">
<h3 class="green"><?php echo $homenewRecord['calendar_header'] ?></h3>
<div class="container-content">
<h4 class="aside-header"><?php echo $homenewRecord['calcontent'] ?></h4>
<a href="<?php echo $homenewRecord['callink_url1'] ?>"><?php echo $homenewRecord['callink_title1'] ?> </a><br>
    <a href="<?php echo $homenewRecord['callink_url2'] ?>"><?php echo $homenewRecord['callink_title2'] ?> </a>
    <hr>
			<?php echo $homenewRecord['calcontent_2'] ?><hr>
    <a href="<?php echo $homenewRecord['viewevent_url'] ?>"><?php echo $homenewRecord['viewevent_link'] ?></a><br>
    <a href="<?php echo $homenewRecord['submitevent_url'] ?>"><?php echo $homenewRecord['submitevent_link'] ?></a>
    <hr>
    <a href="<?php echo $homenewRecord['callink_url3'] ?>"><?php echo $homenewRecord['callink_title3'] ?></a>
	<div class="calsponsor">
    <?php echo $homenewRecord['eventsponsor_text'] ?><br />
        <a href="<?php echo $homenewRecord['eventsponsor_url'] ?> "><?php foreach ($homenewRecord['eventsponsor_photo'] as $upload): ?>
          <?php if ($upload['isImage']): ?>
          <img src="<?php echo $upload['urlPath'] ?>"  alt="<?php echo $upload['info1'] ?>" /></a><br/>
          <?php endif ?>
        <?php endforeach ?>
        </div>
    </div>
</div>

<div class="accordion">
    <h3><a href="#">Join us on Twitter!</a></h3>
	<div>
    <div id="twitter_div"><a href="http://twitter.com/CharlotteParent" target="_blank"><img src="../images/twitbirdsoc.png" alt="twitter" class="imgtweet"/></a>
          <h4>Latest Charlotte Parent Tweet</h4>
          <br />
          <a href="http://twitter.com/CharlotteParent" target="_blank" class="body3">@CharlotteParent</a>
          <ul id="twitter_update_list">
          </ul>
        </div>
</div>
  
    <h3><a href="#">Find us on Facebook!</a></h3>
    <div>
    <div id="facebook">
     <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fcltparent&amp;width=255&amp;height=555&amp;show_faces=true&amp;colorscheme=light&amp;stream=true&amp;border_color=ffffff&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:255px; height:555px;" allowTransparency="true" ></iframe></div></div>
   
    </div>
    
    <div id="mommies-container">
    <h3 class="green"><?php echo $homenewRecord['mommies_header'] ?></h3>
<div class="container-content">
<h4 class="aside-header"><?php echo $homenewRecord['mommiescontent'] ?></h4>
<div class="mommies"><a href="<?php echo $homenewRecord['mommieslink_url1'] ?>"><?php echo $homenewRecord['mommieslink_title1'] ?></a></div>
<?php echo $homenewRecord['mommiescontent2'] ?><br><br>
<div class="center"><a href="<?php echo $homenewRecord['mommieslogo_url'] ?>" target="_blank"><img src="images/cmommies.png" alt="charlottemommies" /></a></div>
</div></div>

<div id="directory-container">
 <h3 class="blue"><?php echo $secondary_menuRecord['sidebar_directoriestext'] ?></h3>
<div class="container-content">
<ul class="directory-list"> <?php foreach ($directories_menuRecords as $record): 
        if (empty($record['title'])) continue;?> 
          <li><a href="<?php echo $record['dirurl'] ?>"><?php echo $record['title'] ?></a></li>
             <?php endforeach; ?> 
      </ul>

</div></div>
  
  <!--End aside--></div>
    <!--End grid--></div>
    
 <div id="footerwrapper">
<div class="gridContainer clearfix">
    <div id="footer">
    	<div id="footerlft"><? include "C:/Inetpub/charlotteparent/templates/footerlft.php"; ?></div>
     	<div id="footerrgt"><? include "C:/Inetpub/charlotteparent/templates/footerrgt.php"; ?></div>
     	<div id="footerrgttab"><? include "C:/Inetpub/charlotteparent/templates/footerrgttab.php"; ?></div>
    <!--End footer--></div>
    <div id="responsive-footer"><? include "C:/Inetpub/charlotteparent/templates/resfooter.php"; ?> <!--End res-footer--></div>
    
    <div id="twitterpic">&nbsp;<!--End twitterpic--></div>
    <div id="twitterftr"><br><br><br><!--End twitterftr--></div>
    
    <div id="copyright"><?php echo $copyright_textRecord['content'] ?> <!--End copyright--></div>
    
 <!--End grid--></div>
<!--End footerwrapper--></div>

<!-- jquery -->	
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js'></script>
<script type="text/javascript" src="jstest/jquery.flexslider-min.js"></script>
<script src="jsnew/scripts.js"></script>
<script src="jsnew/jquery.ui-custom.js"></script>
<script src="jsnew/jquery.easing.1.3.js"></script>
<script src="jsnew/meganizr.js"></script>


	<!-- easing plugin ( optional ) -->
	<script src="jsnew/easing.js" type="text/javascript"></script>
	<!-- UItoTop plugin -->
	<script src="jsnew/jquery.ui.totop.js" type="text/javascript"></script>
	<!-- Starting the plugin -->
	<script type="text/javascript">
		$(document).ready(function() {
			/*
			var defaults = {
	  			containerID: 'toTop', // fading element id
				containerHoverID: 'toTopHover', // fading element hover id
				scrollSpeed: 1200,
				easingType: 'linear' 
	 		};
			*/
			
			$().UItoTop({ easingType: 'easeOutQuart' });
			
		});
	</script>

<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="https://api.twitter.com/1/statuses/user_timeline/CharlotteParent.json?callback=twitterCallback2&amp;count=6"></script>
</body>
</html>
