/* basic object */
function JServer() {
    this.serverPath = "http://mercury.tiser.com.au/jserver/";
    this.pageNum = Math.round(Math.random() * 100000000);
}

/* write() method - normal */
JServer.prototype.write = function(ad) {
    var rnd = Math.round(Math.random() * 100000000);
    document.write("<scr");
    document.write("ipt type=\"text/javascript\" src=\""+this.serverPath+"acc_random=" + rnd + ad + "pageid=" + this.pageNum + "\">");
    document.write("ipt>");
    document.write("</scr");
    document.write("ipt>");
}

/* alternative version for akamai static image failover */
/*
JServer.prototype.write = function(ad) {
    document.write("<img src=\"PATH_TO_FAILOVE_IMAGE\"/>");
}
*/

jserve = new JServer();


