var e_StudioMax_ID = null;
function e_StudioMax_edit2() {
	e_StudioMax_ID = this.id;
	window.open("fullscreeneditor2.html", "EDITOR",
		    "resizable=yes,width=640,height=480,toolbar=no,scrollbar=no,statusbar=no,location=no,menubar=no");
};

function e_StudioMax_edit_remoteCall2(which) {
	e_StudioMax_ID = which;
	window.open("fullscreeneditor2.html", "EDITOR",
		    "resizable=yes,width=640,height=480,toolbar=no,scrollbar=no,statusbar=no,location=no,menubar=no");
};

function e_StudioMax_installEditable2(div) {
	if (!div.id) {
		alert("Found editable without an ID.  This is not good.  Following is the HTML text inside it:\n\n" +
		      div.innerHTML);
		return;
	}
	div.title = "Double-click to edit page content.";
	div.onmouseover = function() { this.className += " editable-hover"; };
	div.onmouseout = function() { this.className = "editable"; };
	div.ondblclick = e_StudioMax_edit2;
};

function e_StudioMax_initEditables2() {
	var DIVS = document.getElementsByTagName("div");
	for (var i = 0; i < DIVS.length; ++i) {
		var div = DIVS[i];
		if (/(^|\s)editable(\s|$)/.test(div.className))
			e_StudioMax_installEditable2(div);
	}
};

function e_StudioMax_publishEditables2() {
	var form = document.getElementById("frmEdit2");
	form.submit();
};
