{if $newser == true}
<!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}" />
<link href="{$sitepath}/themes/{$themes}/styles/images/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<link rel="stylesheet" href="{$sitepath}/themes/{$themes}/styles/basic.css" />
<link rel="alternate" type="application/atom+xml" title="{$sitetitle} - RSS" href="{$sitepath}/rss.php" />
{section name="newser" loop=$newser}{assign var="usertrue" value=$newser[newser].userid}
<meta name="description" content="{$newser[newser].except|truncate:160}" />
<title>{$newser[newser].title|stripslashes}</title>
{/section}
</head> 
<body>
<div class="content">
<div itemscope itemtype="http://schema.org/NewsArticle">
{include file="themes/$themes/maindir.php"}
<div class="main">
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="{$sitepath}/themes/{$themes}/styles/images/logo.png">
<meta itemprop="width" content="250">
<meta itemprop="height" content="45">
</div>
<meta itemprop="name" content="{$sitetitle}" />
</div>
<div class="ten">
<div class="eight column">
&#187;&nbsp;<a href="{$sitepath}" title="{$sitetitle}">{$lang.110}</a>&nbsp;&#187;
{foreach from=$subcat item=menu}
{if $menu.catid == $idblog}
{foreach from=$categori item=mainc}
{if $menu.parent eq $mainc.catid}
{if $rewritemod == 2}
<a href="categories.php?id={$mainc.catid}">{$mainc.name|stripslashes}</a>
{/if}
{if $rewritemod == 1}
<a href="{$sitepath}/category/{$mainc.catid}/{$mainc.seoname}.html">{$mainc.name|stripslashes}</a>
{/if}
{/if}
{/foreach}
{/if}
{if $menu.catid == $idblog}
{if $rewritemod == 2}
&#187;&nbsp;<a href="categories.php?id={$menu.catid}">{$menu.name|stripslashes}</a>
{/if}
{if $rewritemod == 1}
&#187;&nbsp;<a href="{$sitepath}/category/{$menu.catid}/{$menu.seoname}.html">{$menu.name|stripslashes}</a>
{/if}
{/if}
{/foreach}
{if isset($categori)}
{foreach from=$categori item=inclink}
{if $inclink.catid eq $idblog}
{if $rewritemod == 2}
<a href="categories.php?id={$inclink.catid}">{$inclink.name|stripslashes}</a>
{/if}
{if $rewritemod == 1}
<a href="{$sitepath}/category/{$inclink.catid}/{$inclink.seoname}.html">{$inclink.name|stripslashes}</a>
{/if}
{/if}
{/foreach}
{/if}
</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">
{section name="newser" loop=1 start=0}
<div class="tener column">
{if $newser[newser].address eq true}
<h2 class="h2"><a href="{$newser[newser].address}" target="_blank" title="{$newser[newser].address}">{$newser[newser].title|stripslashes}</a></h2>
{else}
<h2 class="h2" itemprop="headline">{$newser[newser].title|stripslashes}</h2>
{/if}
</div>
{if $newser[newser].brief eq true}
<div class="tener column"><div class="brief"><span itemprop="description">{$newser[newser].brief|stripslashes}</span></div></div>
{/if}
<div class="tener column">
{if $newser[newser].image neq 0}
<div class="gallery" itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<a href="{$sitepath}/uploads/{$newser[newser].image}" title="{$newser[newser].title}">
<img src="{$sitepath}/maxthumb/{$newser[newser].image}" width="380" height="300" alt="{$newser[newser].title}" /></a>
<meta itemprop="url" content="{$sitepath}/maxthumb/{$newser[newser].image}">
<meta itemprop="width" content="380">
<meta itemprop="height" content="300">
</div>
{/if}
<div class="tener marginBottom" itemprop="author" itemscope itemtype="https://schema.org/Person">
<div class="tener marginBottom">{$newser[newser].date|date_format:"%A, %b %e, %Y"} by <span itemprop="name">{$newser[newser].user}</span> {$newser[newser].date|timeAgo} {$lang.116}</div>
</div>
<meta itemprop="datePublished" content="{$date}" />
<div class="tener marginBottom">
<span class="starDown" id="rating_{$newser[newser].newsid}">
<span class="star_1"><img src="{$sitepath}/themes/{$themes}/styles/images/star_blank.png" width="16" height="16" alt="star" {if $newser[newser].rating > 0} class="hover"{/if} /></span>
<span class="star_2"><img src="{$sitepath}/themes/{$themes}/styles/images/star_blank.png" width="16" height="16" alt="star" {if $newser[newser].rating > 1.5} class="hover"{/if} /></span>
<span class="star_3"><img src="{$sitepath}/themes/{$themes}/styles/images/star_blank.png" width="16" height="16" alt="star" {if $newser[newser].rating > 2.5} class="hover"{/if} /></span>
<span class="star_4"><img src="{$sitepath}/themes/{$themes}/styles/images/star_blank.png" width="16" height="16" alt="star" {if $newser[newser].rating > 3.5} class="hover"{/if} /></span>
<span class="star_5"><img src="{$sitepath}/themes/{$themes}/styles/images/star_blank.png" width="16" height="16" alt="star" {if $newser[newser].rating > 4.5} class="hover"{/if} /></span>
</span>
<span><i>{$lang.166} {$newser[newser].rating} {$lang.167} 5 {$lang.168} {$newser[newser].total_ratings} {$lang.169}</i></span>
</div>
{if $newser[newser].editor eq 2}
{$newser[newser].longdesc|stripslashes|nl2br}
{/if}
{if $newser[newser].editor eq 1}
{$newser[newser].longdesc|htmlspecialchars_decode|stripslashes|CloseTags}
{/if}
</div>
{/section}
</div>
<div class="ten">

