context: function doApplet(idImg, idApplet, basePath, main, width, height, keys, values, noresize) {	var image = document.getElementById(idImg);		//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;	//Clear all existing content	image.innerHTML = '';	setClass(image, 'thumbinner');	//First create a new div for the applet and add it to the idImg	appletDiv = document.createElement('div');	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(idImg);	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 ao = new AppletObject(	main,				[basePath + '/wikipathways.jar'],				'100%', '100%', '1.5.0', 'false',				basePath,				[],				AppletObjects.TAG_OBJECT );	if(keys != null && values != null) {		for(i=0; i < keys.length; i++) {					ao.addParam(keys[i], values[i]);		}	}		if(!noresize) {		new Resizeable(idImg, {bottom: 10, right: 10, left: 0, top: 0});	}		ao.load( idApplet );}
meta: 7966	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7966/835b03a8d722cc33eed076a92ed7ae0760d6012a/editapplet.js/buggy/wpi/js/editapplet.js