rem:  maximize = document.createElement('div'); maximize.innerHTML = createMaximizeButton(idApplet); maximize.style.cssFloat = 'center'; maximize.style.marginBottom = '10px';  
context: function doApplet(idImg, idApplet, basePath, main, width, height, keys, values, noresize) {		var image = document.getElementById(idImg);		appletObject = new Object();	applets[applets.length] = appletObject;	appletObject.id = idApplet;			//Disable all edit buttons	for(var idButton in appletButtons) {		var button = document.getElementById(idButton);		if(button) {			button.style.display = "none";		}	}		if(!width || width <= 0) {		width = getParentWidth(image);	}	image.style.width = width + 'px';	image.style.height = height;	//Replace existing content with loading message	image.innerHTML = '<div style="position:absolute;z-index:0">Loading...</div>';	setClass(image, 'thumbinner');	//First create a new div for the applet and add it to the idImg	appletDiv = document.createElement('div');	appletObject.div = appletDiv;	appletDiv.id = idApplet;	setClass(appletDiv, 'internal');	appletDiv.style.width = '100%';	appletDiv.style.height = '95%';	appletDiv.style.clear = 'both';	image.appendChild(appletDiv);			//Create maximize div	maximize = document.createElement('div');	maximize.innerHTML = createMaximizeButton(idApplet);	maximize.style.cssFloat = 'center';	maximize.style.marginBottom = '10px';	//Create resize hint	resize = document.createElement('div');	resize.innerHTML = '<img src="/skins/common/images/resize.png"/>';	resize.style.position = 'absolute';	resize.style.bottom = '0';	resize.style.right = '0';	image.appendChild(resize);	image.appendChild(maximize);	var appletHTML = getAppletHTML(idApplet, '100%', '100%', main, basePath, 'wikipathways.jar', keys, values);		appletObject.appletHTML = appletHTML;		if(!noresize) {		var resizeable = new Resizeable(idImg, {bottom: 10, right: 10, left: 0, top: 0});		appletObject.resizeable = resizeable;	}		//ao.load( idApplet );	setTimeout('addApplet("' + idApplet + '", "' + appletDiv.id + '")', 500);}
meta: 7966	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7966/8dc9a19baf2e94771d3b379c8858c567768d5f75/editapplet.js/buggy/wpi/js/editapplet.js