<div class="ten column marginTop">
<div class="leftheader" id="section">{$lang.119}</div>
</div>
<div class="ten column">
{section name="reviews" loop=$reviews}
<div class="featurecat">
<div class="featuredconts">
{if $reviews[reviews].userpic neq '0'}
<a href="{$sitepath}/uploads/{$reviews[reviews].userpic}" title="{$reviews[reviews].user}"><img src="{$sitepath}/maxthumb/{$reviews[reviews].userpic}" alt="{$reviews[reviews].user}" width="50" height="50" /></a>
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.jpg" alt="{$reviews[reviews].user}" width="50" height="50" />
{/if}
{if $reviews[reviews].userid neq 0}
{if $rewritemod == 1}<h4><a href="{$sitepath}/profile/{$reviews[reviews].userid}">{$reviews[reviews].user}</a></h4>{/if}
{if $rewritemod == 2}<h4><a href="{$sitepath}/profile.php?id={$reviews[reviews].userid}">{$reviews[reviews].user}</a></h4>{/if}
{else}
<h4>{$reviews[reviews].user}</h4>
{/if}
{$reviews[reviews].comment|stripslashes|nl2br}
<div class="ten marginTop">
({$reviews[reviews].comdate|timeAgo}&nbsp;{$lang.116}&nbsp;{$lang.123}&nbsp;{$reviews[reviews].user|truncate:12}
{$reviews[reviews].comdate|date_format:"%A, %B %e, %Y"})
</div>
</div>
</div>
{sectionelse}
<div class="ten marginTop">{$lang.124}</div>
{/section}
</div>
</div>
<div class="ten">

