diff --git a/lib/parsers/parser_back_end.rb b/lib/parsers/parser_back_end.rb
index df78df69..c2de9804 100644
--- a/lib/parsers/parser_back_end.rb
+++ b/lib/parsers/parser_back_end.rb
@@ -74,7 +74,7 @@ module ParserBackEnd
ad_banner = AdBanner.find(tag.attr["id"]) rescue nil
if ad_banner
res << ""
res << "
"
ad_banner.ad_images.each do |ad_image|
diff --git a/lib/parsers/parser_front_end.rb b/lib/parsers/parser_front_end.rb
index 4b30d9c2..453053e5 100644
--- a/lib/parsers/parser_front_end.rb
+++ b/lib/parsers/parser_front_end.rb
@@ -89,7 +89,7 @@ module ParserFrontEnd
ad_banner = AdBanner.find(tag.attr["id"]) rescue nil
if ad_banner && ad_banner.display?
res << ""
res << "
"
ad_banner.ad_images.each do |ad_image|
diff --git a/public/static/kernel.js b/public/static/kernel.js
index aebf8ac6..c5b9a8a6 100644
--- a/public/static/kernel.js
+++ b/public/static/kernel.js
@@ -17,13 +17,12 @@ function ajax_load_proc(wapper,url){
wapper.html("Loading Failed");
});
}
-// Ad Banner FX code [start]
-function onAfter(e) {
- var parent = $(this).parent();
- var time_to_next = $(this).attr('time_to_next');
- parent.cycle('pause');
- setTimeout(function(){parent.cycle('resume')},time_to_next);
+
+// Ad Banner FX code [start]
+function getTimeout() {
+ return $(this).attr('time_to_next');
}
+
$(document).ready(function() {
$('.slideshow').children('img').click(function()
{