
__INT_LAYERS_HEIGHT__=[];

function swap_layer_height(strLayerName){
	if(typeof __INT_LAYERS_HEIGHT__[strLayerName]=="undefined"){
		__INT_LAYERS_HEIGHT__[strLayerName]=dlib_layers(strLayerName, HEIGHT);
	}

	if(dlib_layers(strLayerName, HEIGHT)!=__INT_LAYERS_HEIGHT__[strLayerName]){
		 dlib_layers(strLayerName, HEIGHT, __INT_LAYERS_HEIGHT__[strLayerName]);
	}
	else {
		dlib_layers(strLayerName, HEIGHT, AUTO);
	}
	swapcloseimg(strLayerName);
}

function swapcloseimg(strLayerID) {
	var elnReadMore = "RM_"+strLayerID;
	var elnClose = "CL_"+strLayerID;
	showOrHideCopy(elnReadMore);
	showOrHideCopy(elnClose);
}

var intMaxCopyLength = 95;