// CAST-A-ROONY! © Graham Budgett 2009 
function castaroony( ) {
    var sw=screen.availWidth; 
    var sh=screen.availHeight;
    window.moveTo(1, 1);
    window.resizeTo(sw, sh);   
        grid=function( ) { 
                for( x=0; x <sh/100; x++ ) {					
                    var horizon = document.createElement("div");			
                        horizon.style.width = 100 + "%";
                        horizon.style.height = 1 + "px";
                        horizon.style.backgroundColor="darkgreen";
                        horizon.style.position = "absolute"
                        horizon.style.left = 0 + "px";
                        horizon.style.top = ( x * 100 ) + "px";
                        horizon.style.zindex = 110;
                    var v = document.getElementById("bg");
                        v.appendChild( horizon );
                }
                for ( y=0; y <sw/100; y++) {	
                    var vert = document.createElement("div");					
                        vert.style.width = 1 + "px";
                        vert.style.height = 100 + "%";
                        vert.style.backgroundColor="darkgreen";
                        vert.style.position = "absolute"
                        vert.style.left = ( y * 100 ) + "px";
                        vert.style.top = 0 + "px";
                        vert.style.zindex = 110;
                    var v = document.getElementById("bg");
                        v.appendChild( vert );                   
                }         	
            }
        var roons = [
        "☁","☂","☃","☄","★","☆","☇","☈","☉","☊","☋","☌","☍","☎","☏","☑","☒","☖","☻","☙",
        "☚","☛","☟","☝","☀","♨","☠","✡", "☢","☣","☤","☥","☦","☧","☩","☪","☫","☬","☭","☮",
        "☯","☼","☽","☾","☿","♀","♁","♂","♃","♄","♅","♆","♇","♈","♉","♊","♋","♌","♍","♎",
        "♏","♒","♑","♓","♔","♕","♖","♗","♘","♙","♠","♢","♤","♥","♣","♡","♦","♧",
        "♩","♪","♫","♬","♭","♮","♯","♲","⚀","⚁","⚂","⚃","⚄","⚅","♚","♛","♜","♝","♞","♟",
        "&#9775;","&#9784;","&#9785;","&#8987;","&#9872;","&#9986;","&#9992;",
        "&#9993;","&#9996;","&#9997;","&#9999;","&#63743;","&#255;","&#10052;"
        ];        
        for(var i=0; i<=3; i++) {
        var r = Math.floor(Math.random( )*255);
        var g = Math.floor(Math.random( )*255);
        var b = Math.floor(Math.random( )*255);
        var s = Math.floor(Math.random( )*sh);
        var l = Math.floor(Math.random( )*sw)*0.8;
        var t = Math.floor(Math.random( )*sh)*0.5;
        var o = Math.random( );  /* for IE */ var oie = Math.floor(Math.random( )*100); 
        var z = Math.floor(Math.random( ));
        var a = Math.floor(Math.random( )*(roons.length));
        var roony = document.createElement('div'); 
        roony.innerHTML = roons[a];
        roony.style.color = 'rgb(' +  r + ',' + g + ',' + b + ')'; 
        roony.style.position = 'absolute';
        roony.style.left = l + 'px';
        roony.style.top = t + 'px';
        roony.style.fontFamily = 'wingdings';
        roony.style.fontSize = s/50 + 'em';
        roony.style.textShadow='.01em .015em .05em #000, -.005em -.007em .002em #FFF';
        roony.style.opacity = (o + 0.25);  
        /*IE opacity*/   roony.style.filter="alpha(opacity=" + oie + "+" + 25 + ")"; 
        roony.style.zindex = (z * 120);        
        document.getElementById('area').appendChild(roony);
    }
}
function visclu( ) {    
        var hide = document.getElementById('text');
        hide.style.visibility = 'hidden';
}
