1/* 2// JoomlaWorks "Tabs & Slides" Plugin for Joomla! 1.5.x - Version 2.4 3// License: http://www.gnu.org/copyleft/gpl.html 4// Copyright (c) 2006 - 2008 JoomlaWorks, a Komrade LLC company. 5// More info at http://www.joomlaworks.gr 6// Developers: Fotis Evangelou 7// ***Last update: May 20th, 2008*** 8*/ 9 10// DOM Loader 11var DomLoaded = 12{ 13 onload: [], 14 loaded: function() 15 { 16 if (arguments.callee.done) return; 17 arguments.callee.done = true; 18 for (i = 0;i < DomLoaded.onload.length;i++) { 19 20 if(DomLoaded.onload[i] != undefined){ 21 DomLoaded.onload[i](); 22 } 23 } 24 }, 25 load: function(fireThis) 26 { 27 this.onload.push(fireThis); 28 if (document.addEventListener) 29 document.addEventListener("DOMContentLoaded", DomLoaded.loaded, null); 30 if (/KHTML|WebKit/i.test(navigator.userAgent)) 31 { 32 var _timer = setInterval(function() 33 { 34 if (/loaded|complete/.test(document.readyState)) 35 { 36 clearInterval(_timer); 37 delete _timer; 38 DomLoaded.loaded(); 39 } 40 }, 10); 41 } 42 /*@cc_on @*/ 43 /*@if (@_win32) 44 var proto = "src='javascript:void(0)'"; 45 if (location.protocol == "https:") proto = "src=//0"; 46 document.write("<scr"+"ipt id=__ie_onload defer " + proto + "><\/scr"+"ipt>"); 47 var script = document.getElementById("__ie_onload"); 48 script.onreadystatechange = function() { 49 if (this.readyState == "complete") { 50 DomLoaded.loaded(); 51 } 52 }; 53 /*@end @*/ 54 55 DomLoaded.addLoadEvent(DomLoaded.loaded); 56 }, 57 addLoadEvent: function(func) 58 { 59 // Source http://simonwillison.net/2004/May/26/addLoadEvent/ 60 var oldonload = window.onload; 61 if (typeof window.onload != 'function') { 62 window.onload = func; 63 } else { 64 window.onload = function() { 65 if (oldonload) { 66 oldonload(); 67 } 68 func(); 69 } 70 } 71 72 } 73}; 74 75// Load everything up! 76DomLoaded.load(function() { 77 tabberAutomatic(tabberOptions); // Load the tabs 78 //initShowHideDivs(); // Load the slides 79 //showHideContent(false,1);//}); // Automatically expand first item - disabled by default 80});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.