var ClassCache = new function() {
	var classes = new Array();
	this.load = function(name, myClass){
		classes[name] = myClass;
	};
	this.get = function(name){
		if(classes[name] != null){
			if(classes[name].staticInit) classes[name].staticInit();
			return classes[name];
		}
	};
	this.instantiate = function(classObj) {
		if(this.classes[classObj] != null) {
			if(this.classes[classObj].staticInit) this.classes[classObj].staticInit();
			return new this.classes[classObj]();
		} else if(classObj.milescriptClassName != null && this.classes[classObj.milescriptClassName] != null) {
			if(this.classes[classObj.milescriptClassName].staticInit) this.classes[classObj.milescriptClassName].staticInit();
			return new this.classes[classObj.milescriptClassName]();
		} else {return null;}
	}
};
ClassCache.instanceOf = function(toCheckOne, toCheckTwo){
	if(typeof(toCheckOne) == "boolean" && toCheckTwo instanceof Boolean)
		return true;
	else if(typeof(toCheckTwo) == "number"){
		if(toCheckTwo == -1 && toCheckOne%1 == 0) return true;
		else if(toCheckTwo == -1) return false;
		if(toCheckTwo == -2 && toCheckOne%1 != 0) return true;
		else if(toCheckTwo == -2) return false;
	} else if(typeof(toCheckTwo) == "string") {
		if(typeof(toCheckOne) == "string" || toCheckOne instanceof String)
			return true;
		else if(toCheckTwo in toCheckOne.implemented)
			return true;
		else if(toCheckOne.$msClassName != null && toCheckTwo.equals(toCheckOne.$msClassName))
			return true;
		else if(toCheckOne.Super != null)
			return ClassCache.instanceOf(toCheckOne.Super, toCheckTwo);
	}
	return false;
};

