/**
 * content.content.flash.js - insert headline here
 *
 * COPYRIGHT: All  title   and  proprietary  rights,  including  trade
 * secrets,   in   the   Software   and   any   copies thereof and the
 * accompanying  written   materials,   are  owned  by   schukai  GmbH
 * and  are  protected  by  German  copyright  laws,  other applicable
 * copyright   laws  and  international  treaty  provisions.
 *
 * @package    alvine
 * @author     schukai GmbH <info@schukai.de>
 * @copyright  Copyright (C) 2002, 2003, 2004, 2005, 2006 schukai GmbH
 * @license    http://www.alvine.de/license/
 * @version    20061114
 * @link       http://www.alvine.de/
 */
 
function content_frontend_plugin_content_content_flvplaver_init(boxID){
    if(typeof alvine.plugin[boxID] == 'undefined') alvine.plugin[boxID] = new Object();
}

function content_content_flvplaver_registerData(popupContentID, imageID, popupID, playerID, title){
  
    if(typeof popupContentID    == 'undefined') return false;
    if(typeof imageID       == 'undefined') return false;
    if(typeof popupID  == 'undefined') return false;
  
    var srcImage = element_isObject(imageID);
    if(!srcImage) return false;
  
    var popupContentObject = element_isObject(popupContentID);
    if(!popupContentObject) return false;
    popupContentObject.childNodes[0]['alvine_onClose'] = function(){ 
        if(this.hasChildNodes()){
            //damit der Flashfilm auch wirklich stoppt, wird das Popup leer geräumt:
            while (this.firstChild) {
                this.removeChild(this.firstChild);
            }
        }
        return true;
    };

    srcImage['alvine_popupContentObject'] = popupContentObject;
    srcImage['alvine_popupID']            = popupID;
    srcImage['alvine_popupTitle']         = title;
  
    event_add(srcImage, 'click', content_content_flvplaver_raisePopUp);

}

function content_content_flvplaver_raisePopUp(ev){
    if(!ev) ev = window.event;

    var copyObjectLayer = this.alvine_popupContentObject;

    content_layout_popup_js_show(this.alvine_popupID, copyObjectLayer.childNodes, true, false, this.alvine_popupTitle);
  
    return true;
}
