// You found this script on http://simply-basic.com/posts/19419 // This was distributed and slightly modified by John Kolbert of Simply-Basic.com // Original coding, work, and testing was done by Marc Grabanski // // Below is the original terms of use (of which are still intact): // Fisheye Menu v1.0 // Written by Marc Grabanski (m@marcgrabanski.com) // Copyright (c) 2007 Marc Grabanski (http://marcgrabanski.com/code/fisheye-menu) // Dual licensed under the GPL (http://www.gnu.org/licenses/gpl-3.0.txt) and // CC (http://creativecommons.org/licenses/by/3.0/) licenses. "Share or Remix it but please Attribute the authors." // Date: 09-03-2007 var fisheyemenu = { startSize : 55, endSize : 88, imgType : ".htm", init : function () { var animElements = document.getElementById("fisheye_menu").getElementsByTagName("img"); var titleElements = document.getElementById("fisheye_menu").getElementsByTagName("span"); for(var j=0; j steps) window.clearInterval(elem.widthChangeMemInt); } ,intervals) }, easeInOut : function (minValue,maxValue,totalSteps,actualStep,powr) { //Generic Animation Step Value Generator By www.hesido.com var delta = maxValue - minValue; var stepp = minValue+(Math.pow(((1 / totalSteps)*actualStep),powr)*delta); return Math.ceil(stepp) }, imgSmall : function (obj) { imgSrc = obj.getAttribute("src"); var typePos = imgSrc.indexOf(fisheyemenu.imgType, 0); var imgName = imgSrc.substr(0, typePos); obj.setAttribute("src", imgName+"_small"+fisheyemenu.imgType); }, imgLarge : function (obj) { imgSrc = obj.getAttribute("src"); var typePos = imgSrc.indexOf("_small", 0); var imgName = imgSrc.substr(0, typePos); obj.setAttribute("src", imgName+fisheyemenu.imgType); } } // Add event with wide browser support if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", fisheyemenu.init, false ); else if ( typeof window.attachEvent != "undefined" ) window.attachEvent( "onload", fisheyemenu.init ); else { if ( window.onload != null ) { var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); fisheyemenu.init(); } } else window.onload = popUpCal.init; }