function e(a,c,d,e,f,g,h,i){xc="<div id="+h+' style="position:absolute;overflow:hidden; left:'+c+"px;top:"+d+"px;width:"+e+"px;height:"+f+"px;z-index:"+i+";background-color:"+g+';"></div>',a==0?b.innerHTML+=xc:d_.getElementById(a).innerHTML+=xc}alert("Desert. No water. You and death. Press left-right!");var m_,d_,x1,x_,j,q,ke,e0,xc,l;l="none",x1=x_=0,m_=Math,d_=document,e(0,0,0,300,130,"red","b",0),e("b",0,100,300,30,"#DAA520","d",1),e("b",0,80,300,20,"#D2691E","d1",1),e("b",0,70,300,10,"Maroon","d2",1),e("b",0,0,1200,150,l,"b0",7),e("b",0,0,600,150,l,"b1",6),e("b",0,0,600,150,l,"b2",5);for(t=0;t<=20;t++)kl=m_.floor(m_.random()*3200)+1,e("b0",kl,50,15,50,"Green","t0",1),k2=m_.floor(m_.random()*2200)+1,e("b1",k2,60,8,30,"#003300","t1",1);e("b",60,65,15,45,"coral",0,8),e("b",60,78,15,20,"blue",0,8),q=0,d_.onkeyup=function(a){e0=a||window.event,ke=e0.charCode||e0.keyCode,ke==37&&(j=1),ke==39&&(j=0),q!=j&&(q=j,x_=x_-2,x1=x1-1,d_.getElementById("b0").style.left=x_,d_.getElementById("b1").style.left=x1)}
alert('Desert. No water. You and death. Press left-right!');
var m_,d_,x1,x_,j,q,ke,e0,xc,l;
l="none";
x1=x_=0;
m_ = Math;
d_ = document;
function e(n,x,y,w,h,c,i,z){
xc = '<div id='+i+' style="position:absolute;overflow:hidden; left:'+x+'px;top:'+y+'px;width:'+w+'px;height:'+h+'px;z-index:'+z+';background-color:'+c+';"></div>';
if(n==0){b.innerHTML+=xc;}else{d_.getElementById(n).innerHTML+=xc;}
}
e(0,0,0,300,130,"red","b",0);
e("b",0,100,300,30,'#DAA520',"d",1);
e("b",0,80,300,20,'#D2691E',"d1",1);
e("b",0,70,300,10,'Maroon',"d2",1);
e("b",0,0,1200,150,l,"b0",7);
e("b",0,0,600,150,l,"b1",6);
e("b",0,0,600,150,l,"b2",5);
for(t=0;t<=20;t++){
kl= m_.floor(m_.random()*3200)+1;
e("b0",kl,50,15,50,'Green','t0',1); //tree 1
k2= m_.floor(m_.random()*2200)+1;
e("b1",k2,60,8,30,'#003300','t1',1);
}
//plan 2
e("b",60,65,15,45,"coral",0,8);
e("b",60,78,15,20,"blue",0,8)
q=0;
d_.onkeyup = function (event) {
e0 = event||window.event;
ke = e0.charCode||e0.keyCode;
if(ke==37){j=1;}
if(ke==39){j=0;}
if(q!=j){q=j;
x_=x_-2;
x1=x1-1;
d_.getElementById("b0").style.left=x_;
d_.getElementById("b1").style.left=x1;
}
}