
<div class="wrapper">
  <?php 
	$count = 0;
	if($pageList && count($pageList) > 0){
			foreach ($pageList as $page){
			$count++; 
			$style = ($count == 3) ? 'style="margin-right:0px"' : '' ;
			$style1 = ($count == 3) ? 'style="width:305px"' : '' ;
			?>
  <div class="about-us" <?php echo $style;?>>
    <h2><?php echo $page->page_title; ?></h2>
    <div class="contain" <?php echo $style1;?>>
      <?php
            	if($page->page_id != 21) {
				$string = $page->page_desc;
				$stringDisplay = substr(strip_tags($string), 0, 150);
				if (strlen(strip_tags($string)) > 150)
					$stringDisplay .= ' ...';
	
					echo $stringDisplay;
				}else{
					echo $page->page_desc;
				}
			?>
    </div>
    <a href="<?php echo SITE_URL.'p/'.$page->page_slug; ?>" style="margin-top:22px">More...</a></div>
  <?php } } 
	
	?>
</div>
<div class="wrapper">
  <div class="fl" style="width:632px" >
    <h3>Packages</h3>
    <?php
      //class="contain bk-image-none"
	 $count = 0;
		if($packageList && count($packageList) > 0){
			foreach ($packageList as $package){
				$count++; 
				$class = ($count == 1) ? 'class="contain"' : 'class="contain bk-image-none"' ;
				?>
                <div class="packages">
                  <div <?php echo $class;?>>
                    <div class="fl">
                      <?php if($package->package_image!='' && file_exists(DIR_UPLOAD_BANNER.$package->package_image)) {?>
                      <img src="<?php echo SITE_URL; ?>libs/timthumb.php?src=<?php echo DIR_UPLOAD_BANNER_SHOW.$package->package_image ?>&w=150&zc=0&q=90"  />
                      <?php } ?>
                    </div>
                    <h4><?php echo $package->package_title; ?> </h4>
                    <p class="style3"><?php echo $package->package_short_desc; ?> </p>
                    <p class="style3">&nbsp;</p>
                    <p>
                      <?php 
                                  $string = $package->package_desc;
                                    $stringDisplay = substr(strip_tags($string), 0, 200);
                                    if (strlen(strip_tags($string)) > 200)
                                        $stringDisplay .= ' ...';	
                                        echo $stringDisplay;
                                  ?>
                    </p>
                    <p><a href="<?php echo SITE_URL.'package/'.$package->package_slug; ?>">More...</a></p>
                  </div>
                </div>
                <?php } 
            } ?>	
  </div>
  <div class="fr" style="width:305px">
    <h3>Latest News</h3>
<!--   <marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="2" scrolldelay="30" direction="up" class="marquee">
-->     <?php
      //class="contain bk-image-none"
	 $count = 0;
		if($newsList && count($newsList) > 0){
			foreach ($newsList as $news){
				$count++; 
				$class = ($count == 1) ? 'class="contain"' : 'class="contain bk-image-none"' ;
				?>
                <div <?php echo $class;?>>
                  <div class="fl news-img">
                    <p class="month"><?php echo date('M',strtotime($news->news_date))?></p>
                    <p class="day"><?php echo date('d',strtotime($news->news_date))?><strong></strong></p>
                  </div> 
                  <div class="fl" style="width:232px">
                    <h4><a href="<?php echo SITE_URL.'n/'.$news->news_slug ?>"><?php echo $news->news_title?></a></h4>
                    <p><?php 
                                  $string = $news->news_desc;
                                    $stringDisplay = substr(strip_tags($string), 0, 50);
                                    if (strlen(strip_tags($string)) > 50)
                                        $stringDisplay .= ' ...';	
                                        echo $stringDisplay;
                                  ?></p>
                  </div>
                </div>
                <?php } 
                
                } ?>
<!-- </marquee>

-->  </div>
</div>
