/**
 * Fichier  : /share/sdmc/interne/layoutftv/arches/common/jsdev/jquery.isExternalLink/libs/jquery.isExternalLink.js
 * Revision : 9
 */
(function(window, $, undef) {
    if($ === undef) {
        throw new Error('Dépendence non satisfaite : jQuery');
    }

    // Control si un node HTML est un lien externe
    function isExternalLink(elem) {
        var href = elem.href;
        return elem.nodeName === 'A' &&
            href &&
            $.fn.isExternalLink.patternProtocol.test(href) &&
            !$.fn.isExternalLink.patternDomainName.test(href);
    }

    // Pour usage avec la méthode filter de jQuery
    function isExternalLinkFilter() {
        return isExternalLink(this);
    }

    // Plug-in qui permet de savoir si un element est un lien externe, ou si un groupe d'élément contient un lien externe.
    $.fn.isExternalLink = function(all) {
        return this.filter(isExternalLinkFilter).length >= (all ? this.length : 1);
    };

    $.fn.isExternalLink.patternDomainName = /^[^:]+:\/\/[^\/]*(radioo|la1ere|rfo|pluzz|france([2345o]|tv(od)?|televisions))\.(fr|tv)(\/|$)/;
    $.fn.isExternalLink.patternProtocol = /^(ftp|https?):\/\//;

    // Création du sélecteur :externalLink qui permet de sélectionner les lien externes
    $.expr[':'].externalLink = (typeof $.expr[':'].checked === 'function') ?
        isExternalLink :            // version jQuery 1.3+
        '$(a).isExternalLink();';   // version jQuery 1.2

}(this, this.jQuery));
/**
 * Fichier  : /share/sdmc/interne/layoutftv/arches/common/jsdev/jquery.bindGlobal.js
 * Revision : 36041
 */
(function(window, $, undef) {
	if($ === undef) {
		throw new Error('Dépendence non satisfaite : jQuery');
	}

	var globalEvents = {};

	function bodyEventHandler(e) {
		var retour = true,
		args = arguments,
		target = $(e.target),
		selector;
		for(selector in globalEvents[e.type]) {
			if(target.is(selector)) {
				retour = retour & !!globalEvents[e.type][selector].apply(e.target, args);
			}
			else {
				target
					.parents(selector)
					.each(function() {
						var ret = !!globalEvents[e.type][selector].apply(this, args);
						retour = retour & ret;
						return ret;
					});
			}
		}
		return !!retour;
	};

	$.fn.bindGlobal = function(event, action) {
		if(globalEvents[event] === undefined) {
			globalEvents[event] = {};
			$(document.body).bind(event, bodyEventHandler);
		}
		globalEvents[event][this.selector] = action;
	};

	if($([]).selector === undef) {
		var init = $.prototype.init;
		$.prototype.init = function(a,c) {
			var r = (this instanceof $) ? init.apply(this, [a,c]) : new init(a, c);
			// copy over properties if they exist already
			if (a && a.selector) {
				r.context = a.context;
				r.selector = a.selector;
			}
			// set properties
			if ( typeof a  == "string" ) {
				r.context = c;
				r.selector = a;
			}
			return r;
		};
	}

	if(!$.fn.live) {
		$.fn.live = $.fn.bindGlobal;
	}
}(this, this.jQuery));
/**
 * Fichier  : /share/sdmc/interne/layoutftv/arches/common/jsdev/jquery.popup/libs/jquery.popup.js
 * Revision : 36041
 */
(function (window, $) {
    (function (dep) {
        for (var i in dep) {
            if (!dep[i]) {
                throw new window.Error('Dépendence non satisfaite : ' + i);
            }
        }
    }({
        jQuery                  : !!$,
        'jQuery.live'           : !!($ && $.fn && $.fn.live),
        'jQuery.isExternalLink' : !!($ && $.fn && $.fn.isExternalLink)
    }));

    var pattern = /(height|width|target)(?:[=:|]([^\s]+))?/ig;

    function parseClass(cls) {
        if (typeof cls !== 'string') {
            return {};
        }
        var matches,
            options = {};
        while (!!(matches = pattern.exec(cls))) {
            options[matches[1]] = matches[2];
        }
        return options;
    }

    function handlePopupLink(evt) {
        if (evt.isDefaultPrevented()) {
            return;
        }

        evt.preventDefault();

        var key,
            options = parseClass(this.className),
            optionsArray = [],
            target;

        for (key in options) {
            if (key === 'target') {
                target = options[key];
            }
            else {
                optionsArray.push(key + '=' + options[key]);
            }
        }
        window.open(this.href, target || 'popup' + (+new window.Date()), optionsArray.join(','));
    }

    $.fn.popupRootHandler = function() {
        $('a.popUp, a.targBlank, a:not(.noPopUp):externalLink', this)
            .live('click', handlePopupLink);
        return this;
    };

    if(document.body) {
        $(document.body).popupRootHandler();
    }
    else {
        $(function() {
            $(document.body).popupRootHandler();
        });
    }
}(this, this.jQuery));
