/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

That said, you're of course free to merge the JavaScript files. Just make sure
the copyright statement in `sifr.js` is kept intact.
*****************************************************************************/

// Make an object pointing to the location of the Flash movie on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.

/*
var headline_franklin = { src: '/axaweb/flash/bs2009/sifr_axa_itc_franklin_gothik_std_med.swf' };
var keyvisual_franklin = { src : '/axaweb/flash/bs2009/ITCFranklin_Gothic_Std.swf'};
*/

//h1 ohne switch
var itc_franklin_gothik_std_med_ohne_switch = { src: '/axaweb/flash/mafo2010/sifr_axa_itc_franklin_gothik_std_med_ohne_switch.swf' }; 

//h1 mit switch
var itc_franklin_gothik_std_med = {	src: '/axaweb/flash/bs2009/sifr_axa_itc_franklin_gothik_std_med_3.swf' };

//h2 mit switch
var itc_franklin_gothik_std_med_mit_switch = { src: '/axaweb/flash/mafo2010/sifr_axa_itc_franklin_gothik_std_med_mit_switch.swf' };

//div mit switch
var itc_franklin_gothik_std_med_mit_switch_mehrzeilig = { src: '/axaweb/flash/mafo2010/sifr_axa_itc_franklin_gothik_std_med_mit_switch_mehrzeilig.swf' };

//div und h2 ohne switch
var itc_franklin_gothik_std_med_ohne_switch_bold = { src: '/axaweb/flash/mafo2010/sifr_axa_itc_franklin_gothik_std_med_ohne_switch_bold.swf' };

//div und h2 ohne switch
var normal_itc_franklin_gothik_std_med = {	src: '/axaweb/flash/bs2009/sifr_axa_normal_itc_franklin_gothik_std_med_3.swf' };

// Now you can set some configuration settings.
// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

//sIFR.useStyleCheck = true;
//sIFR.useDomLoaded(false);

//sIFR.forceTextTransform(false);

// Next, activate sIFR:
sIFR.activate( normal_itc_franklin_gothik_std_med, itc_franklin_gothik_std_med, itc_franklin_gothik_std_med_ohne_switch, itc_franklin_gothik_std_med_mit_switch, itc_franklin_gothik_std_med_ohne_switch_bold, itc_franklin_gothik_std_med_mit_switch_mehrzeilig );

/* sIFR.activate(headline_franklin, keyvisual_franklin); */

// If you want, you can use multiple movies, like so:
//
//    var futura = { src: '/path/to/futura.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    sIFR.activate(futura, garamond, rockwell);
//
// Remember, there must be *only one* `sIFR.activate()`!

// Now we can do the replacements. You can do as many as you like, but just
// as an example, we'll replace all `<h1>` elements with the Futura movie.
// 
// The first argument to `sIFR.replace` is the `futura` object we created earlier.
// The second argument is another object, on which you can specify a number of
// parameters or "keyword arguemnts". For the full list, see "Keyword arguments"
// under `replace(kwargs, mergeKwargs)` at 
// <http://wiki.novemberborn.net/sifr3/JavaScript+Methods>.
// 
// The first argument you see here is `selector`, which is a normal CSS selector.
// That means you can also do things like '#content h1' or 'h1.title'.
//
// The second argument determines what the Flash text looks like. The main text
// is styled via the `.sIFR-root` class. Here we've specified `background-color`
// of the entire Flash movie to be a light grey, and the `color` of the text to
// be red. Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.

// TODO sWmode:"transparent", sColor:"#1f317b", sLinkColor:"#1f317b", sBgColor:"#1f317b", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=-1"

/*
sIFR.replace(headline_franklin, {
  selector: 'h1.AxaSwitchHeadline',
  css: '.sIFR-root { background-color: #AAAAAA; color: #FF0000; }'
});

sIFR.replace(keyvisual_franklin, {
  selector: 'h1.AxaSwitchKeyvisual',
  css: '.sIFR-root { background-color: #F9F9F9; color: #FF0000; }'
});
*/

//
//neue Mafo �berschriften
//

sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: 'h1.AxaSwitchHeadline3',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20; letter-spacing:0.5;}']
});
//Start new headlines for k-herbst2011
//sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
//	selector: '.AxaSwitchHeadline26pxFAQ',
//	wmode:'transparent',
//	tuneHeight: '-6',
//	css: ['.sIFR-root { text-align: left; color: #103184; font-size:26; letter-spacing:0.2;text-align:center;leading:-6;}']
//});
//sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
//	selector: '.AxaSwitchHeadline26pxWhiteFAQ',
//	wmode:'transparent',
//	tuneHeight: '-6',
//	css: ['.sIFR-root { text-align: left; color: #ffffff; font-size:26; letter-spacing:0.5; text-align:center;}']
//});

sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline75px',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:75; letter-spacing:0.4;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline60px',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:60; letter-spacing:0.4;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline30px',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:28; letter-spacing:0.4;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch_bold, {
	selector: '.AxaSwitchHeadline30pxBold',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:28; font-weight:bold; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline26px',
	wmode:'transparent',
	tuneHeight: '-4',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:25; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline24px',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #ffffff; font-size:24; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline22px',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103481; font-size:22; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline22pxGrey',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #4d4d4d; font-size:22; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline20pxGrey',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #4d4d4d; font-size:20; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline3',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AXASwitchHeadline16px',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:16; letter-spacing:0.5;}']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch, {
	selector: '.AxaSwitchHeadline16pxGrey',
	wmode:'transparent',
	tuneHeight: '-6',
	css: ['.sIFR-root { text-align: left; color: #4d4d4d; font-size:16; letter-spacing:0.5;}']
});
// End new headlines for k-herbst2011