ClassCache.load("mscore_f", new function(){function mscore_fClass(){var parent = Object;mscore_fClass.initFunc.prototype = parent;mscore_fClass.initFunc.prototype.implemented={};var toReturn = new mscore_fClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'mscore_f';return toReturn;};mscore_fClass.$msClassName = 'mscore_f';mscore_fClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$c = function($e,$f) {if($e==null){ClassCache.get('mscore_e').$k("toWrap undefined in creation of delegate",'core.Delegate',25);};$a=$e;$b=$f;return me;};this.$d = function() {return $a.apply($b,arguments);};var $a;var $b;};mscore_fClass.staticInit = function(){mscore_fClass.staticInit = null;};return mscore_fClass;});
ClassCache.load("mscore_e", new function(){function mscore_eClass(){var parent = Object;mscore_eClass.initFunc.prototype = parent;mscore_eClass.initFunc.prototype.implemented={};var toReturn = new mscore_eClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'mscore_e';return toReturn;};mscore_eClass.$msClassName = 'mscore_e';mscore_eClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$c = function() {return me;};};mscore_eClass.staticInit = function(){mscore_eClass.$l = function($n) {var $o=new Array();for(var i=0;i<mscore_eClass.$a.length;i++){if(mscore_eClass.$a[i]!=$n){$o.push(mscore_eClass.$a[i]);};};mscore_eClass.$a=$o;};mscore_eClass.$m = function($n,$o) {mscore_eClass.$b[$n]=$o;};mscore_eClass.$e = function($n,$q,$p) {var $o=new ClassCache.get('mscore_b')().$f($n,$q,$p);$o.$k("WARNING");for(var $r in mscore_eClass.$a){if(Array.prototype[$r] != null) continue;mscore_eClass.$a[$r].$mscore_a_b($o);};};mscore_eClass.$g = function($n,$q,$p) {var $o=new ClassCache.get('mscore_b')().$f($n,$q,$p);$o.$k("INFO");for(var $r in mscore_eClass.$a){if(Array.prototype[$r] != null) continue;mscore_eClass.$a[$r].$mscore_a_b($o);};};mscore_eClass.$h = function($n) {return mscore_eClass.$b[$n];};mscore_eClass.$k = function($n,$q,$p) {var $o=new ClassCache.get('mscore_b')().$f($n,$q,$p);$o.$k("ERROR");for(var $r in mscore_eClass.$a){if(Array.prototype[$r] != null) continue;mscore_eClass.$a[$r].$mscore_a_b($o);};};mscore_eClass.$f = function($n,$q,$p) {var $o=new ClassCache.get('mscore_b')().$f($n,$q,$p);$o.$k("DEBUG");for(var $r in mscore_eClass.$a){if(Array.prototype[$r] != null) continue;mscore_eClass.$a[$r].$mscore_a_b($o);};};mscore_eClass.$d = function($n) {mscore_eClass.$b[$n]=null;};mscore_eClass.$j = function($n,$q,$p) {var $o=new ClassCache.get('mscore_b')().$f($n,$q,$p);$o.$k("FATAL");for(var $r in mscore_eClass.$a){if(Array.prototype[$r] != null) continue;mscore_eClass.$a[$r].$mscore_a_b($o);};};mscore_eClass.$i = function($n) {mscore_eClass.$a.push($n);};mscore_eClass.$a=new Array();mscore_eClass.$b=new Array();mscore_eClass.staticInit = null;};return mscore_eClass;});
ClassCache.load("mscore_b", new function(){function mscore_bClass(){var parent = Object;mscore_bClass.initFunc.prototype = parent;mscore_bClass.initFunc.prototype.implemented={};var toReturn = new mscore_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'mscore_b';return toReturn;};mscore_bClass.$msClassName = 'mscore_b';mscore_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$e = function($l) {$a=$l;return me;};this.$f = function($l,$n,$m) {this.$e($l);$c=$n;$b=$m;return me;};this.$g = function() {return $c;};this.$h = function() {return $a;};this.$i = function() {return $d;};this.$k = function($l) {$d=$l;};this.$j = function() {return $b;};var $a=null;var $c=null;var $b=null;var $d=null;};mscore_bClass.staticInit = function(){mscore_bClass.staticInit = null;};return mscore_bClass;});
ClassCache.load("fisheye_a", new function(){function fisheye_aClass(){var parent = Object;fisheye_aClass.initFunc.prototype = parent;fisheye_aClass.initFunc.prototype.implemented={};var toReturn = new fisheye_aClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'fisheye_a';return toReturn;};fisheye_aClass.$msClassName = 'fisheye_a';fisheye_aClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$e = function($k) {$a.style.height="100px";$a.style.width="400px";$a.style.paddingTop="10px";$k.appendChild($a);ClassCache.get('libutil_b').$p("mouseout",$a,new ClassCache.get('mscore_f')().$c($h,me).$d);ClassCache.get('libutil_b').$p("mousemove",$a,new ClassCache.get('mscore_f')().$c(me.$i,me).$d);return me;};this.$j = function($l) {var $k=new Array();for(var i=0;i<$c.length;i++){if($c[i]!=$l){$k.push($c[i]);}else{$a.removeChild($c[i].$p());};};$c=$k;};var $h = function(_e) {var $k=ClassCache.get('libutil_b').$j(_e);for(var $l in $c){if(Array.prototype[$l] != null) continue;try{$c[$l].$q();}catch(e){};};return true;};this.$f = function() {return $a;};this.$i = function(_e) {var $l=ClassCache.get('libutil_b').$m(_e);var $k=0;for(var $m in $c){if(Array.prototype[$m] != null) continue;$c[$m].$s($l);$k+=$c[$m].$p().offsetWidth;};$a.style.width=($k+$c.length)+"px";return true;};this.$g = function($k) {$k.$t(me);$c.push($k);$a.appendChild($k.$p());$d+=$k.$m();if($k.$j()>$b){$b=$k.$j();};$a.style.width=$d+"px";};var $a=document.createElement("span");var $c=new Array();var $d=0;var $b=0;};fisheye_aClass.staticInit = function(){fisheye_aClass.staticInit = null;};return fisheye_aClass;});
ClassCache.load("fisheye_b", new function(){function fisheye_bClass(){var parent = Object;fisheye_bClass.initFunc.prototype = parent;fisheye_bClass.initFunc.prototype.implemented={};var toReturn = new fisheye_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'fisheye_b';return toReturn;};fisheye_bClass.$msClassName = 'fisheye_b';fisheye_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$h = function($v,$w,$u) {var $x=$v.split(".");if($x[$x.length-1]=="png"&&ClassCache.get('libutil_b').$y()=="IE"){$c=null;$a=document.createElement("span");$a.style.width=$w;$a.style.height=$u;$a.style.verticalAlign="top";$a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+$v+"', sizingMethod='scale')";$e=true;}else{$a=null;$c=ClassCache.get('libutil_b').$g($v,true);$c.style.width=$w;$c.style.height=$u;$c.style.verticalAlign="top";};$d=$w;$b=$u;return me;};this.$j = function() {return $b;};this.$s = function($u) {var $v=$l($u);var $w=Math.abs($v.x-($d/2));if($w<=($d)){$r((($d-$w)/2)+($d));$i((($d-$w)/2)+($b));}else{$r($d);$i($b);};};var $r = function($u) {if($e){$a.style.width=$u+"px";}else{$c.style.width=$u+"px";};};var $l = function($u) {if($e){var $v=ClassCache.get('libutil_b').$x($a);return {x:$u.x-$v.x,y:$u.y-$v.y};}else{var $v=ClassCache.get('libutil_b').$x($c);return {x:$u.x-$v.x,y:$u.y-$v.y};};};var $i = function($u) {if($e){$a.style.height=$u+"px";}else{$c.style.height=$u+"px";};};this.$n = function($u) {$g=$u;};var $k = function(_e) {window.location.href=$g;return true;};this.$m = function() {return $d;};this.$o = function() {return $f;};this.$p = function() {if($e){return $a;}else{return $c;};};this.$q = function() {$r($d);$i($b);};this.$t = function($u) {$f=$u;if($e){ClassCache.get('libutil_b').$p("mousedown",$a,new ClassCache.get('mscore_f')().$c($k,me).$d);ClassCache.get('libutil_b').$p("mousemove",$a,new ClassCache.get('mscore_f')().$c($u.$i,$u).$d);ClassCache.get('libutil_b').$p("mouseover",$a,new ClassCache.get('mscore_f')().$c(ClassCache.get('libutil_b').$f,ClassCache.get('libutil_b')).$d);}else{ClassCache.get('libutil_b').$p("mousedown",$c,new ClassCache.get('mscore_f')().$c($k,me).$d);ClassCache.get('libutil_b').$p("mousemove",$c,new ClassCache.get('mscore_f')().$c($u.$i,$u).$d);ClassCache.get('libutil_b').$p("mouseover",$c,new ClassCache.get('mscore_f')().$c(ClassCache.get('libutil_b').$f,ClassCache.get('libutil_b')).$d);};};var $c;var $a;var $d;var $b;var $g;var $e;var $f=null;};fisheye_bClass.staticInit = function(){fisheye_bClass.staticInit = null;};return fisheye_bClass;});
ClassCache.load("libutil_b", new function(){function libutil_bClass(){var parent = Object;libutil_bClass.initFunc.prototype = parent;libutil_bClass.initFunc.prototype.implemented={};var toReturn = new libutil_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'libutil_b';return toReturn;};libutil_bClass.$msClassName = 'libutil_b';libutil_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$d = function() {return me;};};libutil_bClass.staticInit = function(){libutil_bClass.$o = function(_e) {return false;};libutil_bClass.$g = function($A,$B) {var $z=libutil_bClass.$b[$A];libutil_bClass.$b[$A]=libutil_bClass.$b[$A];if($z==null){libutil_bClass.$b[$A]=new Image();libutil_bClass.$b[$A].src=$A;libutil_bClass.$b[$A].hspace=0;libutil_bClass.$b[$A].vspace=0;};if($B==true){return libutil_bClass.$b[$A].cloneNode(true);}else{return libutil_bClass.$b[$A];};};libutil_bClass.$q = function($z,$C,$B,$A) {if(libutil_bClass.$y()=="IE"){$C.detachEvent("on"+$z,$B);}else{$C.removeEventListener($z,$B,$A);};};libutil_bClass.$m = function($z) {var e=$z;if(e==null){e=window.event;};if(e.pageX==null){e.pageY=Math.max(document.documentElement.scrollTop,document.body.scrollTop)+e.clientY;e.pageX=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft)+e.clientX;};var $A={x:e.pageX,y:e.pageY};return $A;};libutil_bClass.$v = function($C,$A) {var $z=document.createElement("script");$z.setAttribute("id",$C);$z.language="javascript";$z.type="text/javascript";$z.src=$A;var $B=document.getElementsByTagName("head")[0];$B.appendChild($z);};libutil_bClass.$x = function($z) {var r={x:$z.offsetLeft,y:$z.offsetTop};if($z.offsetParent!=null){var $A=libutil_bClass.$x($z.offsetParent);r.x+=$A.x;r.y+=$A.y;};return r;};libutil_bClass.$k = function() {if(navigator.userAgent.indexOf("Firefox")!=-1){var $z=navigator.userAgent.indexOf("Firefox")+8;var $A=navigator.userAgent.indexOf("Firefox")+10;if(window.parseInt(navigator.userAgent.charAt($z))==1){if(window.parseInt(navigator.userAgent.charAt($A))>=5){libutil_bClass.$a="FF";libutil_bClass.$c=navigator.userAgent.substring($z,$A);};}else{if(window.parseInt(navigator.userAgent.charAt($z))>=2){libutil_bClass.$a="FF";libutil_bClass.$c=navigator.userAgent.substring($z,$A);};};}else{if(navigator.appVersion.indexOf("MSIE")!=-1){var $z=navigator.appVersion.split("MSIE");if(window.parseFloat($z[1])>=5.5){libutil_bClass.$a="IE";libutil_bClass.$c=$z[1];};}else{if(navigator.userAgent.indexOf("Opera")!=-1){var $z=navigator.userAgent.indexOf("Opera")+6;var $A=navigator.userAgent.indexOf("Opera")+8;if(window.parseInt(navigator.userAgent.charAt($z))>=8){libutil_bClass.$a="Opera";libutil_bClass.$c=navigator.userAgent.substring($z,$A);};}else{libutil_bClass.$a=null;libutil_bClass.$c=null;};};};};libutil_bClass.$p = function($A,$z,$B) {libutil_bClass.$h($A,$z,$B,false);};libutil_bClass.$n = function($C,$A) {var $z=document.createElement("link");$z.setAttribute("id",$C);$z.setAttribute("rel","stylesheet");$z.setAttribute("type","text/css");$z.setAttribute("href",$A);var $B=document.getElementsByTagName("head")[0];$B.appendChild($z);};libutil_bClass.$l = function($z,$B,$A) {if(libutil_bClass.$y()=="IE"){$B.attachEvent("on"+$z,$A);}else{$B.addEventListener($z,$A,false);};};libutil_bClass.$i = function($C,$B,$z) {var $A=document.getElementsByTagNameNS($C,$B);for(var i=0;i<$A.length;i++){if($A[i].getAttribute("id")==$z){return $A[i];};};return null;};libutil_bClass.$t = function($z) {if(libutil_bClass.$y()=="Opera"){return {height:$z.clientHeight,width:$z.scrollWidth};}else{if(libutil_bClass.$y()=="FF"){return {height:$z.scrollHeight,width:$z.scrollWidth};};};return {height:$z.clientHeight,width:$z.clientWidth};};libutil_bClass.$f = function(_e) {var $z=libutil_bClass.$j(_e);$z.style.cursor="pointer";return true;};libutil_bClass.$r = function(_e) {if(_e==null){_e=window.event;};if(libutil_bClass.$y()=="IE"){return _e.keyCode;}else{return _e.which;};};libutil_bClass.$j = function($z) {if(libutil_bClass.$y()=="IE"){return window.event.srcElement;}else{return $z.target;};};libutil_bClass.$h = function($z,$C,$B,$A) {if(libutil_bClass.$y()=="IE"){$C.attachEvent("on"+$z,$B);}else{$C.addEventListener($z,$B,$A);};};libutil_bClass.$e = function($z) {if(libutil_bClass.$b[$z.src]!=null){return true;};return false;};libutil_bClass.$s = function($A,$z,$B) {libutil_bClass.$q($A,$z,$B,false);};libutil_bClass.$w = function() {if(libutil_bClass.$c==null){libutil_bClass.$k();};return libutil_bClass.$c;};libutil_bClass.$u = function(_e) {if(_e==null){_e=window.event;};_e.cancelBubble=true;if(libutil_bClass.$y()!="IE"){_e.stopPropagation();};};libutil_bClass.$y = function() {if(libutil_bClass.$a==null){libutil_bClass.$k();};return libutil_bClass.$a;};libutil_bClass.$a;libutil_bClass.$c;libutil_bClass.$b=new Array();libutil_bClass.staticInit = null;};return libutil_bClass;});
ClassCache.load("googlebasedemo_a", new function(){function googlebasedemo_aClass(){var parent = Object;googlebasedemo_aClass.initFunc.prototype = parent;googlebasedemo_aClass.initFunc.prototype.implemented={};var toReturn = new googlebasedemo_aClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'googlebasedemo_a';return toReturn;};googlebasedemo_aClass.$msClassName = 'googlebasedemo_a';googlebasedemo_aClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$b = function() {return me;};};googlebasedemo_aClass.staticInit = function(){googlebasedemo_aClass.$c = function($e) {googlebasedemo_aClass.$a=$e;};googlebasedemo_aClass.$d = function($e) {googlebasedemo_aClass.$a($e);};googlebasedemo_aClass.$a;googlebasedemo_aClass.staticInit = null;};return googlebasedemo_aClass;});
ClassCache.load("MilescriptWebsiteWithDemos_c", new function(){function MilescriptWebsiteWithDemos_cClass(){var parent = Object;MilescriptWebsiteWithDemos_cClass.initFunc.prototype = parent;MilescriptWebsiteWithDemos_cClass.initFunc.prototype.implemented={};var toReturn = new MilescriptWebsiteWithDemos_cClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'MilescriptWebsiteWithDemos_c';return toReturn;};MilescriptWebsiteWithDemos_cClass.$msClassName = 'MilescriptWebsiteWithDemos_c';MilescriptWebsiteWithDemos_cClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function() {$c();$e();return me;};var $b = function() {var b=null;b=new ClassCache.get('MilescriptWebsiteWithDemos_b')().$e(document.getElementById("DemoButton"),"Demo");b=new ClassCache.get('MilescriptWebsiteWithDemos_b')().$e(document.getElementById("ForumsButton"),"Forums");b=new ClassCache.get('MilescriptWebsiteWithDemos_b')().$e(document.getElementById("BlogButton"),"Blog");b=new ClassCache.get('MilescriptWebsiteWithDemos_b')().$e(document.getElementById("DocumentationButton"),"Documentation");b=new ClassCache.get('MilescriptWebsiteWithDemos_b')().$e(document.getElementById("DownloadsButton"),"Downloads");b=new ClassCache.get('MilescriptWebsiteWithDemos_b')().$e(document.getElementById("LibrariesButton"),"Libraries");};var $c = function() {var $g=true;var $h=window.location.href;var $f=$h.split("/");switch($f[$f.length-1]){case "demo.html":ClassCache.get('milescriptdemo_g').$b("snake");break;case "demo_graphics.html":ClassCache.get('milescriptdemo_g').$b("graphics");break;case "demo_life.html":ClassCache.get('milescriptdemo_g').$b("life");break;case "demo_ext.html":ClassCache.get('milescriptdemo_g').$b("ext");break;case "demo_dojo.html":ClassCache.get('milescriptdemo_g').$b("dojoCode");break;case "demo_dojo_iframe.html":$g=false;ClassCache.get('milescriptdemo_g').$b("dojo");break;case "demo_fisheye.html":ClassCache.get('milescriptdemo_g').$b("fisheye");break;case "demo_googlebase.html":ClassCache.get('milescriptdemo_g').$b("googlebase");break;}if($g){$b();};};var $e = function() {var $f=document.getElementById("cvsdudeAd");var $g=new Image();$g.style.border="none";$g.src="http://cvsdude.com/image/cvsdude_tag.jpg";$f.appendChild($g);try{$f=document.getElementById("diggit");$g=new Image();$g.style.border="none";$g.src="http://digg.com/img/badges/16x16-digg-thumb.gif";$f.appendChild($g);}catch(e){};try{$f=document.getElementById("delicious");$g=new Image();$g.style.border="none";$g.src="http://images.del.icio.us/static/img/delicious.small.gif";$f.appendChild($g);}catch(e){};};};MilescriptWebsiteWithDemos_cClass.staticInit = function(){MilescriptWebsiteWithDemos_cClass.$d = function() {new ClassCache.get('MilescriptWebsiteWithDemos_c')().$a();};MilescriptWebsiteWithDemos_cClass.staticInit = null;};return MilescriptWebsiteWithDemos_cClass;});
ClassCache.load("MilescriptWebsiteWithDemos_b", new function(){function MilescriptWebsiteWithDemos_bClass(){var parent = Object;MilescriptWebsiteWithDemos_bClass.initFunc.prototype = parent;MilescriptWebsiteWithDemos_bClass.initFunc.prototype.implemented={};var toReturn = new MilescriptWebsiteWithDemos_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'MilescriptWebsiteWithDemos_b';return toReturn;};MilescriptWebsiteWithDemos_bClass.$msClassName = 'MilescriptWebsiteWithDemos_b';MilescriptWebsiteWithDemos_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$e = function($h,$i) {$d=$i;$c=$h.firstChild;$b=$h.lastChild;$a=$h.childNodes[1];$h.onmouseover=$g;$h.onmouseout=$f;return me;};var $f = function(_e) {$c.style.color="#339966";$b.style.color="#339966";$a.style.color="#339966";return true;};var $g = function(_e) {$c.style.color="#FFFFFF";$b.style.color="#FFFFFF";$a.style.color="#000000";return true;};var $d;var $c;var $b;var $a;};MilescriptWebsiteWithDemos_bClass.staticInit = function(){MilescriptWebsiteWithDemos_bClass.staticInit = null;};return MilescriptWebsiteWithDemos_bClass;});
ClassCache.load("milescriptdemo_g", new function(){function milescriptdemo_gClass(){var parent = Object;milescriptdemo_gClass.initFunc.prototype = parent;milescriptdemo_gClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_gClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_g';return toReturn;};milescriptdemo_gClass.$msClassName = 'milescriptdemo_g';milescriptdemo_gClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function() {return me;};};milescriptdemo_gClass.staticInit = function(){milescriptdemo_gClass.$b = function($d) {if($d=="snake"){ClassCache.get('milescriptdemo_a').$e();}else{if($d=="graphics"){ClassCache.get('milescriptdemo_d').$f();}else{if($d=="life"){ClassCache.get('milescriptdemo_h').$b();}else{if($d=="ext"){ClassCache.get('milescriptdemo_e').$b();}else{if($d=="dojo"){ClassCache.get('milescriptdemo_m').$b();}else{if($d=="dojoCode"){ClassCache.get('milescriptdemo_m').$c();}else{if($d=="fisheye"){ClassCache.get('milescriptdemo_j').$b();}else{if($d=="googlebase"){ClassCache.get('milescriptdemo_k').$b();};};};};};};};};if(!($d=="dojo")){milescriptdemo_gClass.$c();};};milescriptdemo_gClass.$c = function() {var $d=new ClassCache.get('fisheye_a')().$e(document.getElementById("fisheye"));var $e=new ClassCache.get('fisheye_b')().$h("./images/snake.png",56,56);$e.$n("./demo.html");$d.$g($e);$e=new ClassCache.get('fisheye_b')().$h("./images/paint.png",56,56);$e.$n("./demo_graphics.html");$d.$g($e);$e=new ClassCache.get('fisheye_b')().$h("./images/bio.png",56,56);$e.$n("./demo_life.html");$d.$g($e);$e=new ClassCache.get('fisheye_b')().$h("./images/ext.png",56,56);$e.$n("./demo_ext.html");$d.$g($e);$e=new ClassCache.get('fisheye_b')().$h("./images/dojo.png",56,56);$e.$n("./demo_dojo.html");$d.$g($e);$e=new ClassCache.get('fisheye_b')().$h("./images/googlebase_icon.png",56,56);$e.$n("./demo_googlebase.html");$d.$g($e);$e=new ClassCache.get('fisheye_b')().$h("./images/fisheye.png",56,56);$e.$n("./demo_fisheye.html");$d.$g($e);};milescriptdemo_gClass.staticInit = null;};return milescriptdemo_gClass;});
ClassCache.load("milescriptdemo_e", new function(){function milescriptdemo_eClass(){var parent = Object;milescriptdemo_eClass.initFunc.prototype = parent;milescriptdemo_eClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_eClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_e';return toReturn;};milescriptdemo_eClass.$msClassName = 'milescriptdemo_e';milescriptdemo_eClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function() {return me;};};milescriptdemo_eClass.staticInit = function(){milescriptdemo_eClass.$b = function() {var $d=new ClassCache.get('milescriptdemo_f')().$c();milescriptdemo_eClass.$c();};milescriptdemo_eClass.$c = function() {var $d=document.getElementById("codeViewInsertionPoint");var $e=new ClassCache.get('milescriptdemo_i')().$B($d,"docs/milescriptdemo/v_0.1.1/index_milescriptdemo.html");$e.$M("ExtDemo.ms","extdemosource/ExtDemo.html","extdemotarget/ExtDemo.html","extdemotarget/ExtDemo_c.html","docs/milescriptdemo/v_0.1.1/org/milescript/extdemo/ExtDemo.html");$e.$M("ButtonConfig.ms","extdemosource/ButtonConfig.html","extdemotarget/NotGenerated.html","extdemotarget/NotGenerated.html","docs/libext/v_0.1.1//wrap/ext/types/ButtonConfig.html");$e.$M("ComponentConfig.ms","extdemosource/ComponentConfig.html","extdemotarget/NotGenerated.html","extdemotarget/NotGenerated.html","docs/libext/v_0.1.1//wrap/ext/types/ComponentConfig.html");$e.$M("PanelConfig.ms","extdemosource/PanelConfig.html","extdemotarget/NotGenerated.html","extdemotarget/NotGenerated.html","docs/libext/v_0.1.1//wrap/ext/types/PanelConfig.html");$e.$M("TabPanelConfig.ms","extdemosource/TabPanelConfig.html","extdemotarget/NotGenerated.html","extdemotarget/NotGenerated.html","docs/libext/v_0.1.1//wrap/ext/types/TabPanelConfig.html");$e.$M("TabPanel.ms","extdemosource/TabPanel.html","extdemotarget/NotGenerated.html","extdemotarget/NotGenerated.html","docs/libext/v_0.1.1//wrap/ext/TabPanel.html");};milescriptdemo_eClass.staticInit = null;};return milescriptdemo_eClass;});
ClassCache.load("milescriptdemo_f", new function(){function milescriptdemo_fClass(){var parent = Object;milescriptdemo_fClass.initFunc.prototype = parent;milescriptdemo_fClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_fClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_f';return toReturn;};milescriptdemo_fClass.$msClassName = 'milescriptdemo_f';milescriptdemo_fClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$c = function() {$b=new Ext.TabPanel({renderTo:"insertionPoint",resizeTabs:true,minTabWidth:100,tabWidth:150,enableTabScroll:true,width:400,height:400,items:[{title:"Tab 1",html:"<b>Default Tab</b><p>Press button to add more tabs.</p>",buttons:[{text:"Add Tab",handler:this.$d,scope:me}]}]});$b.activate(0);return me;};this.$d = function() {$b.add({title:"Tab "+$a++,html:"<b>Test Content</b>"+"<br/><br/>",closable:true});};var $b;var $a=2;};milescriptdemo_fClass.staticInit = function(){milescriptdemo_fClass.staticInit = null;};return milescriptdemo_fClass;});
ClassCache.load("milescriptdemo_i", new function(){function milescriptdemo_iClass(){var parent = Object;milescriptdemo_iClass.initFunc.prototype = parent;milescriptdemo_iClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_iClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_i';return toReturn;};milescriptdemo_iClass.$msClassName = 'milescriptdemo_i';milescriptdemo_iClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$B = function($N,$O) {$u=$N;$c=$O;$G();return me;};this.$A = function($N) {this.$B($N,"");return me;};this.$J = function($P) {$h.push($P);var $O=$l.insertRow(0);var $N=$O.insertCell(0);$N.innerHTML=$P.$k();$O.setAttribute("id",$P.$k());$O.height="30px";$N.setAttribute("id",$P.$k());$P.$j($O);ClassCache.get('libutil_b').$p("mousedown",$O,$p);ClassCache.get('libutil_b').$p("mouseover",$O,$i);ClassCache.get('libutil_b').$p("mouseout",$O,$s);};var $C = function(_e) {var $N=ClassCache.get('libutil_b').$j(_e);this.$L($N.getAttribute("id"));return true;};var $G = function() {$x=new Ext.Panel({region:"west",split:true,width:160,collapsible:true,title:"Project Explorer",html:"<div id='menuArea'></div>"});$f=new Ext.Panel({title:"Milescript Source",html:"<iframe id='milescriptScreen' height='100%' width='100%' src=''></frame>"});$t=new Ext.Panel({title:"Generated Javascript",html:"<iframe id='javascriptScreen' height='100%' width='100%' src=''></frame>"});$g=new Ext.Panel({title:"Condensed Javascript",html:"<iframe id='condensedScreen' height='100%' width='100%'></frame>"});$v=new Ext.Panel({title:"Project API",html:"<iframe id='apiScreen' height='100%' width='100%' src='"+$c+"'></frame>"});$z=new Ext.TabPanel({resizeTabs:true,region:"center",minTabWidth:100,tabWidth:150,enableTabScroll:true,items:[$f,$t,$g,$v]});$m=new Ext.Panel({renderTo:$u,layout:"border",width:900,height:600,items:[$x,$z]});$z.activate(0);$a=document.getElementById("milescriptScreen");$z.activate(1);$q=document.getElementById("javascriptScreen");$z.activate(2);$y=document.getElementById("condensedScreen");$z.activate(3);$o=document.getElementById("apiScreen");$z.activate(0);$D(document.getElementById("menuArea"));};var $I = function(_e) {var $N=ClassCache.get('libutil_b').$j(_e);$N.style.background=$d;return true;};this.$K = function($N) {for(var $O in $h){if(Array.prototype[$O] != null) continue;if($h[$O].$k()==$N){return $h[$O];};};return null;};this.$L = function($O) {var $N=this.$K($O);if($N!=null){if($w!=null){var $Q=$w.$l();$Q.style.background=$d;if($Q.hasChildNodes()){$Q.firstChild.style.background=$d;};ClassCache.get('libutil_b').$p("mousedown",$Q,$p);ClassCache.get('libutil_b').$p("mouseover",$Q,$i);ClassCache.get('libutil_b').$p("mouseout",$Q,$s);};$a.setAttribute("src",$N.$p());$q.setAttribute("src",$N.$o());$y.setAttribute("src",$N.$n());$o.setAttribute("src",$N.$m());$w=$N;var $P=$N.$l();ClassCache.get('libutil_b').$s("mousedown",$P,$p);ClassCache.get('libutil_b').$s("mouseover",$P,$i);ClassCache.get('libutil_b').$s("mouseout",$P,$s);return true;};return false;};var $H = function(_e) {var $N=ClassCache.get('libutil_b').$j(_e);$N.style.background=$k;$N.style.cursor="pointer";return true;};this.$F = function($O,$P,$Q,$N) {this.$J(new ClassCache.get('milescriptdemo_b')().$i($O,$P,$Q,$N));};var $D = function($O) {var $N=document.createElement("div");$O.appendChild($N);$N.style.background=$d;$N.style.fontFamily="courier";$N.style.fontWeight="bold";$l=document.createElement("table");$l.width="96%";$l.cellSpacing="5px";$l.cellPadding="5px";$N.appendChild($l);};this.$E = function($N,$O,$P) {this.$J(new ClassCache.get('milescriptdemo_b')().$h($N,$O,$P));};this.$M = function($O,$Q,$R,$N,$P) {this.$J(new ClassCache.get('milescriptdemo_b')().$g($O,$Q,$R,$N,$P));};var $u;var $e;var $j;var $n;var $l;var $h=new Array();var $b;var $r;var $z;var $f;var $t;var $g;var $v;var $m;var $x;var $a;var $q;var $y;var $o;var $d="white";var $k="#FFFF99";var $w;var $c;var $p=new ClassCache.get('mscore_f')().$c($C,me).$d;var $i=new ClassCache.get('mscore_f')().$c($H,me).$d;var $s=new ClassCache.get('mscore_f')().$c($I,me).$d;};milescriptdemo_iClass.staticInit = function(){milescriptdemo_iClass.staticInit = null;};return milescriptdemo_iClass;});
ClassCache.load("milescriptdemo_b", new function(){function milescriptdemo_bClass(){var parent = Object;milescriptdemo_bClass.initFunc.prototype = parent;milescriptdemo_bClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_b';return toReturn;};milescriptdemo_bClass.$msClassName = 'milescriptdemo_b';milescriptdemo_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$g = function($r,$t,$u,$q,$s) {this.$h($r,$t,$u);$b=$q;$d=$s;return me;};this.$h = function($q,$r,$s) {$c=$q;$e=$r;$f=$s;return me;};this.$i = function($r,$s,$t,$q) {this.$h($r,$s,$t);$b=$q;return me;};this.$k = function() {return $c;};this.$l = function() {return $a;};this.$j = function($q) {$a=$q;};this.$m = function() {return $d;};this.$n = function() {return $b;};this.$o = function() {return $f;};this.$p = function() {return $e;};var $c;var $e;var $f;var $b;var $d;var $a;};milescriptdemo_bClass.staticInit = function(){milescriptdemo_bClass.staticInit = null;};return milescriptdemo_bClass;});
ClassCache.load("milescriptdemo_d", new function(){function milescriptdemo_dClass(){var parent = Object;milescriptdemo_dClass.initFunc.prototype = parent;milescriptdemo_dClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_dClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_d';return toReturn;};milescriptdemo_dClass.$msClassName = 'milescriptdemo_d';milescriptdemo_dClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$c = function() {return me;};};milescriptdemo_dClass.staticInit = function(){milescriptdemo_dClass.$e = function(_e) {if(milescriptdemo_dClass.$b){milescriptdemo_dClass.$b=false;milescriptdemo_dClass.$a.$d(ClassCache.get('libutil_b').$m(_e));};return false;};milescriptdemo_dClass.$i = function(_e) {milescriptdemo_dClass.$b=true;milescriptdemo_dClass.$a.$c(ClassCache.get('libutil_b').$m(_e));return false;};milescriptdemo_dClass.$j = function($k) {milescriptdemo_dClass.$a.$f($k);};milescriptdemo_dClass.$g = function($k) {ClassCache.get('libutil_b').$p("mousedown",$k,new ClassCache.get('mscore_f')().$c(milescriptdemo_dClass.$i,milescriptdemo_dClass).$d);ClassCache.get('libutil_b').$p("mousemove",$k,new ClassCache.get('mscore_f')().$c(milescriptdemo_dClass.$d,milescriptdemo_dClass).$d);ClassCache.get('libutil_b').$p("mouseup",$k,new ClassCache.get('mscore_f')().$c(milescriptdemo_dClass.$e,milescriptdemo_dClass).$d);};milescriptdemo_dClass.$f = function() {var $k=document.getElementById("canvasDiv");milescriptdemo_dClass.$a=new ClassCache.get('graphicsdemo_d')().$b();milescriptdemo_dClass.$j($k);milescriptdemo_dClass.$g($k);milescriptdemo_dClass.$h();};milescriptdemo_dClass.$h = function() {var $k=document.getElementById("codeViewInsertionPoint");var $l=new ClassCache.get('milescriptdemo_i')().$B($k,"docs/graphicsdemo/v_0.1.1/index_graphicsdemo.html");$l.$M("demo.const","graphicsdemosource/demo.const.html","graphicsdemotarget/NotGenerated.html","graphicsdemotarget/NotGenerated.html","");$l.$M("DemoMain.ms","graphicsdemosource/DemoMain.html","graphicsdemotarget/DemoMain.html","graphicsdemotarget/DemoMain_c.html","docs/graphicsdemo/v_0.1.1/org/milescript/graphics/DemoMain.html");$l.$M("Illustrator.ms","graphicsdemosource/Illustrator.html","graphicsdemotarget/Illustrator.html","graphicsdemotarget/Illustrator_c.html","docs/graphicsdemo/v_0.1.1/org/milescript/graphics/Illustrator.html");$l.$M("Illustrator<br>&nbsp;Implementation<br>&nbsp;.ms","graphicsdemosource/IllustratorImplementation.html","graphicsdemotarget/IllustratorImplementation.html","graphicsdemotarget/IllustratorImplementation_c.html","docs/graphicsdemo/v_0.1.1/org/milescript/graphics/IllustratorImplementation.html");$l.$M("Illustrator<br>&nbsp;Implementation<br>&nbsp;SVG.ms","graphicsdemosource/IllustratorImplementationSVG.html","graphicsdemotarget/IllustratorImplementationSVG.html","graphicsdemotarget/IllustratorImplementationSVG_c.html","docs/graphicsdemo/v_0.1.1/org/milescript/graphics/IllustratorImplementationSVG.html");$l.$M("Illustrator<br>&nbsp;Implementation<br>&nbsp;VML.ms","graphicsdemosource/IllustratorImplementationVML.html","graphicsdemotarget/IllustratorImplementationVML.html","graphicsdemotarget/IllustratorImplementationVML_c.html","docs/graphicsdemo/v_0.1.1/org/milescript/graphics/IllustratorImplementationVML.html");};milescriptdemo_dClass.$d = function(_e) {if(milescriptdemo_dClass.$b){milescriptdemo_dClass.$a.$e(ClassCache.get('libutil_b').$m(_e));};return false;};milescriptdemo_dClass.$a;milescriptdemo_dClass.$b=false;milescriptdemo_dClass.staticInit = null;};return milescriptdemo_dClass;});
ClassCache.load("graphicsdemo_d", new function(){function graphicsdemo_dClass(){var parent = Object;graphicsdemo_dClass.initFunc.prototype = parent;graphicsdemo_dClass.initFunc.prototype.implemented={};var toReturn = new graphicsdemo_dClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'graphicsdemo_d';return toReturn;};graphicsdemo_dClass.$msClassName = 'graphicsdemo_d';graphicsdemo_dClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$b = function() {if(ClassCache.get('libutil_b').$y()=="IE"){$a=new ClassCache.get('graphicsdemo_e')().$k();}else{$a=new ClassCache.get('graphicsdemo_c')().$j();};return me;};this.$f = function($g) {$a.$e($g);};this.$e = function($g) {$a.$d($g);};this.$d = function($g) {$a.$c($g);};this.$c = function($g) {$a.$b($g);};var $a;};graphicsdemo_dClass.staticInit = function(){graphicsdemo_dClass.staticInit = null;};return graphicsdemo_dClass;});
ClassCache.load("graphicsdemo_b", new function(){function graphicsdemo_bClass(){var parent = Object;graphicsdemo_bClass.initFunc.prototype = parent;graphicsdemo_bClass.initFunc.prototype.implemented={};var toReturn = new graphicsdemo_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'graphicsdemo_b';return toReturn;};graphicsdemo_bClass.$msClassName = 'graphicsdemo_b';graphicsdemo_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function($i) {var $f=document.getElementById("canvasDiv");var $h=ClassCache.get('libutil_b').$x($f);var $g={x:$i.x-$h.x,y:$i.y-$h.y};return $g;};};graphicsdemo_bClass.staticInit = function(){graphicsdemo_bClass.staticInit = null;};return graphicsdemo_bClass;});
ClassCache.load("graphicsdemo_c", new function(){function graphicsdemo_cClass(){var parent = (new ClassCache.get('graphicsdemo_b')());graphicsdemo_cClass.initFunc.prototype = parent;graphicsdemo_cClass.initFunc.prototype.implemented={};var toReturn = new graphicsdemo_cClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'graphicsdemo_c';return toReturn;};graphicsdemo_cClass.$msClassName = 'graphicsdemo_c';graphicsdemo_cClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$j = function() {return me;};this.$e = function($l) {var $k=document.createElementNS('http://www.w3.org/2000/svg',"svg");$k.setAttributeNS(null,"id","CANVAS");$k.setAttributeNS(null,"width","100%");$k.setAttributeNS(null,"height","100%");$k.setAttribute("type","image/svg+xml");$k.style.MozUserSelect='none';$l.appendChild($k);$f=document.createElementNS('http://www.w3.org/2000/svg',"g");$f.setAttributeNS(null,"id","SVGbaseLayer");$k.appendChild($f);};this.$d = function($l) {var $k=this.$a($l);$i+="L "+$k.x+" "+$k.y+" ";$h.setAttribute("d",$i);};this.$c = function($l) {var $k=this.$a($l);$i+="L "+$k.x+" "+$k.y+" ";$h.setAttribute("d",$i);};this.$b = function($l) {$h=document.createElementNS('http://www.w3.org/2000/svg',"path");$h.setAttributeNS(null,"id",$g++);$h.style.position="absolute";$h.setAttributeNS(null,"stroke","red");$h.setAttributeNS(null,"fill-opacity",0);$h.setAttributeNS(null,"stroke-width",7);var $k=this.$a($l);$i="M "+$k.x+" "+$k.y+" ";$h.setAttributeNS(null,"d",$i);$f.appendChild($h);};var $f;var $h;var $i;var $g=0;};graphicsdemo_cClass.staticInit = function(){graphicsdemo_cClass.staticInit = null;};return graphicsdemo_cClass;});
ClassCache.load("graphicsdemo_e", new function(){function graphicsdemo_eClass(){var parent = (new ClassCache.get('graphicsdemo_b')());graphicsdemo_eClass.initFunc.prototype = parent;graphicsdemo_eClass.initFunc.prototype.implemented={};var toReturn = new graphicsdemo_eClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'graphicsdemo_e';return toReturn;};graphicsdemo_eClass.$msClassName = 'graphicsdemo_e';graphicsdemo_eClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$k = function() {return me;};this.$e = function($r) {var $n=document.getElementsByTagName("html")[0];try{if(ClassCache.get('libutil_b').$y()=="IE"){document.namespaces.add("v","urn:schemas-microsoft-com:vml");};}catch(e){};document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");var $q=document.getElementById("canvasDiv");var $l=ClassCache.get('libutil_b').$t($q);var $o=$l.width;var $m=$l.height;var $p=document.createElement("div");$p.setAttribute("id","CANVAS");$p.setAttribute("width","100%");$p.setAttribute("height","100%");$p.style.position="absolute";$p.style.left="0px";$p.style.top="0px";$p.style.width="100%";$p.style.height="100%";$r.appendChild($p);$f=document.createElement("v:group");$f.setAttribute('id',"layer"+$h++);$f.style.position="absolute";$f.style.top="0px";$f.style.left="0px";$f.style.width=$o;$f.style.height=$m;$f.coordorigin="0,0";$f.coordsize=$o+','+$m;$f.wrapcoords=null;$p.appendChild($f);};this.$d = function($m) {var $l=this.$a($m);$j+="L "+$l.x+" "+$l.y+" ";$i.path=$j+$g;};this.$c = function($m) {var $l=this.$a($m);$j+="L "+$l.x+" "+$l.y+" ";$i.path=$j+$g;};this.$b = function($m) {$i=document.createElement("v:shape");$i.id=$h+++"";$i.stroked="true";$i.style.position="absolute";$i.style.left="0px";$i.style.top="0px";$i.style.width="100%";$i.style.height="100%";var $l=this.$a($m);$j="M "+$l.x+" "+$l.y+" ";$i.path=$j+$g;$i.strokecolor="red";$i.strokeweight="5";$i.filled="False";$f.appendChild($i);};var $f;var $i;var $j;var $g=" e"+'"';var $h=0;};graphicsdemo_eClass.staticInit = function(){graphicsdemo_eClass.staticInit = null;};return graphicsdemo_eClass;});
ClassCache.load("milescriptdemo_a", new function(){function milescriptdemo_aClass(){var parent = Object;milescriptdemo_aClass.initFunc.prototype = parent;milescriptdemo_aClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_aClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_a';return toReturn;};milescriptdemo_aClass.$msClassName = 'milescriptdemo_a';milescriptdemo_aClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$d = function() {return me;};};milescriptdemo_aClass.staticInit = function(){milescriptdemo_aClass.$e = function() {var $j=document.createElement("div");$j.align="center";$j.valign="center";$j.style.background="#666666";$j.style.width="650px";$j.style.height="340px";$j.style.border="1px solid black";var $l=document.createElement("table");var $n=$l.insertRow(0);milescriptdemo_aClass.$b=$n.insertCell(0);var $h=$n.insertCell(1);var $m=$l.insertRow(1);var $i=$m.insertCell(0);$i.colSpan=2;$i.align="center";milescriptdemo_aClass.$a=document.createElement("button");milescriptdemo_aClass.$a.innerHTML="StartDemo";ClassCache.get('libutil_b').$p("mouseup",milescriptdemo_aClass.$a,new ClassCache.get('mscore_f')().$c(milescriptdemo_aClass.$g,milescriptdemo_aClass).$d);$i.appendChild(milescriptdemo_aClass.$a);milescriptdemo_aClass.$b.align="center";milescriptdemo_aClass.$b.width="325px";$h.align="center";$h.width="325px";$j.appendChild($l);document.getElementById("demoInsertionPoint").appendChild($j);var $k=new ClassCache.get('libutil_f')().$s($h,300,300);ClassCache.get('mscore_e').$i($k);milescriptdemo_aClass.$f();};milescriptdemo_aClass.$f = function() {var $h=document.getElementById("codeViewInsertionPoint");var $i=new ClassCache.get('milescriptdemo_i')().$B($h,"./docs/snake/v_0.1.1/index_snakegame.html");$i.$M("SnakeGame.ms","demosource/SnakeGame.html","demotarget/SnakeGame.html","demotarget/SnakeGame_c.html","docs/snake/v_0.1.1/org/milescript/snake/SnakeGame.html");$i.$M("Snake.ms","demosource/Snake.html","demotarget/Snake.html","demotarget/Snake_c.html","docs/snake/v_0.1.1/org/milescript/snake/Snake.html");$i.$M("Screen.ms","demosource/Screen.html","demotarget/Screen.html","demotarget/Screen_c.html","docs/libpixelengine/v_0.1.1/org/milescript/pixelengine/Screen.html");$i.$M("Queue.ms","demosource/Queue.html","demotarget/Queue.html","demotarget/Queue_c.html","docs/snake/v_0.1.1/org/milescript/snake/Queue.html");$i.$M("PixelDelta.ms","demosource/PixelDelta.html","demotarget/PixelDelta.html","demotarget/PixelDelta_c.html","docs/libpixelengine/v_0.1.1/org/milescript/pixelengine/PixelDelta.html");$i.$M("Orange.ms","demosource/Orange.html","demotarget/Orange.html","demotarget/Orange_c.html","docs/snake/v_0.1.1/org/milescript/snake/Orange.html");$i.$M("LevelTwo.ms","demosource/LevelTwo.html","demotarget/LevelTwo.html","demotarget/LevelTwo_c.html","docs/snake/v_0.1.1/org/milescript/snake/LevelTwo.html");$i.$M("LevelThree.ms","demosource/LevelThree.html","demotarget/LevelThree.html","demotarget/LevelThree_c.html","docs/snake/v_0.1.1/org/milescript/snake/LevelThree.html");$i.$M("LevelOne.ms","demosource/LevelOne.html","demotarget/LevelOne.html","demotarget/LevelOne_c.html","docs/snake/v_0.1.1/org/milescript/snake/LevelOne.html");$i.$M("Level.ms","demosource/Level.html","demotarget/Level.html","demotarget/Level_c.html","docs/snake/v_0.1.1/org/milescript/snake/Level.html");$i.$M("KeyDetector.ms","demosource/KeyDetector.html","demotarget/KeyDetector.html","demotarget/KeyDetector_c.html","docs/snake/v_0.1.1/org/milescript/snake/KeyDetector.html");$i.$M("IScreen.ms","demosource/IScreen.html","demotarget/NotGenerated.html","demotarget/NotGenerated.html","docs/libpixelengine/v_0.1.1/org/milescript/pixelengine/IScreen.html");};milescriptdemo_aClass.$g = function(_e) {if(milescriptdemo_aClass.$c==null){if(ClassCache.get('libutil_b').$y()=="IE"){window.alert("This demo may take some time to load in Internet Explorer. The PixelEngine performs best in Firefox 1.5+ and Opera 8+.");};milescriptdemo_aClass.$c=new ClassCache.get('snakegame_g')().$n(milescriptdemo_aClass.$b);milescriptdemo_aClass.$a.innerHTML="RestartDemo";}else{milescriptdemo_aClass.$c.$v();};return true;};milescriptdemo_aClass.$b=null;milescriptdemo_aClass.$c=null;milescriptdemo_aClass.$a;milescriptdemo_aClass.staticInit = null;};return milescriptdemo_aClass;});
ClassCache.load("snakegame_g", new function(){function snakegame_gClass(){var parent = Object;snakegame_gClass.initFunc.prototype = parent;snakegame_gClass.initFunc.prototype.implemented={};var toReturn = new snakegame_gClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_g';return toReturn;};snakegame_gClass.$msClassName = 'snakegame_g';snakegame_gClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$n = function($D) {$f=$D;$y();$p();$t();$A();return me;};var $o = function() {$k=false;$c=1;$C($c);$A();};this.$x = function($D) {$i.$l($D);};var $p = function() {$h=new ClassCache.get('snakegame_a')().$b(me);if(ClassCache.get('libutil_b').$y()=="IE"){var $D=document.getElementsByTagName("body")[0];ClassCache.get('libutil_b').$p("keydown",$D,new ClassCache.get('mscore_f')().$c($h.$c,$h).$d);}else{ClassCache.get('libutil_b').$p("keydown",window,new ClassCache.get('mscore_f')().$c($h.$c,$h).$d);};};var $q = function() {$i.$q();if($j.$b($i.$n(),$i.$o())){$u();}else{if($i.$p()){$u();}else{for(var $D in $d){if(Array.prototype[$D] != null) continue;if($d[$D].$i($i.$n(),$i.$o())){ClassCache.get('mscore_e').$f("Ate an Orange",'org.milescript.snake.SnakeGame',196);$m++;$d[$D].$d();$i.$r($l*$c);};};if($m==$g){$B();}else{if(!$k){window.setTimeout(new ClassCache.get('mscore_f')().$c($q,me).$d,$a);};};};};};var $s = function() {ClassCache.get('mscore_e').$g("Beat the Game",'org.milescript.snake.SnakeGame',287);window.alert("Congratulations, you beat the game!");};var $t = function() {$C($c);};var $u = function() {ClassCache.get('mscore_e').$j("Game Over",'org.milescript.snake.SnakeGame',227);window.alert("Game Over");};this.$v = function() {$k=true;$a=100;window.setTimeout(new ClassCache.get('mscore_f')().$c($o,me).$d,$a*2);};var $C = function($D) {ClassCache.get('mscore_e').$e("Loading Level : "+$D,'org.milescript.snake.SnakeGame',237);$b.$libpixelengine_b_c();window.alert("Level "+$D+"\nThe snake is hungry, eat the oranges!");$a=$a-($D*10);$i=new ClassCache.get('snakegame_b')().$k($b);$m=0;switch($D){case 1:$j=new ClassCache.get('snakegame_f')().$d();break;case 2:$j=new ClassCache.get('snakegame_d')().$d();break;case 3:$j=new ClassCache.get('snakegame_i')().$d();break;default:window.alert("Failed to load level "+$D+"\nError: Invalid Level Number");}$z();$b.$libpixelengine_b_h($j.$c());};var $y = function() {ClassCache.get('mscore_e').$g("Creating Screen",'org.milescript.snake.SnakeGame',127);$b=new ClassCache.get('libpixelengine_c')().$i(300,300,5);$f.appendChild($b.$libpixelengine_b_d());};var $z = function() {$d=new Array();for(var i=0;i<$g;i++){var $D=new ClassCache.get('snakegame_h')().$c($b);var $E=false;for(var $F in $j.$c()){if(Array.prototype[$F] != null) continue;if($j.$c()[$F].$k($D.$g(),$D.$h())){$E=true;break;};};if($E){$D.$d();i--;}else{$d.push($D);};};};var $A = function() {window.setTimeout(new ClassCache.get('mscore_f')().$c($q,me).$d,$a);};var $B = function() {ClassCache.get('mscore_e').$g("Beat the Level",'org.milescript.snake.SnakeGame',273);if($c==$e){$s();}else{$C(++$c);$q();};};var $b;var $j;var $i;var $h;var $a=100;var $g=6;var $d;var $m=0;var $c=1;var $e=3;var $l=4;var $f;var $k=false;};snakegame_gClass.staticInit = function(){snakegame_gClass.$r = function() {snakegame_gClass.$w();};snakegame_gClass.$w = function() {var $D=new ClassCache.get('snakegame_g')().$n(document.body);};snakegame_gClass.staticInit = null;};return snakegame_gClass;});
ClassCache.load("snakegame_f", new function(){function snakegame_fClass(){var parent = (new ClassCache.get('snakegame_c')());snakegame_fClass.initFunc.prototype = parent;snakegame_fClass.initFunc.prototype.implemented={};var toReturn = new snakegame_fClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_f';return toReturn;};snakegame_fClass.$msClassName = 'snakegame_f';snakegame_fClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$d = function() {me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,29,1,30,"yellow"));return me;};};snakegame_fClass.staticInit = function(){snakegame_fClass.staticInit = null;};return snakegame_fClass;});
ClassCache.load("libpixelengine_a", new function(){function libpixelengine_aClass(){var parent = Object;libpixelengine_aClass.initFunc.prototype = parent;libpixelengine_aClass.initFunc.prototype.implemented={};var toReturn = new libpixelengine_aClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'libpixelengine_a';return toReturn;};libpixelengine_aClass.$msClassName = 'libpixelengine_a';libpixelengine_aClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$d = function(_x,_y,$l,$n,$m) {me.x=_x;me.y=_y;me.$a=$l;me.$c=$n;me.$b=$m;return me;};this.$e = function() {return me;};this.$f = function() {return me.$a;};this.$g = function() {return me.$b;};this.$h = function() {return me.$c;};this.$i = function() {return me.x;};this.$j = function() {return me.y;};this.$k = function(_x,_y) {if(_x>=me.x&&_x<me.x+me.$c){if(_y>=me.y&&_y<me.y+me.$a){return true;};};return false;};me.x;me.y;me.$a;me.$c;me.$b;};libpixelengine_aClass.staticInit = function(){libpixelengine_aClass.staticInit = null;};return libpixelengine_aClass;});
ClassCache.load("snakegame_c", new function(){function snakegame_cClass(){var parent = Object;snakegame_cClass.initFunc.prototype = parent;snakegame_cClass.initFunc.prototype.implemented={};var toReturn = new snakegame_cClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_c';return toReturn;};snakegame_cClass.$msClassName = 'snakegame_c';snakegame_cClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$b = function(_x,_y) {for(var $d in me.$a){if(Array.prototype[$d] != null) continue;if(me.$a[$d].$k(_x,_y)){return true;};};return false;};this.$c = function() {return me.$a;};me.$a=new Array();};snakegame_cClass.staticInit = function(){snakegame_cClass.staticInit = null;};return snakegame_cClass;});
ClassCache.load("snakegame_h", new function(){function snakegame_hClass(){var parent = Object;snakegame_hClass.initFunc.prototype = parent;snakegame_hClass.initFunc.prototype.implemented={};var toReturn = new snakegame_hClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_h';return toReturn;};snakegame_hClass.$msClassName = 'snakegame_h';snakegame_hClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$c = function($j) {$a=$j;$f();$e();return me;};this.$d = function() {$b=true;};var $e = function() {$a.$libpixelengine_b_h([new ClassCache.get('libpixelengine_a')().$d(x,y,1,1,"orange")]);};var $f = function() {x=window.parseInt(Math.random()*($a.$libpixelengine_b_e()/$a.$libpixelengine_b_g()));y=window.parseInt(Math.random()*($a.$libpixelengine_b_b()/$a.$libpixelengine_b_g()));};this.$g = function() {return x;};this.$h = function() {return y;};this.$i = function(_x,_y) {if($b){return false;}else{return x==_x&&y==_y;};};var x;var y;var $a;var $b=false;};snakegame_hClass.staticInit = function(){snakegame_hClass.staticInit = null;};return snakegame_hClass;});
ClassCache.load("libpixelengine_c", new function(){function libpixelengine_cClass(){var parent = Object;libpixelengine_cClass.initFunc.prototype = parent;libpixelengine_cClass.initFunc.prototype.implemented={'libpixelengine_b':''};var toReturn = new libpixelengine_cClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'libpixelengine_c';return toReturn;};libpixelengine_cClass.$msClassName = 'libpixelengine_c';libpixelengine_cClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$h = function() {this.$i(400,400,5);return me;};this.$i = function($s,$t,$r) {$c=$s;$f=$t;$a=$r;$m();return me;};this.$j = function() {return $c;};this.$k = function() {for(var i=0;i<$b.rows.length;i++){for(var j=0;j<$b.rows[i].cells.length;j++)$b.rows[i].cells[j].style.background=$g;};};this.$l = function() {return $d;};var $m = function() {$d=document.createElement("div");$d.style.height=$c+"px";$d.style.width=$f+"px";$d.style.border="1px solid black";$b=document.createElement("table");$b.cellSpacing=0;$b.cellPadding=0;$b.height="100%";$b.width="100%";for(var i=0;i<window.parseInt($c/$a);i++){var $r=$b.insertRow(i);$r.height=$a+"px";$r.width=window.parseInt($f/$a)+"px";for(var j=0;j<window.parseInt($f/$a);j++){var $s=$b.rows[i].insertCell(j);$s.height=$a+"px";$s.width=$a+"px";$s.style.background=$g;};};$d.appendChild($b);};this.$n = function() {return $f;};this.$q = function($r) {for(var $u in $r){if(Array.prototype[$u] != null) continue;var $s=$r[$u].x;var $t=$r[$u].y;for(var i=0;i<$r[$u].$a;i++){for(var j=0;j<$r[$u].$c;j++){if(($t+i)<$c&&($s+j)<$f){if($r[$u].$b==$e){$b.rows[$t+i].cells[$s+j].style.background=$g;}else{$b.rows[$t+i].cells[$s+j].style.background=$r[$u].$b;};};};};};};this.$o = function() {return $b;};this.$p = function() {return $a;};var $c;var $f;var $a;var $b;var $d;var $g="black";var $e="none";this.$libpixelengine_b_b=this.$j;this.$libpixelengine_b_c=this.$k;this.$libpixelengine_b_d=this.$l;this.$libpixelengine_b_e=this.$n;this.$libpixelengine_b_h=this.$q;this.$libpixelengine_b_f=this.$o;this.$libpixelengine_b_g=this.$p;};libpixelengine_cClass.staticInit = function(){libpixelengine_cClass.staticInit = null;};return libpixelengine_cClass;});
ClassCache.load("snakegame_a", new function(){function snakegame_aClass(){var parent = Object;snakegame_aClass.initFunc.prototype = parent;snakegame_aClass.initFunc.prototype.implemented={};var toReturn = new snakegame_aClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_a';return toReturn;};snakegame_aClass.$msClassName = 'snakegame_a';snakegame_aClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$b = function($d) {$a=$d;return me;};this.$c = function(_e) {var $d;if(ClassCache.get('libutil_b').$y()=="IE"){$d=window.event.keyCode;}else{$d=_e.which;};switch($d){case 65:$a.$x("left");break;case 87:$a.$x("up");break;case 68:$a.$x("right");break;case 83:$a.$x("down");break;}return false;};var $a;};snakegame_aClass.staticInit = function(){snakegame_aClass.staticInit = null;};return snakegame_aClass;});
ClassCache.load("snakegame_b", new function(){function snakegame_bClass(){var parent = Object;snakegame_bClass.initFunc.prototype = parent;snakegame_bClass.initFunc.prototype.implemented={};var toReturn = new snakegame_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_b';return toReturn;};snakegame_bClass.$msClassName = 'snakegame_b';snakegame_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$k = function($s) {$b=$s;$f=window.parseInt($s.$libpixelengine_b_e()/$s.$libpixelengine_b_g())-1;$j=window.parseInt($s.$libpixelengine_b_e()/$s.$libpixelengine_b_g())-1;this.$r($e);return me;};this.$l = function($s) {if(!($d=="right"&&$s=="left")&&!($d=="left"&&$s=="right")&&!($d=="down"&&$s=="up")&&!($d=="up"&&$s=="down")){$d=$s;};};this.$m = function() {$h=true;$c=0;};this.$n = function() {return x;};this.$o = function() {return y;};this.$p = function() {for(var i=1;i<$i.$f();i++){if($i.$g(i).x==x&&$i.$g(i).y==y){return true;};};return false;};this.$r = function($s) {$g=$s;this.$m();};this.$q = function() {switch($d){case "left":x--;break;case "right":x++;break;case "up":y--;break;case "down":y++;break;default:window.alert("Snake did not recognize direction "+$d);}if(x<0){x=$f;}else{if(y<0){y=$j;}else{if(x>$f){x=0;}else{if(y>$j){y=0;};};};};var $s=new ClassCache.get('libpixelengine_a')().$d(x,y,1,1,$a);if(!$h){var $t=$i.$e();$t.$b="none";$b.$libpixelengine_b_h([$s,$t]);}else{if($c==$g){$h=false;};$c++;$b.$libpixelengine_b_h([$s]);};$i.$d($s);};var $b;var x=40;var y=30;var $h=false;var $c=0;var $g=3;var $i=new ClassCache.get('snakegame_e')().$b();var $d="left";var $a="green";var $e=20;var $f=0;var $j=0;};snakegame_bClass.staticInit = function(){snakegame_bClass.staticInit = null;};return snakegame_bClass;});
ClassCache.load("snakegame_e", new function(){function snakegame_eClass(){var parent = Object;snakegame_eClass.initFunc.prototype = parent;snakegame_eClass.initFunc.prototype.implemented={};var toReturn = new snakegame_eClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_e';return toReturn;};snakegame_eClass.$msClassName = 'snakegame_e';snakegame_eClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$b = function() {return me;};this.$c = function() {return $a;};this.$d = function($h) {if($a.length>0){for(var i=($a.length-1);i>=0;i--){$a[i+1]=$a[i];};};$a[0]=$h;};this.$e = function() {return $a.pop();};this.$g = function($h) {return $a[$h];};this.$f = function() {return $a.length;};var $a=new Array();};snakegame_eClass.staticInit = function(){snakegame_eClass.staticInit = null;};return snakegame_eClass;});
ClassCache.load("snakegame_i", new function(){function snakegame_iClass(){var parent = (new ClassCache.get('snakegame_c')());snakegame_iClass.initFunc.prototype = parent;snakegame_iClass.initFunc.prototype.implemented={};var toReturn = new snakegame_iClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_i';return toReturn;};snakegame_iClass.$msClassName = 'snakegame_i';snakegame_iClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$d = function() {me.$a.push(new ClassCache.get('libpixelengine_a')().$d(59,0,20,1,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(0,0,20,1,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(59,40,20,1,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(0,40,20,1,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(0,0,1,20,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(0,59,1,20,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(40,0,1,20,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(40,59,1,20,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,14,1,29,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,29,1,29,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,44,1,29,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(10,10,39,1,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(50,10,39,1,"yellow"));return me;};};snakegame_iClass.staticInit = function(){snakegame_iClass.staticInit = null;};return snakegame_iClass;});
ClassCache.load("snakegame_d", new function(){function snakegame_dClass(){var parent = (new ClassCache.get('snakegame_c')());snakegame_dClass.initFunc.prototype = parent;snakegame_dClass.initFunc.prototype.implemented={};var toReturn = new snakegame_dClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'snakegame_d';return toReturn;};snakegame_dClass.$msClassName = 'snakegame_d';snakegame_dClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$d = function() {me.$a.push(new ClassCache.get('libpixelengine_a')().$d(59,16,29,1,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(0,16,29,1,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,0,1,29,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,59,1,29,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,19,1,29,"yellow"));me.$a.push(new ClassCache.get('libpixelengine_a')().$d(16,39,1,29,"yellow"));return me;};};snakegame_dClass.staticInit = function(){snakegame_dClass.staticInit = null;};return snakegame_dClass;});
ClassCache.load("libutil_f", new function(){function libutil_fClass(){var parent = Object;libutil_fClass.initFunc.prototype = parent;libutil_fClass.initFunc.prototype.implemented={'mscore_a':''};var toReturn = new libutil_fClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'libutil_f';return toReturn;};libutil_fClass.$msClassName = 'libutil_f';libutil_fClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$s = function($I,$J,$K) {$j=$I;$d=$K;$i=$J;$q=0;$m=0;$o=false;this.$F();return me;};this.$r = function($I) {$j=$I;$d=300;$i=300;$q=0;$m=0;$o=false;this.$F();return me;};this.$t = function($K,$I,$M,$L,$J) {$d=$K;$i=$I;$q=$M;$m=$L;$o=$J;this.$F();return me;};this.$C = function($I) {$h=$I;};this.$x = function() {return $a;};this.$z = function($I) {this.$y($I+"<br>");};var $w = function(_e) {$g.innerHTML="";return true;};var $H = function(_e) {if($l){$e.innerHTML="Pin Console";$l=false;}else{$e.innerHTML="Unpin Console";$l=true;};return true;};this.$E = function($I) {$a=$I;};this.$D = function() {$g.innerHTML="";};var $v = function(_e) {if($b){$n.innerHTML="Start Logging";$b=false;ClassCache.get('mscore_e').$l(me);}else{$n.innerHTML="Stop Logging";$b=true;ClassCache.get('mscore_e').$i(me);};return true;};this.$u = function($I) {if($b){var $J="";if($I.$i()=="DEBUG"){$J="<span style='color:#00FF00;'>";}else{if($I.$i()=="INFO"){$J="<span style='color:#3366CC;'>";}else{if($I.$i()=="WARNING"){$J="<span style='color:#FFFF00;'>";}else{if($I.$i()=="ERROR"){$J="<span style='color:#FFAA00;'>";}else{if($I.$i()=="FATAL"){$J="<span style='color:#FF0000;'>";};};};};};if($h){$J+=("["+$I.$i()+"]["+$I.$g()+":"+$I.$j()+"] - ");};$J+=$I.$h()+"</span>";this.$z($J);if(!$l){$g.scrollTop=$g.scrollHeight;};};};this.$F = function() {if($o){$p=window.open("","MilescriptDebugConsole","width="+($d)+",height="+($i+40)+",scrollbars=no,toolbar=no,location=no");$p.moveTo($m,$q);$g=$p.document.createElement("div");$g.style.top=0+"px";$g.style.left=0+"px";$g.style.position="absolute";}else{if($j!=null){$g=document.createElement("div");$j.appendChild($g);}else{$g=document.createElement("div");$g.style.top=$q+"px";$g.style.left=$m+"px";$g.style.position="absolute";};};$g.style.textAlign="left";$g.style.width=$d+"px";$g.style.height=$i+"px";$g.style.overflow="auto";$g.style.backgroundColor="black";$g.style.fontFamily="courier";$g.style.fontWeight="bold";$g.style.fontSize="10pt";$g.style.color="#00FF00";$g.style.border="medium groove black";if($j==null){if($o){$e=$p.document.createElement("button");}else{$e=document.createElement("button");};var $I=120;$e.innerHTML="Pin Console";$e.style.position="absolute";$e.style.width=$I;$e.style.top=($q+$i+5)+"px";$e.style.left=($m+3)+"px";ClassCache.get('libutil_b').$p("click",$e,new ClassCache.get('mscore_f')().$c($H,me).$d);if($o){$n=$p.document.createElement("button");}else{$n=document.createElement("button");};$n.innerHTML="Stop Logging";$n.style.position="absolute";$n.style.width=$I;$n.style.top=($q+$i+5)+"px";$n.style.left=($m+3+$I)+"px";ClassCache.get('libutil_b').$p("click",$n,new ClassCache.get('mscore_f')().$c($v,me).$d);if($o){$k=$p.document.createElement("button");}else{$k=document.createElement("button");};$k.innerHTML="Clear";$k.style.position="absolute";$k.style.width=$I;$k.style.top=($q+$i+5)+"px";$k.style.left=($m+3+($I*2))+"px";ClassCache.get('libutil_b').$p("click",$k,new ClassCache.get('mscore_f')().$c($w,me).$d);if($o){$p.document.body.appendChild($g);$p.document.body.appendChild($e);$p.document.body.appendChild($n);$p.document.body.appendChild($k);}else{document.body.appendChild($g);document.body.appendChild($e);document.body.appendChild($n);document.body.appendChild($k);};};$f=true;};this.$G = function() {return $g;};this.$y = function($I) {$g.innerHTML+=$I;};var $g=null;var $e=null;var $n=null;var $k=null;var $p=null;var $a=false;var $o=false;var $d=720;var $i=320;var $q=5;var $m=5;var $h=true;var $l=false;var $b=true;var $f=false;var $j;this.$mscore_a_b=this.$u;};libutil_fClass.staticInit = function(){libutil_fClass.$B = function() {return libutil_fClass.$c;};libutil_fClass.$A = function(_c) {libutil_fClass.$c=_c;return _c;};libutil_fClass.$c=null;libutil_fClass.staticInit = null;};return libutil_fClass;});
ClassCache.load("milescriptdemo_k", new function(){function milescriptdemo_kClass(){var parent = Object;milescriptdemo_kClass.initFunc.prototype = parent;milescriptdemo_kClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_kClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_k';return toReturn;};milescriptdemo_kClass.$msClassName = 'milescriptdemo_k';milescriptdemo_kClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function() {return me;};};milescriptdemo_kClass.staticInit = function(){milescriptdemo_kClass.$b = function() {var $d=new ClassCache.get('googlebasedemo_j')().$g();milescriptdemo_kClass.$c();};milescriptdemo_kClass.$c = function() {var $d=document.getElementById("codeViewInsertionPoint");var $e=new ClassCache.get('milescriptdemo_i')().$B($d,"docs/googlebasedemo/v_0.1.1/index_googlebasedemo.html");$e.$M("GoogleBaseDemoJSON.ms","googlebasesource/GoogleBaseDemoJSON.html","googlebasetarget/GoogleBaseDemoJSON.html","googlebasetarget/GoogleBaseDemoJSON_c.html","docs/googlebasedemo/v_0.1.1/org/milescript/googlebase/GoogleBaseDemoJSON.html");$e.$M("JSONDelegate.ms","googlebasesource/JSONDelegate.html","googlebasetarget/NotGenerated.html","googlebasetarget/NotGenerated.html","docs/googlebasedemo/v_0.1.1/org/milescript/googlebase/JSONDelegate.html");$e.$M("JSONRequest.ms","googlebasesource/JSONRequest.html","googlebasetarget/JSONRequest.html","googlebasetarget/JSONRequest_c.html","docs/googlebasedemo/v_0.1.1/org/milescript/googlebase/JSONRequest.html");$e.$M("MSJSON.ms","googlebasesource/MSJSON.html","googlebasetarget/MSJSON.html","googlebasetarget/MSJSON_c.html","docs/googlebasedemo/v_0.1.1/org/milescript/googlebase/MSJSON.html");};milescriptdemo_kClass.staticInit = null;};return milescriptdemo_kClass;});
ClassCache.load("googlebasedemo_j", new function(){function googlebasedemo_jClass(){var parent = Object;googlebasedemo_jClass.initFunc.prototype = parent;googlebasedemo_jClass.initFunc.prototype.implemented={};var toReturn = new googlebasedemo_jClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'googlebasedemo_j';return toReturn;};googlebasedemo_jClass.$msClassName = 'googlebasedemo_j';googlebasedemo_jClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$g = function() {$e=document.getElementById("insertionPoint");$b=document.createElement("input");ClassCache.get('libutil_b').$p("keydown",$b,new ClassCache.get('mscore_f')().$c(me.$k,me).$d);$e.appendChild($b);var $m=document.createElement("button");$m.innerHTML="Search";ClassCache.get('libutil_b').$p("mousedown",$m,new ClassCache.get('mscore_f')().$c(me.$l,me).$d);$e.appendChild($m);$c=document.createElement("div");$c.style.width="90%";$c.style.border="1px solid black";$c.style.height="500px";$c.style.textAlign="left";$c.style.overflow="auto";$e.appendChild($c);return me;};var $i = function($m) {$c.innerHTML=$m;};this.$l = function(_e) {var $n=$b.value;var $m=$n.split(' ');$a="bq=";for(var $o in $m){if(Array.prototype[$o] != null) continue;$a+=$m[$o]+'+';};$a=$a.substring(0,$a.length-1);this.$j();return true;};this.$k = function(_e) {if(ClassCache.get('libutil_b').$r(_e)=="13"){this.$l(_e);};return true;};this.$j = function() {var $n=$f+$d+'?'+$a;var $m=new ClassCache.get('googlebasedemo_i')().$e($n);$m.$g(new ClassCache.get('mscore_f')().$c(me.$h,me).$d);$m.$k("alt","json-in-script");$m.$l();};this.$h = function($m) {var $n=$m;var $o="<table cellspacing='0' cellpadding='0'><tr><td align='left'><ul style='text-align:left;list-style-type:disc;margin-left:20px;'>";for(var i=0;i<$n.feed.entry.length;i++){var $p=$n.feed.entry[i];$o+="<li><a href='"+$p.link[0].href+"' target='_blank'>"+$p.title.$t+"</a></li>";};$o+="</ul></td></tr></table>";$c.innerHTML=$o;};var $d="snippets";var $a="bq=digital+camera";var $f="http://www.google.com/base/feeds/";var $e;var $b;var $c;};googlebasedemo_jClass.staticInit = function(){googlebasedemo_jClass.staticInit = null;};return googlebasedemo_jClass;});
ClassCache.load("googlebasedemo_i", new function(){function googlebasedemo_iClass(){var parent = Object;googlebasedemo_iClass.initFunc.prototype = parent;googlebasedemo_iClass.initFunc.prototype.implemented={};var toReturn = new googlebasedemo_iClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'googlebasedemo_i';return toReturn;};googlebasedemo_iClass.$msClassName = 'googlebasedemo_i';googlebasedemo_iClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$e = function($m) {$d=$m;return me;};var $f = function() {if($a!=null){document.getElementsByTagName("head")[0].removeChild($a);$a=null;};};this.$g = function($m) {$c=$m;};var $h = function($m) {$f();if($c!=null){$c($m);};};this.$k = function($m,$n) {$b.$h($m,$n);};this.$i = function() {$b=new ClassCache.get('googlebasedemo_g')().$c();};var $j = function() {var $n=$d;var $m=$b.$d();for(var $o in $m){if(Array.prototype[$o] != null) continue;var $p=$b.$g($m[$o]);$n+='&'+$m[$o]+'='+$p;};$n+="&callback=milescript.MSJSON.Callback";return $n;};this.$l = function() {ClassCache.get('googlebasedemo_a').$c(new ClassCache.get('mscore_f')().$c($h,me).$d);$a=document.createElement("script");$a.setAttribute("type","text/javascript");$a.setAttribute("src",$j());document.getElementsByTagName("head")[0].appendChild($a);};var $d;var $b=new ClassCache.get('googlebasedemo_g')().$c();var $c;var $a;};googlebasedemo_iClass.staticInit = function(){googlebasedemo_iClass.staticInit = null;};return googlebasedemo_iClass;});
ClassCache.load("googlebasedemo_g", new function(){function googlebasedemo_gClass(){var parent = Object;googlebasedemo_gClass.initFunc.prototype = parent;googlebasedemo_gClass.initFunc.prototype.implemented={};var toReturn = new googlebasedemo_gClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'googlebasedemo_g';return toReturn;};googlebasedemo_gClass.$msClassName = 'googlebasedemo_g';googlebasedemo_gClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$c = function() {return me;};this.$d = function() {return $b;};this.$e = function() {return $a;};this.$f = function($j) {var $k=$a[$j];$a[$j]=null;for(var i=0;i<$b.length;i++){if($b[i]==$j){$b.splice(i,1);};};return $k;};this.$g = function($j) {return $a[$j];};this.$h = function($j,$k) {$a[$j]=$k;if($b[$j]==null){$b.push($j);};};this.$i = function($j,$k) {$b.push($j);$a[$j]=$k;};var $a=new Array();var $b=new Array();};googlebasedemo_gClass.staticInit = function(){googlebasedemo_gClass.staticInit = null;};return googlebasedemo_gClass;});
ClassCache.load("milescriptdemo_j", new function(){function milescriptdemo_jClass(){var parent = Object;milescriptdemo_jClass.initFunc.prototype = parent;milescriptdemo_jClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_jClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_j';return toReturn;};milescriptdemo_jClass.$msClassName = 'milescriptdemo_j';milescriptdemo_jClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function() {return me;};};milescriptdemo_jClass.staticInit = function(){milescriptdemo_jClass.$b = function() {milescriptdemo_jClass.$c();};milescriptdemo_jClass.$c = function() {var $d=document.getElementById("codeViewInsertionPoint");var $e=new ClassCache.get('milescriptdemo_i')().$B($d,"docs/fisheye/v_0.1.1/index_FisheyeTest.html");$e.$M("FisheyeMenu.ms","fisheyesource/FisheyeMenu.html","fisheyetarget/FisheyeMenu.html","fisheyetarget/FisheyeMenu_c.html","docs/fisheye/v_0.1.1/org/milescript/fisheye/FisheyeMenu.html");$e.$M("FisheyeButton.ms","fisheyesource/FisheyeButton.html","fisheyetarget/FisheyeButton.html","fisheyetarget/FisheyeButton_c.html","docs/fisheye/v_0.1.1/org/milescript/fisheye/FisheyeButton.html");};milescriptdemo_jClass.staticInit = null;};return milescriptdemo_jClass;});
ClassCache.load("milescriptdemo_h", new function(){function milescriptdemo_hClass(){var parent = Object;milescriptdemo_hClass.initFunc.prototype = parent;milescriptdemo_hClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_hClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_h';return toReturn;};milescriptdemo_hClass.$msClassName = 'milescriptdemo_h';milescriptdemo_hClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function() {return me;};};milescriptdemo_hClass.staticInit = function(){milescriptdemo_hClass.$b = function() {var $e=document.getElementById("insertionPoint");var $d=new ClassCache.get('lifegame_a')().$k($e);milescriptdemo_hClass.$c();};milescriptdemo_hClass.$c = function() {var $d=document.getElementById("codeViewInsertionPoint");var $e=new ClassCache.get('milescriptdemo_i')().$B($d,"docs/lifegame/v_0.1.1/index_LifeGame.html");$e.$M("GameBoard.ms","lifedemosource/GameBoard.html","lifedemotarget/GameBoard.html","lifedemotarget/GameBoard_c.html","docs/lifegame/v_0.1.1/org/milescript/life/GameBoard.html");$e.$M("LifeGame.ms","lifedemosource/LifeGame.html","lifedemotarget/LifeGame.html","lifedemotarget/LifeGame_c.html","docs/lifegame/v_0.1.1/org/milescript/life/LifeGame.html");$e.$M("Map.ms","lifedemosource/Map.html","lifedemotarget/Map.html","lifedemotarget/Map_c.html","docs/lifegame/v_0.1.1/org/milescript/life/Map.html");$e.$M("Organism.ms","lifedemosource/Organism.html","lifedemotarget/Organism.html","lifedemotarget/Organism_c.html","docs/lifegame/v_0.1.1/org/milescript/life/Organism.html");$e.$M("IScreen.ms","lifedemosource/IScreen.html","lifedemotarget/NotGenerated.html","lifedemotarget/NotGenerated.html","docs/libpixelengine/v_0.1.1/org/milescript/pixelengine/IScreen.html");$e.$M("Screen.ms","lifedemosource/Screen.html","lifedemotarget/Screen.html","lifedemotarget/Screen_c.html","docs/libpixelengine/v_0.1.1/org/milescript/pixelengine/Screen.html");$e.$M("PixelDelta.ms","lifedemosource/PixelDelta.html","lifedemotarget/PixelDelta.html","lifedemotarget/PixelDelta_c.html","docs/libpixelengine/v_0.1.1/org/milescript/pixelengine/PixelDelta.html");};milescriptdemo_hClass.staticInit = null;};return milescriptdemo_hClass;});
ClassCache.load("lifegame_a", new function(){function lifegame_aClass(){var parent = Object;lifegame_aClass.initFunc.prototype = parent;lifegame_aClass.initFunc.prototype.implemented={};var toReturn = new lifegame_aClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'lifegame_a';return toReturn;};lifegame_aClass.$msClassName = 'lifegame_a';lifegame_aClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$k = function($z) {$j=$z;$r();return me;};var $o = function(_e) {$i.$i(false);$h.innerHTML="Enable Randomness";ClassCache.get('libutil_b').$s("click",$h,$a);ClassCache.get('libutil_b').$p("click",$h,$b);return true;};var $s = function(_e) {$c=true;return true;};var $m = function() {$i.$k();if(!$e){window.setTimeout(new ClassCache.get('mscore_f')().$c($m,me).$d,300);};};var $p = function(_e) {if($c){var $z=ClassCache.get('libutil_b').$j(_e);var $A=$z.id.split(",");$i.$n(window.parseInt($A[0]),window.parseInt($A[1]));};return true;};var $x = function(_e) {$i.$i(true);$h.innerHTML="Disable Randomness";ClassCache.get('libutil_b').$s("click",$h,$b);ClassCache.get('libutil_b').$p("click",$h,$a);return true;};var $v = function(_e) {$c=false;return true;};var $r = function() {$j.style.textAlign="center";$i=new ClassCache.get('lifegame_b')().$h($j);$g=document.createElement("button");$g.innerHTML="Start";ClassCache.get('libutil_b').$p("click",$g,$f);$j.appendChild($g);$h=document.createElement("button");$h.innerHTML="Enable Randomness";ClassCache.get('libutil_b').$p("click",$h,$b);$j.appendChild($h);var $B=document.createElement("button");$B.innerHTML="Clear";ClassCache.get('libutil_b').$p("click",$B,new ClassCache.get('mscore_f')().$c($l,me).$d);$j.appendChild($B);var $A=new ClassCache.get('mscore_f')().$c($p,me).$d;var $D=new ClassCache.get('mscore_f')().$c($t,me).$d;var $C=$i.$v().$libpixelengine_b_f();var $z=$i.$v().$libpixelengine_b_d();ClassCache.get('libutil_b').$p("mousedown",$z,new ClassCache.get('mscore_f')().$c($s,me).$d);ClassCache.get('libutil_b').$p("mouseup",$z,new ClassCache.get('mscore_f')().$c($v,me).$d);for(var i=0;i<$C.rows.length;i++){for(var j=0;j<$C.rows[i].cells.length;j++){$C.rows[i].cells[j].setAttribute("id",j+","+i);ClassCache.get('libutil_b').$p("mouseover",$C.rows[i].cells[j],$A);ClassCache.get('libutil_b').$p("mousedown",$C.rows[i].cells[j],$D);};};$i.$j(22,23);$i.$j(23,23);$i.$j(24,23);$i.$j(24,24);$i.$j(23,25);for(var i=0;i<10;i++){$i.$j(10+i,20);};};var $u = function() {$e=true;};var $q = function(_e) {$u();$g.innerHTML="Start";ClassCache.get('libutil_b').$s("click",$g,$d);ClassCache.get('libutil_b').$p("click",$g,$f);return true;};var $w = function() {$e=false;window.setTimeout(new ClassCache.get('mscore_f')().$c($m,me).$d,300);};var $t = function(_e) {var $z=ClassCache.get('libutil_b').$j(_e);var $A=$z.id.split(",");$i.$n(window.parseInt($A[0]),window.parseInt($A[1]));return true;};var $l = function(_e) {$i.$t();return true;};this.$y = function(_e) {$w();$g.innerHTML="Stop";ClassCache.get('libutil_b').$s("click",$g,$f);ClassCache.get('libutil_b').$p("click",$g,$d);return true;};var $i;var $c=false;var $e=false;var $f=new ClassCache.get('mscore_f')().$c(me.$y,me).$d;var $d=new ClassCache.get('mscore_f')().$c($q,me).$d;var $b=new ClassCache.get('mscore_f')().$c($x,me).$d;var $a=new ClassCache.get('mscore_f')().$c($o,me).$d;var $g;var $h;var $j;};lifegame_aClass.staticInit = function(){lifegame_aClass.$n = function() {var $z=new ClassCache.get('lifegame_a')().$k(document.body);};lifegame_aClass.staticInit = null;};return lifegame_aClass;});
ClassCache.load("lifegame_b", new function(){function lifegame_bClass(){var parent = Object;lifegame_bClass.initFunc.prototype = parent;lifegame_bClass.initFunc.prototype.implemented={};var toReturn = new lifegame_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'lifegame_b';return toReturn;};lifegame_bClass.$msClassName = 'lifegame_b';lifegame_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$h = function($x) {$b=new ClassCache.get('libpixelengine_c')().$i($a,$f,$c);$x.appendChild($b.$libpixelengine_b_d());$d=new ClassCache.get('lifegame_c')().$c();return me;};this.$r = function(_x,_y) {var $x=$d.$h(_x+","+_y);if($x!=null){$x.$m();};};this.$n = function(_x,_y) {if($d.$d(_x+","+_y)==null){this.$j(_x,_y);}else{var $x=$d.$d(_x+","+_y);$x.$m();$d.$h(_x+","+_y);};};var $l = function() {var $x=$d.$g();for(var $y in $x){if(Array.prototype[$y] != null) continue;if($x[$y]!=null){var $z=$m($x[$y]);$x[$y].$l($z);};};for(var $y in $x){if(Array.prototype[$y] != null) continue;if($x[$y]!=null){var $z=$x[$y].$q();if($z==0||$z==1){$x[$y].$m();$d.$h($x[$y].$n()+","+$x[$y].$p());}else{if($z==3){var $A=0;var $B=(Math.random()*100);if($g&&$B>99.5){$x[$y].$m();$d.$h($x[$y].$n()+","+$x[$y].$p());};}else{if($z>=4){$x[$y].$m();$d.$h($x[$y].$n()+","+$x[$y].$p());};};};};};$o();};this.$k = function() {$s();$l();};var $q = function(_y) {if(_y>=($a/$c)){return 0;};if(_y<0){return ($a/$c)-1;};return _y;};this.$i = function($x) {$g=$x;};var $w = function(_x) {if(_x>=($f/$c)){return 0;};if(_x<0){return ($f/$c)-1;};return _x;};var $o = function() {var $x=$e.$f();for(var i=0;i<$x.length;i++){var $y=$e.$d($x[i]);if($y==2){var $z=(Math.random()*100);if($g&&$z>99.5){if($d.$d($x[i])==null){var $A=$x[i].split(",");me.$j(window.parseInt($A[0]),window.parseInt($A[1]));};};}else{if($y==3){if($d.$d($x[i])==null){var $z=$x[i].split(",");me.$j(window.parseInt($z[0]),window.parseInt($z[1]));};};};};};var $m = function($y) {var x=$y.$n();var y=$y.$p();var $x=0;for(var i=0;i<3;i++){switch(i){case 0:if($d.$d($w(x-1)+","+$q(y-1))!=null){$x++;};if($d.$d($w(x-1)+","+$q(y))!=null){$x++;};if($d.$d($w(x-1)+","+$q(y+1))!=null){$x++;};break;case 1:if($d.$d($w(x)+","+$q(y-1))!=null){$x++;};if($d.$d($w(x)+","+$q(y+1))!=null){$x++;};break;case 2:if($d.$d($w(x+1)+","+$q(y-1))!=null){$x++;};if($d.$d($w(x+1)+","+$q(y))!=null){$x++;};if($d.$d($w(x+1)+","+$q(y+1))!=null){$x++;};break;}};return $x;};var $s = function() {var $x=$d.$g();$e=new ClassCache.get('lifegame_c')().$c();for(var $y in $x){if(Array.prototype[$y] != null) continue;if($x[$y]!=null){$x[$y].$o();$p($x[$y]);};};};this.$t = function() {$b.$libpixelengine_b_c();$d=new ClassCache.get('lifegame_c')().$c();$e=new ClassCache.get('lifegame_c')().$c();};this.$v = function() {return $b;};this.$j = function(_x,_y) {var $x=_x;var $y=_y;if(_x>=($f/$c)){$x=0;};if(_y>=($a/$c)){$y=0;};if(_x<0){$x=($f/$c)-1;};if(_y<0){$y=($f/$c)-1;};$d.$e($x+","+$y,new ClassCache.get('lifegame_d')().$j($b,$x,$y));};this.$u = function(_x,_y) {if($d.$d(_x+","+_y)!=null){return true;};return false;};var $p = function($x) {var x=$x.$n();var y=$x.$p();for(var i=0;i<3;i++){switch(i){case 0:var $y=$e.$d($w(x-1)+","+$q(y-1));if($y==null||$y=="undefined"){$e.$e($w(x-1)+","+$q(y-1),1);}else{$e.$i($w(x-1)+","+$q(y-1),++$y);};$y=$e.$d($w(x-1)+","+$q(y));if($y==null||$y=="undefined"){$e.$e($w(x-1)+","+$q(y),1);}else{$e.$i($w(x-1)+","+$q(y),++$y);};$y=$e.$d($w(x-1)+","+$q(y+1));if($y==null||$y=="undefined"){$e.$e($w(x-1)+","+$q(y+1),1);}else{$e.$i($w(x-1)+","+$q(y+1),++$y);};break;case 1:var $y=$e.$d($w(x)+","+$q(y-1));if($y==null||$y=="undefined"){$e.$e($w(x)+","+$q(y-1),1);}else{$e.$i($w(x)+","+$q(y-1),++$y);};$y=$e.$d($w(x)+","+$q(y+1));if($y==null||$y=="undefined"){$e.$e($w(x)+","+$q(y+1),1);}else{$e.$i($w(x)+","+$q(y+1),++$y);};break;case 2:var $y=$e.$d($w(x+1)+","+$q(y-1));if($y==null||$y=="undefined"){$e.$e($w(x+1)+","+$q(y-1),1);}else{$e.$i($w(x+1)+","+$q(y-1),++$y);};$y=$e.$d($w(x+1)+","+$q(y));if($y==null||$y=="undefined"){$e.$e($w(x+1)+","+$q(y),1);}else{$e.$i($w(x+1)+","+$q(y),++$y);};$y=$e.$d($w(x+1)+","+$q(y+1));if($y==null||$y=="undefined"){$e.$e($w(x+1)+","+$q(y+1),1);}else{$e.$i($w(x+1)+","+$q(y+1),++$y);};break;}};};var $b;var $d;var $e;var $a=600;var $f=600;var $c=15;var $g=false;};lifegame_bClass.staticInit = function(){lifegame_bClass.staticInit = null;};return lifegame_bClass;});
ClassCache.load("lifegame_d", new function(){function lifegame_dClass(){var parent = Object;lifegame_dClass.initFunc.prototype = parent;lifegame_dClass.initFunc.prototype.implemented={};var toReturn = new lifegame_dClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'lifegame_d';return toReturn;};lifegame_dClass.$msClassName = 'lifegame_d';lifegame_dClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$i = function($s,_x,_y,$t) {$a=$s;x=window.parseInt(_x);y=window.parseInt(_y);if($t){me.$r();};return me;};this.$j = function($s,_x,_y) {this.$i($s,_x,_y,true);return me;};this.$k = function($s) {this.$j($s,0,0);return me;};this.$l = function($s) {$g=$s;};this.$m = function() {$h=true;var $s=new ClassCache.get('libpixelengine_a')().$d(x,y,lifegame_dClass.$c,lifegame_dClass.$e,lifegame_dClass.$b);$a.$libpixelengine_b_h([$s]);};this.$n = function() {return x;};this.$o = function() {$f++;switch($f){case 1:$d="lightblue";this.$r();break;case 2:$d="green";this.$r();break;case 3:$d="orange";this.$r();break;case 4:$d="red";this.$r();break;}};this.$p = function() {return y;};this.$q = function() {return $g;};this.$r = function() {var $s=new ClassCache.get('libpixelengine_a')().$d(x,y,lifegame_dClass.$c,lifegame_dClass.$e,$d);$a.$libpixelengine_b_h([$s]);};var $a;var x;var y;var $d="yellow";var $h=false;var $g=0;var $f=0;};lifegame_dClass.staticInit = function(){lifegame_dClass.$c=1;lifegame_dClass.$e=1;lifegame_dClass.$b="black";lifegame_dClass.staticInit = null;};return lifegame_dClass;});
ClassCache.load("lifegame_c", new function(){function lifegame_cClass(){var parent = Object;lifegame_cClass.initFunc.prototype = parent;lifegame_cClass.initFunc.prototype.implemented={};var toReturn = new lifegame_cClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'lifegame_c';return toReturn;};lifegame_cClass.$msClassName = 'lifegame_c';lifegame_cClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$c = function() {return me;};this.$i = function($j,$k) {$a[$j]=$k;};this.$e = function($j,$k) {$b.push($j);$a[$j]=$k;};this.$f = function() {return $b;};this.$g = function() {return $a;};this.$d = function($j) {return $a[$j];};this.$h = function($j) {var $k=$a[$j];$a[$j]=null;for(var i=0;i<$b.length;i++){if($b[i]==$j){$b.splice(i,1);};};return $k;};var $a=new Array();var $b=new Array();};lifegame_cClass.staticInit = function(){lifegame_cClass.staticInit = null;};return lifegame_cClass;});
ClassCache.load("milescriptdemo_m", new function(){function milescriptdemo_mClass(){var parent = Object;milescriptdemo_mClass.initFunc.prototype = parent;milescriptdemo_mClass.initFunc.prototype.implemented={};var toReturn = new milescriptdemo_mClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'milescriptdemo_m';return toReturn;};milescriptdemo_mClass.$msClassName = 'milescriptdemo_m';milescriptdemo_mClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$a = function() {return me;};};milescriptdemo_mClass.staticInit = function(){milescriptdemo_mClass.$b = function() {ClassCache.get('libdojo_b').$d();};milescriptdemo_mClass.$c = function() {var $d=document.getElementById("codeViewInsertionPoint");var $e=new ClassCache.get('milescriptdemo_i')().$B($d,"docs/libdojo/v_0.1.1/index_libdojo.html");$e.$M("DojoDemo.ms","dojodemosource/DojoDemo.html","dojodemotarget/DojoDemo.html","dojodemotarget/DojoDemo_c.html","docs/libdojo/v_0.1.1/wrap/dojo/test/DojoDemo.html");$e.$M("TimeData.ms","dojodemosource/TimeData.html","dojodemotarget/NotGenerated.html","dojodemotarget/NotGenerated.html","docs/libdojo/v_0.1.1/wrap/dojo/test/TimeData.html");};milescriptdemo_mClass.staticInit = null;};return milescriptdemo_mClass;});
ClassCache.load("libdojo_b", new function(){function libdojo_bClass(){var parent = Object;libdojo_bClass.initFunc.prototype = parent;libdojo_bClass.initFunc.prototype.implemented={};var toReturn = new libdojo_bClass.initFunc(parent);toReturn.Super = parent;toReturn.$msClassName = 'libdojo_b';return toReturn;};libdojo_bClass.$msClassName = 'libdojo_b';libdojo_bClass.initFunc = function(SuperVar){var Super = SuperVar;var me = this;this.$b = function() {return me;};this.$c = function() {dojo.require("dojo.collections.Store");dojo.require("dojo.charting.Chart");dojo.require("dojo.json");var $m=[{time:10,count:4382},{time:20,count:852},{time:25,count:3759},{time:35,count:2397},{time:50,count:3442},{time:55,count:4854}];var $g=new dojo.collections.Store();$g.setData($m);var $j=new Array();$j["x"]="time";$j["y"]="count";var $h=new dojo.charting.Series({dataSource:$g,bindings:$j,label:"Example Series"});$h.color="blue";var $l=new dojo.charting.Axis();$l.range={lower:$m[0].time,upper:$m[$m.length-1].time};$l.origin="max";$l.showTicks=true;$l.label="Example chart";$l.labels=[{label:"First",value:20},{label:"Second",value:25},{label:"Third",value:35},{label:"Fourth",value:50},{label:"Fifth",value:55}];var $f=new dojo.charting.Axis();$f.range={lower:0,upper:5000};$f.showLines=true;$f.showTicks=true;$f.label="Time Taken";$f.labels=[{label:"0s",value:0},{label:"1s",value:1000},{label:"2s",value:2000},{label:"3s",value:3000},{label:"4s",value:4000},{label:"5s",value:5000}];var $i=new dojo.charting.Plot($l,$f);$i.addSeries({data:$h,plotter:new ClassCache.get('mscore_f')().$c(dojo.charting.Plotters.CurvedArea,dojo.charting.Plotters).$d});var $k=new dojo.charting.PlotArea();$k.size={height:170,width:380};$k.padding={top:20,right:20,bottom:30,left:50};$k.plots.push($i);$a=new dojo.charting.Chart(null,"Example chart","This is the example chart description");$a.addPlotArea({x:10,y:10,plotArea:$k});this.$e();};this.$e = function() {$a.node=dojo.byId("insertionPoint");$a.render();};var $a;};libdojo_bClass.staticInit = function(){libdojo_bClass.$d = function() {var $f=new ClassCache.get('libdojo_b')().$b();$f.$c();};libdojo_bClass.staticInit = null;};return libdojo_bClass;});

new function(){
	toCreate=['msfisheye','FisheyeMenu'];
	current=window;
	for(i=0;i<toCreate.length;i++){
		if(!current[toCreate[i]])
			current[toCreate[i]]={};
		current=current[toCreate[i]];
	}
}
msfisheye.FisheyeMenu=function(){
	var instance = null;
	if(arguments.length==1)
		instance = new ClassCache.get('fisheye_a')().$e.apply(this, arguments);
	instance.handleMouseOut=function(){
		if(arguments.length==1)
			return instance.$h.apply(this, arguments);

	}
	instance.getMenuBar=function(){
		if(arguments.length==0)
			return instance.$f.apply(this, arguments);

	}
	instance.addButton=function(){
		if(arguments.length==1)
			return instance.$g.apply(this, arguments);

	}
	instance.handleMouseMove=function(){
		if(arguments.length==1)
			return instance.$i.apply(this, arguments);

	}
	instance.removeButton=function(){
		if(arguments.length==1)
			return instance.$j.apply(this, arguments);

	}

	return instance;
}

new function(){
	toCreate=['msfisheye','FisheyeButton'];
	current=window;
	for(i=0;i<toCreate.length;i++){
		if(!current[toCreate[i]])
			current[toCreate[i]]={};
		current=current[toCreate[i]];
	}
}
msfisheye.FisheyeButton=function(){
	var instance = null;
	if(arguments.length==3)
		instance = new ClassCache.get('fisheye_b')().$h.apply(this, arguments);
	instance.getRelCoords=function(){
		if(arguments.length==1)
			return instance.$l.apply(this, arguments);

	}
	instance.getHeight=function(){
		if(arguments.length==0)
			return instance.$j.apply(this, arguments);

	}
	instance.setHref=function(){
		if(arguments.length==1)
			return instance.$n.apply(this, arguments);

	}
	instance.setHeight=function(){
		if(arguments.length==1)
			return instance.$i.apply(this, arguments);

	}
	instance.reset=function(){
		if(arguments.length==0)
			return instance.$q.apply(this, arguments);

	}
	instance.setMenu=function(){
		if(arguments.length==1)
			return instance.$t.apply(this, arguments);

	}
	instance.getButtonImage=function(){
		if(arguments.length==0)
			return instance.$p.apply(this, arguments);

	}
	instance.getMenu=function(){
		if(arguments.length==0)
			return instance.$o.apply(this, arguments);

	}
	instance.getWidth=function(){
		if(arguments.length==0)
			return instance.$m.apply(this, arguments);

	}
	instance.handleMouseDown=function(){
		if(arguments.length==1)
			return instance.$k.apply(this, arguments);

	}
	instance.setWidth=function(){
		if(arguments.length==1)
			return instance.$r.apply(this, arguments);

	}
	instance.handleMouseMove=function(){
		if(arguments.length==1)
			return instance.$s.apply(this, arguments);

	}

	return instance;
}

new function(){
	toCreate=['milescript','MSJSON'];
	current=window;
	for(i=0;i<toCreate.length;i++){
		if(!current[toCreate[i]])
			current[toCreate[i]]={};
		current=current[toCreate[i]];
	}
}
milescript.MSJSON=function(){
	var instance = null;
	if(arguments.length==0)
		instance = new ClassCache.get('googlebasedemo_a')().$b.apply(this, arguments);

	return instance;
}

	milescript.MSJSON.Callback=function(){
		if(arguments.length==1)
			return ClassCache.get('googlebasedemo_a').$d.apply(this, arguments);

	}
	milescript.MSJSON.setCallback=function(){
		if(arguments.length==1)
			return ClassCache.get('googlebasedemo_a').$c.apply(this, arguments);

	}
	milescript.MSJSON.callback=ClassCache.get('googlebasedemo_a').$a;

function initApp(){
	ClassCache.get('MilescriptWebsiteWithDemos_c').$d();
}

