/*
*	bloco_utils.js
*/
function getParameter(name)
{
	return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
}
function logInfo(str){
	if(Components)
	{
		var consoleService = Components.classes["@mozilla.org/consoleservice;1"]
                                .getService(Components.interfaces.nsIConsoleService);
		consoleService.logStringMessage(str);
	}else{
		console.log(str);
	}
}
function degToRad(degrees) {
    return degrees * Math.PI / 180;
}