function initLayout(){
	var el = document.getElementsByTagName('a');
	if(el.length){
		for(var i=0; i<el.length; i++){
			if (!document.addEventListener && document.attachEvent){
				el[i].attachEvent("focus", function(){ blur(); }, false)
			}else{
				el[i].addEventListener("focus", function(){ blur(); }, false)
			}
		}
	}
}

function ShowCreateStory(url){
	var D = document;
	var H = Math.max(
		Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
		Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
		Math.max(D.body.clientHeight, D.documentElement.clientHeight)
	);
	$('childstory_overbox').style.height=H+'px';
	new Effect.Appear('childstory_overbox', {from: 0.0, to: 0.7});
	new Effect.Appear('childstory_overframe');
	$('childstory_overframe').src = url;
}


