<?php 
		if(count($homebanner)>0){
			
			$bannerCnt= count($homebanner);
			
			if($isHomePage){
				$height="500px";
				/*$title_top_1='196px';
				$title_top_2='265px';
				$title_top_3='319px';*/
			}else{
				$height="286px";
				/*$title_top_1='96px';
				$title_top_2='165px';
				$title_top_3='219px';*/
			}
		?>
<!--	<div id="layerslider" style="width: 100%; height: <?php //echo $height;?>; margin: 0px auto;">
-->		
	<div class="rev_slider_wrapper">
          <div id="rev_slider_2" class="rev_slider" style="display:none">
   		  <ul>
		<?php 
			$slideInd=0;
			foreach($homebanner as $banner){
				$slideInd++;
				?>	
               		        
     <li data-transition="random" data-title="Slide Title" data-param1="Additional Text" data-thumb="<?php echo ('./static/uploadfiles/homebanners/'.$banner->simage)?>">
      
            <?php if($banner->simage!='' and file_exists('./static/uploadfiles/homebanners/'.$banner->simage)){?>	
                <img class="rev-slidebg" src="./utility/processImage.php?imageName=<?php echo urlencode($banner->simage); ?>&w=1900&h=630&mod=1&type=1&<?php echo date("HisdmY");?>" alt="<?php echo $banner->title?>" />        
                <?php }?>
            
            
            	<!-- LAYER NR. 2 -->
                <?php if(!empty($banner->title)){ ?>
                            <div class="tp-caption sfr font-extra-bold tp-resizeme letter-space-4" 
                               <?php if($bannerCnt > 1) {?>
                                data-x="left" data-hoffset="0" 
                                data-y="top" data-voffset="350" 
                                data-frames='[{"delay":0,"speed":2000,"frame":"0","from":"x:[175%];y:0px;z:0;rX:0;rY:0;rZ:0;sX:1;sY:1;skX:0;skY:0;opacity:1;","mask":"x:[-100%];y:0;s:inherit;e:inherit;","to":"o:1;","ease":"Power3.easeOut"},{"delay":"wait","speed":300,"frame":"999","to":"auto:auto;","ease":"Power3.easeInOut"}]'<?php  } ?>><?php echo $banner->title?>
                            </div>
           		  <?php }?>
            
            
            	 <!-- LAYER NR. 3 -->
                 <?php if(!empty($banner->title2)){ ?>
                            <div class="tp-caption font-medium sfb tp-resizeme letter-space-5" 
                               <?php if($bannerCnt > 1) {?>
                                data-x="left" data-hoffset="0" 
                                data-y="center" data-voffset="30" 
                                data-frames='[{"delay":500,"speed":1500,"frame":"0","from":"y:bottom;","to":"o:1;","ease":"Power3.easeInOut"},{"delay":"wait","speed":300,"frame":"999","to":"auto:auto;","ease":"Power3.easeInOut"}]'<?php  } ?>><?php echo $banner->title2?>
                            </div>
             		 <?php }?>
                </li>
				<?php }?></ul>
           
	</div>
     <script>
          $(document).ready(function(e) {
            $(".rev_slider_fullscreen").revolution({
              sliderType:"standard",
              sliderLayout: "fullscreen",
              dottedOverlay: "none",
              delay: 5000,
              navigation: {
                keyboardNavigation: "off",
                keyboard_direction: "horizontal",
                mouseScrollNavigation: "off",
                onHoverStop: "off",
                touch: {
                  touchenabled: "on",
                  swipe_threshold: 75,
                  swipe_min_touches: 1,
                  swipe_direction: "horizontal",
                  drag_block_vertical: false
                },
                arrows: {
                  style:"zeus",
                  enable:true,
                  hide_onmobile:true,
                  hide_under:600,
                  hide_onleave:true,
                  hide_delay:200,
                  hide_delay_mobile:1200,
                  tmp:'<div class="tp-title-wrap">    <div class="tp-arr-imgholder"></div> </div>',
                  left: {
                    h_align:"left",
                    v_align:"center",
                    h_offset:30,
                    v_offset:0
                  },
                  right: {
                    h_align:"right",
                    v_align:"center",
                    h_offset:30,
                    v_offset:0
                  }
                },
                bullets: {
                  enable:true,
                  hide_onmobile:true,
                  hide_under:600,
                  style:"metis",
                  hide_onleave:true,
                  hide_delay:200,
                  hide_delay_mobile:1200,
                  direction:"horizontal",
                  h_align:"center",
                  v_align:"bottom",
                  h_offset:0,
                  v_offset:30,
                  space:5,
                  tmp:'<span class="tp-bullet-img-wrap">  <span class="tp-bullet-image"></span></span><span class="tp-bullet-title">{{title}}</span>'
                }
              },
              responsiveLevels: [1900, 1240, 1024, 778],
              visibilityLevels: [1900, 1240, 1024, 778],
              gridwidth: [1900, 1170, 1024, 778, 480],
              gridheight: [500,500,500,500,500],
              lazyType: "none",
              parallax: {
                origo: "slidercenter",
                speed: 1000,
                levels: [5, 10, 15, 20, 25, 30, 35, 40, 45, 46, 47, 48, 49, 50, 100, 55],
                type: "scroll"
              },
              shadow: 0,
              spinner: "off",
              stopLoop: "on",
              stopAfterLoops: 0,
              stopAtSlide: -1,
              shuffle: "off",
              autoHeight: "on",
              fullScreenAutoWidth: "off",
              fullScreenAlignForce: "off",
              fullScreenOffsetContainer: "",
              fullScreenOffset: "0",
              hideThumbsOnMobile: "off",
              hideSliderAtLimit: 0,
              hideCaptionAtLimit: 0,
              hideAllCaptionAtLilmit: 0,
              debugMode: false,
              fallbacks: {
                simplifyAll: "off",
                nextSlideOnWindowFocus: "off",
                disableFocusListener: false,
              }
            });
          });
        </script>
   </div>
<?php }else{echo "Not Available";} ?>
<!-- Layer Slider -->		