// Vitaly Eremenko // create 13.11.2004 // update 15.07.2005 // main_menu_en2.js: JavaScript //================| var g_nImg = 0; var g_sLang = "Rus"; // Eng, Rus, Heb var g_sPath = ".."; var g_sBtnLeft = ""; var g_sPageName = ""; var g_sPageTo = ""; var g_sSection = ""; var g_nMenuPos = 0; //----Menu Data:-------- var g_bMenuInit = false; var g_bTabInit = false; var g_ncMenu = 10; var g_arMenu = new Array(g_ncMenu); var g_arTabName = new Array(g_ncMenu); // Menu Tables: 0=Hide, 1=Visible var g_arTabSet = new Array(g_ncMenu); var g_sPhone = "0524-325-856"; var g_sMenuCookie = "VitMenuBin"; // =ind 0...7 //========================== function InitMenuParams() { // debugger; g_arMenu[0] = "Cosmetics"; g_arMenu[1] = "Art-Gallery"; g_arMenu[2] = "User"; g_arMenu[3] = "e-Business"; g_arMenu[4] = "? Info"; g_arMenu[5] = "Contact"; g_arMenu[6] = "Stained-Glass"; g_arMenu[7] = "Paints-for-Vitrag"; g_arMenu[8] = "Vitrag-Souvenir"; g_arMenu[9] = "Computers"; g_arTabName[0] = "Shop"; g_arTabName[1] = "Art"; // or Vitraj g_arTabName[2] = "Client"; g_arTabName[3] = "Biz"; g_arTabName[4] = "Info"; g_arTabName[5] = "Contact"; g_arTabName[6] = "Vitrag"; g_arTabName[7] = "Art-Shop"; g_arTabName[8] = "VitShop"; g_arTabName[9] = "PC"; g_bMenuInit = true; } //=========================== function InitMenuCodes() { var ni = 0; // g_arTabSet[0] = 1; for (ni=0; niHome Page"; var sLinkHomeRu = "Главная"; var sLinkMap = "Site's Map"; var sLinkMail = "Write to Us"; var sLinkPC = "Computers"; var sLinkVitrag = "St.Glass and Painting"; var sLinkStGlass = "St.Glass and Furniture"; var sLinkPaints = "Paints for Glass"; // $sLinkCosmetic = "Косметика "; // $sLinkArtGal = "Арт-Галерея "; var sLinkUser = "For Visitor"; var sLinkBiz = "For Small Business"; var sLinkInfo = "? Info"; var sLinkContact = "Contact"; var anPosType = new Array(12); var ni = 0; for (ni=0; ni<12; ni++) { anPosType[ni] = "TableButtonSite"; } if (0 <= i_nPos && i_nPos < 12) anPosType[i_nPos] = "TableButtonDown"; document.writeln(""); // BGCOLOR=#C0E0FF>"; // document.writeln(""); document.writeln(""); // + "" + // "" + // ""); document.writeln("" + "" + ""); document.writeln("" + "" + "" + ""); document.writeln("" + ""); document.writeln(""); } //*************** function SetPageTo(i_sTargetURL) { g_sPageTo = i_sTargetURL; } //================== // Compatibility with Web-Pages: function Vit_LogoSiteEn(i_sPath) { g_sLang = "Eng"; g_sPath = i_sPath; Vit_PageLogo(); } //================== function Vit_SiteTitleEn(i_sPath, i_sTitle) { g_sLang = "En"; g_sPath = i_sPath; var sTitle = "Stained-Glass Windows for Home
" + i_sTitle; DrawLogo(sTitle); } //================== function Vit_MenuBarEn(i_sPath, i_sPageName, i_sPageTo, i_sMenuSection) { g_sLang = "Eng"; g_sPath = i_sPath; g_sPageName = i_sPageName; g_sPageTo = i_sPageTo; g_sSection = i_sMenuSection; Vit_LeftMenuBar(); } //================== function Vit_VitrajSignature() { document.writeln('Vitaly Eremenko.
'); document.writeln('Mobile phone: (972) 524-325-856
'); document.writeln('' + 'www.ViOLTan.com
'); } //***************** // NEW interface: function Vit_PageLogo() { if (! g_bMenuInit) InitMenuParams(); if (! g_bTabInit) InitMenuCodes(); DrawLogo("Stained-Glass Windows for Home"); } //=========================== function Vit_LeftMenuBar() { if (! g_bMenuInit) InitMenuParams(); if (! g_bTabInit) InitMenuCodes(); // MenuSelectLang(); FindInfoForm(); MainMenu(); // ParseMenuCodeStr(); //--> g_arTabSet // CheckCurMenuCode(); // DrawButtonsBar(); LeftVitragVit(); LeftArtshop(); LeftVitragMG(); LeftPC(); LeftBiz(); LeftUser(); LeftInfo(); LeftContact(); } //****************** function SetLang(i_sLang) { g_sLang = i_sLang; // new String(i_sLang); } //============== function SetPagePath(i_sPathToRoot) { g_sPath = i_sPathToRoot; } //============== function SetMenuName(i_sName) { g_sBtnLeft = i_sName; } //============== function SetPageName(i_sPageName) { g_sPageName = i_sPageName; } //============== function SetDocTitle(i_sTitle) { document.title = i_sTitle; } //============== function ChangePageRef(i_sPageURL) { window.location.href = i_sPageURL; } //********************* function MenuSelectLang() { var sEnSEL = "SELECTED"; var sRuSEL = ""; var sDIS = ""; if (g_sPageTo == "") sDIS = "DISABLED"; document.writeln('
'); // debugger; document.writeln('"); document.writeln("
"); } //****************** function Vit_WebMailToUs() { document.writeln('Write to Us
'); } //================| function DrawLogo(i_sTextHtml) { document.writeln(''); // + ' BACKGROUND=" ' + g_sPath + '/images/LOGO_BG1.JPG" >'); // document.writeln(''); document.writeln(''); } //=====================| function SetTableHeader(i_sTabName, i_sPageSection, i_sTabTitle) { if (i_sTabName == i_sPageSection) { document.writeln(''+i_sTabTitle+':'); document.writeln(''); } else { document.writeln(''+i_sTabTitle+':'); document.writeln(''); } } //==================== function MainMenu() { SetTableHeader("Main", g_sSection, "Main"); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln(''); } //=====================| function DrawButtonsBar() { document.writeln(""); document.writeln(""); if (g_arTabName[9] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[8] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[6] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[7] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[0] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[1] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[2] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[3] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[4] == g_sSection) document.writeln(""); else document.writeln(""); if (g_arTabName[5] == g_sSection) document.writeln(""); else document.writeln(""); document.writeln("

