var hotkey="CTRL-D";
var agent=navigator.userAgent.toLowerCase();
d=document;
if (agent.indexOf("msie")!=-1) version_ie=parseFloat(agent.split("msie")[1])
if (agent.indexOf("msie")!=-1 && version_ie>=4 && navigator.appName!="Netscape" && agent.indexOf("opera")<1) ie_ok="1"
else ie_ok="0"
if (agent.substr(agent.indexOf('opera')+6,1)<9) hotkey="CTRL-T"
d.write("<Form Name=\"programs\">")
d.write("<Input Type=\"BUTTON\" Value=\"1\" OnClick=\"location='http://slezenko.com'\" title=\"Go to Home!\">")
d.write("<Input Type=\"BUTTON\" Value=\"<<\" OnClick=\"history.go(-1)\" title=\"The previous page!\">")
if (ie_ok=="1") d.write("<Input Type=\"BUTTON\" Value=\"+\" OnClick=\"window.external.AddFavorite(location.href,d.title)\" title=\"Add to Favorites!\">")
if (ie_ok=="0") d.write("<Input Type=\"BUTTON\" Value=\"+\" OnClick=\"alert(\'Press '+hotkey+' to bookmark this page!\')\" title=\"Add to Favorites!\">")
d.write("<Input Type=\"BUTTON\" Value=\">>\" OnClick=\"history.go(1)\" title=\"The next page!\">")
if (ie_ok=="1" && version_ie>=5) d.write("<Input Type=\"BUTTON\" Value=\"!\" OnClick=\"this.style.behavior='url(#default#homepage)'; this.setHomePage(d.location)\" title=\"Make this web-site your homepage!\">")
if (ie_ok=="1" && version_ie<5) ie_ok="0"
if (ie_ok=="0") d.write("<Input Type=\"BUTTON\" Value=\"!\" OnClick=\"alert(\'Make this web-site your homepage manually! Thanks!\')\" title=\"Make this web-site your homepage!\">")
d.write("<Input Type=\"BUTTON\" Value=\"R\" OnClick=\"javascript:d.location.reload()\" title=\"Reload this page!\">&nbsp;")
function sendMessage()
{
var to = "slezenko<slezenko@uninet.kiev.ua>";
var subject = "from: " + d.referrer;
var text1="Hello!\n\nI visited your page ";
var text2="! I want to buy this product!\n\nPlease send me an additional information about it! Thanks!\n\nMy name... My email...";
var body = text1 + location.href + text2;
var send = "mailto:" + escape(to) + "?subject=" + escape(subject) + "&body=" + escape(body);
alert("Notice: The letter will be created now!\nThen press the \"Send\" button in your mail client!");
window.location = send;
}
d.write("<Input Type=\"BUTTON\" Value=\"$\" OnClick=\"sendMessage()\" title=\"I want to buy it!\">")
d.write("&nbsp;<Input Type=\"BUTTON\" Value=\"SOS\" OnClick=\"location='q_programs.htm'\" title=\"Questions and answers (in UKR) !\">")
d.write("&nbsp;<Input Type=\"BUTTON\" Value=\"?\" OnClick=\"alert(\'1 &nbsp;&nbsp;- Home.\\n<< - Back.\\n>> - Forward.\\n+ &nbsp;&nbsp;- Add to Favorites.\\n! &nbsp;&nbsp;&nbsp;- Set Homepage.\\n$ &nbsp;&nbsp;- [SHOP].\\n@ &nbsp;- Recommend a page.\\nR &nbsp;&nbsp;- Reload page.\\nP &nbsp;&nbsp;- Printing a page.\\nh &nbsp;&nbsp;- Notice.\\nSOS - Questions and answers.\\n\\n? &nbsp;&nbsp;- This help.\')\" title=\"Help!\">")
d.write('&nbsp;&nbsp;&nbsp;<select name="programs" size="1"><option value="programs_en.htm">Menu "Programs"</option><option value="prog_list_en.htm" selected>> List of programs</option><option value="axpstyle_en.htm">>> Actual XP Style</option><option value="allsubmitter_en.htm">>> AllSubmitter</option><option value="agp_en.htm">>> AntiGarbage ToolKit Pro</option><option value="as3pf_en.htm">>> AS3 Personal Firewall</option><option value="atompager_en.htm">>> AtomPager</option><option value="barcode_en.htm">>> BarCode Checker</option><option value="caffe1ne_en.htm">>> Caffe1ne</option><option value="cursorus_en.htm">>> CursorUS</option><option value="mdexpress_en.htm">>> Download Express</option><option value="fnb_en.htm">>> Find \'n\' Block Personal Firewall</option><option value="isiim_en.htm">>> ISIIM</option><option value="taxi_en.htm">>> J&D taxi</option><option value="seabattle_en.htm">>> Sea Battle</option><option value="snotes_en.htm">>> Small Notes</option><option value="solfedjina_en.htm">>> Solfedjina</option><option value="stamina_en.htm">>> Stamina</option><option value="vampina_en.htm">>> Vampina</option><option value="whitecrow_en.htm">>> White Crow</option><option value="whitecrowpro_en.htm">>> Whitecrow Pro</option><option value="winget_en.htm">>> WinGet</option><option value="uwup_en.htm">>> Unusual Works Utility Pack</option><option value="uricrypt_en.htm">>> URI Crypter</option><option value="pictures/logo/">> Browse logos</option><option value="utils.htm">> Utils/Services</option><option value="antivir.htm">>> AntiVirus Service</option><option value="antivir2.htm">>> AntiVirus Utils</option><option value="search.htm">>> Search</option><option value="links_en.htm">> Links</option><option value="http://www.ukrface.org.ua">>> http://www.ukrface.org.ua</option><option value="http://slezenko.info">>> http://slezenko.info</option></select><input type=button title="Please select item and press the &quot;GO!&quot; button." name="go" value="GO!" onclick="top.location.href=this.form.programs.options[this.form.programs.selectedIndex].value">')

function topage(){
url=document.location.href.toLowerCase();
path=url.replace(/[a-z]*:\/*.../i, "");
names=path.split("/");
name_page=path.split("/")[names.length-1];
if (name_page.indexOf(".")!=-1) name=name_page.split(".")[0]
location ? "q_"+name_page : "q_programs.htm"
}
