//This first line is to ensure the ready function fires if the back button is used to reach the page
history.navigationMode = 'compatible';
//$(document).ready(function(){
//	$(".daxcompact").show();
//	$(".liberation").show();
//});
/*
Examples:
instead of: <body onload="myfunction()">
use: addEvent(window, 'load', myfunction);

instead of: window.onload = myfunction;
use: addEvent(window, 'load', myfunction);
*/
function addEvent(obj, evType, fn) {
	if (obj.addEventListener){
		obj.addEventListener(evType, fn, true);
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent("on"+evType, fn);
		return r;
	} else {
		return false;
	}
}
function addEventToId(id, evType, fn) {
	addEvent(document.getElementById(id), evType, fn);
}
function setStyleById(i, p, v) {
	var n = document.getElementById(i);
	n.style[p] = v;
}
