diff --git a/Makefile.mingw32ce b/Makefile.mingw32ce
index b80bc74..3886bd4 100644
--- a/Makefile.mingw32ce
+++ b/Makefile.mingw32ce
@@ -1,4 +1,4 @@
-VERSION := 1.3.5
+VERSION := 1.4.0
PREFIX=./
DESTDIR=
diff --git a/PKGBUILD.in b/PKGBUILD.in
index 8738bd1..2e1a751 100644
--- a/PKGBUILD.in
+++ b/PKGBUILD.in
@@ -1,6 +1,6 @@
# Contributor: Peter Kosyh
pkgname=instead
-pkgver=1.3.5
+pkgver=1.4.0
pkgrel=1
pkgdesc="instead quest interpreter"
arch=('i686' 'x86_64')
diff --git a/Rules.make.macosx b/Rules.make.macosx
index 74ae165..36698e3 100644
--- a/Rules.make.macosx
+++ b/Rules.make.macosx
@@ -1,4 +1,4 @@
-VERSION := 1.3.5
+VERSION := 1.4.0
DESTDIR=
BIN=
diff --git a/Rules.make.standalone b/Rules.make.standalone
index 957282e..5882f6e 100644
--- a/Rules.make.standalone
+++ b/Rules.make.standalone
@@ -1,4 +1,4 @@
-VERSION := 1.3.5
+VERSION := 1.4.0
DESTDIR=
BIN=
diff --git a/Rules.make.system b/Rules.make.system
index b74bf06..94fa232 100644
--- a/Rules.make.system
+++ b/Rules.make.system
@@ -1,4 +1,4 @@
-VERSION := 1.3.5
+VERSION := 1.4.0
PREFIX=/usr/local
DESTDIR=
diff --git a/Rules.mingw b/Rules.mingw
index 7d421b0..f904f37 100644
--- a/Rules.mingw
+++ b/Rules.mingw
@@ -1,4 +1,4 @@
-VERSION := 1.3.5
+VERSION := 1.4.0
PREFIX=./
DESTDIR=
diff --git a/Rules.windows b/Rules.windows
index 2ae29ed..c2bdf29 100644
--- a/Rules.windows
+++ b/Rules.windows
@@ -1,4 +1,4 @@
-VERSION := 1.3.5
+VERSION := 1.4.0
PREFIX=
DESTDIR=
diff --git a/debian/changelog b/debian/changelog
index 97e9d0a..9f81b31 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-instead (1.3.5) unstable; urgency=low
+instead (1.4.0) unstable; urgency=low
* bug fix in imgl/imgr;
* bug fix in xact;
@@ -16,8 +16,10 @@ instead (1.3.5) unstable; urgency=low
* start init function added;
* idf files support (instead data format);
* menu font is now scalable too;
+ * toggle_menu added;
+ * get_ticks added;
- -- Peter Kosyh Tue, 29 Mar 2011 14:08:00 +0300
+ -- Peter Kosyh Tue, 27 Apr 2011 11:01:00 +0400
instead (1.3.4) unstable; urgency=low
diff --git a/desktop/instead.desktop.in b/desktop/instead.desktop.in
index 6dab952..686ab80 100644
--- a/desktop/instead.desktop.in
+++ b/desktop/instead.desktop.in
@@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
-Version=1.3.5
+Version=1.4.0
Type=Application
Name=INSTEAD
Name[ru]=INSTEAD
diff --git a/doc/index.html b/doc/index.html
index 214cd6f..d79f763 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -13,7 +13,7 @@ body { font-family: Verdana, Arial, Helvetica, sans-serif;
INSTEAD -- interpreter of simple text adventures for Unix and Windows
-INSTEAD 1.3.5
+INSTEAD 1.4.0
INSTEAD -- interpreter of simple text adventures for Unix and Windows.
INSTEAD was designed to interpret the games that are the mix of visual novels, text quests and classical 90'ss quests.
diff --git a/doc/instead.6 b/doc/instead.6
index 9c694ea..61b0800 100644
--- a/doc/instead.6
+++ b/doc/instead.6
@@ -1,4 +1,4 @@
-.TH INSTEAD 6 "Version 1.3.5" Instead GAMES
+.TH INSTEAD 6 "Version 1.4.0" Instead GAMES
.SH NAME
diff --git a/instead.pkg b/instead.pkg
index 9895fe0..049594f 100644
--- a/instead.pkg
+++ b/instead.pkg
@@ -8,7 +8,7 @@
&EN
; standard SIS file header
-#{"INSTEAD"},(0xA0020410),1,3,5
+#{"INSTEAD"},(0xA0020410),1,4,0
;Localised Vendor name
%{"Peter Kosyh"}
diff --git a/instead.spec b/instead.spec
index 5dccfb5..afab46c 100644
--- a/instead.spec
+++ b/instead.spec
@@ -1,6 +1,6 @@
Summary: simply text adventures/visual novels engine and game
Name: instead
-Version: 1.3.5
+Version: 1.4.0
Release: 1%{?dist}
License: GPLv2
URL: http://instead.googlecode.com
diff --git a/readme.txt b/readme.txt
index 21f0875..d421d42 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,4 +1,4 @@
-INSTEAD 1.3.5
+INSTEAD 1.4.0
=============
WARNING! For successfull building you must install these development packages (names may vary in your distribution):
diff --git a/setup-kit.iss b/setup-kit.iss
index b9436e6..e2d59fe 100644
--- a/setup-kit.iss
+++ b/setup-kit.iss
@@ -1,11 +1,11 @@
[Setup]
AppName=INSTEAD-KIT
-AppVerName=INSTEAD 1.3.5
+AppVerName=INSTEAD 1.4.0
DefaultDirName={pf}\Pinebrush games\INSTEAD
DefaultGroupName=Pinebrush games
UninstallDisplayIcon={app}\sdl-instead.exe
OutputDir=.
-OutputBaseFilename=instead-kit-1.3.5
+OutputBaseFilename=instead-kit-1.4.0
AllowNoIcons=true
[Languages]
diff --git a/setup.iss b/setup.iss
index a8f08d4..8777481 100644
--- a/setup.iss
+++ b/setup.iss
@@ -1,11 +1,11 @@
[Setup]
AppName=INSTEAD
-AppVerName=INSTEAD 1.3.5
+AppVerName=INSTEAD 1.4.0
DefaultDirName={pf}\Pinebrush games\INSTEAD
DefaultGroupName=Pinebrush games
UninstallDisplayIcon={app}\sdl-instead.exe
OutputDir=.
-OutputBaseFilename=instead-1.3.5
+OutputBaseFilename=instead-1.4.0
AllowNoIcons=true
SetupIconFile=icon\sdl_instead.ico
ChangesAssociations=yes
diff --git a/src/sdl-instead/s60.h b/src/sdl-instead/s60.h
index 9d895f9..8034674 100644
--- a/src/sdl-instead/s60.h
+++ b/src/sdl-instead/s60.h
@@ -1,7 +1,7 @@
#ifndef S60_H
#define S60_H
#define PATH_MAX 256
-#define VERSION "1.3.5"
+#define VERSION "1.4.0"
#define DATAPATH "./"
#define STEAD_PATH DATAPATH"stead/"
#define THEMES_PATH DATAPATH"themes/"
diff --git a/stead/stead.lua b/stead/stead.lua
index d5789dc..b97d841 100644
--- a/stead/stead.lua
+++ b/stead/stead.lua
@@ -8,6 +8,7 @@ stead = {
math = math,
ticks = get_ticks,
mouse_pos = mouse_pos,
+ menu_toggle = menu_toggle,
io = io,
os = os,
readdir = readdir,