Added: web/php/trunk/ie6update/ie6update.js
===================================================================
--- web/php/trunk/ie6update/ie6update.js (rev 0)
+++ web/php/trunk/ie6update/ie6update.js 2010-01-11 09:33:46 UTC (rev 293397)
@@ -0,0 +1,323 @@
+/**
+ *
+ IE6Update.js
+
+ * IE6Update is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 3 of the License.
+ *
+ * IE6Update is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Activebar2; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * * * * * * * * * * * *
+ *
+ * This is code is derived from Activebar2
+ *
+ * Activebar2 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 3 of the License.
+ *
+ * Activebar2 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Activebar2; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * You may contact the author by mail: jakob@php.net
+ *
+ * Or write to:
+ * Jakob Westhoff
+ * Kleiner Floraweg 35
+ * 44229 Dortmund
+ * Germany
+ *
+ * The latest version of ActiveBar can be obtained from:
+ * http://www.westhoffswelt.de/
+ *
+ * @package Core
+ * @version $Revision$
+ * @license http://www.gnu.org/licenses/gpl-3.0.txt GPL
+ */
+
+
+try {
+ document.execCommand("BackgroundImageCache", true, true);
+} catch(err) {}
+
+if(window.__noconflict){ jQuery.noConflict();}
+(function($) {
+
+
+ $.fn.activebar = function( options ) {
+ // Merge the specified options with the default ones
+ options = $.fn.extend( {}, $.fn.activebar.defaults, options );
+
+ if ( $.fn.activebar.container === null ) {
+ $.fn.activebar.container = initializeActivebar( options );
+ }
+
+ // Update the style values according to the provided options
+ setOptionsOnContainer( $.fn.activebar.container, options );
+
+ // If the activebar is currently visible hide it
+ $.fn.activebar.hide();
+
+ // Remove all elements from the activebar content, which might be there
+ $( '.content', $.fn.activebar.container ).empty();
+
+ // Use all provided elements as new content source
+ $(this).each( function() {
+ $( '.content', $.fn.activebar.container ).append( this );
+ });
+
+ // Remove any "gotoURL" function
+ $.fn.activebar.container.unbind( 'click' );
+
+ // Add a new "gotoURL" function if one has been supplied
+ if( options.url !== null ) {
+ $.fn.activebar.container.click(
+ function() {
+ window.location.href = options.url;
+ }
+ );
+ }
+
+ // Update the position based on the new content data height
+ $.fn.activebar.container.css( 'top', '-' + $.fn.activebar.container.height() + 'px' );
+
+ // Show the activebar
+ if(options.preload){
+ var load = {a:0, b:0, c:0, d:0}
+
+ function preloadInit(){
+ if(load.a && load.b && load.c && load.d){
+ $.fn.activebar.show();
+ }
+ }
+
+ $('
').load(function(){load.a=1; preloadInit()});
+ $('
').load(function(){load.b=1; preloadInit()});
+ $('
').load(function(){load.c=1; preloadInit()});
+ $('
').load(function(){load.d=1; preloadInit()});
+
+ }else{
+ $.fn.activebar.show();
+ }
+
+ };
+
+ /**
+ * Default options used if nothing more specific is provided.
+ */
+ $.fn.activebar.defaults = {
+ 'background': '#ffffe1',
+ 'border': '#666',
+ 'highlight': '#3399ff',
+ 'font': 'Bitstream Vera Sans,verdana,sans-serif',
+ 'fontColor': 'InfoText',
+ 'fontSize': '11px',
+ 'icons_path' : 'images/',
+ 'url': 'http://www.microsoft.com/windows/internet-explorer/default.aspx',
+ 'preload': true
+ };
+
+ /**
+ * Indicator in which state the activebar currently is
+ * 0: Moved in (hidden)
+ * 1: Moving in (hiding)
+ * 2: Moving out (showing)
+ * 3: Moved out (shown)
+ */
+ $.fn.activebar.state = 0;
+
+ /**
+ * Activebar container object which holds the shown content
+ */
+ $.fn.activebar.container = null;
+
+ /**
+ * Show the activebar by moving it in
+ */
+ $.fn.activebar.show = function() {
+ if ( $.fn.activebar.state > 1 ) {
+ // Already moving out or visible. Do Nothing.
+ return;
+ }
+
+ $.fn.activebar.state = 2;
+ $.fn.activebar.container.css( 'display', 'block' );
+
+ var height = $.fn.activebar.container.height();
+ $.fn.activebar.container.animate({
+ 'top': '+=' + height + 'px'
+ }, height * 20, 'linear', function() {
+ $.fn.activebar.state = 3;
+ });
+ };
+
+ /**
+ * Hide the activebar by moving it out
+ */
+ $.fn.activebar.hide = function() {
+ if ( $.fn.activebar.state < 2 ) {
+ // Already moving in or hidden. Do nothing.
+ return;
+ }
+
+ $.fn.activebar.state = 1;
+
+ var height = $.fn.activebar.container.height();
+ $.fn.activebar.container.animate({
+ 'top': '-=' + height + 'px'
+ }, height * 20, 'linear', function() {
+ $.fn.activebar.container.css( 'display', 'none' );
+ $.fn.activebar.visible = false;
+ });
+ };
+
+ /****************************************************************
+ * Private function only accessible from within this plugin
+ ****************************************************************/
+
+ /**
+ * Create the a basic activebar container object and return it
+ */
+ function initializeActivebar( options ) {
+ // Create the container object
+ var container = $( '