"); } //====================| function SetTabMenu(i_nTab, i_nVal) { g_arTabSet[i_nTab] = i_nVal; // var sTabCode = GetMenuCodeStr(); // Vit_AddCookie(g_sMenuCookie, sTabCode, 7); // 7 days var sLink = g_sPath; switch (i_nTab) { case 0: sLink += "/ecart/index.php"; break; case 6: sLink += "/vitragshop/index.php"; break; case 7: sLink += "/artshop/index.php"; break; case 8: sLink += "/vitshop/index.php"; break; case 9: sLink += "/PC/index.php"; break; case 1: sLink += "/vitraj/index.html"; break; case 2: sLink += "/clients/loan_en.htm"; break; case 3: sLink += "/bizbase/pay_systems_en.htm"; break; case 4: sLink += "/marketing/imc1_en.htm"; break; case 5: sLink += "/links/index.html"; default: break; } if (sLink != g_sPath) window.location.href = sLink; else location.reload(); } //=============== function GetMenuCodeStr() { var sTabCode = ""; var ni = 0; for (ni=0; ni '); document.writeln(''); document.writeln(' '); document.writeln(' '); document.writeln('Advanced Search' ); document.writeln(''); } //================ function LeftArtshop() { SetTableHeader("ArtShop", g_sSection, "Paints for Glass"); document.writeln(''); if (g_sPageName == "ShopIndex") document.writeln(''); document.writeln('Entrance to Art-Shop'); if (g_sPageName == "ShopIndex") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "ImgList") document.writeln(''); document.writeln('The Catalogue'); if (g_sPageName == "ImgList") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "Cart") document.writeln(''); document.writeln('Your Shopping Cart'); if (g_sPageName == "Cart") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "PRL") document.writeln(''); document.writeln('The Price-Lists'); if (g_sPageName == "PRL") document.writeln(''); // document.writeln(''); document.writeln(''); } //=============== function LeftBiz() { SetTableHeader("Biz", g_sSection, "For Small Business"); document.writeln(''); if (g_sPageName == "pay_systems") document.writeln(''); document.writeln('Payment Systems'); if (g_sPageName == "pay_systems") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "webhost") document.writeln(''); document.writeln('Web-hosting'); if (g_sPageName == "webhost") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "marketing") document.writeln(''); document.writeln('Search Engines and e-Marketing'); if (g_sPageName == "marketing") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "emarket") document.writeln(''); document.writeln('Supermarkets with MLM'); if (g_sPageName == "emarket") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "amazon1") document.writeln(''); document.writeln('Amazon.com'); if (g_sPageName == "amazon1") document.writeln(''); document.writeln(''); } //=============== function LeftUser() { SetTableHeader("Client", g_sSection, "For Visitor"); document.writeln(''); if (g_sPageName == "AddGuestMsg") document.writeln(''); document.writeln('Message to Guests Book'); if (g_sPageName == "AddGuestMsg") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "guestbook") document.writeln(''); document.writeln('View Guests Book'); if (g_sPageName == "guestbook") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "tell_your_friend") document.writeln(''); document.writeln('Tell your Friend'); if (g_sPageName == "tell_your_friend") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "loan") document.writeln(''); document.writeln('Dynamics of Payments under the Loan'); if (g_sPageName == "loan") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "MyIP") document.writeln(''); document.writeln('Your IP'); if (g_sPageName == "MyIP") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "index_biorh") document.writeln(''); document.writeln('Your Bio-Rhythms'); if (g_sPageName == "index_biorh") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "transliter") document.writeln(''); document.writeln('Russian Text to Latin'); if (g_sPageName == "transliter") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "latrus_keys") document.writeln(''); document.writeln('English Keyboard to Cyrillic'); if (g_sPageName == "latrus_keys") document.writeln(''); document.writeln(''); } //=============== function LeftContact() { SetTableHeader("Contact", g_sSection, "Contact"); document.writeln(''); if (g_sPageName == "links") document.writeln(''); document.writeln('Web-Resources'); if (g_sPageName == "links") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "links") document.writeln(''); document.writeln('Links Exchange'); if (g_sPageName == "links") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "use_links") document.writeln(''); document.writeln('Useful Links'); if (g_sPageName == "use_links") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "our_brigade") document.writeln(''); document.writeln('About Us'); if (g_sPageName == "our_brigade") document.writeln(''); document.writeln(''); } //=============== function LeftInfo() { SetTableHeader("Info", g_sSection, "? Info"); document.writeln(''); if (g_sPageName == "index_howto") document.writeln(''); document.writeln('How To ?'); if (g_sPageName == "index_howto") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "imc1") document.writeln(''); document.writeln('How to start an Internet business ?'); if (g_sPageName == "imc1") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "imc2") document.writeln(''); document.writeln('Three Critical Success Traits'); if (g_sPageName == "imc2") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "imc7") document.writeln(''); document.writeln('How to Profit with a Direct Sales Web Site'); if (g_sPageName == "imc7") document.writeln(''); document.writeln(''); } //=============== function LeftPC() { SetTableHeader("PC", g_sSection, "Netanya PC"); document.writeln(''); if (g_sPageName == "Index") document.writeln(''); document.writeln('The PC-Shop'); if (g_sPageName == "Index") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "ImgList") document.writeln(''); document.writeln('The Full Catalogue'); if (g_sPageName == "ImgList") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "Cart") document.writeln(''); document.writeln('Your Shopping Cart'); if (g_sPageName == "Cart") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "PRL") document.writeln(''); document.writeln('The Price-Lists'); if (g_sPageName == "PRL") document.writeln(''); // document.writeln(''); document.writeln(''); } //=============== function LeftVitragMG() { SetTableHeader("Vitrag", g_sSection, "Vitrag and Art-Furniture"); document.writeln(''); if (g_sPageName == "ShopIndex") document.writeln(''); document.writeln('Stained Glass Windows'); if (g_sPageName == "ShopIndex") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "ImgList") document.writeln(''); document.writeln('The Full Catalogue'); if (g_sPageName == "ImgList") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "Cart") document.writeln(''); document.writeln('Your Shopping Cart'); if (g_sPageName == "Cart") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "PRL") document.writeln(''); document.writeln('The Price-Lists'); if (g_sPageName == "PRL") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "Agreement") document.writeln(''); document.writeln('Customer Info'); if (g_sPageName == "Agreement") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "LocPRL") document.writeln(''); document.writeln('Price-List for Israel'); if (g_sPageName == "LocPRL") document.writeln(''); document.writeln(''); document.writeln(''); document.writeln('Slide-Show for Stained-Glass'); document.writeln(''); } //=============== function LeftVitragVit() { SetTableHeader("VitShop", g_sSection, "Stained-Glass for Home"); document.writeln(''); if (g_sPageName == "ShopIndex") document.writeln(''); document.writeln('Main Page'); if (g_sPageName == "ShopIndex") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "Cart") document.writeln(''); document.writeln('Your Shopping Cart'); if (g_sPageName == "Cart") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "PRL") document.writeln(''); document.writeln('The Price-Lists'); if (g_sPageName == "PRL") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "ImgList") document.writeln(''); document.writeln('The illustrated Catalogue'); if (g_sPageName == "ImgList") document.writeln(''); document.writeln(''); document.writeln(''); if (g_sPageName == "post_office") document.writeln(''); document.writeln('Calculation of cost of Delivery'); if (g_sPageName == "post_office") document.writeln(''); // document.writeln(''); document.writeln(''); } //===============