/*annihilate the original CSS :-)*/
$$('link[rel=stylesheet]').forEach(x=>(x.href=''));
$$('style').forEach(x=>(x.textContent=''));
nullifyCSS(document.documentElement); nullifyCSS(document.body);
var whichBlog = document.title.match(/幻の桜|ごろにゃん|フィクサー/);
/*FSM description*/
var currentImgState, previousImgState, nextImgState;
var imgStateList = ['load', 'stay', 'fadeout', 'fadein'];
var imgStateEntryAction = {
'load':function(){img.src = newImgSrc},
'stay':function(){},
'fadeout':function(){imgOpacityAnimationMsgBox.set('fadeout')},
'fadein':function(){imgOpacityAnimationMsgBox.set('fadein')},
};
var imgStateExitAction = {
'load':function(){imgLink.href = img.src; imgLinkSpan.vl(img.src.match(/[^\/]+$/)); img.resize();},
'stay':function(){},
'fadeout':function(){},
'fadein':function(){}
};
var imgStateToDisabled = {};
function makeImgStateTransition(newState){
if(typeof newState == 'undefined'){warn('makeImgStateTransition given undefined parameter.'); return;}
nextImgState = newState;/*nextImgState is set to a non-empty value only a while in this makeTransition code.*/
currentImgState && imgStateExitAction[currentImgState] && imgStateExitAction[currentImgState]();/*can see and get nextImgState variable value*/
currentImgState && imgStateToDisabled[currentImgState] && imgStateToDisabled[currentImgState].forEach(x=>{x.disabled=false});
[currentImgState, previousImgState, nextImgState] = [newState, currentImgState, ''];
imgStateEntryAction[currentImgState] && imgStateEntryAction[currentImgState]();
imgStateToDisabled[currentImgState] && imgStateToDisabled[currentImgState].forEach(x=>{x.disabled=true});
}
var contentListFlat = [...contentDiv.childNodes];/*ToDo: for later recreation of contentList*/
contentListFlat.forEach(function(x){contentDiv.removeChild(x)});
var control = cE('div');
st('position fixed left '+ (window.outerWidth - 250) +'px top 25px color red width 245px textAlign center');
st('display block');/*for later reference from tcB*/
/*st('whiteSpace nowrap');*/
toBeResized.push(control); control.resize = function(){this.style.left = (window.outerWidth - 250) +'px'};