var browser = 0;

if(navigator.userAgent.indexOf("Opera",0) != -1){
  browser = 1;
}
else if(document.all){
  browser = 2;
}
else if(document.getElementById){
  browser = 3;
}
function GetObject(id){
  if(browser == 1 || browser == 3){
    return document.getElementById(id);
  }
  else if(browser == 2){
	   return document.all.item(id);
  }
}
function addEventSeter(target, type, func) {
  if(target.attachEvent) {
    target.attachEvent("on" + type, func);
  } else if(target.addEventListener) {
    target.addEventListener(type, func, true);
  } else {
    target["on" + type] = func;
  }
}
function changeBlack(){
	o = GetObject('body');
	o.style.backgroundColor = '#101020';
	o = GetObject('h1');
	o.style.backgroundColor = '#101020';
	o.style.color = '#101020';
}
