if (!MooTools) {
document.write("");
}
/////////////////////////////////////////////////////////////
///// Start ads js include ///////////////////////////
/////////////////////////////////////////////////////////////
currAdd_728x90 = 1; // the start
__delay = 30000;
ads_728x90 = [
[
{
title : "ANZ - leader",
id : "33",
file : "mardigras/ANZ_DMC_ClubPromo_728x90_v4.swf",
type : "swf",
target : "_blank",
link : "http://anzau.cardpix.com/VirtualPortfolio/VPClientWeb/Site/ANZAU/Marketing.aspx?PortfolioID=MIWBV",
width : 728,
height : 90
}] ,
[
{
title : "Leader - Cockfighters Ghost",
id : "10",
file : "mardigras/CFG web banner.jpg",
type : "jpg",
target : "_blank",
link : "http://www.poolesrock.com.au",
width : 728,
height : 90
}] ,
[
{
title : "REMO - leader",
id : "31",
file : "mardigras/GLMG_728X90px.jpg",
type : "jpg",
target : "_blank",
link : "http://www.remogeneralstore.com/mardigras ",
width : 728,
height : 90
}]
]
function generateObject_728x90 () {
var str = "";
var id = ads_728x90[currAdd_728x90][0].id;
var target = ads_728x90[currAdd_728x90][0].target;
var file = ads_728x90[currAdd_728x90][0].file;
var title = ads_728x90[currAdd_728x90][0].title;
var w = ads_728x90[currAdd_728x90][0].width;
var h = ads_728x90[currAdd_728x90][0].height;
if (ads_728x90[currAdd_728x90][0].type == "swf") {
str = ""
}
else {
str = "";
}
return str;
}
// Record that the ad has been clicked. Only gets used for FLASH items
function recordClick_728x90() {
$("__logger728x90").set("html", "
");
$("__form728x90").action = ads_728x90[currAdd_728x90][0].link;
$("__form728x90").submit();
//window.open(ads_728x90[currAdd_728x90][0].link);
}
// Push the ad to the screen
function doAd_728x90() {
var element = $("__rotator728x90");
var myEffects = new Fx.Morph(element, {
duration: 1000,
wait:false,
onComplete : function () {
$("__rotator728x90").set("html", generateObject_728x90(ads_728x90[currAdd_728x90][0]));
myEffects = new Fx.Morph(element, {duration: 1000, wait:false}).start({"opacity":1});
setViewd_728x90();
}
});
if (currAdd_728x90 >= ads_728x90.length-1) {
currAdd_728x90 = 0;
}
else {
++currAdd_728x90
}
myEffects.start({"opacity":0})
}
// Set the ad to be classed as "viewed" so if the page reloads we know where to continue from in the cycle.
function setViewd_728x90() {
$("__logger728x90").set("html", "
");
}
// Attach the event onload to start the ads running
window.addEvent('domready', function(){
if($("__rotator728x90")) {
$("__rotator728x90").set("html", generateObject_728x90(ads_728x90[currAdd_728x90][0])).setOpacity(0);
//window.addEvent("load", function () {
doAd_728x90();
// });
if (ads_728x90.length > 1) {
//window.addEvent("load", function () {
setInterval("doAd_728x90()", (__delay));
// });
}
}
});
/////////////////////////////////////////////////////////////
///// End ads js include /////////////////////////////
/////////////////////////////////////////////////////////////
// Write the ad rotator container
document.write("