function makeArray(n) {

        this.length = n;
        for (var i = 0; i<= n; i++) {
                this[i] = 0
        }
        return this
}

function link(link1,link2,title,banner) {
        this.link1 = link1;
        this.link2 = link2;
        this.title = title;
        this.banner = banner;
        return this
}

function RanNum() {

        today = new Date();
        num = Math.abs(Math.sin(today.getSeconds() + today.getMinutes()));
        return (num);
}

function reLoad() {

        location.href="rlink.htm";
}

function getRandomLink() {

        n=Math.abs(Math.round(n1 * RanNum()));
          ausgabe();
}
var n1 = 35; /* Anzahl der Banner Minus eins  */

function getRandomLink() {

        n=Math.abs(Math.round(n1 * RanNum()));
          ausgabe();
}

function getRandomLink2() {

        n=Math.abs(Math.round(n1 * RanNum()))+1;
        if(n>n1){ n=n-2}
        ausgabe();
}

function ausgabe() {

        var db = new makeArray(2) /* Anzahl der Banner */
          /* Erster Eintrag: Die URL, auf die der Banner verlinken soll; Zweiter Eintrag: Die URL, auf die der Beschreibungstext linken soll;
             Dritter Eintrag: Der Beschreibungs und ALT-Text; Vierter Eintrag: Die Banner-URL;  Einträge nach diesem Schema beliebig erweiterbar*/

db[0] = new link("http://www.sticker-onlineshop.de/etiketten-c-36.html", "", "Etiketten", "http://www.sticker-onlineshop.de/picture/categories/start/etiketten.jpg")
db[1] = new link("http://www.sticker-onlineshop.de/etiketten-haushaltsetiketten-c-36_31.html", "", "Haushaltetiketten", "http://www.sticker-onlineshop.de/picture/categories/start/haushaltetiketten.jpg")
db[2] = new link("http://www.sticker-onlineshop.de/etiketten-tiefkuehletiketten-c-36_32.html", "", "Tiefkühletiketten", "http://www.sticker-onlineshop.de/picture/categories/start/tiefkuehletiketten.jpg")
db[3] = new link("http://www.sticker-onlineshop.de/beauty-c-33.html", "", "Beauty",  "http://www.sticker-onlineshop.de/picture/categories/start/beauty.jpg")
db[4] = new link("http://www.sticker-onlineshop.de/beauty-body-crystals-c-33_34.html", "", "Body Crystals", "http://www.sticker-onlineshop.de/picture/categories/start/body_crystals.jpg")
db[5] = new link("http://www.sticker-onlineshop.de/beauty-tattoos-c-33_35.html", "", "Tattoos",  "http://www.sticker-onlineshop.de/picture/categories/start/tattoos.jpg")
db[6] = new link("http://www.sticker-onlineshop.de/fantasy-collage-sticker-c-37_38.html", "", "Collage Sticker ",  "http://www.sticker-onlineshop.de/picture/categories/start/collage_stickers.jpg")
db[7] = new link("http://www.sticker-onlineshop.de/fantasy-metallic-sticker-c-37_39.html", "", "Metallic Sticker",  "http://www.sticker-onlineshop.de/picture/categories/start/tattoos.jpg")
db[8] = new link("http://www.sticker-onlineshop.de/motive-wickie-c-53_310.html", "", "Wickie und die starken Männer",  "http://www.sticker-onlineshop.de/picture/categories/start/wickie.jpg")
db[9] = new link("http://www.sticker-onlineshop.de/motive-disney-stars-c-53_95.html", "", "Disney-Stars", "http://www.sticker-onlineshop.de/picture/categories/start/disney.jpg")
db[10] = new link("http://www.sticker-onlineshop.de/creative-collage-sticker-c-43_44.html", "", "Collage Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/collage_sticker.jpg")
db[11] = new link("http://www.sticker-onlineshop.de/creative-glamour-sticker-c-43_46.html", "", "Glamour Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/flower_sticker.jpg")
db[12] = new link("http://www.sticker-onlineshop.de/creative-metallic-sticker-c-43_48.html", "", "Nostalgic Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/nostalgic_folien_sticker.jpg")
db[13] = new link("http://www.sticker-onlineshop.de/creative-papier-sticker-c-43_50.html", "", "Papier Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/papier_sticker.jpg")
db[14] = new link("http://www.sticker-onlineshop.de/creative-scherenschnitt-c-43_62.html", "", "Scherenschnitt", "http://www.sticker-onlineshop.de/picture/categories/start/scherenschnitt.jpg")
db[15] = new link("http://www.sticker-onlineshop.de/leuchtsticker-c-52.html", "", "Leuchtsticker",  "http://www.sticker-onlineshop.de/picture/categories/start/leuchtsticker.jpg")
db[16] = new link("http://www.sticker-onlineshop.de/motive-liebe-c-53_57.html", "", "Liebe",  "http://www.sticker-onlineshop.de/picture/categories/start/liebe.jpg")
db[17] = new link("http://www.sticker-onlineshop.de/motive-fussball-c-53_65.html", "", "Fussball",  "http://www.sticker-onlineshop.de/picture/categories/start/fussball.jpg")
db[18] = new link("http://www.sticker-onlineshop.de/schule-c-55.html", "", "Schule",  "http://www.sticker-onlineshop.de/picture/categories/start/buchetiketten.jpg")
db[19] = new link("http://www.sticker-onlineshop.de/sonstiges-c-58.html", "", "Alles andere",  "http://www.sticker-onlineshop.de/picture/categories/start/zubehoer.jpg")
db[20] = new link("http://www.sticker-onlineshop.de/zubehoer-caselogic-sicherheit-c-186_192.html", "", "CaseLogic Sicherheit", "http://www.sticker-onlineshop.de/picture/categories/start/sicherheit.jpg")
db[21] = new link("http://www.sticker-onlineshop.de/sonstiges-stickeralben-c-58_60.html", "", "Stickeralben",  "http://www.sticker-onlineshop.de/picture/categories/start/stickeralben.jpg")
db[22] = new link("http://www.sticker-onlineshop.de/motive-blumen-c-53_70.html", "", "Blumen",  "http://www.sticker-onlineshop.de/picture/categories/start/flower_sticker.jpg")
db[23] = new link("http://www.sticker-onlineshop.de/creative-glimmer-sticker-c-43_71.html", "", "Glimmer Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/flower_sticker.jpg")
db[24] = new link("http://www.sticker-onlineshop.de/feste-feiern-ostern-c-83_77.html", "", "Osterschmuck", "http://www.sticker-onlineshop.de/picture/categories/start/osterschmuck.jpg")
db[25] = new link("http://www.sticker-onlineshop.de/feste-feiern-weihnachten-c-83_84.html", "", "Weihnachtszeit", "http://www.sticker-onlineshop.de/picture/categories/start/weihnachten.jpg")
db[26] = new link("http://www.sticker-onlineshop.de/creative-jelly-stickers-c-43_100.html", "", "Jelly Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/jelly.jpg")
db[27] = new link("http://www.sticker-onlineshop.de/holo-sticker-c-104.html", "", "Holo Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/holo.jpg")
db[28] = new link("http://www.sticker-onlineshop.de/luftballongesichter-c-109.html", "", "Luftballongesichter", "http://www.sticker-onlineshop.de/picture/categories/start/luftballongesichter.jpg")
db[29] = new link("http://www.sticker-onlineshop.de/handy-c-110.html", "", "Handyschmuck", "http://www.sticker-onlineshop.de/picture/categories/start/handyschmuck.jpg")
db[30] = new link("http://www.sticker-onlineshop.de/schrift-zahlen-buchstaben-ballonsticker-zahlen-c-72_160.html", "", "Ballonsticker ABC + Zahlen", "http://www.sticker-onlineshop.de/picture/categories/start/abc.jpg")
db[31] = new link("http://www.sticker-onlineshop.de/cddvd-cddvd-zubehoer-caselogic-c-158_179.html", "", "CD und DVD Ordner", "http://www.sticker-onlineshop.de/picture/categories/start/CDDVD_ordner.jpg")
db[32] = new link("http://www.sticker-onlineshop.de/zubehoer-caselogic-laptoptasche-c-186_187.html", "", "Laptoptaschen und Shuttle", "http://www.sticker-onlineshop.de/picture/categories/start/laptoptaschen.jpg")
db[33] = new link("http://www.sticker-onlineshop.de/motive-smiley-world-c-53_238.html", "", "Smiley World", "http://www.sticker-onlineshop.de/picture/categories/start/smiley.jpg")
db[34] = new link("http://www.sticker-onlineshop.de/beauty-gesichtssticker-c-33_240.html", "", "Gesichts-Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/gesichts-sticker.jpg")
db[35] = new link("http://www.sticker-onlineshop.de/beauty-nagel-sticker-c-33_262.html", "", "Nagel-Sticker", "http://www.sticker-onlineshop.de/picture/categories/start/nagel-sticker.jpg")

        document.write("<a href='" + db[n].link1 + "' target='_self'>");
        document.write("<img src='"+ db[n].banner + "' border='0'  HEIGHT=73  ALT='" + db[n].title + "'>" + db[n].title + "</a><br>");
        document.write("</FONT></center>");
}
