/**
 * @copyright 2010 Syzygy
 * @version $Revision: 648 $
 * @author $Author: t.kropf $
 * @package bechstein
 * @namespace bechstein.home
 * $Id: bechstein.home.js 648 2010-11-10 15:38:20Z t.kropf $, $Date: 2010-11-10 16:38:20 +0100 (Wed, 10 Nov 2010) $
 * 
 * bechstein JavaScript: bechstein.home
 */

var BechsteinHome = {

    __version: 1.0, // class version
    __class: '', // class name

    app: "#app_004_home",

    
    
    loadFlash: function() {
        var attributes = {};
        attributes.id = 'app_004_home';
        attributes.name = 'app_004_home';

        var flashvars = {};
        flashvars.cms_pid  = jQuery('#app_004_home').attr('cms_pid');
        flashvars.cms_lang = jQuery('#app_004_home').attr('cms_lang');
        flashvars.cms_template = jQuery('#app_004_home').attr('cms_template');
        flashvars.base = jQuery('base').attr('href');
        flashvars.application_mode = 'int';
        flashvars.system = 'false';

        var params = {};
        params.menu = "false";
        params.wmode = "opaque";
        params.allowscriptaccess = "always";

        swfobject.embedSWF('fileadmin/templates/applications/APP_004_HOME.swf', 'app_004_home', '1000px', '430px', '9.0.115', 'swf/expressinstall.swf', flashvars, params, attributes);
    },
  
    /**
     * Contructor
     * @method initialize
     * @return {Void}
     */
    initialize: function()
    {
        if (jQuery ('.app_004_home').length > 0) {
            this.loadFlash();
        }
        Cufon.replace('.home_image_teaser_headline_text');
        Cufon.replace('.home_text_teaser_wrapper h5');
        Cufon.replace('.home_image_teaser_wrapper h5');
    }
};

jQuery(document).ready(jQuery.proxy(BechsteinHome.initialize, BechsteinHome));

