// space for defining parameters

var tp_nonsenseVariable = "I am rocketman.";
var tp_firstRun = tp_fullSuperAutomatic;
// DO NOT MODIFY SCRIPT BELOW THIS POINT
// ************************************* 

// Ways to load script without waiting for entire page to finish,
// just waits for the DOM to finish:
// cf. dean.edwards.name/weblog/2005/09/busted/

// part a. tested in Opera 9.27, Firefox 2, and Safari 3.1
// part b. works in IE6&7 
// safari (3.0 mac platform way)
if (/WebKit/i.test(navigator.userAgent)) { // sniff
  var _timer = setInterval(function() {
    if (/loaded|complete/.test(document.readyState)) {
      clearInterval(_timer);
      tp_firstRun(); // call the onload handler
    }
  }, 10);
} else if (document.addEventListener) { // Moz and others
//alert(' moz and other way ');
	document.addEventListener( "DOMContentLoaded", tp_firstRun, false );
} else { // the IE way
//alert(' ie way ');
	document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
	var script = document.getElementById("__ie_onload");
	script.onreadystatechange = function() {
		if (this.readyState === "complete") {
			tp_firstRun(); // call the onload handler
		}
	};
}
