﻿var clearBoss = 0; function scrollbarEvent(o, a) { if (a == "mousedown") { if (o.className == "Scrollbar-Track") o.style.backgroundColor = "#E3E3E3"; else o.style.backgroundColor = "#BBB" } else { if (o.className == "Scrollbar-Track") o.style.backgroundColor = "#EEE"; else o.style.backgroundColor = "#CCC" } } jQuery(function(c) { c('* a').hover(function() { c(this).css("color", "#60ff09") }, function() { c(this).css("color", "White") }); c.tablesorter.addParser({ id: "custom_numeric", is: function(s) { return false }, format: function(s) { var a = /<("[^"]*"|'[^']*'|[^'">])*>/gi; var b = c.trim(s.toLowerCase()).replace(a, ""); b = c.trim(b.toLowerCase()).replace(/[\s\S]{3}$/gi, ""); return b }, type: "numeric" }); c.tablesorter.addParser({ id: "custom_text", is: function(s) { return false }, format: function(s) { var a = /<("[^"]*"|'[^']*'|[^'">])*>/gi; var b = c.trim(s.toLowerCase()).replace(a, ""); return b }, type: "text" }); c(".tablesorter").tablesorter({ widthFixed: true, widgets: ['zebra'], headers: { 0: { sorter: false }, 1: { sorter: 'custom_text' }, 2: { sorter: 'custom_text' }, 3: { sorter: 'custom_text' }, 4: { sorter: 'custom_numeric' }, 5: { sorter: 'custom_text'}} }).tablesorterPager({ container: c("#pager"), positionFixed: false }); c('#SortedColumn').attr('value', '3'); c('#SortDirection').attr('value', '1'); c(".tablesorter tr").hover(function() { if (c(this).is(".odd")) { c(this).removeClass("odd"); c(this).addClass("oddold") } c(this).find("td").addClass("over") }, function() { if (c(this).is(".oddold")) { c(this).addClass("odd"); c(this).removeClass("oddold") } c(this).find("td").removeClass("over") }); c("a.group").fancybox(); if (c.browser.msie == 0) { c("a.group img").fadeTo(0, 0.8); c("a.group img").hover(function() { c(this).fadeTo(0, 1.0) }, function() { c(this).fadeTo(0, 0.8) }) } c(document).pngFix(); c.fn.supersized.options = { startwidth: 1024, startheight: 768, slideshow: 1, slideinterval: 7000, navigation: 0, transition: 1, pause_hover: 0, slide_counter: 1, slide_captions: 1 }; var d = c('#supersized > img').size(); var e = Math.floor(d * Math.random()); c("#supersized img").eq(e).addClass('activeslide'); c('#supersized').supersized(); c("#supersized").css("visibility", "visible"); scroller = new jsScroller(document.getElementById("Scrolldiv"), 650, 400); scrollbar = new jsScrollbar(document.getElementById("Scrollbar-Container"), scroller, true, scrollbarEvent); if (c('#dnn_Loggued').attr('value') == "1") { if (c.browser.mozilla) { c(".scrolldiv *").focus(function() { scrollbar.scrollBy(0, c(this).offset().top - 110) }) } else { c(".scrolldiv *").focus(function() { scrollbar.scrollBy(0, c(this).offset().top - 170) }) } } if (c.browser.msie) { try { document.execCommand("BackgroundImageCache", false, true) } catch (err) { } } c('img.image0').data('ad-desc', c('.description0').html()); c('img.image1').data('ad-desc', c('.description1').html()); c('img.image2').data('ad-desc', c('.description2').html()); c('img.image3').data('ad-desc', c('.description3').html()); c('img.image4').data('ad-desc', c('.description4').html()); c('img.image5').data('ad-desc', c('.description5').html()); c('img.image6').data('ad-desc', c('.description6').html()); c('img.image7').data('ad-desc', c('.description7').html()); c('img.image8').data('ad-desc', c('.description8').html()); c('img.image9').data('ad-desc', c('.description9').html()); var f = c('.ad-gallery').adGallery({ description_wrapper: c('.ad-image-wrapper'), effect: 'fade', callbacks: { afterImageVisible: function() { if (clearBoss == 0) { c('.ad-image-wrapper').empty(); clearBoss = 1 } } } }) });
