$('document').ready(function(){ // set target _blank $(".external").click(function(){ this.target = '_blank'; }); }); /*var newspage = 0; // nextprev = +1 or -1 function getNews (nextprev) { newspage += nextprev; if (newspage == 1) { $('#news-more-prev').css('display', 'block'); } else if (newspage == 0) { $('#news-more-prev').css('display', 'none'); } $.post('/modules/mod_News.php', { getNews: newspage }, function (data) { $('#news-more-next').css('visibility', (data.shownext ? 'visible' : 'hidden') ); $('#news').html(data.news); }, 'json'); }*/ newz = { pg: 0, next: function() { this.pg++; var top = this.pg * -250; if (this.pg > 0) $('#news-more-prev').css('visibility', 'visible'); if (this.pg >= 1000) $('#news-more-next').css('visibility', 'hidden'); $('#newsCont').animate({'top': top + 'px'}, 1000); }, prev: function() { this.pg--; var top = this.pg * -250; if (this.pg 0) $('#gallery .prev').css('visibility', 'visible'); if (this.pg >= $('#gallery ul li').length - this.showimg) $('#gallery .next').css('visibility', 'hidden'); $('#gallery ul').animate({'left': left + 'px'}, 1000); }, prev: function() { this.pg--; var left = this.pg * -140; if (this.pg