//MENU OPTIONS // the number you pass to initLeft doesn't matter since it will get // changed onactivate //var productsMenu = new ypSlideOutMenu("products", "down", 0, 30, 180, 200) //var electricscooterMenu = new ypSlideOutMenu("electricscooter", "right", 170, 55, 170, 82, "products") var myMenu1 = new ypSlideOutMenu("menu1", "down", 10, 0, 210, 140) var myMenu2 = new ypSlideOutMenu("menu2", "down", 2, 0, 210, 103) var myMenu3 = new ypSlideOutMenu("menu3", "down", 2, 0, 210, 103) // for each menu, we set up the onactivate event to call repositionMenu with the amount offset from center, in pixels //aboutMenu.onactivate = function() { repositionMenu(aboutMenu, -160); } //avconsulMenu.onactivate = function() { repositionMenu(avconsulMenu, -75); } //avmgtMenu.onactivate = function() { repositionMenu(avmgtMenu, 60); } ypSlideOutMenu.writeCSS(); //--> var browser, verStr = navigator.appVersion, app = navigator.appName, version = parseFloat(verStr); function test_browser () { if ((app.indexOf('Netscape') != -1) && version >= 5) { browser = "netscape"; } else if ((app.indexOf('Microsoft') != -1) && version >= 4) { browser = "ie"; } } var quote_array = new Array( "q1", "q2" ); var order_array = new Array( "p1" , "p2" ); function show_sub(show_which_sub, var_array) { test_browser (); if (show_which_sub != "") { if (browser == "netscape") { if (document.getElementById(show_which_sub).style.display == 'block') { document.getElementById(show_which_sub).style.display = 'none'; } else { document.getElementById(show_which_sub).style.display = 'block'; } } else if (browser == "ie") { show_menu = eval(show_which_sub); if(show_menu.style.display == 'block'){ show_menu.style.display = 'none'; } else { show_menu.style.display = 'block'; } } //setTimeout('auto_hide()', 10000); } for (i = 0; i < eval(var_array + ".length"); i++) { if (eval(var_array + "[i]") != show_which_sub) { hide_sub(eval(var_array + "[i]")); } } } function hide_sub(which_sub) { if (browser == "netscape") { document.getElementById(which_sub).style.display = 'none'; } else if (browser == "ie") { sub_menu = eval(which_sub); sub_menu.style.display = 'none'; } } function auto_hide() { show_sub(""); } function view_picture(id) { width=200 height=200 if (navigator.appVersion.indexOf('4') != -1) { // Vars for centering the new window on Version 4 Browsers xTop = screen.width/2 - (width/2); yTop = screen.height/2 - (height/2); window.open('view_picture.asp?id='+id, 'view_pic', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=260,height=300,,left=' + xTop + ',top=' + yTop + '') } else { window.open('view_picture.asp?id='+id, 'view_pic', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=260,height=300,,left=500,top=500') } //window.open('view_picture.asp?id='+id, 'view_pic', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=400,left=150,top=200') }