// Flash Unhide
// Click on a hidden Flash to make it fullsize
// To be used together with a user stylesheet that hides Flash embeds

/*
Script source:
  Fabian Valkenburg

Changes:
  This adaption made by Rijk van Geijtenbeek, 2005-03-25.
*/

function FlashUnhide() {
    window.onclick=function(){
        var
            srcElem=window.event.srcElement;
// For now, this needs to be limited to EMBED elements
//        if(/embed|object/i.test(srcElem.tagName))
        if(/embed/i.test(srcElem.tagName))
            srcElem.className='zichtbaar';
    };
}

/* Note: Flash Unhider is only useful together with FlashHider user.css below: */
/*
embed[type="application/x-shockwave-flash"] {content:"Flash"; outline: 1px dotted gray; color: gray; background: black}
embed[type="application/x-shockwave-flash"].zichtbaar {content: normal; outline: none}
*/}
