Shadowbox.init({
    language: "fr",
    skipSetup: true,    // skip the automatic setup, we'll do this later manually
    players: ["iframe"] // include the iframe player
});
function addEvent(obj, type, fn) {
	if (obj.addEventListener) {
		obj.addEventListener(type, fn, false);
	} else if (obj.attachEvent) {
		obj["e" + type + fn] = fn;
		obj[type + fn] = function () {
            obj["e" + type + fn](window.event);
        };
		obj.attachEvent("on" + type, obj[type + fn]);
	}
}
function shadowbox_initialize() {
    // Remove target
    var i,
        anchors = document.getElementsByTagName('a'),
        alength  = anchors.length;
    for (i = 0 ; i < alength ; i++) {
        if (anchors[i].className === 'LinkDesc') {
            anchors[i].setAttribute('target', '_parent');
        }
    }
    // Set up all anchor elements with a "LinkDesc" class to work with Shadowbox
    Shadowbox.setup("a.LinkDesc", {
        player: "iframe",
        width:  "640px",
        height: "480px"
    });
}
addEvent(window, 'load', shadowbox_initialize);
