google.load("jquery", "1.4.2");
google.load("jqueryui", "1.8.2");

function onLoad(){  
	//$(document).ready(function(){
		var iDoc = $("#loader")[0].contentDocument;
		$("#loader").load(
			function () { //The function executes only after the hidden iframe has finished loading
				$("#container", $("#loader")[0].contentDocument).bind("click", 
					function(){
						eval($("#container", $("#loader")[0].contentDocument)[0].innerHTML);
					}
				);
			}
		);
	//});
}
google.setOnLoadCallback(onLoad);
function onDebugLoad() {
	//initDebuggerConsole();
}
function onMainLoad() {
	renderHTML();
}
function executeScript(data) {
	try{
		$.globalEval(data);
	}catch(ex){
		alert(ex.message);
	}
}

