acic = "Auto CSS image crop";

function loadAutoCrop() {
	importScript('User:Codehydro/' + acic + '/functions.js');
	initReady();
}

function initReady() {
	if(window.initAutoCrop) {
		if(!window.autocrop) {
			efs = editform.style.cssText = "width:60%;float:left;";
			editform.parentNode.insertBefore(document.createElement("div"), editform.nextSibling).id = "autocrop";
			croptog.innerHTML = cropTogText;
			cropOpen = true;
			croptog.onclick = function() {
				autocrop.style.display = cropOpen ? "none" : "";
				editform.style.cssText = cropOpen ? "" : efs;
				croptog.innerHTML = cropTogText;
				cropOpen = !cropOpen;
			};
		}
		initAutoCrop();
		if(window.editform) window.innerHTML = "<a href='https://wikines.com/en/User:Codehydro/" + acic + "' target='_blank'>Help</a>";
	} else setTimeout(initReady, 9);
}
if(window.autocrop) {
	loadAutoCrop();
} else if(window.editform && !window.DisableAutoCropEverywhere) {
	(cropEditCSS = (document.head || document.getElementsByTagName("head")).appendChild(document.createElement("style"))).type = "text/css";
	(cropEditCSS.styleSheet || cropEditCSS) = "#croptog,#cropdoc,#autocrop{outline:1px solid;}#croptog{cursor:pointer;z-index:8;right:18px}#cform,#sizeinfo,#pc,#autotemp{margin-left:4px;}#autocrop{padding-top:3em;width:40%;height:auto;overflow:hidden}#cropdoc{margin-top:-3em;right:15em;}#croptog,#cropdoc{position:absolute;background-color:#eee;padding:0 0.5em;}#cropdoc a{text-decoration:none;color:#000;}";
	window.innerHTML = (cropTogText = );
	croptog.onclick = loadAutoCrop;
}