window.onload = function () { if ( $('history_container') ) { setup_history_tips(); setup_company_history_scroll(); setup_image_gallery(); setup_scroll_notice(); setTimeout( preload_history_images, 1000 ); } if ( $('locations') ) { new Request.HTML({ 'update': $('locations'), 'onComplete': function() { setup_locations_map_buttons(); setup_locations_view_staff(); setup_locations_view_staff_nav(); } }).get('/Images/locations/locations.html'); } if ( $('splash_search_tips_link') ) { $('splash_search_tips_link').onclick = function() { return false; } var searchTip = new Tips($('splash_search_tips_link'), { className: 'search_tips', hideDelay: 0, offsets: {'x': -200, 'y': 30}}); searchTip.addEvent('show', function(tip){ tip.style.display='block'; tip.fade('in'); }); searchTip.addEvent('hide', function(tip){ tip.fade('out'); tip.style.display='none'; }); $('splash_search_tips_link').store('tip:title', 'Search Tips'); $('splash_search_tips_link').store('tip:text', '- Type words related to the product you\'re searching for in the text entry box (e.g. exam glove).
- Try to use singular words (e.g. glove rather than gloves).'); } // if ( $('splash_search_tips_link') ) { // var el = $('splash_search_tips_link'); // var search_tips = new Tips(el, { className: 'search_tips', offsets: { x:-100, y: 16}}); // search_tips.removeEvent('show'); // search_tips.removeEvent('hide'); // search_tips.addEvent('show', function(tip){ // tip.fade('in'); // }); // el.store('tip:title', 'Tips'); // el.store('tip:text', "- Type words related to the product you're searching for in the text entry box (e.g. exam glove).
- Try to use singular words (e.g. glove rather then gloves)."); //el.onclick = function() { return false; } //} }