var count=0;
var lastcount=0;

function fadein(oBj){
	oBj.style.filter='alpha(opacity=60)';
}

function fadeout(oBj){
	oBj.style.filter='alpha(opacity=100)';
}

function shimmer(){
	if(count>0){
		lastcount=count;
		document.getElementById(lastcount).style.filter='alpha(opacity=100)';
	}
	
	count=rand(1,16);
	document.getElementById(count).style.filter='alpha(opacity=50)';
	
	setTimeout("shimmer()",200);
}

function rand( min, max ) {   
    // Returns a random number     
    //    
    // version: 810.1317   
    // discuss at: http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_rand   
  
    // +   original by: Leslie Hoare   
    // +   bugfixed by: Onno Marsman   
    // *     example 1: rand(1, 1);   
    // *     returns 1: 1   
    var argc = arguments.length;   
    if (argc == 0) {   
        min = 0;   
        max = 2147483647;   
    } else if (argc == 1) {   
        throw new Error('Warning: rand() expects exactly 2 parameters, 1 given');   
    }   
    return Math.floor(Math.random() * (max - min + 1)) + min;   
}  

function move(loc){
	location=loc;
}

function greyup1(a){
	a.style.color='#888888';
	window.status='';return true;
}

function greydown1(a){
	a.style.color='#000000';
}