code: function getPrefixed(name) {
  		var i, fn,
  		    prefixes = ['webkit', 'moz', 'o', 'ms'];
  
  		for (i = 0; i < prefixes.length && !fn; i++) {
  			fn = window[prefixes[i] + name];
  		}
  
  		return fn;
  	}
docs: inspired by http://paulirish.com/2011/requestanimationframe-for-smart-animating/