<!DOCTYPE html>
<html dir="{$frontext}" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="ROBOTS" content="All" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$metadesc}" />
<link href="{$sitepath}/themes/{$themes}/styles/images/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<link rel="stylesheet" type="text/css" href="{$sitepath}/themes/{$themes}/styles/basic.css" />
<link rel="alternate" type="application/atom+xml" title="{$sitetitle} - RSS" href="{$sitepath}/rss.php" />
<title>{$sitetitle}</title>
</head> 
<body>
<div class="content">
{include file="themes/$themes/maindir.php"}
<div class="main">
<div class="ten">
<div class="eight column">
&#187;&nbsp;<a href="{$sitepath}" title="{$sitetitle}">{$lang.110}</a>
</div>
<div class="two column">
{$smarty.now|date_format:"%A, %B %e, %Y"}
</div>
</div>
{if $adsoffon eq 2}
<div class="ten column center topBanner">
{$sensedown}
</div>
{/if}
<div class="tener">
<div class="seven">
<div class="tener">
{if $slider == '1'}
{foreach from=$newser item=gcd}
{if $gcd@index < '1'}
<div class="tener column">
{if $rewritemod == 1}<h2 class="h2"><a href="{$sitepath}/news/{$gcd.univer}/{$gcd.idblog}/{$gcd.helper}.html">{$gcd.title|stripslashes}</a></h2>{/if}
{if $rewritemod == 2}<h2 class="h2"><a href="{$sitepath}/news.php?name={$gcd.univer}&amp;cat={$gcd.idblog}">{$gcd.title|stripslashes}</a></h2>{/if}
</div>
{if $gcd.brief eq true}
<div class="tener column"><div class="brief">{$gcd.brief|stripslashes}</div></div>
{/if}
<div class="tener column">
<div class="featuredcontainer">
{if $gcd.image neq 0}
{if $rewritemod == 1}
<a href="{$sitepath}/news/{$gcd.univer}/{$gcd.idblog}/{$gcd.helper}.html">
<img src="{$sitepath}/maxthumb/{$gcd.image}" width="380" height="300" alt="{$gcd.title}" />
</a>
{/if}
{if $rewritemod == 2}
<a href="{$sitepath}/news.php?name={$gcd.univer}&amp;cat={$gcd.idblog}">
<img src="{$sitepath}/maxthumb/{$gcd.image}" width="380" height="300" alt="{$gcd.title}" />
</a>
{/if}
{/if}
<div class="tener marginBottom">
<i>{$gcd.date|date_format:"%A, %b %e, %Y"} by {$gcd.user} {$gcd.date|timeAgo} {$lang.116}</i>
{if $gcd.rating == 0}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars0.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 1.0}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars1.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 1.5}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars2.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 2.0}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars2.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 2.5}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars3.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 3.0}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars3.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 3.5}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars4.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 4.0}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars4.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 4.5}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars5.gif" width="50" alt="star" height="10" />{/if}
{if $gcd.rating == 5.0}<img class="star" src="{$sitepath}/themes/{$themes}/styles/images/stars5.gif" width="50" alt="star" height="10" />{/if}
</div>
{$gcd.except|stripslashes|nl2br|truncate:880}
{if $rewritemod == 1}
<a href="{$sitepath}/news/{$gcd.univer}/{$gcd.idblog}/{$gcd.helper}.html">{$lang.112}</a>&nbsp;
<a href="{$sitepath}/news/{$gcd.univer}/{$gcd.idblog}/{$gcd.helper}.html#section">{$lang.113}&nbsp;[{$gcd.commno}]</a>
{/if}
{if $rewritemod == 2}
<a href="{$sitepath}/news.php?name={$gcd.univer}&amp;cat={$gcd.idblog}">{$lang.112}</a>&nbsp;
<a href="{$sitepath}/news.php?name={$gcd.univer}&amp;cat={$gcd.idblog}#section">{$lang.113}&nbsp;[{$gcd.commno}]</a>
{/if}
</div>
</div>
{/if}
{foreachelse}
<div class="ten column"><div class="info">{$lang.290}</div></div>
{/foreach}
{/if}
{if $slider == '2'}
<div class="slider1">
{foreach from=$newser2 item=gcde}
{if $gcde@index < '6'}
<div class="slide">
<div class="tener column">
{if $rewritemod == 1}<h2 class="h2"><a href="{$sitepath}/news/{$gcde.univer}/{$gcde.idblog}/{$gcde.helper}.html">{$gcde.title|stripslashes|truncate:90}</a></h2>{/if}
{if $rewritemod == 2}<h2 class="h2"><a href="{$sitepath}/news.php?name={$gcde.univer}&amp;cat={$gcde.idblog}">{$gcde.title|stripslashes|truncate:90}</a></h2>{/if}
</div>
{if $gcde.brief eq true}
<div class="tener column"><div class="brief">{$gcde.brief|stripslashes|truncate:100}</div></div>
{/if}
<div class="tener column featuredcontainer">
{if $rewritemod == 1}
<a href="{$sitepath}/news/{$gcde.univer}/{$gcde.idblog}/{$gcde.helper}.html">
<img src="{$sitepath}/maxthumb/{$gcde.image}" width="380" height="300" alt="{$gcde.title}" />
</a>
{/if}
{if $rewritemod == 2}
<a href="{$sitepath}/news.php?name={$gcde.univer}&amp;cat={$gcde.idblog}">
<img src="{$sitepath}/maxthumb/{$gcde.image}" width="380" height="300" alt="{$gcde.title}" />
</a>
{/if}
{$gcde.except|stripslashes|truncate:760}
</div>
</div>
{/if}
{/foreach}
</div>
<div class="ten column">&nbsp;</div>
{/if}
</div>
<div class="ten">
<div class="ten">
{foreach $newser as $le}
{if $le@index > 1 && $le@index < 10}
<div class="fourClear column marginTop minHeighter">
<div class="ten relativeImage">
{if $rewritemod == 1}<a href="{$sitepath}/news/{$le.univer}/{$le.idblog}/{$le.helper}.html">
{if $le.image neq 0}
<img src="{$sitepath}/minthumb/{$le.image}" width="184" height="112" alt="{$le.title}" />
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.png" width="184" height="112" alt="{$le.title}" />
{/if}
</a>{/if}
{if $rewritemod == 2}<a href="{$sitepath}/news.php?name={$le.univer}&amp;cat={$le.idblog}">
{if $le.image neq 0}
<img src="{$sitepath}/minthumb/{$le.image}" width="184px" height="112px" alt="{$le.title}" />
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.png" width="184px" height="112px" alt="{$le.title}" />
{/if}
</a>{/if}
</div>
<div class="ten">
{if $rewritemod == 1}<a href="{$sitepath}/news/{$le.univer}/{$le.idblog}/{$le.helper}.html">{$le.title|truncate:70}</a>{/if}
{if $rewritemod == 2}<a href="{$sitepath}/news.php?name={$le.univer}&amp;cat={$le.idblog}">{$le.title|truncate:70}</a>{/if}
</div>
</div>
{/if}
{if $le@index > 10 && $le@index < 15}
<div class="ten diste">
<div class="twohalf column">
{if $rewritemod == 1}<a href="{$sitepath}/news/{$le.univer}/{$le.idblog}/{$le.helper}.html">
{if $le.image neq 0}
<img src="{$sitepath}/minthumb/{$le.image}" width="184" height="112" alt="{$le.title}" />
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.png" width="184" height="112" alt="{$le.title}" />
{/if}
</a>{/if}
{if $rewritemod == 2}<a href="{$sitepath}/news.php?name={$le.univer}&amp;cat={$le.idblog}">
{if $le.image neq 0}
<img src="{$sitepath}/minthumb/{$le.image}" width="184px" height="112px" alt="{$le.title}" />
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.png" width="184px" height="112px" alt="{$le.title}" />
{/if}
</a>{/if}
</div>
<div class="sevenhalf">
<div class="ten">
{if $rewritemod == 1}<h5><a href="{$sitepath}/news/{$le.univer}/{$le.idblog}/{$le.helper}.html">{$le.title}</a></h5>{/if}
{if $rewritemod == 2}<h5><a href="{$sitepath}/news.php?name={$le.univer}&amp;cat={$le.idblog}">{$le.title}</a></h5>{/if}
</div>
<div class="ten">
{$le.except|truncate:300}
</div>
</div>
</div>
{/if}
{if $le@index > 15 && $le@index < 36}
<div class="fourClear column marginTop minHeighter">
<div class="ten relativeImage">
{if $rewritemod == 1}<a href="{$sitepath}/news/{$le.univer}/{$le.idblog}/{$le.helper}.html">
{if $le.image neq 0}
<img src="{$sitepath}/minthumb/{$le.image}" width="184" height="112" alt="{$le.title}" />
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.png" width="184" height="112" alt="{$le.title}" />
{/if}
</a>{/if}
{if $rewritemod == 2}<a href="{$sitepath}/news.php?name={$le.univer}&amp;cat={$le.idblog}">
{if $le.image neq 0}
<img src="{$sitepath}/minthumb/{$le.image}" width="184px" height="112px" alt="{$le.title}" />
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.png" width="184px" height="112px" alt="{$le.title}" />
{/if}
</a>{/if}
</div>
<div class="ten">
{if $rewritemod == 1}<a href="{$sitepath}/news/{$le.univer}/{$le.idblog}/{$le.helper}.html">{$le.title|truncate:70}</a>{/if}
{if $rewritemod == 2}<a href="{$sitepath}/news.php?name={$le.univer}&amp;cat={$le.idblog}">{$le.title|truncate:70}</a>{/if}
</div>
</div>
{/if}
{foreachelse}
<div class="ten column">&nbsp;</div>
{/foreach}
</div>
</div>
</div>
<div class="three">
<div class="ten column">
<div class="rightheader">{$lang.117}</div>
</div>
<div class="ten column">
<div class="ten">
{literal}
<a class="twitterLink" href="#" onclick="(function() {if (!window.open('https://twitter.com/intent/tweet?url=' + encodeURIComponent(window.location) + '&text=' + encodeURIComponent(document.title) + '', 'enter', 'left=100,top=120;location=yes,links=no,scrollbars=no,toolbar=no,width=690,height=360')) location.href = 'jump=yes'})();return false;">Twitter</a>
<a class="redditLink" href="#" onclick="(function() {if (!window.open('http://reddit.com/submit?url=' + encodeURIComponent(window.location) + '', 'enter', 'left=100,top=120;location=yes,links=no,scrollbars=no,toolbar=no,width=690,height=360')) location.href = 'jump=yes'})();return false;">Reddit</a>
<a class="facebookLink" href="#" onclick="(function() {if (!window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(window.location) + '', 'enter', 'left=100,top=120;location=yes,links=no,scrollbars=no,toolbar=no,width=690,height=360')) location.href = 'jump=yes'})();return false;">Facebook</a>
{/literal}
</div>
</div>
<div class="ten column">
<div class="rightheader">{$lang.122}</div>
</div>
<div class="ten column">
{foreach from=$newser|@sortby:"-#hits,#univer" item=lc}
{if $lc@index < 5}
<div class="topstories">
<div class="topstoriesCount">{counter}</div>
<div>
{if $rewritemod == 1}<a href="{$sitepath}/news/{$lc.univer}/{$lc.idblog}/{$lc.helper}.html">{$lc.title|stripslashes}</a>{/if}
{if $rewritemod == 2}<a href="{$sitepath}/news.php?name={$lc.univer}&amp;cat={$lc.idblog}">{$lc.title|stripslashes}</a>{/if}
<br />
{$lc.date|date_format:"%A, %B %e, %Y"}
</div>
</div>
{/if}
{/foreach}
</div>
{if $adsoffon eq 2}
<div class="ten column">
<div class="rightheader">{$lang.246}</div>
</div>
<div class="ten column center">
{$senseup}
</div>
{/if}
<div class="ten column">
<div class="rightheader">{$lang.119}</div>
</div>
<div class="ten column">
{foreach from=$reviews item=gc}
<div class="topstories">
<div class="featuredcont">
{if $gc.userpic neq '0'}
<img src="{$sitepath}/maxthumb/{$gc.userpic}" alt="{$gc.user}" width="50" height="50" />
<a href="{$sitepath}/uploads/{$gc.userpic}"></a>
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.jpg" alt="{$gc.user}" width="50" height="50" />
{/if}
{if $rewritemod == 1}
<a href="{$sitepath}/news/{$gc.comrev}/{$gc.newscat}/{$gc.newsurl}.html">{$gc.user}</a> - 
{/if}
{if $rewritemod == 2}
<a href="{$sitepath}/news.php?name={$gc.comrev}&amp;cat={$gc.newscat}">{$gc.user}</a> - 
{/if}
{$gc.comment|stripslashes|truncate:200}<br />
{$gc.comdate|date_format:"%A, %b %e, %Y, %H:%M:%S"}, {$gc.comdate|timeAgo}&nbsp;{$lang.116}
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
<script src="{$sitepath}/scripts/jquery.min.js"></script>
<script src="{$sitepath}/scripts/scripts.js"></script>
{if $slider == '2'}
<script>{literal}!function(R){var Z={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0}};R.fn.bxSlider=function(e){if(0===this.length)return this;if(1<this.length)return this.each(function(){R(this).bxSlider(e)}),this;var g={},p=this,n=R(window).width(),s=R(window).height();if(!R(p).data("bxSlider")){var o=function(){R(p).data("bxSlider")||(g.settings=R.extend({},Z,e),g.settings.slideWidth=parseInt(g.settings.slideWidth),g.children=p.children(g.settings.slideSelector),g.children.length<g.settings.minSlides&&(g.settings.minSlides=g.children.length),g.children.length<g.settings.maxSlides&&(g.settings.maxSlides=g.children.length),g.settings.randomStart&&(g.settings.startSlide=Math.floor(Math.random()*g.children.length)),g.active={index:g.settings.startSlide},g.carousel=1<g.settings.minSlides||1<g.settings.maxSlides,g.carousel&&(g.settings.preloadImages="all"),g.minThreshold=g.settings.minSlides*g.settings.slideWidth+(g.settings.minSlides-1)*g.settings.slideMargin,g.maxThreshold=g.settings.maxSlides*g.settings.slideWidth+(g.settings.maxSlides-1)*g.settings.slideMargin,g.working=!1,g.controls={},g.interval=null,g.animProp="vertical"===g.settings.mode?"top":"left",g.usingCSS=g.settings.useCSS&&"fade"!==g.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return g.cssPrefix=e[i].replace("Perspective","").toLowerCase(),g.animProp="-"+g.cssPrefix+"-transform",!0;return!1}(),"vertical"===g.settings.mode&&(g.settings.maxSlides=g.settings.minSlides),p.data("origStyle",p.attr("style")),p.children(g.settings.slideSelector).each(function(){R(this).data("origStyle",R(this).attr("style"))}),t())},t=function(){var t=g.children.eq(g.settings.startSlide);p.wrap('<div class="'+g.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),g.viewport=p.parent(),g.settings.ariaLive&&!g.settings.ticker&&g.viewport.attr("aria-live","polite"),g.loader=R('<div class="bx-loading" />'),g.viewport.prepend(g.loader),p.css({width:"horizontal"===g.settings.mode?1e3*g.children.length+215+"%":"auto",position:"relative"}),g.usingCSS&&g.settings.easing?p.css("-"+g.cssPrefix+"-transition-timing-function",g.settings.easing):g.settings.easing||(g.settings.easing="swing"),g.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),g.viewport.parent().css({maxWidth:l()}),g.children.css({float:"horizontal"===g.settings.mode?"left":"none",listStyle:"none",position:"relative"}),g.children.css("width",d()),"horizontal"===g.settings.mode&&0<g.settings.slideMargin&&g.children.css("marginRight",g.settings.slideMargin),"vertical"===g.settings.mode&&0<g.settings.slideMargin&&g.children.css("marginBottom",g.settings.slideMargin),"fade"===g.settings.mode&&(g.children.css({position:"absolute",zIndex:0,display:"none"}),g.children.eq(g.settings.startSlide).css({zIndex:g.settings.slideZIndex,display:"block"})),g.controls.el=R('<div class="bx-controls" />'),g.settings.captions&&C(),g.active.last=g.settings.startSlide===u()-1,g.settings.video&&p.fitVids(),("all"===g.settings.preloadImages||g.settings.ticker)&&(t=g.children),g.settings.ticker?g.settings.pager=!1:(g.settings.controls&&b(),g.settings.auto&&g.settings.autoControls&&w(),g.settings.pager&&S(),(g.settings.controls||g.settings.autoControls||g.settings.pager)&&g.viewport.after(g.controls.el)),r(t,a)},r=function(t,e){var i=t.find('img:not([src=""]), iframe').length,n=0;0!==i?t.find('img:not([src=""]), iframe').each(function(){R(this).one("load error",function(){++n===i&&e()}).each(function(){this.complete&&R(this).trigger("load")})}):e()},a=function(){if(g.settings.infiniteLoop&&"fade"!==g.settings.mode&&!g.settings.ticker){var t="vertical"===g.settings.mode?g.settings.minSlides:g.settings.maxSlides,e=g.children.slice(0,t).clone(!0).addClass("bx-clone"),i=g.children.slice(-t).clone(!0).addClass("bx-clone");g.settings.ariaHidden&&(e.attr("aria-hidden",!0),i.attr("aria-hidden",!0)),p.append(e).prepend(i)}g.loader.remove(),f(),"vertical"===g.settings.mode&&(g.settings.adaptiveHeight=!0),g.viewport.height(h()),p.redrawSlider(),g.settings.onSliderLoad.call(p,g.active.index),g.initialized=!0,g.settings.responsive&&R(window).bind("resize",Y),g.settings.auto&&g.settings.autoStart&&(1<u()||g.settings.autoSlideForOnePage)&&A(),g.settings.ticker&&D(),g.settings.pager&&y(g.settings.startSlide),g.settings.controls&&q(),g.settings.touchEnabled&&!g.settings.ticker&&L(),g.settings.keyboardEnabled&&!g.settings.ticker&&R(document).keydown(W)},h=function(){var e=0,t=R();if("vertical"===g.settings.mode||g.settings.adaptiveHeight)if(g.carousel){var n=1===g.settings.moveSlides?g.active.index:g.active.index*v();for(t=g.children.eq(n),i=1;i<=g.settings.maxSlides-1;i++)t=n+i>=g.children.length?t.add(g.children.eq(i-1)):t.add(g.children.eq(n+i))}else t=g.children.eq(g.active.index);else t=g.children;return"vertical"===g.settings.mode?(t.each(function(t){e+=R(this).outerHeight()}),0<g.settings.slideMargin&&(e+=g.settings.slideMargin*(g.settings.minSlides-1))):e=Math.max.apply(Math,t.map(function(){return R(this).outerHeight(!1)}).get()),"border-box"===g.viewport.css("box-sizing")?e+=parseFloat(g.viewport.css("padding-top"))+parseFloat(g.viewport.css("padding-bottom"))+parseFloat(g.viewport.css("border-top-width"))+parseFloat(g.viewport.css("border-bottom-width")):"padding-box"===g.viewport.css("box-sizing")&&(e+=parseFloat(g.viewport.css("padding-top"))+parseFloat(g.viewport.css("padding-bottom"))),e},l=function(){var t="100%";return 0<g.settings.slideWidth&&(t="horizontal"===g.settings.mode?g.settings.maxSlides*g.settings.slideWidth+(g.settings.maxSlides-1)*g.settings.slideMargin:g.settings.slideWidth),t},d=function(){var t=g.settings.slideWidth,e=g.viewport.width();if(0===g.settings.slideWidth||g.settings.slideWidth>e&&!g.carousel||"vertical"===g.settings.mode)t=e;else if(1<g.settings.maxSlides&&"horizontal"===g.settings.mode){if(e>g.maxThreshold)return t;e<g.minThreshold?t=(e-g.settings.slideMargin*(g.settings.minSlides-1))/g.settings.minSlides:g.settings.shrinkItems&&(t=Math.floor((e+g.settings.slideMargin)/Math.ceil((e+g.settings.slideMargin)/(t+g.settings.slideMargin))-g.settings.slideMargin))}return t},c=function(){var t=1,e=null;return"horizontal"===g.settings.mode&&0<g.settings.slideWidth?g.viewport.width()<g.minThreshold?t=g.settings.minSlides:g.viewport.width()>g.maxThreshold?t=g.settings.maxSlides:(e=g.children.first().width()+g.settings.slideMargin,t=Math.floor((g.viewport.width()+g.settings.slideMargin)/e)):"vertical"===g.settings.mode&&(t=g.settings.minSlides),t},u=function(){var t=0,e=0,i=0;if(0<g.settings.moveSlides)if(g.settings.infiniteLoop)t=Math.ceil(g.children.length/v());else for(;e<g.children.length;)++t,e=i+c(),i+=g.settings.moveSlides<=c()?g.settings.moveSlides:c();else t=Math.ceil(g.children.length/c());return t},v=function(){return 0<g.settings.moveSlides&&g.settings.moveSlides<=c()?g.settings.moveSlides:c()},f=function(){var t,e,i;g.children.length>g.settings.maxSlides&&g.active.last&&!g.settings.infiniteLoop?"horizontal"===g.settings.mode?(t=(e=g.children.last()).position(),x(-(t.left-(g.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===g.settings.mode&&(i=g.children.length-g.settings.minSlides,t=g.children.eq(i).position(),x(-t.top,"reset",0)):(t=g.children.eq(g.active.index*v()).position(),g.active.index===u()-1&&(g.active.last=!0),void 0!==t&&("horizontal"===g.settings.mode?x(-t.left,"reset",0):"vertical"===g.settings.mode&&x(-t.top,"reset",0)))},x=function(t,e,i,n){var s,o;g.usingCSS?(o="vertical"===g.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",p.css("-"+g.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===e?(p.css(g.animProp,o),0!==i?p.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(p)&&(p.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),z())}):z()):"reset"===e?p.css(g.animProp,o):"ticker"===e&&(p.css("-"+g.cssPrefix+"-transition-timing-function","linear"),p.css(g.animProp,o),0!==i?p.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){R(t.target).is(p)&&(p.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),x(n.resetValue,"reset",0),H())}):(x(n.resetValue,"reset",0),H()))):((s={})[g.animProp]=t,"slide"===e?p.animate(s,i,g.settings.easing,function(){z()}):"reset"===e?p.css(g.animProp,t):"ticker"===e&&p.animate(s,i,"linear",function(){x(n.resetValue,"reset",0),H()}))},m=function(){for(var t="",e="",i=u(),n=0;n<i;n++)e="",g.settings.buildPager&&R.isFunction(g.settings.buildPager)||g.settings.pagerCustom?(e=g.settings.buildPager(n),g.pagerEl.addClass("bx-custom-pager")):(e=n+1,g.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+n+'" class="bx-pager-link">'+e+"</a></div>";g.pagerEl.html(t)},S=function(){g.settings.pagerCustom?g.pagerEl=R(g.settings.pagerCustom):(g.pagerEl=R('<div class="bx-pager" />'),g.settings.pagerSelector?R(g.settings.pagerSelector).html(g.pagerEl):g.controls.el.addClass("bx-has-pager").append(g.pagerEl),m()),g.pagerEl.on("click touchend","a",M)},b=function(){g.controls.next=R('<a class="bx-next" href="">'+g.settings.nextText+"</a>"),g.controls.prev=R('<a class="bx-prev" href="">'+g.settings.prevText+"</a>"),g.controls.next.bind("click touchend",T),g.controls.prev.bind("click touchend",P),g.settings.nextSelector&&R(g.settings.nextSelector).append(g.controls.next),g.settings.prevSelector&&R(g.settings.prevSelector).append(g.controls.prev),g.settings.nextSelector||g.settings.prevSelector||(g.controls.directionEl=R('<div class="bx-controls-direction" />'),g.controls.directionEl.append(g.controls.prev).append(g.controls.next),g.controls.el.addClass("bx-has-controls-direction").append(g.controls.directionEl))},w=function(){g.controls.start=R('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+g.settings.startText+"</a></div>"),g.controls.stop=R('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+g.settings.stopText+"</a></div>"),g.controls.autoEl=R('<div class="bx-controls-auto" />'),g.controls.autoEl.on("click",".bx-start",E),g.controls.autoEl.on("click",".bx-stop",k),g.settings.autoControlsCombine?g.controls.autoEl.append(g.controls.start):g.controls.autoEl.append(g.controls.start).append(g.controls.stop),g.settings.autoControlsSelector?R(g.settings.autoControlsSelector).html(g.controls.autoEl):g.controls.el.addClass("bx-has-controls-auto").append(g.controls.autoEl),I(g.settings.autoStart?"stop":"start")},C=function(){g.children.each(function(t){var e=R(this).find("img:first").attr("title");void 0!==e&&(""+e).length&&R(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},T=function(t){t.preventDefault(),g.controls.el.hasClass("disabled")||(g.settings.auto&&g.settings.stopAutoOnClick&&p.stopAuto(),p.goToNextSlide())},P=function(t){t.preventDefault(),g.controls.el.hasClass("disabled")||(g.settings.auto&&g.settings.stopAutoOnClick&&p.stopAuto(),p.goToPrevSlide())},E=function(t){p.startAuto(),t.preventDefault()},k=function(t){p.stopAuto(),t.preventDefault()},M=function(t){var e,i;t.preventDefault(),g.controls.el.hasClass("disabled")||(g.settings.auto&&g.settings.stopAutoOnClick&&p.stopAuto(),void 0!==(e=R(t.currentTarget)).attr("data-slide-index")&&(i=parseInt(e.attr("data-slide-index")))!==g.active.index&&p.goToSlide(i))},y=function(i){var t=g.children.length;if("short"===g.settings.pagerType)return 1<g.settings.maxSlides&&(t=Math.ceil(g.children.length/g.settings.maxSlides)),void g.pagerEl.html(i+1+g.settings.pagerShortSeparator+t);g.pagerEl.find("a").removeClass("active"),g.pagerEl.each(function(t,e){R(e).find("a").eq(i).addClass("active")})},z=function(){if(g.settings.infiniteLoop){var t="";0===g.active.index?t=g.children.eq(0).position():g.active.index===u()-1&&g.carousel?t=g.children.eq((u()-1)*v()).position():g.active.index===g.children.length-1&&(t=g.children.eq(g.children.length-1).position()),t&&("horizontal"===g.settings.mode?x(-t.left,"reset",0):"vertical"===g.settings.mode&&x(-t.top,"reset",0))}g.working=!1,g.settings.onSlideAfter.call(p,g.children.eq(g.active.index),g.oldIndex,g.active.index)},I=function(t){g.settings.autoControlsCombine?g.controls.autoEl.html(g.controls[t]):(g.controls.autoEl.find("a").removeClass("active"),g.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},q=function(){1===u()?(g.controls.prev.addClass("disabled"),g.controls.next.addClass("disabled")):!g.settings.infiniteLoop&&g.settings.hideControlOnEnd&&(0===g.active.index?(g.controls.prev.addClass("disabled"),g.controls.next.removeClass("disabled")):g.active.index===u()-1?(g.controls.next.addClass("disabled"),g.controls.prev.removeClass("disabled")):(g.controls.prev.removeClass("disabled"),g.controls.next.removeClass("disabled")))},A=function(){if(0<g.settings.autoDelay)setTimeout(p.startAuto,g.settings.autoDelay);else p.startAuto(),R(window).focus(function(){p.startAuto()}).blur(function(){p.stopAuto()});g.settings.autoHover&&p.hover(function(){g.interval&&(p.stopAuto(!0),g.autoPaused=!0)},function(){g.autoPaused&&(p.startAuto(!0),g.autoPaused=null)})},D=function(){var t,e,i,n,s,o,r,a,l=0;"next"===g.settings.autoDirection?p.append(g.children.clone().addClass("bx-clone")):(p.prepend(g.children.clone().addClass("bx-clone")),t=g.children.first().position(),l="horizontal"===g.settings.mode?-t.left:-t.top),x(l,"reset",0),g.settings.pager=!1,g.settings.controls=!1,g.settings.autoControls=!1,g.settings.tickerHover&&(g.usingCSS?(n="horizontal"===g.settings.mode?4:5,g.viewport.hover(function(){e=p.css("-"+g.cssPrefix+"-transform"),i=parseFloat(e.split(",")[n]),x(i,"reset",0)},function(){a=0,g.children.each(function(t){a+="horizontal"===g.settings.mode?R(this).outerWidth(!0):R(this).outerHeight(!0)}),s=g.settings.speed/a,o="horizontal"===g.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(i))),H(r)})):g.viewport.hover(function(){p.stop()},function(){a=0,g.children.each(function(t){a+="horizontal"===g.settings.mode?R(this).outerWidth(!0):R(this).outerHeight(!0)}),s=g.settings.speed/a,o="horizontal"===g.settings.mode?"left":"top",r=s*(a-Math.abs(parseInt(p.css(o)))),H(r)})),H()},H=function(t){var e,i,n=t||g.settings.speed,s={left:0,top:0},o={left:0,top:0};"next"===g.settings.autoDirection?s=p.find(".bx-clone").first().position():o=g.children.first().position(),e="horizontal"===g.settings.mode?-s.left:-s.top,i="horizontal"===g.settings.mode?-o.left:-o.top,x(e,"ticker",n,{resetValue:i})},W=function(t){var e,i,n,s,o=document.activeElement.tagName.toLowerCase();if(null==new RegExp(o,["i"]).exec("input|textarea")&&(e=p,i=R(window),n={top:i.scrollTop(),left:i.scrollLeft()},s=e.offset(),n.right=n.left+i.width(),n.bottom=n.top+i.height(),s.right=s.left+e.outerWidth(),s.bottom=s.top+e.outerHeight(),!(n.right<s.left||n.left>s.right||n.bottom<s.top||n.top>s.bottom))){if(39===t.keyCode)return T(t),!1;if(37===t.keyCode)return P(t),!1}},L=function(){g.touch={start:{x:0,y:0},end:{x:0,y:0}},g.viewport.bind("touchstart MSPointerDown pointerdown",O),g.viewport.on("click",".bxslider a",function(t){g.viewport.hasClass("click-disabled")&&(t.preventDefault(),g.viewport.removeClass("click-disabled"))})},O=function(t){if(g.controls.el.addClass("disabled"),g.working)t.preventDefault(),g.controls.el.removeClass("disabled");else{g.touch.originalPos=p.position();var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e];g.touch.start.x=i[0].pageX,g.touch.start.y=i[0].pageY,g.viewport.get(0).setPointerCapture&&(g.pointerId=e.pointerId,g.viewport.get(0).setPointerCapture(g.pointerId)),g.viewport.bind("touchmove MSPointerMove pointermove",N),g.viewport.bind("touchend MSPointerUp pointerup",X),g.viewport.bind("MSPointerCancel pointercancel",F)}},F=function(t){x(g.touch.originalPos.left,"reset",0),g.controls.el.removeClass("disabled"),g.viewport.unbind("MSPointerCancel pointercancel",F),g.viewport.unbind("touchmove MSPointerMove pointermove",N),g.viewport.unbind("touchend MSPointerUp pointerup",X),g.viewport.get(0).releasePointerCapture&&g.viewport.get(0).releasePointerCapture(g.pointerId)},N=function(t){var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=Math.abs(i[0].pageX-g.touch.start.x),s=Math.abs(i[0].pageY-g.touch.start.y),o=0,r=0;s<3*n&&g.settings.preventDefaultSwipeX?t.preventDefault():n<3*s&&g.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!==g.settings.mode&&g.settings.oneToOneTouch&&("horizontal"===g.settings.mode?(r=i[0].pageX-g.touch.start.x,o=g.touch.originalPos.left+r):(r=i[0].pageY-g.touch.start.y,o=g.touch.originalPos.top+r),x(o,"reset",0))},X=function(t){g.viewport.unbind("touchmove MSPointerMove pointermove",N),g.controls.el.removeClass("disabled");var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=0,s=0;g.touch.end.x=i[0].pageX,g.touch.end.y=i[0].pageY,"fade"===g.settings.mode?(s=Math.abs(g.touch.start.x-g.touch.end.x))>=g.settings.swipeThreshold&&(g.touch.start.x>g.touch.end.x?p.goToNextSlide():p.goToPrevSlide(),p.stopAuto()):("horizontal"===g.settings.mode?(s=g.touch.end.x-g.touch.start.x,n=g.touch.originalPos.left):(s=g.touch.end.y-g.touch.start.y,n=g.touch.originalPos.top),!g.settings.infiniteLoop&&(0===g.active.index&&0<s||g.active.last&&s<0)?x(n,"reset",200):Math.abs(s)>=g.settings.swipeThreshold?(s<0?p.goToNextSlide():p.goToPrevSlide(),p.stopAuto()):x(n,"reset",200)),g.viewport.unbind("touchend MSPointerUp pointerup",X),g.viewport.get(0).releasePointerCapture&&g.viewport.get(0).releasePointerCapture(g.pointerId)},Y=function(t){if(g.initialized)if(g.working)window.setTimeout(Y,10);else{var e=R(window).width(),i=R(window).height();n===e&&s===i||(n=e,s=i,p.redrawSlider(),g.settings.onSliderResize.call(p,g.active.index))}},V=function(t){var e=c();g.settings.ariaHidden&&!g.settings.ticker&&(g.children.attr("aria-hidden","true"),g.children.slice(t,t+e).attr("aria-hidden","false"))};return p.goToSlide=function(t,e){var i,n,s,o,r,a=!0,l=0,d={left:0,top:0},c=null;if(g.oldIndex=g.active.index,g.active.index=(r=t)<0?g.settings.infiniteLoop?u()-1:g.active.index:r>=u()?g.settings.infiniteLoop?0:g.active.index:r,!g.working&&g.active.index!==g.oldIndex){if(g.working=!0,void 0!==(a=g.settings.onSlideBefore.call(p,g.children.eq(g.active.index),g.oldIndex,g.active.index))&&!a)return g.active.index=g.oldIndex,void(g.working=!1);"next"===e?g.settings.onSlideNext.call(p,g.children.eq(g.active.index),g.oldIndex,g.active.index)||(a=!1):"prev"===e&&(g.settings.onSlidePrev.call(p,g.children.eq(g.active.index),g.oldIndex,g.active.index)||(a=!1)),g.active.last=g.active.index>=u()-1,(g.settings.pager||g.settings.pagerCustom)&&y(g.active.index),g.settings.controls&&q(),"fade"===g.settings.mode?(g.settings.adaptiveHeight&&g.viewport.height()!==h()&&g.viewport.animate({height:h()},g.settings.adaptiveHeightSpeed),g.children.filter(":visible").fadeOut(g.settings.speed).css({zIndex:0}),g.children.eq(g.active.index).css("zIndex",g.settings.slideZIndex+1).fadeIn(g.settings.speed,function(){R(this).css("zIndex",g.settings.slideZIndex),z()})):(g.settings.adaptiveHeight&&g.viewport.height()!==h()&&g.viewport.animate({height:h()},g.settings.adaptiveHeightSpeed),!g.settings.infiniteLoop&&g.carousel&&g.active.last?"horizontal"===g.settings.mode?(d=(c=g.children.eq(g.children.length-1)).position(),l=g.viewport.width()-c.outerWidth()):(i=g.children.length-g.settings.minSlides,d=g.children.eq(i).position()):g.carousel&&g.active.last&&"prev"===e?(n=1===g.settings.moveSlides?g.settings.maxSlides-v():(u()-1)*v()-(g.children.length-g.settings.maxSlides),d=(c=p.children(".bx-clone").eq(n)).position()):"next"===e&&0===g.active.index?(d=p.find("> .bx-clone").eq(g.settings.maxSlides).position(),g.active.last=!1):0<=t&&(o=t*parseInt(v()),d=g.children.eq(o).position()),void 0!==d?(s="horizontal"===g.settings.mode?-(d.left-l):-d.top,x(s,"slide",g.settings.speed)):g.working=!1),g.settings.ariaHidden&&V(g.active.index*v())}},p.goToNextSlide=function(){if(g.settings.infiniteLoop||!g.active.last){var t=parseInt(g.active.index)+1;p.goToSlide(t,"next")}},p.goToPrevSlide=function(){if(g.settings.infiniteLoop||0!==g.active.index){var t=parseInt(g.active.index)-1;p.goToSlide(t,"prev")}},p.startAuto=function(t){g.interval||(g.interval=setInterval(function(){"next"===g.settings.autoDirection?p.goToNextSlide():p.goToPrevSlide()},g.settings.pause),g.settings.autoControls&&!0!==t&&I("stop"))},p.stopAuto=function(t){g.interval&&(clearInterval(g.interval),g.interval=null,g.settings.autoControls&&!0!==t&&I("start"))},p.getCurrentSlide=function(){return g.active.index},p.getCurrentSlideElement=function(){return g.children.eq(g.active.index)},p.getSlideElement=function(t){return g.children.eq(t)},p.getSlideCount=function(){return g.children.length},p.isWorking=function(){return g.working},p.redrawSlider=function(){g.children.add(p.find(".bx-clone")).outerWidth(d()),g.viewport.css("height",h()),g.settings.ticker||f(),g.active.last&&(g.active.index=u()-1),g.active.index>=u()&&(g.active.last=!0),g.settings.pager&&!g.settings.pagerCustom&&(m(),y(g.active.index)),g.settings.ariaHidden&&V(g.active.index*v())},p.destroySlider=function(){g.initialized&&(g.initialized=!1,R(".bx-clone",this).remove(),g.children.each(function(){void 0!==R(this).data("origStyle")?R(this).attr("style",R(this).data("origStyle")):R(this).removeAttr("style")}),void 0!==R(this).data("origStyle")?this.attr("style",R(this).data("origStyle")):R(this).removeAttr("style"),R(this).unwrap().unwrap(),g.controls.el&&g.controls.el.remove(),g.controls.next&&g.controls.next.remove(),g.controls.prev&&g.controls.prev.remove(),g.pagerEl&&g.settings.controls&&!g.settings.pagerCustom&&g.pagerEl.remove(),R(".bx-caption",this).remove(),g.controls.autoEl&&g.controls.autoEl.remove(),clearInterval(g.interval),g.settings.responsive&&R(window).unbind("resize",Y),g.settings.keyboardEnabled&&R(document).unbind("keydown",W),R(this).removeData("bxSlider"))},p.reloadSlider=function(t){void 0!==t&&(e=t),p.destroySlider(),o(),R(p).data("bxSlider",this)},o(),R(p).data("bxSlider",this),this}}}(jQuery);
{/literal}</script>
<script>
$(window).on('load', function() {
$('.slider1').css('visibility', 'visible');
});
</script>
<script>
$(document).ready(function(){
$('.slider1').bxSlider({
mode: '{$efslide}',
slideWidth: 787,
minSlides: 1,
slideMargin: 10
});
});
</script>
{/if}
{include file="themes/$themes/footer.php"}