function screenshotdetails(id,original){
a = 'screenshotfull'+id;
document.getElementById(a).innerHTML='<img src="'+original+'" onclick="screenshothide(\''+id+'\')"/>';
document.getElementById(a).style.display='block';
}

function screenshothide(id){
a = 'screenshotfull'+id;
document.getElementById(a).innerHTML='';
document.getElementById(a).style.display='none';
}

function statsload(url){
a = 'stats';
document.getElementById(a).style.display='block';
document.getElementById(a).src=url;
document.getElementById('download_stats').style.height='400px';
}

function statsloadv2(url){
a = 'download_stats';
document.getElementById(a).style.display='block';
document.getElementById(a).src=url;
document.getElementById('stats').style.height='400px';
}

function rating_update(value){
    for (a=1;a<=5;a++){
        b='star'+a;
    if (a<=value){
    	document.getElementById(b).className='rating_selected';
    } else {
    	document.getElementById(b).className='rating_deselected';
    }
    }

}

function hide_rating_form(){
    document.getElementById('rating_form').style.visibility='hidden';
    document.getElementById('rating_form_info').innerHTML='Please wait while we register your vote.';
    return true;
}
