//if (window.location=="http://sales.lww.com/") // window.location.href="http://www.lww.com/replocator"; if (window.location=="http://lww.com/") window.location.href="http://www.lww.com/"; if (window.location=="http://www.lwwmobile.com/") window.location.href="http://www.lww.com/pda"; if (window.location=="http://lwwmobile.com/") window.location.href="http://www.lww.com/pda"; var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); var itemID = ""; var newFontCol = ""; var newCol = ""; function getRef(id) { if (isDOM) return document.getElementById(id); if (isIE4) return document.all[id]; if (isNS4) return document.layers[id]; } function getSty(id) { return (isNS4 ? getRef(id) : getRef(id).style); } // Hide timeout. var popTimer = 0; // Array showing highlighted menu items. var litNow = new Array(); function popOver(menuNum, itemNum) { if (document.getElementById("booksubject")) { document.getElementById("booksubject").style.visibility = "hidden"; } if (document.getElementById("individual")) { document.getElementById("individual").style.visibility = "hidden"; } clearTimeout(popTimer); hideAllBut(menuNum); litNow = getTree(menuNum, itemNum); changeCol(litNow,true); targetNum = menu[menuNum][itemNum].target; if (targetNum > 0) { thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left); thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(menu[menuNum][itemNum].ref.top); with (menu[targetNum][0].ref) { left = parseInt(thisX + menu[targetNum][0].x); top = parseInt(thisY + menu[targetNum][0].y); visibility = 'visible'; } } } function popOut(menuNum, itemNum) { if (document.getElementById("booksubject")) { document.getElementById("booksubject").style.visibility = "visible"; } if (document.getElementById("individual")) { document.getElementById("individual").style.visibility = "visible"; } if ((menuNum == 0)&& !menu[menuNum][itemNum].target) { hideAllBut(0); } else popTimer = setTimeout('hideAllBut(0)', 500); } function getTree(menuNum, itemNum) { // Array index is the menu number. The contents are null (if that menu is not a parent) // or the item number in that menu that is an ancestor (to light it up). itemArray = new Array(menu.length); while(1) { itemArray[menuNum] = itemNum; // If we've reached the top of the hierarchy, return. if (menuNum == 0) return itemArray; itemNum = menu[menuNum][0].parentItem; menuNum = menu[menuNum][0].parentMenu; } } // Pass an array and a boolean to specify colour change, true = over colour. function changeCol(changeArray,isOver) { //hitemArray = new Array(menu.length); for (menuCount = 0; menuCount < changeArray.length; menuCount++) { if (changeArray[menuCount]) { newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol; newFontCol = isOver ? menu[menuCount][0].fontMouseOverColor : menu[menuCount][0].fontMouseOutColor; // Change the colours of the div/layer background. with (menu[menuCount][changeArray[menuCount]].ref) { if (isNS4) { bgColor = newCol; } else { backgroundColor = newCol; } } if (document.getElementById("linkmenu"+menuCount+"item"+changeArray[menuCount]) != null) { document.getElementById("linkmenu"+menuCount+"item"+changeArray[menuCount]).style.color=newFontCol; } } } } function hideAllBut(menuNum) { var keepMenus = getTree(menuNum, 1); for (count = 0; count < menu.length; count++) if (!keepMenus[count]) menu[count][0].ref.visibility = 'hidden'; changeCol(litNow, false); } // *** MENU CONSTRUCTION FUNCTIONS *** function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) { // True or false - a vertical menu? this.isVert = isVert; // The popout indicator used (if any) for this menu. this.popInd = popInd // Position and size settings. this.x = x; this.y = y; this.width = width; // Colours of menu and items. this.overCol = overCol; this.backCol = backCol; // The stylesheet class used for item borders and the text within items. this.borderClass = borderClass; this.textClass = textClass; // Parent menu and item numbers, indexed later. this.parentMenu = null; this.parentItem = null; // Reference to the object's style properties (set later). this.ref = null; this.fontMouseOverColor = "#ffffff"; this.fontMouseOutColor = "#000000"; } function Item(text, href, frame, length, spacing, target) { this.text = text; this.href = href; this.frame = frame; this.length = length; this.spacing = spacing; this.target = target; // Reference to the object's style properties (set later). this.ref = null; } function writeMenus() { if (!isDOM && !isIE4 && !isNS4) return; for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) { // Variable for holding HTML for items and positions of next item. var str = '', itemX = 0 + length , itemY = 0; if (currMenu == 0) { itemY =15; if (navigator.userAgent.toLowerCase().indexOf('msie')==-1) itemY = 13; } // Remember, items start from 1 in the array (0 is menu object itself, above). // Also use properties of each item nested in the other with() for construction. for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) { itemID = 'menu' + currMenu + 'item' + currItem; // The width and height of the menu item - dependent on orientation! var w = (isVert ? width : length); var h = (isVert ? length : width); // Create a div or layer text string with appropriate styles/properties. // Width must be a miniumum of 3 for it to work in IE4. if (isDOM || isIE4) { str += '
'; // Add contents of item (default: table with link inside). // In IE/NS6+, add padding if there's a border to emulate NS4's layer padding. // If a target frame is specified, also add that to the tag. str += ''; //str += '
' + '' : '>') + text + '
'; //alert(str); if (target > 0) { // Set target's parents to this menu item. menu[target][0].parentMenu = currMenu; menu[target][0].parentItem = currItem; // Add a popout indicator. if (popInd) str += ''; } str += '
' + '' : '>') + text + ' + popInd + '
' + (isNS4 ? '' : '
'); if (isVert) itemY += length + spacing; else itemX += length + spacing; } if (isDOM) { var newDiv = document.createElement('div'); document.getElementsByTagName('body').item(0).appendChild(newDiv); newDiv.innerHTML = str; ref = newDiv.style; ref.position = 'absolute'; ref.visibility = 'hidden'; } // Insert a div tag to the end of the BODY with menu HTML in place for IE4. if (isIE4) { document.body.insertAdjacentHTML('beforeEnd', ''); ref = getSty('menu' + currMenu + 'div'); } // In NS4, create a reference to a new layer and write the items to it. if (isNS4) { ref = new Layer(0); ref.document.write(str); ref.document.close(); } for (currItem = 1; currItem < menu[currMenu].length; currItem++) { itemName = 'menu' + currMenu + 'item' + currItem; if (isDOM || isIE4) menu[currMenu][currItem].ref = getSty(itemName); if (isNS4) menu[currMenu][currItem].ref = ref.document[itemName]; } } with(menu[0][0]) { ref.left = x; ref.top = y; ref.visibility = 'visible'; } } // Syntaxes: *** START EDITING HERE, READ THIS SECTION CAREFULLY! *** // // menu[menuNumber][0] = new Menu(Vertical menu? (true/false), 'popout indicator', left, top, // width, 'mouseover colour', 'background colour', 'border stylesheet', 'text stylesheet'); // // Left and Top are measured on-the-fly relative to the top-left corner of its trigger, or // for the root menu, the top-left corner of the page. // // menu[menuNumber][itemNumber] = new Item('Text', 'URL', 'target frame', length of menu item, // additional spacing to next menu item, number of target menu to popout); // // If no target menu (popout) is desired, set it to 0. Likewise, if your site does not use // frames, pass an empty string as a frame target. // // Something that needs explaining - the Vertical Menu setup. You can see most menus below // are 'true', that is they are vertical, except for the first root menu. The 'length' and // 'width' of an item depends on its orientation -- length is how long the item runs for in // the direction of the menu, and width is the lateral dimension of the menu. Just look at // the examples and tweak the numbers, they'll make sense eventually :). var menu = new Array(); // Default colours passed to most menu constructors (just passed to functions, not // a global variable - makes things easier to change later in bulk). var defOver = '#1E85C8'; var defBack ='#E7F1FA'; //defBack = '#99CCFF'; // Default 'length' of menu items - item height if menu is vertical, width if horizontal. var defLength = 22; menu[0] = new Array(); menu[0][0] = new Menu(true,'',0,182,150,defOver,'','','itemText'); menu[0][1] = new Item('    LWW Stores  ','#','',20,0,1); menu[0][2] = new Item('   Products & Services','#','',20,0,3); menu[0][3] = new Item('   Resource Centers','#','',20,0,4); menu[0][4] = new Item('   Browse by Specialty','/browsebyspecialty/0,0,0,00.html','',20,0,0); menu[0][5] = new Item('   Customer Service','#','',20,0,5); menu[0][6] = new Item('   Tools       ','#','',20,0,6); menu[0][7] = new Item('   About LWW   ','#','',20,0,7); menu[0][8] = new Item('   LWW Websites','/websitelinks','',20,0,0); menu[0][9] = new Item('   LWW News    ','/newscenter/','',20,0,0); menu[0][10] = new Item('   Job Search  ','#','',20,0,9); menu[0][11] = new Item('   Author Blog ','http://www.whatcounts.com/blog/lww/lippincott-authors?utm_source=blog&utm_m','',20,0,0); menu[0][12] = new Item('   Sale Annex   ','/overstock','',20,0,0); menu[1] = new Array(); menu[1][0] = new Menu(true,'',151,0,160,defOver,defBack,'0','itemText'); menu[1][1] = new Item('LWW Store                 ','/store','',20,0,0); menu[1][2] = new Item('American Heart Association','/ahaonline','',22,0,0); menu[1][3] = new Item('Anatomical Chart Company  ','/anatomicalchart','',22,0,0); menu[1][4] = new Item('Espaņol                   ','/espanol','',20,0,0); menu[1][5] = new Item('Health Professions        ','#','',22,0,2); menu[1][6] = new Item('Med Students              ','/medstudent','',22,0,0); menu[1][7] = new Item('Medical / Clinical        ','#','',22,0,10); menu[1][8] = new Item('Nursing                   ','/nursing','',22,0,0); menu[1][9] = new Item('PDA Products              ','/pda','',22,0,0); menu[1][10] = new Item('Society Journals          ','/society','',22,0,0); menu[1][11] = new Item('Stedman's & Company   ','/stedmans','',22,0,0); menu[2] = new Array(); menu[2][0] = new Menu(true,'',151,0,150,defOver,defBack,'0','itemText'); menu[2][1] = new Item('Athletic Trainer          ','/athletictraining','',22,0,0); menu[2][2] = new Item('Exercise Science          ','/exercise','',22,0,0); menu[2][3] = new Item('Massage Therapy           ','/massage','',22,0,0); menu[2][4] = new Item('Occupational Therapy      ','/ot','',22,0,0); menu[2][5] = new Item('Pharmacy                  ','/pharmacy','',22,0,0); menu[2][6] = new Item('Physical Therapy          ','/pt','',22,0,0); menu[2][7] = new Item('Physician Assistant       ','/pa','',22,0,0); menu[3] = new Array(); menu[3][0] = new Menu(true,'',151,0,155,defOver,defBack,'0','itemText'); menu[3][1] = new Item('New Releases              ','/newresults/0,0,00,00.html','',22,0,0); menu[3][2] = new Item('Bestsellers               ','/bestsellers/','',22,0,0); menu[3][3] = new Item('Current Promotions        ','/currentpromotions/','',22,0,0); menu[3][4] = new Item('Brands & Series Products  ','/resources/brands_series/index.html','',22,0,0); menu[3][5] = new Item('Periodicals               ','/periodicaltab','',22,0,0); menu[3][6] = new Item('Product Alerts            ','/productalerts/','',22,0,0); menu[3][7] = new Item('Reprints                  ','/reprints','',22,0,0); menu[3][8] = new Item('Translations              ','/static/html/translations.html','',22,0,0); menu[3][9] = new Item('Licensing                 ','/static/licensing/index.html','',22,0,0); menu[3][10] = new Item('Permissions               ','/resources/permissions/index.html','',22,0,0); menu[3][11] = new Item('Web Broadcasts            ','http://www.or-live.com','_new',22,0,0); menu[4] = new Array(); menu[4][0] = new Menu(true,'',151,0,150,defOver,defBack,'0','itemText'); menu[4][1] = new Item('Authors                   ','/resources/authors/index.html','',22,0,0); menu[4][2] = new Item('Continuing Education      ','/resources/cmeinfo/index.html','',22,0,0); menu[4][3] = new Item('Faculty                   ','/resources/fsc/index.html','',22,0,0); menu[4][4] = new Item('Libraries & Institutions  ','/resources/librarians/index.html','',22,0,0); menu[4][5] = new Item('Students & Residents  ','/resources/students/index.html','',22,0,0); menu[4][6] = new Item('Advertiser Center         ','/resources/advertisers/index.html','',22,0,0); menu[4][7] = new Item('Content Lending Center    ','/static/html/content-lending.html','',22,0,0); menu[4][8] = new Item('ACSM Certification        ','http://www.acsm.org/certification','_new',22,0,0); menu[4][9] = new Item('Retail Toolbox            ','/resources/retailpartners/index.html','_new',22,0,0); menu[4][10] = new Item('Online Education          ','http://imgcache.classesusa.com/media/articles/article-nursing-llw.html','_new',22,0,0); menu[5] = new Array(); menu[5][0] = new Menu(true,'',151,0,180,defOver,defBack,'0','itemText'); menu[5][1] = new Item('Online Help Center        ','http://lww.custhelp.com/cgi-bin/lww.cfg/php/enduser/std_alp.php','',22,0,0); menu[5][2] = new Item('My Account                ','/CustomerService/home','',22,0,0); menu[5][3] = new Item('Ordering Help             ','/static/customerservice/orderinghelp.html','',22,0,0); menu[5][4] = new Item('Merchandise Return        ','/returnspolicy','',22,0,0); menu[5][5] = new Item('Shipping & Handling       ','/static/customerservice/shipping.html','',22,0,0); menu[5][6] = new Item('Register your CD-ROM      ','/regcard/','',22,0,0); menu[5][7] = new Item('Register your Skyscape PDA','/pda/register.html','',22,0,0); menu[5][8] = new Item('Contact LWW               ','/contactus','',22,0,0); menu[5][9] = new Item('Clinical Simulation Product Patches','/resources/cs/clinicalsimulation.html','',22,0,0); menu[5][10] = new Item('Internet Security         ','/internetsecurity','',22,0,0); menu[6] = new Array(); menu[6][0] = new Menu(true,'',151,0,160,defOver,defBack,'0','itemText'); menu[6][1] = new Item('Store Locator             ','/storelocator/','',22,0,0); menu[6][2] = new Item('Sales Representative Locator','/replocator/map/','',22,0,0); menu[6][3] = new Item('Register                  ','/customerservice/submitnewuserregistration/','',22,0,0); menu[6][4] = new Item('Product Search            ','http://lippincott.lww.com/search?w=*&asug=','',22,0,0); menu[6][5] = new Item('Exhibit Locator           ','/exhibitlisting','',20,0,0); menu[7] = new Array(); menu[7][0] = new Menu(true,'',151,0,165,defOver,defBack,'0','itemText'); menu[7][1] = new Item('LWW Profile               ','/static/html/about.html','',22,0,0); menu[7][2] = new Item('Careers@LWW               ','/careers/','',22,0,0); menu[7][3] = new Item('Privacy Policy            ','/privacy','',22,0,0); menu[7][4] = new Item('Linking Policy            ','/linking','',22,0,0); menu[7][5] = new Item('LWW Offices               ','/offices','',22,0,0); menu[7][6] = new Item('HEOA Compliance Information','/heoa/','',22,0,0); menu[8] = new Array(); menu[8][0] = new Menu(true,'',151,0,150,defOver,defBack,'0','itemText'); menu[8][1] = new Item('Sample Issues             ','/static/insider/index.html','',22,0,0); menu[8][2] = new Item('Register                  ','/updates','',22,0,0); menu[9] = new Array(); menu[9][0] = new Menu(true,'',151,0,150,defOver,defBack,'0','itemText'); menu[9][1] = new Item('Careers@LWW               ','/careers','',22,0,0); menu[9][2] = new Item('Careers in Healthcare     ','/careerops','',22,0,0); menu[10] = new Array(); menu[10][0] = new Menu(true,'',151,0,160,defOver,defBack,'0','itemText'); menu[10][1] = new Item('Anesthesia                ','/anesthesia','',22,0,0); menu[10][2] = new Item('Cardiology                ','/cardiology','',22,0,0); menu[10][3] = new Item('Emergency Medicine        ','/emergencymedicine','',22,0,0); menu[10][4] = new Item('Internal Medicine         ','/internalmed','',22,0,0); menu[10][5] = new Item('Neurology                 ','/neurology','',22,0,0); menu[10][6] = new Item('Obstetrics and Gynecology ','/obgyn','',22,0,0); menu[10][7] = new Item('Oncology                  ','/oncology','',22,0,0); menu[10][8] = new Item('Ophthalmology             ','/ophthalmology','',22,0,0); menu[10][9] = new Item('Optometry                 ','/optometry','',20,0,0); menu[10][10] = new Item('Orthopaedics              ','/ortho','',22,0,0); menu[10][11] = new Item('Pathology                 ','/pathology','',22,0,0); menu[10][12] = new Item('Pediatrics                ','/pediatrics','',22,0,0); menu[10][13] = new Item('Physician Assistant       ','/pa','',22,0,0); menu[10][14] = new Item('Psychiatry                ','/psychiatry','',22,0,0); menu[10][15] = new Item('Radiology & Nuclear Medicine','/radionuclear','',22,0,0); menu[10][16] = new Item('Surgery                   ','/surgery','',22,0,0); var popOldWidth = window.innerWidth; nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()'); // This is a quick snippet that captures all clicks on the document and hides the menus // every time you click. Use if you want. if (isNS4) document.captureEvents(Event.CLICK); document.onclick = clickHandle; function clickHandle(evt) { if (isNS4) document.routeEvent(evt); hideAllBut(0); } // This is just the moving command for the example. function moveRoot() { with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5); } function HideCartConfirmButtons() { document.frmConfirm.btnBuyNow1.style.visibility = "hidden"; document.frmConfirm.btnBuyNow2.style.visibility = "hidden"; document.frmConfirm.btnChangeInfo1.style.visibility = "hidden"; document.frmConfirm.btnChangeInfo2.style.visibility = "hidden"; document.frmConfirm.procmessage1.style.visibility = "visible"; document.frmConfirm.procmessage2.style.visibility = "visible"; return true; } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } // For New Customers on the site var divId = 'newCustomer'; function displayPromo() { document.getElementById(divId).style.display = 'inline'; } function hidePromo() { document.getElementById(divId).style.display = 'none'; } function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else begin += 2; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } function setDate(date) { var std = new Date(0); var skew = std.getTime(); if (skew > 0) date.setTime(date.getTime() - skew); } var olsCookie = getCookie("OLSCart"); var popUp = getCookie("newCustomer"); var expire = new Date(); setDate(expire); var now = expire.getTime(); var resetCookie = true; if(popUp == null && olsCookie == null) { whichDiv = "newCustomer"; setTimeout("displayPromo();",1000); var firstHit = now; } else if(popUp=="DISPLAYED") { var firstHit = now; var resetCookie = false; } if(resetCookie) { var cInfo = "DISPLAYED"; expire.setTime(expire.getTime() + 3600000*24*60*60); setCookie("newCustomer", cInfo, expire); } // For New Customers on the site