/*
* bloco_options.js
*/
//Show options, pass options from XUL to HTML and get it quickly

function bloco_options_getBoolPref(name)
{
	var value=localStorage.getItem(name);
	if(value=="true")
		return true;
	else
		return false;
}
function bloco_options_getIntegerPref(name)
{
	var value=localStorage.getItem(name);
	return (+value);
}
function bloco_options_setDefault()
{
	localStorage.music=true;
	localStorage.telemetry=true;
	

}
function bloco_options_setPref(name,value){
	localStorage.setItem(name,value);
}
function bloco_options_getPref(name)
{
	return localStorage.getItem(name);
}
function bloco_options_firstRun()
{
	if(localStorage.firstRun==undefined)
		return true;
	else
		return false;
}
/*
* Read save options: var <variable>=JSON.parse(sessionStorage.loaded).<variable>;
*/