// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. 
// but you can experiment with effect on loadtime.
if (TransMenu.isSupported()) {

//==================================================================================================
// create a set of dropdowns
//==================================================================================================
// the first param should always be down, as it is here
//
// The second and third param are the top and left offset positions of the menus from their actuators
// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
// something like -5, 5
//
// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
// of the actuator from which to measure the offset positions above. Here we are saying we want the 
// menu to appear directly below the bottom left corner of the actuator
//==================================================================================================
var ms = new TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft);

//==================================================================================================
// create a dropdown menu
//==================================================================================================
// the first parameter should be the HTML element which will act actuator for the menu
//==================================================================================================
var menu1 = ms.addMenu(document.getElementById("profil"));
menu1.addItem("Perusahaan", "index.php?item=profil&sub=perusahaan"); 
menu1.addItem("Histori", "index.php?item=profil&sub=histori");
menu1.addItem("Visi dan Misi", "index.php?item=profil&sub=visi");
menu1.addItem("Legalitas", "index.php?item=profil&sub=legal");
menu1.addItem("Struktur", "#");
menu1.addItem("Lingkup Pelayanan", "index.php?item=profil&sub=lingkup");
menu1.addItem("Keunggulan", "index.php?item=profil&sub=unggul");
menu1.addItem("Penghargaan", "index.php?item=profil&sub=award");
menu1.addItem("Galeri Photo", "index.php?item=profil&sub=galeri");
menu1.addItem("Ikatan Kerjasama", "index.php?item=profil&sub=kerjasama");

var submenu0 = menu1.addMenu(menu1.items[4]);
submenu0.addItem("Div. Programer", "index.php?item=struktur&grup=programer");
submenu0.addItem("Div. Design", "index.php?item=struktur&grup=design");
submenu0.addItem("Div. Website", "index.php?item=struktur&grup=website");
submenu0.addItem("Div. Publishing", "index.php?item=struktur&grup=publising");
submenu0.addItem("Div. Marketing", "index.php?item=struktur&grup=marketing");

//==================================================================================================

//==================================================================================================
var menu2 = ms.addMenu(document.getElementById("produk"));
menu2.addItem("Software Umum", "index.php?item=produk");
menu2.addItem("Software TVEF", "index.php?item=profil&sub=tvef");


//==================================================================================================


//==================================================================================================
var menu6 = ms.addMenu(document.getElementById("klien"));
menu6.addItem("Software Umum", "index.php?item=klien&sub=umum");
menu6.addItem("Software TVEF", "index.php?item=klien&sub=tvef");

//==================================================================================================


//==================================================================================================
var menu3 = ms.addMenu(document.getElementById("order"));
menu3.addItem("Tas Belanja","index.php?item=cart");
menu3.addItem("Konfirmasi","index.php?item=konfirmasi");
menu3.addItem("Rek. Pembayaran","index.php?item=profil&sub=rekening");
menu3.addItem("Order Website","index.php?item=webdev");
menu3.addItem("Order Software");

var submenu2 = menu3.addMenu(menu3.items[4]);

submenu2.addItem("Custom. Software", "index.php?item=link_software");
submenu2.addItem("Software Baru", "index.php?item=softdev");
//==================================================================================================

//==================================================================================================
var menu4 = ms.addMenu(document.getElementById("layanan"));
menu4.addItem("TVEF Update", "index.php?item=tvefdownload");
menu4.addItem("TVEF Free", "index.php?item=freeversion");
menu4.addItem("Software Demo", "index.php?item=download");
menu4.addItem("Pengaduan", "index.php?item=pengaduan");
menu4.addItem("Kerjasama", "index.php?item=profil&sub=join");
menu4.addItem("Karir", "index.php?item=karir");
menu4.addItem("Testimonial", "");

var submenu3 = menu4.addMenu(menu4.items[6]);

submenu3.addItem("Lihat Testimonial", "index.php?item=testi");
submenu3.addItem("Kirim Testimonial", "index.php?item=sendtesti");
//==================================================================================================

//==================================================================================================
var menu5 = ms.addMenu(document.getElementById("kontak"));
menu5.addItem("Offline", "");
menu5.addItem("Online", "");

var submenu4 = menu5.addMenu(menu5.items[0]);
var submenu5 = menu5.addMenu(menu5.items[1]);

submenu4.addItem("Kantor", "index.php?item=kontak&sub=kantor");
submenu4.addItem("Teknisi", "index.php?item=kontak&sub=teknisi");
submenu4.addItem("Marketing", "index.php?item=kontak&sub=marketing");

submenu5.addItem("CS Bandung 1", "ymsgr:sendIM?cs1_niftrasoft");
submenu5.addItem("CS Bandung 2", "ymsgr:sendIM?cs2_niftrasoft");
submenu5.addItem("CS Bandung 3", "ymsgr:sendIM?cs3_niftrasoft");
submenu5.addItem("CS Bandung 4", "ymsgr:sendIM?niftrasoft_cs");
submenu5.addItem("CS Semarang 1", "ymsgr:sendIM?de_nana_new");
submenu5.addItem("CS Semarang 2", "ymsgr:sendIM?ria_smg");
submenu5.addItem("CS Semarang 3", "ymsgr:sendIM?niftrasoft_semarang2");
submenu5.addItem("CS Jakarta 1", "ymsgr:sendIM?niftrasoft_jakarta");
submenu5.addItem("Web Admin", "ymsgr:sendIM?web_niftrasoft");
//==================================================================================================

//==================================================================================================
// write drop downs into page
//==================================================================================================
// this method writes all the HTML for the menus into the page with document.write(). It must be
// called within the body of the HTML page.
//==================================================================================================
TransMenu.renderAll();
}