var aafab = { // Customization parameters imagePath : "images/titles/", init : function (){ if(document.getElementById){ var p1_l3 = document.getElementById("p1_l3"); var p1_l3_path = document.getElementById("p1_l3").src; p1_l3.onmouseover = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p1_l3.src= ((p1_l3_path.indexOf("_a") == -1) ? (aafab.imagePath+"p1_l3_o.png") : (p1_l3_path)); }; p1_l3.onmouseout = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p1_l3.src= p1_l3_path; }; var p2_l3 = document.getElementById("p2_l3"); var p2_l3_path = document.getElementById("p2_l3").src; p2_l3.onmouseover = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p2_l3.src= ((p2_l3_path.indexOf("_a") == -1) ? (aafab.imagePath+"p2_l3_o.png") : (p2_l3_path)); }; p2_l3.onmouseout = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p2_l3.src= p2_l3_path; }; var p3_l3 = document.getElementById("p3_l3"); var p3_l3_path = document.getElementById("p3_l3").src; p3_l3.onmouseover = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p3_l3.src= ((p3_l3_path.indexOf("_a") == -1) ? (aafab.imagePath+"p3_l3_o.png") : (p3_l3_path)); }; p3_l3.onmouseout = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p3_l3.src= p3_l3_path; }; var p4_l3 = document.getElementById("p4_l3"); var p4_l3_path = document.getElementById("p4_l3").src; p4_l3.onmouseover = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p4_l3.src= ((p4_l3_path.indexOf("_a") == -1) ? (aafab.imagePath+"p4_l3_o.png") : (p4_l3_path)); }; p4_l3.onmouseout = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p4_l3.src= p4_l3_path; }; var p5_l3 = document.getElementById("p5_l3"); var p5_l3_path = document.getElementById("p5_l3").src; p5_l3.onmouseover = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p5_l3.src= ((p5_l3_path.indexOf("_a") == -1) ? (aafab.imagePath+"p5_l3_o.png") : (p5_l3_path)); }; p5_l3.onmouseout = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p5_l3.src= p5_l3_path; }; var p7_l3 = document.getElementById("p7_l3"); var p7_l3_path = document.getElementById("p7_l3").src; p7_l3.onmouseover = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p7_l3.src= ((p7_l3_path.indexOf("_a") == -1) ? (aafab.imagePath+"p7_l3_o.png") : (p7_l3_path)); }; p7_l3.onmouseout = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p7_l3.src= p7_l3_path; }; var p8_l3 = document.getElementById("p8_l3"); var p8_l3_path = document.getElementById("p8_l3").src; p8_l3.onmouseover = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p8_l3.src= ((p8_l3_path.indexOf("_a") == -1) ? (aafab.imagePath+"p8_l3_o.png") : (p8_l3_path)); }; p8_l3.onmouseout = function(oEvent) { var oEvent = (typeof oEvent != "undefined")? oEvent : event; aafab.preventDefaultEventBehavior(oEvent); p8_l3.src= p8_l3_path; }; }}, closeSession : function (oEvent){ aafab = null; delete aafab; }, preventDefaultEventBehavior : function (oEvent){ if(oEvent){ oEvent.returnValue = false; if(oEvent.preventDefault){ oEvent.preventDefault(); } } } }; // --- addEvent(window, "load", function(){aafab.init();}, false); addEvent(window, "unload", function(){aafab.closeSession();}, false); // --- // Utility functions function addEvent(oObject, strEvent, oFunction, bCapture){ if(oObject){ if(oObject.addEventListener){ oObject.addEventListener(strEvent, oFunction, bCapture); } else if(window.attachEvent){ oObject.attachEvent(("on" + strEvent), oFunction) } } } // --- if(typeof Array.prototype.push != "function"){ Array.prototype.push = ArrayPush; function ArrayPush(value){ this[this.length] = value; } } // ---