 var parentDiv = document.getElementById("xwikitext");  if(parentDiv) {  var showBtn = document.createElement("div"); showBtn.setAttribute("id", "show-dialog-btn"); showBtn.setAttribute("onclick", what+"Fullscreen();"); showBtn.setAttribute("title", "$msg.get("fullScreenTooltip")"); var textdiv = document.getElementById("xwikieditcontent"); parentDiv.insertBefore(showBtn, textdiv);   var newdiv = document.createElement("div"); newdiv.setAttribute("id", "fullscreen-dlg");   var newdivhd = document.createElement("div"); newdivhd.setAttribute("id", "fullscreen-dlg-head");   var closeBtn = document.createElement("div"); closeBtn.setAttribute("id", "closeBtn"); closeBtn.setAttribute("onclick", what+"Hide();"); newdivhd.appendChild(closeBtn);  var title = document.createElement("div"); title.setAttribute("class", "titleText"); title.appendChild(document.createTextNode("Fullscreen Editing")); newdivhd.appendChild(title);   var newdivbd = document.createElement("div"); newdivbd.setAttribute("id", "fullscreen-dlg-body");  var newdivbdtab = document.createElement("div"); newdivbdtab.setAttribute("id", "fullscreen-dlg-body-tab"); newdivbd.appendChild(newdivbdtab);  newdiv.appendChild(newdivhd); newdiv.appendChild(newdivbd);  var backBtn = document.createElement("div"); backBtn.setAttribute("class", "backBtn"); backBtn.setAttribute("onclick", what+"Hide();"); var btnText = document.createElement("div"); btnText.setAttribute("class", "btnText"); btnText.appendChild(document.createTextNode("Back")); backBtn.appendChild(btnText);  newdivbd.appendChild(backBtn);  document.body.appendChild(newdiv); } 
var parentDiv = document.getElementById("xwikitext"); if(parentDiv) {  var showBtn = document.createElement("div"); showBtn.setAttribute("id", "show-dialog-btn"); Event.observe(showBtn, "click", new Function(what+"Fullscreen()"), true); showBtn.setAttribute("title", "$msg.get("fullScreenTooltip")"); var textdiv = document.getElementById("xwikieditcontent"); parentDiv.insertBefore(showBtn, textdiv);   var newdiv = document.createElement("div"); newdiv.setAttribute("id", "fullscreen-dlg");   var newdivhd = document.createElement("div"); newdivhd.setAttribute("id", "fullscreen-dlg-head");   var closeBtn = document.createElement("div"); closeBtn.setAttribute("id", "closeBtn"); Event.observe(closeBtn, "click", new Function(what+"Hide()"), true); newdivhd.appendChild(closeBtn);  var title = document.createElement("div"); title.setAttribute("class", "titleText"); title.appendChild(document.createTextNode("Fullscreen Editing")); newdivhd.appendChild(title);   var newdivbd = document.createElement("div"); newdivbd.setAttribute("id", "fullscreen-dlg-body");  var newdivbdtab = document.createElement("div"); newdivbdtab.setAttribute("id", "fullscreen-dlg-body-tab"); newdivbd.appendChild(newdivbdtab);  newdiv.appendChild(newdivhd); newdiv.appendChild(newdivbd);  var backBtn = document.createElement("div"); backBtn.setAttribute("class", "backBtn"); Event.observe(backBtn, "click", new Function(what+"Hide()"), true); var btnText = document.createElement("div"); btnText.setAttribute("class", "btnText"); btnText.appendChild(document.createTextNode("Back")); backBtn.appendChild(btnText);  newdivbd.appendChild(backBtn);  document.body.appendChild(newdiv); } 
function fullscreenEdit(what) {		var parentDiv = document.getElementById("xwikitext");			if(parentDiv) {	    //Fullscreen button			var showBtn = document.createElement("div");		showBtn.setAttribute("id", "show-dialog-btn");		showBtn.setAttribute("onclick", what+"Fullscreen();");		showBtn.setAttribute("title", "$msg.get("fullScreenTooltip")");		var textdiv = document.getElementById("xwikieditcontent");				parentDiv.insertBefore(showBtn, textdiv);				//fullscreen div		var newdiv = document.createElement("div");		newdiv.setAttribute("id", "fullscreen-dlg");				//fullscreen div header		var newdivhd = document.createElement("div");		newdivhd.setAttribute("id", "fullscreen-dlg-head");				//close button		var closeBtn = document.createElement("div");		closeBtn.setAttribute("id", "closeBtn");		closeBtn.setAttribute("onclick", what+"Hide();");		newdivhd.appendChild(closeBtn);				var title = document.createElement("div");		title.setAttribute("class", "titleText");	    title.appendChild(document.createTextNode("Fullscreen Editing"));	    newdivhd.appendChild(title);				//fullscreen div body		var newdivbd = document.createElement("div");		newdivbd.setAttribute("id", "fullscreen-dlg-body");				var newdivbdtab = document.createElement("div");		newdivbdtab.setAttribute("id", "fullscreen-dlg-body-tab");		newdivbd.appendChild(newdivbdtab);				newdiv.appendChild(newdivhd);		newdiv.appendChild(newdivbd);					var backBtn = document.createElement("div");		backBtn.setAttribute("class", "backBtn");		backBtn.setAttribute("onclick", what+"Hide();");		var btnText = document.createElement("div");		btnText.setAttribute("class", "btnText");		btnText.appendChild(document.createTextNode("Back"));		backBtn.appendChild(btnText);					newdivbd.appendChild(backBtn);				document.body.appendChild(newdiv);		}}
6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6184/ec77463db247d35899d51d13cac41523a57f8328/fullscreenEdit.js/clean/xwiki-platform-web/standard/src/main/webapp/skins/albatross/fullscreenEdit.js