/*
    all of the objects contained here will be replaced with flash text
    
    !!! IMPORTANT !!!!
    Each one of these styles need to be matched in the sifr-screen.css file. 
    Those styles define the size that the flas will make the text.
    The flash replacement isn't as accurate as regular CSS pixel sizes, 
    so you'll need to play around with the thoses px sizes to get the right look.
    
    
*/
var FlashTextReplaceDelegate = {
    replacementItems : [
/*        SAMPLE OBJECT        
        { 
            'selector': [string - the css selector of the item to be replaced], 
            'weight': [string - font weight 'normal' or 'light'], 
            'color': [string - hex code of text color]},
*/

        { 'selector': '#pageTitle .flashReplace', 'weight': 'normal', 'color': '#003366'},
        { 'selector': '#subTitle .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.patientsSection .introBlock .flashReplace', 'weight': 'normal', 'color': '#cc6633'},
        { 'selector': '.professionalsSection .introBlock .flashReplace', 'weight': 'normal', 'color': '#688e29'},
        
        { 'selector': '.authorsList_authorName .flashReplace', 'weight': 'normal', 'color': '#336699'},
        { 'selector': '.authorsList_authorPosition .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.sectionHead .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.utilityModule_head .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.utilityModule_grad_head .flashReplace', 'weight': 'normal', 'color': '#ffffff'},
        { 'selector': '.introTitle .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.tertiaryNav_title .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.timelineHeading .normalItem .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.timelineHeading .selectedItem .flashReplace', 'weight': 'normal', 'color': '#ffffff'},
        { 'selector': '.conditionsResults_title .flashReplace', 'weight': 'normal', 'color': '#336699'},
        
        { 'selector': '.conditionsResults_table thead th .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.conditionsResults_filterTitle .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.homeModule_head .flashReplace', 'weight': 'normal', 'color': '#555555'},
        { 'selector': '.pullQuote .flashReplace', 'weight': 'normal', 'color': '#999999'}
        
        
    ],
    initialize : function () {
        if(typeof sIFR == "function"){
            sIFR.setup();
            for(var i=0,l=this.replacementItems.length; i<l; i++){
                var ri = this.replacementItems[i];
                sIFR.replaceElement(ri.selector, named({'sFlashSrc': (ri.weight == 'light') ? "/flash/DIN-Light.swf" : "/flash/DIN-Regular.swf" , 'sColor': ri.color, 'sWmode':'transparent'}));
            }
        };
    }
};