<div class="ten column marginTop">
<div class="leftheader">{$lang.128}</div>
</div>
<div class="ten column">
{if $incname eq true}
{nocache}{if $smarty.session.loggedin|default eq false && $keypublic eq 0}
<a href="{$sitepath}/auth.php?auth=5&amp;return={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}">&#187; {$lang.125}</a>
{/if}{/nocache}
{nocache}{if $smarty.session.loggedin|default eq true && $keypublic eq 0}
{include file="themes/$themes/form.php"}
{/if}{/nocache}
{nocache}{if $smarty.session.loggedin|default eq true && $keypublic eq 1}
{include file="themes/$themes/form.php"}
{/if}{/nocache}
{nocache}{if $smarty.session.loggedin|default eq false && $keypublic eq 1}
{include file="themes/$themes/formguest.php"}
{/if}{/nocache}
{/if}
</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>
{if $usertrue > '0'}
<div class="ten column">
<div class="rightheader">{$lang.133}</div>
</div>
<div class="ten column">
<div class="topstories">
<div class="featuredcont">
{foreach from=$profile item=m}
<div class="ten">
<div class="two">
{if $rewritemod == 1}<a href="{$sitepath}/profile/{$m.usid}">{/if}
{if $rewritemod == 2}<a href="{$sitepath}/profile.php?id={$m.usid}">{/if}
{if $m.thumbs neq false}
<img src="{$sitepath}/maxthumb/{$m.thumbs}" alt="{$m.username}" height="50" width="50" />
{else}
<img src="{$sitepath}/themes/{$themes}/styles/images/noimage.jpg" alt="{$m.username}" height="50" width="50" />
{/if}
</a>
</div>
<div class="eight">
<div class="ten">
{if $m.fullname eq false}
{if $rewritemod == 1}<h4><a href="{$sitepath}/profile/{$m.usid}">{$m.username}</a></h4>{/if}
{if $rewritemod == 2}<h4><a href="{$sitepath}/profile.php?id={$m.usid}">{$m.username}</a></h4>{/if}
{else}
{if $rewritemod == 1}<h4><a href="{$sitepath}/profile/{$m.usid}">{$m.fullname}</a></h4>{/if}
{if $rewritemod == 2}<h4><a href="{$sitepath}/profile.php?id={$m.usid}">{$m.fullname}</a></h4>{/if}
{/if}
</div>
<div class="ten">
{$lang.161} {$m.date|date_format:"%a, %b %e, %Y"}
</div>
<div class="ten">
{$lang.162} {if $m.lastime eq '0000-00-00 00:00:00'}{$m.date|date_format:"%a, %b %e, %Y"}{else}{$m.lastime|date_format:"%a, %b %e, %Y"}{/if}
</div>
</div>
<div class="ten">
{if $m.biosi eq true}{$m.biosi}{else}{$lang.163}{/if}
</div>
</div>
{/foreach}
</div>
</div>
</div>
{/if}
{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.122}</div>
</div>
<div class="ten column">
{foreach from=$similar|@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>
</div>
</div>
</div>
</div>
<script src="{$sitepath}/scripts/jquery.min.js"></script>
<script src="{$sitepath}/scripts/scripts.js"></script>
<script>{literal}
/*
By André Rinas, www.andrerinas.de
-Available for use under the MIT License
-1.13.0
*/
!function(X,N,Y,t){"use strict";X.fn.simpleLightbox=function(d){d=X.extend({sourceAttr:"href",overlay:!0,spinner:!0,nav:!0,navText:["&lsaquo;","&rsaquo;"],captions:!0,captionDelay:0,captionSelector:"img",captionType:"attr",captionsData:"title",captionPosition:"bottom",captionClass:"",close:!0,closeText:"x",swipeClose:!0,showCounter:!0,fileExt:"png|jpg|jpeg|gif",animationSlide:!0,animationSpeed:250,preloading:!0,enableKeyboard:!0,loop:!0,rel:!1,docClose:!0,swipeTolerance:50,className:"simple-lightbox",widthRatio:.8,heightRatio:.9,scaleImageToRatio:!1,disableRightClick:!1,disableScroll:!1,alertError:!0,alertErrorMessage:"Image not found, next image will be loaded",additionalHtml:!1,history:!0},d),N.navigator.pointerEnabled||N.navigator.msPointerEnabled;var p,t,l=0,r=0,h=X(),n=function(){var t=Y.body||Y.documentElement;return""===(t=t.style).WebkitTransition?"-webkit-":""===t.MozTransition?"-moz-":""===t.OTransition?"-o-":""===t.transition&&""},g=!1,u=[],f=d.rel&&!1!==d.rel?(t=d.rel,X(this).filter(function(){return X(this).attr("rel")===t})):this,m=(n=n(),0),v=!1!==n,i="pushState"in history,x=!1,a=N.location,c=function(){return a.hash.substring(1)},b=c(),y=function(){c();var t="pid="+(S+1),e=a.href.split("#")[0]+"#"+t;i?history[x?"replaceState":"pushState"]("",Y.title,e):x?a.replace(e):a.hash=t,x=!0},w="simplelb",e=X("<div>").addClass("sl-overlay"),o=X("<button>").addClass("sl-close").html(d.closeText),E=X("<div>").addClass("sl-spinner").html("<div></div>"),T=X("<div>").addClass("sl-navigation").html('<button class="sl-prev">'+d.navText[0]+'</button><button class="sl-next">'+d.navText[1]+"</button>"),s=X("<div>").addClass("sl-counter").html('<span class="sl-current"></span>/<span class="sl-total"></span>'),C=!1,S=0,k=X("<div>").addClass("sl-caption "+d.captionClass+" pos-"+d.captionPosition),I=X("<div>").addClass("sl-image"),q=X("<div>").addClass("sl-wrapper").addClass(d.className),D=function(t){t.trigger(X.Event("show.simplelightbox")),d.disableScroll&&(m=W("hide")),q.appendTo("body"),I.appendTo(q),d.overlay&&e.appendTo(X("body")),C=!0,S=f.index(t),h=X("<img/>").hide().attr("src",t.attr(d.sourceAttr)),-1==u.indexOf(t.attr(d.sourceAttr))&&u.push(t.attr(d.sourceAttr)),I.html("").attr("style",""),h.appendTo(I),O(),e.fadeIn("fast"),X(".sl-close").fadeIn("fast"),E.show(),T.fadeIn("fast"),X(".sl-wrapper .sl-counter .sl-current").text(S+1),s.fadeIn("fast"),M(),d.preloading&&P(),setTimeout(function(){t.trigger(X.Event("shown.simplelightbox"))},d.animationSpeed)},M=function(s){if(h.length){var l=new Image,r=X(N).width()*d.widthRatio,c=X(N).height()*d.heightRatio;l.src=h.attr("src"),X(l).on("error",function(t){f.eq(S).trigger(X.Event("error.simplelightbox")),g=!(C=!1),E.hide(),d.alertError&&alert(d.alertErrorMessage),z(1==s||-1==s?s:1)}),l.onload=function(){void 0!==s&&f.eq(S).trigger(X.Event("changed.simplelightbox")).trigger(X.Event((1===s?"nextDone":"prevDone")+".simplelightbox")),d.history&&(x?p=setTimeout(y,800):y()),-1==u.indexOf(h.attr("src"))&&u.push(h.attr("src"));var t=l.width,e=l.height;if(d.scaleImageToRatio||r<t||c<e){var i=r/c<t/e?t/r:e/c;t/=i,e/=i}X(".sl-image").css({top:(X(N).height()-e)/2+"px",left:(X(N).width()-t-m)/2+"px"}),E.hide(),h.css({width:t+"px",height:e+"px"}).fadeIn("fast"),g=!0;var n,a="self"==d.captionSelector?f.eq(S):f.eq(S).find(d.captionSelector);if(n="data"==d.captionType?a.data(d.captionsData):"text"==d.captionType?a.html():a.prop(d.captionsData),d.loop||(0===S&&X(".sl-prev").hide(),S>=f.length-1&&X(".sl-next").hide(),0<S&&X(".sl-prev").show(),S<f.length-1&&X(".sl-next").show()),1==f.length&&X(".sl-prev, .sl-next").hide(),1==s||-1==s){var o={opacity:1};d.animationSlide&&(v?(A(0,100*s+"px"),setTimeout(function(){A(d.animationSpeed/1e3,"0px")},50)):o.left=parseInt(X(".sl-image").css("left"))+100*s+"px"),X(".sl-image").animate(o,d.animationSpeed,function(){C=!1,R(n)})}else C=!1,R(n);d.additionalHtml&&0===X(".sl-additional-html").length&&X("<div>").html(d.additionalHtml).addClass("sl-additional-html").appendTo(X(".sl-image"))}}},R=function(t){""!==t&&void 0!==t&&d.captions&&k.html(t).hide().appendTo(X(".sl-image")).delay(d.captionDelay).fadeIn("fast")},A=function(t,e){var i={};i[n+"transform"]="translateX("+e+")",i[n+"transition"]=n+"transform "+t+"s linear",X(".sl-image").css(i)},O=function(){X(N).on("resize."+w,M),X(Y).on("click."+w+" touchstart."+w,".sl-close",function(t){t.preventDefault(),g&&L()}),d.history&&setTimeout(function(){X(N).on("hashchange."+w,function(){g&&c()===b&&L()})},40),T.on("click."+w,"button",function(t){t.preventDefault(),l=0,z(X(this).hasClass("sl-next")?1:-1)});var e=0,i=0,n=0,a=0,o=!1,s=0;I.on("touchstart."+w+" mousedown."+w,function(t){return!!o||(v&&(s=parseInt(I.css("left"))),o=!0,r=l=0,e=t.originalEvent.pageX||t.originalEvent.touches[0].pageX,n=t.originalEvent.pageY||t.originalEvent.touches[0].pageY,!1)}).on("touchmove."+w+" mousemove."+w+" pointermove MSPointerMove",function(t){if(!o)return!0;t.preventDefault(),i=t.originalEvent.pageX||t.originalEvent.touches[0].pageX,a=t.originalEvent.pageY||t.originalEvent.touches[0].pageY,l=e-i,r=n-a,d.animationSlide&&(v?A(0,-l+"px"):I.css("left",s-l+"px"))}).on("touchend."+w+" mouseup."+w+" touchcancel."+w+" mouseleave."+w+" pointerup pointercancel MSPointerUp MSPointerCancel",function(t){if(o){var e=!(o=!1);d.loop||(0===S&&l<0&&(e=!1),S>=f.length-1&&0<l&&(e=!1)),Math.abs(l)>d.swipeTolerance&&e?z(0<l?1:-1):d.animationSlide&&(v?A(d.animationSpeed/1e3,"0px"):I.animate({left:s+"px"},d.animationSpeed/2)),d.swipeClose&&50<Math.abs(r)&&Math.abs(l)<d.swipeTolerance&&L()}})},P=function(){var t=S+1<0?f.length-1:S+1>=f.length-1?0:S+1,e=S-1<0?f.length-1:S-1>=f.length-1?0:S-1;X("<img />").attr("src",f.eq(t).attr(d.sourceAttr)).on("load",function(){-1==u.indexOf(X(this).attr("src"))&&u.push(X(this).attr("src")),f.eq(S).trigger(X.Event("nextImageLoaded.simplelightbox"))}),X("<img />").attr("src",f.eq(e).attr(d.sourceAttr)).on("load",function(){-1==u.indexOf(X(this).attr("src"))&&u.push(X(this).attr("src")),f.eq(S).trigger(X.Event("prevImageLoaded.simplelightbox"))})},z=function(e){f.eq(S).trigger(X.Event("change.simplelightbox")).trigger(X.Event((1===e?"next":"prev")+".simplelightbox"));var t=S+e;if(!(C||(t<0||t>=f.length)&&!1===d.loop)){S=t<0?f.length-1:t>f.length-1?0:t,X(".sl-wrapper .sl-counter .sl-current").text(S+1);var i={opacity:0};d.animationSlide&&(v?A(d.animationSpeed/1e3,-100*e-l+"px"):i.left=parseInt(X(".sl-image").css("left"))+-100*e+"px"),X(".sl-image").animate(i,d.animationSpeed,function(){setTimeout(function(){var t=f.eq(S);h.attr("src",t.attr(d.sourceAttr)),-1==u.indexOf(t.attr(d.sourceAttr))&&E.show(),X(".sl-caption").remove(),M(e),d.preloading&&P()},100)})}},L=function(){if(!C){var t=f.eq(S),e=!1;t.trigger(X.Event("close.simplelightbox")),d.history&&(i?history.pushState("",Y.title,a.pathname+a.search):a.hash="",clearTimeout(p)),X(".sl-image img, .sl-overlay, .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter").fadeOut("fast",function(){d.disableScroll&&W("show"),X(".sl-wrapper, .sl-overlay").remove(),T.off("click","button"),X(Y).off("click."+w,".sl-close"),X(N).off("resize."+w),X(N).off("hashchange."+w),e||t.trigger(X.Event("closed.simplelightbox")),e=!0}),h=X(),C=g=!1}},W=function(t){var e=0;if("hide"==t){var i=N.innerWidth;if(!i){var n=Y.documentElement.getBoundingClientRect();i=n.right-Math.abs(n.left)}if(Y.body.clientWidth<i){var a=Y.createElement("div"),o=parseInt(X("body").css("padding-right"),10);a.className="sl-scrollbar-measure",X("body").append(a),e=a.offsetWidth-a.clientWidth,X(Y.body)[0].removeChild(a),X("body").data("padding",o),0<e&&X("body").addClass("hidden-scroll").css({"padding-right":o+e})}}else X("body").removeClass("hidden-scroll").css({"padding-right":X("body").data("padding")});return e};return d.close&&o.appendTo(q),d.showCounter&&1<f.length&&(s.appendTo(q),s.find(".sl-total").text(f.length)),d.nav&&T.appendTo(q),d.spinner&&E.appendTo(q),f.on("click."+w,function(t){if(function(t){if(!d.fileExt)return!0;var e=X(t).attr(d.sourceAttr).match(/\.([0-9a-z]+)(?=[?#])|(\.)(?:[\w]+)$/gim);return e&&"a"==X(t).prop("tagName").toLowerCase()&&new RegExp(".("+d.fileExt+")$","i").test(e)}(this)){if(t.preventDefault(),C)return!1;D(X(this))}}),X(Y).on("click."+w+" touchstart."+w,function(t){g&&d.docClose&&0===X(t.target).closest(".sl-image").length&&0===X(t.target).closest(".sl-navigation").length&&L()}),d.disableRightClick&&X(Y).on("contextmenu",".sl-image img",function(t){return!1}),d.enableKeyboard&&X(Y).on("keyup."+w,function(t){if(l=0,g){t.preventDefault();var e=t.keyCode;27==e&&L(),37!=e&&39!=t.keyCode||z(39==t.keyCode?1:-1)}}),this.open=function(t){t=t||X(this[0]),D(t)},this.next=function(){z(1)},this.prev=function(){z(-1)},this.close=function(){L()},this.destroy=function(){X(Y).off("click."+w).off("keyup."+w),L(),X(".sl-overlay, .sl-wrapper").remove(),this.off("click")},this.refresh=function(){this.destroy(),X(this).simpleLightbox(d)},this}}(jQuery,window,document);

$(document).ready(function(){$("[id^=rating_]").hover(function(){rid=$(this).attr("id").split("_")[1];$("#rating_"+rid).children("[class^=star_]").children('img').hover(function(){
$("#rating_"+rid).children("[class^=star_]").children('img').removeClass("hover");var hovered=$(this).parent().attr("class").split("_")[1];while(hovered>0){
$("#rating_"+rid).children(".star_"+hovered).children('img').addClass("hover");hovered--;}});});
$("[id^=rating_]").children("[class^=star_]").click(function(){var current_star=$(this).attr("class").split("_")[1];var rid=$(this).parent().attr("id").split("_")[1];$('#rating_'+rid).load('{/literal}{$sitepath}{literal}/send.php',{rating:current_star,id:rid});});});
{/literal}</script>
<script>
$(document).ready(function () {
var gallery = $('.gallery a').simpleLightbox();
});
</script>
{include file="themes/$themes/footer.php"}
{/if}