/** -------------------- Start js code for dock -------------------- */ document.write(''); document.write(''); // helper function for appending to onload function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } /** -------------------------------------- Start Left dock -------------------------------------- */ /** -------------------------------------- Start Right Dock -------------------------------------- */ function mlUpdateModelPosition() { var wheel = document.getElementById('wheel'); var slide = document.getElementById('ml_slide'); var dock_bar = document.getElementById('dock_bar'); slide.style.height = document.body.clientHeight; slide.style.top = document.body.scrollTop; dock_bar.style.top = document.body.scrollTop; wheel.style.top = ((document.body.clientHeight / 2) + document.body.scrollTop) - 291; } function toggleSlide() { if (jQuery('#ml_slide').css('width') == '1px' || jQuery('#ml_slide').css('width') == '0px') { jQuery('#ml_slide').animate({width:'700'}, 1000); jQuery('#wheel').animate({right: '710'}, 1000); jQuery('#dock_bar').animate({right: '700'}, 1000); } else { jQuery('#ml_slide').animate({width:'1'}, 1000); jQuery('#wheel').animate({right: '10'}, 1000); jQuery('#dock_bar').animate({right: '0'}, 1000); } } // add our load event addLoadEvent(function() { jQuery.noConflict(); var content = '
' + '