﻿var ran_number = Math.random()*3;
ran_number = Math.ceil(ran_number);

mxBackground = function() {

    if(ran_number == 3) {
        document.body.style.background = '#FFFFFF url("/com/img/backgrounds/bg3.jpg") no-repeat bottom center;';
        document.body.style.backgroundAttachment="fixed";
    }else if(ran_number == 2) {
        document.body.style.background = '#E5CF9D url("/com/img/backgrounds/bg2.jpg") no-repeat bottom center;';
        document.body.style.backgroundAttachment="fixed";
    }else{
        document.body.style.background = '#E9F8FF url("/com/img/backgrounds/bg1.jpg") repeat-x bottom center;';
        document.body.style.backgroundAttachment="fixed";
    }
}

if(window.attachEvent) window.attachEvent("onload", mxBackground);