};
// If Mozilla is used
-if ( $.browser == "mozilla" ) {
+if ( $.browser == "mozilla" || $.browser == "opera" ) {
// Use the handy event callback
document.addEventListener( "DOMContentLoaded", $.ready, null );
} else if ( $.browser == "msie" ) {
// Only works if you document.write() it
- document.write('<script id="__ie_init" defer="true" ' +
- 'src="javascript:void 0"><\/script>');
+ document.write('<scr' + 'ipt id=__ie_init defer=true ' +
+ 'src=javascript:void(0)><\/script>');
// Use the defer script hack
var script = document.getElementById('__ie_init');
// Clear from memory
script = null;
-// If Safari or Opera is used
-} else {
+// If Safari is used
+} else if ( $.browser == "safari" ) {
$.$$timer = setInterval(function(){
if ( document.readyState == "loaded" ||
document.readyState == "complete" ) {