//menu script // constants var initX = 236; // x-koordinate var initY = 120; // y-koordinate var backColor = '#4E75C1'; // backround spalva var borderColor = 'white'; // border var borderSize = '2'; //border plotis var itemHeight = 20; var xOverlap = 5; var yOverlap = 10; // // nekeisti var delay = 1000; ///// var menuElement = new Array (); var usedWidth = 0; var numOfMenus = 0; /// ---------------------------- menuContent = new Array (); menuContent [0] = new Array ( -1, // the id of parent menu, -1 if this is a first level menu -1, // the number of line in parent menu, -1 if this is a first level menu 77, // the width of current menu list -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( 'Apie mus', 'index.php-s=content&p=imone.apie-mus', 'Naujienos', 'index.php-s=news&p=news', 'Kontaktai >', 'index.php-s=content&p=imone.kontaktai', 'Kolektyvas', 'index.php-s=content&p=imone_kolektyvas', 'Karjera', 'index.php-s=content&p=imone_karjera' )); menuContent [1] = new Array ( -1, -1, 99, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( 'Stiklas >', 'index.php-s=content&p=medziagos.stiklas', 'Veidrodis', 'index.php-s=content&p=medziagos.veidrodis', 'Komplektuojančios detalės', 'index.php-s=content&p=medziagos.k_detales' )); menuContent [2] = new Array ( -1, -1, 97, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( )); menuContent [3] = new Array ( -1, -1, 150, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( 'Visi sprendimai', 'index.php-s=content&p=apd.sprendimai', '', '', 'Balkonų sistemos', 'index.php-s=content&p=b_sistemos', 'Stiklo durys ir pertvaros','index.php-s=content&p=s_pertvaros', 'Dušų kabinos','index.php-s=content&p=dusai', 'Atlikti darbai','index.php-s=content&p=s_atlikti_darbai', 'Varstomos durys','index.php-s=content&p=v_durys' )); menuContent [4] = new Array ( -1, -1, -50, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( )); menuContent [5] = new Array ( -1, -1, 197, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( 'Visi standartiniai gaminiai','index.php-s=content&p=gaminiai', '','', 'Stiklo stalai', 'index.php-s=content&p=s_staliukai', 'Stiklo konstrukcijos', 'index.php-s=content&p=s_konstrukcijos', 'Veidrodžiai','index.php-s=catalog&sel_category=16', 'Lentynėlės','index.php-s=content&p=lentyneles', 'Saunos durys','index.php-s=content&p=s_durys' )); menuContent [6] = new Array ( -1, -1, 200, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( 'Neturetu3', 'http://www.1gravera.lt', 'Link 22', 'http://www.2gravera.lt', 'Link 23', 'http://www.3gravera.lt' )); menuContent [7] = new Array ( 0, 2, 120, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( 'Kaunas', 'index.php-s=content&p=imone.kontaktai#kaunas', '', '', 'Vilnius', 'index.php-s=content&p=imone.kontaktai#vilnius', 'Klaipėda', 'index.php-s=content&p=imone.kontaktai#klaipeda', 'Panevėžys', 'index.php-s=content&p=imone.kontaktai#panevezys', '', '', 'E-kontaktai', 'index.php-s=content&p=imone.kontaktai#w3kontaktai' )); menuContent [8] = new Array ( 1, 0, 120, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( 'Flotacinis', 'index.php-s=content&p=medziagos.stiklas#flotacinis', 'Ornamentinis', 'index.php-s=content&p=medziagos.stiklas#ornamentinis' )); menuContent [9] = new Array ( 3, 3, 120, -1, // x coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent x-coordinate -1, // y coordinate (absolute) of left corner of this menu list, -1 if the coordinate is defined from parent y-coordinate new Array ( //'Varstomos durys', 'index.php-s=content&p=v_durys' //'Stumdomos durys', 'index.php-s=content&p=s_durys', //'Stiklo pertvaros', 'index.php-s=content&p=s_pertvaros' )); --->