 
 
 #ACTION EVENTS
-
-#Initialize fuel
+#Initialize Range
 setint = null
 if speedy < 1
      fuel.y = 0

document.getElementsByTagName('head')[0].appendChild(style);


#master layers
fuel = new Layer
 width: 550, height: 1440, y: 80 ,x :0, backgroundColor: "#222222" , opacity : 0
speed = new Layer
 width: 550, height: 1440, y: -1360 ,x :0, backgroundColor: "#333333"
 
bkgnd = new Layer 
	x:0, y:28, width:550, height:1440, image:"images/bkgnd1440.png", opacity: 0.9
speed.addSubLayer(bkgnd)


fubkgnd = new Layer 
	x:-445, y:445, width:1440, height:550, image:"images/bg_park.png",rotation:90
fuel.addSubLayer(fubkgnd)
 
#sublayers
fuelstatus = new Layer
 width: 10, height: 1440,backgroundColor: green, opacity: 0.8
fuel.addSubLayer(fuelstatus) 

fuelstatuswhite = new Layer x:140, width: 130, height: 1440, backgroundColor: 'white', opacity:0.1
fuelstatus.addSubLayer(fuelstatuswhite) 


locline1 = new Layer
   x:-370, y:713, width:1440, height:6, image:"images/dashedline.png", rotation:90, opacity:0

  buttonR.shadowY = 5
  buttonR.shadowColor = "#7c7c7c"

#Reverse button click actions
r =0
buttonR.on Events.Click, ->
  r = r+1