sIFR.replace( itc_franklin_gothik_std_med_mit_switch, {
	selector: 'h2.AxaSwitchHeadline1',
	wmode:'transparent',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20; letter-spacing:0.45; }']
});

sIFR.replace( itc_franklin_gothik_std_med_ohne_switch_bold, {
	selector: 'h2.AxaSwitchHeadline2',
	wmode:'transparent',
	offsetTop: '-2',
	css: ['.sIFR-root { text-align: left; font-weight:bold; color: #103184; font-size:20; letter-spacing:0.45; leading:2px;}']
});


//ersetzen der h2 durch div

sIFR.replace( itc_franklin_gothik_std_med_mit_switch_mehrzeilig, {
	selector: 'div.AxaSwitchHeadline_Switch',
	wmode:'transparent',
  	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20; letter-spacing:0; leading:0px; }']
});
// Ueberschrift fuer K-Herbst2011
sIFR.replace( itc_franklin_gothik_std_med_mit_switch_mehrzeilig, {
	selector: 'div.AxaSwitchHeadline_Switch18px',
	wmode:'transparent',
  	css: ['.sIFR-root { text-align: left; color: #103184; font-size:18; letter-spacing:0; leading:0px; }']
});
sIFR.replace( itc_franklin_gothik_std_med_ohne_switch_bold, {
	selector: 'div.AxaSwitchHeadline_Bold18px',
	wmode:'transparent',
	offsetTop: '-2',
	css: ['.sIFR-root { text-align: left; font-weight:bold; color: #103184; font-size:18; letter-spacing:0; leading:0px; }']
});


sIFR.replace( itc_franklin_gothik_std_med_ohne_switch_bold, {
	selector: 'div.AxaSwitchHeadline_Bold',
	wmode:'transparent',
	offsetTop: '-2',
	css: ['.sIFR-root { text-align: left; font-weight:bold; color: #103184; font-size:20; letter-spacing:0; leading:0px; }']
});

sIFR.replace( itc_franklin_gothik_std_med_mit_switch_mehrzeilig, {
	selector: 'div.AxaSwitchHeadline_Switch_Small',
	wmode:'transparent',
  	css: ['.sIFR-root { text-align: left; color: #103184; font-size:18; letter-spacing:0; leading:0px; }']
});

sIFR.replace( itc_franklin_gothik_std_med_ohne_switch_bold, {
	selector: 'div.AxaSwitchHeadline_Bold_Small',
	wmode:'transparent',
	offsetTop: '-2',
	css: ['.sIFR-root { text-align: left; font-weight:bold; color: #103184; font-size:18; letter-spacing:0; leading:0px; }']
});


//
//Alte �berschriften f�r Subpages
//

sIFR.replace( itc_franklin_gothik_std_med, {
	selector: 'h1.AxaSwitchHeadline',
	wmode:'transparent',
	offsetTop:'-3',
	offsetLeft:'1',
	tuneHeight:'-6',
	antiAliasType:'advanced',
	thickness:'0',
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20px; }']
});

sIFR.replace( normal_itc_franklin_gothik_std_med, {
	selector: 'h1.AxaSwitchKeyvisual',
	wmode:'transparent',
	offsetTop:'-1',
	tuneHeight:'-5',
	antiAliasType:'advanced',
	thickness:'0',
	kerning:false,
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20px; }']
});

sIFR.replace( normal_itc_franklin_gothik_std_med, {
	selector: 'h2.AxaSwitchKeyvisual',
	wmode:'transparent',
	offsetTop:'-1',
	tuneHeight:'-5',
	antiAliasType:'advanced',
	thickness:'0',
	kerning:false,
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20px; }']
});
sIFR.replace( normal_itc_franklin_gothik_std_med, {
	selector: 'h1.AxaSwitchTransparent',
	wmode:'transparent',
	offsetTop:'-1',
	tuneHeight:'-5',
	antiAliasType:'advanced',
	thickness:'0',
	kerning:false,
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:24px; }']
});
sIFR.replace( normal_itc_franklin_gothik_std_med, {
	selector: 'h2.AxaSwitchTransparent',
	wmode:'transparent',
	offsetTop:'-1',
	tuneHeight:'-5',
	antiAliasType:'advanced',
	thickness:'0',
	kerning:false,
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20px; }']
});

sIFR.replace( normal_itc_franklin_gothik_std_med, {
	selector: 'h3.AxaSwitchKeyvisual',
	/*wmode:'transparent',*/
	offsetTop:'-1',
	tuneHeight:'-5',
	antiAliasType:'advanced',
	thickness:'0',
	kerning:false,
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:18px; }']
});

sIFR.replace( normal_itc_franklin_gothik_std_med, {
	selector: 'h3.AxaSwitchTransparent',
	wmode:'transparent',
	offsetTop:'-1',
	tuneHeight:'-5',
	antiAliasType:'advanced',
	thickness:'0',
	kerning:false,
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:18px; }']
});


//ersetzen der h2 durch div

sIFR.replace( normal_itc_franklin_gothik_std_med, {
	selector: 'div.AxaSwitchHeadline_Normal',
	/*wmode:'transparent',*/
	offsetTop:'-1',
	tuneHeight:'-5',
	antiAliasType:'advanced',
	thickness:'0',
	kerning:false,
	css: ['.sIFR-root { text-align: left; color: #103184; font-size:20px; }']
});

