// Hacked together by Devin Austin
// devin@codedright.net

// Created by: Simon Willison | http://simon.incutio.com/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  changecss('.loading', 'display', 'none')
});

//document.getElementsByClassName("loading").style.display="none";

//Custom JavaScript Functions by Shawn Olson
//Copyright 2006
//http://www.shawnolson.net
//If you copy any functions from this page into your scripts, you must provide credit to Shawn Olson & http://www.shawnolson.net
//This file may not be used on adult sites
//or any site that incites hate
//or sites that are not child-friendly
//*******************************************
function changecss(theClass,element,value) {
//documentation for this script at http://www.shawnolson.net/a/503/
    var cssRules;
    if (document.all) {
        cssRules = 'rules';
    }
    else if (document.getElementById) {
        cssRules = 'cssRules';
    }
    for (var S = 0; S < document.styleSheets.length; S++){
        for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
	    if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
	        document.styleSheets[S][cssRules][R].style[element] = value;
	    }
        }
    }	
}


	

