var showit = Math.round(Math.random());

if (showit == 1) {
    dolls = [
    "doll1",
    "doll2",
    "doll3"
    ]

    var dollnr = Math.floor(Math.random()*dolls.length);
    var doll = dolls[dollnr];

    // IE...
    if ( document.all ) {
        var heightpx = document.body.clientHeight;
        var widthpx = document.body.clientWidth;
    } else {
        var widthpx = window.innerWidth;
        var heightpx = window.innerHeight;
    }

//      alert (widthpx + " " + heightpx);

    var leftpx = Math.floor(Math.random()*widthpx);
    if (leftpx >= 980) { leftpx = 960; }
    var toppx = Math.floor(Math.random()*heightpx);

//      alert(leftpx + " " + toppx);

    for (i=0; i<= (dolls.length-1); i++) {
        if ( i == dollnr ) {
//         alert (doll);
            document.getElementById(doll).style.visibility = "visible";
            document.getElementById(doll).style.left = leftpx + "px";
            document.getElementById(doll).style.top = toppx + "px";
//             alert(document.getElementById(doll).style.left + " " + document.getElementById(doll).style.top);
        }
    }

    SET_DHTML(doll);
}