var currindex = 0; //current ad var totalimg = 7; // total ads document.writeln("
"); document.writeln(""); document.writeln("\"\""); document.writeln(""); document.writeln(""); document.writeln("\"\""); document.writeln(""); document.writeln(""); document.writeln("\"\""); document.writeln(""); document.writeln(""); document.writeln("\"\""); document.writeln(""); document.writeln(""); document.writeln("\"\""); document.writeln(""); document.writeln(""); document.writeln("\"\""); document.writeln(""); document.writeln(""); document.writeln("\"\""); document.writeln(""); document.writeln("
"); (function(window, document, version, callback) { var j, d; var loaded = false; if (!(j = window.jQuery) || version > j.fn.jquery || callback(j, loaded)) { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"; script.onload = script.onreadystatechange = function() { if (!loaded && (!(d = this.readyState) || d == "loaded" || d == "complete")) { callback((j = window.jQuery).noConflict(1), loaded = true); j(script).remove(); } }; document.documentElement.childNodes[0].appendChild(script) } }) (window, document, "1.7.2", function($, jquery_loaded) { $(document).ready(function() { var interval = 5; //seconds function cycleImages(){ var active = $("#hexa_ads_img" + currindex); currindex++; if (currindex >= totalimg) currindex = 0; var next = $("#hexa_ads_img" + currindex); next.css("z-index", 2); //bring next one up 1 level active.fadeOut(1500, function(){ //fade out the top image active.css("z-index", 1).show(); //reset the z-index next.css("z-index", 3); //make the next image the top one }); } if (totalimg > 1) setInterval(cycleImages, interval * 1000); }); });