Memry= window.Memry || {};
Run= window.Run || {};
Memry.env={
	reqJS: 'mr_apps', addSrc: 2, loadlite: true, dob: new Date().getTime(),
	startfun: 'Run.toolbar;Run.prepPage1', sty: '#screenDiv{display:none}'
}
Run.prepPage1= function(){
	Run.getquote();
	var dr= Run.dr, doRight= Run.doRight, doBtn= Run.doBtn, mrs= Run.mrs,
	linkD= mr('linksDiv'), screenD= mr('screenDiv');
	var txt, sty, tem, who, elH, pa, pap, U, c= 'h2BtnClass', y= 'Yankee.apps.';
	doRight('a!','screenDiv').doforAll(function(who){
		tem= who.title;
		if(!tem) tem= who.href? who.href.filename(): '';
		if(tem){
			Run.mrs(who,'st='+tem+';title=');
			who.removeAttribute('title');
			Run.hot.setHot(who);
		}
	});
	var p1= doRight('h2$', linkD);
	elH= dr('h2_b4', p1,'hoo_gadgets','Yankee Web Works','','title=Webpage gadgets');
	pa= dr('ul_n2', elH,'gadgetsUl');
	doBtn(pa,'','Yankee Calendar', c,'st=Javascript Datebook', y+'calenday');
	doBtn(pa,'','Yankee Command', c,'st=mini-console', y+'command');
	doBtn(pa,'','Color mixer', c,'st=Web color Gadget', y+'colormix');
	doBtn(pa,'','Css Editor', c,'st=Style Sheets', y+'cssShow');
	doBtn(pa,'','The DOM Tree', c,'st=Explore the document', y+'tree');
	var elH2= dr('h2_b4', doRight('h2#', linkD),'','Puzzle and Games','','title=Games and Diversions');
	pa= dr('ul_n2', elH2);
	doBtn(pa,'','Areoka\'s Puzzle 9', c,'st=Scrambled Pictures', y+'p9er');
	if(Yankee.AJ(true)){
		doBtn(pa,'','Crypto Cavern', c,'st=Areoka\'s Cryptograms', y+'loadCrypt');
	}
	doBtn(pa,'','Word Jumble', c,'st=Scrambled Word Puzzle', y+'mixwords');
	doBtn(pa,'','Yankee Dice', c,'st=Simple craps game', y+'dice');
	pap= mr('practicalUL');
	doBtn(pap,'','Number Strings', c,'st=Numbers to words', y+'numstring');
	doBtn(pap,'','Fibonacci numbers', c,'st=The golden sequence', y+'fib');
	doBtn(pap,'','Prime Time', c,'st=Prime Numbers', y+'primeman');
	doBtn(pap,'','Calculator', c,'st=Simple math', y+'calc');
	doRight('h2!', linkD).doforAll(function(hoo){
		tem= hoo.title || '';
		txt= Run.sayWhat(hoo);
		var sty= 'color:black;offcolor=black;title=;st='+tem;
		doBtn(hoo,'rP_', txt,'h2BtnClass shopClass', sty,'Run.showNext');
	});
	mrs(doRight('ul', linkD,'id!=gadgetsUl'),'display:none');
	mrs('screenDiv','display:block');
	mrs('subH','title=Expand All');
	Run.hot.setHot('subH', function(){
		var who= mr('subH'), t= who.title;
		if(/^Expand/i.test(t)){
			mrs(doRight('ul!','linksDiv'),'display:');
			who.title= 'Collapse All';
		}
		else{
			mrs(doRight('ul!','linksDiv'),'display:none');
			who.title= 'Expand All';
		}
	});
	var S= Memry.aka.style_live;
	if(S){
		S= S.sheet || S.styleSheet;
		if(S){
			if(S.cssRules){
				var L= S.cssRules.length;
				while(L) S.deleteRule(--L);
			}
			else if(S.rules){
				var L= S.rules.length;
				while(L) S.removeRule(--L);
			}
			Run.zappit('style_live');
		}
	}
}
if(Run.first) Run.first.inf(Memry.env);