﻿var virtualDir = (window.location.pathname.toLowerCase().indexOf('/wealledit') == 0) ?
    '/wealledit' : '';

var dinPath = virtualDir + '/fonts/din.swf';
var din = 
{
    src: dinPath,
    ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
};

var lucidagrandePath = virtualDir + '/fonts/lucida-grande.swf'
var lucidagrande = 
{
    src: lucidagrandePath,
    ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16] 
};

sIFR.activate(din);
sIFR.activate(lucidagrande);
         
sIFR.replace(
    din, 
    {
	    selector: '.RedHeader'
		,css: 
		{
		    '.sIFR-root': {'color': '#ed1c24', 'font-size': '28px', 'letter-spacing': -1.5}
        },
        'wmode':'transparent'
    });

sIFR.replace(
    din, 
    {
	    selector: '.GreenSubTitle',
	    css: 
	    {
		    '.sIFR-root': {'color': '#b6d551', 'font-size': '19px', 'letter-spacing': 0.5}
        },
        'wmode':'transparent'
    });

sIFR.replace(
    din, 
    {
	    selector: '.GreySubTitle',
	    css: 
	    {
		    '.sIFR-root': {'color': '#515151', 'font-size': '19px', 'font-weight': 'bold'}
        },
        'wmode':'transparent'
    });

sIFR.replace(
    din, 
    {
	    selector: '.RedSubHeader',
	    css: 
	    {
		    '.sIFR-root': {'color': '#ed1c24', 'font-size': '21px', 'letter-spacing': 0.3}
        }, 
        'wmode':'transparent'
    });  

sIFR.replace(
    lucidagrande, 
    {
	    selector: '.BlueContent',
	    css: 
	    {
		    '.sIFR-root': {'color': '#367ac1', 'font-size': '14px'}
        },
        'wmode':'transparent'
    });
  
sIFR.replace(
    lucidagrande, 
    {
        selector: '.BigLink',
        css: 
        [
            '.sIFR-root {font-size: 14px; color:#496da1;}',
            'a { text-decoration: none; }',
            'a:link { color: #496da1; text-decoration: none; }',
            'a:hover { color: #496da1; text-decoration: none; }'
        ],  
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
	    selector: '.ErrorMessage',
	    css: 
	    {
		    '.sIFR-root': {'color': '#ff0e0e', 'font-size': '11px'}
        }, 
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
	    selector: '.address',
	    css: 
	    {
		      '.sIFR-root': { 'color': '#666769', 'font-size': '9px', 'font-weight':'bold'}
        }, 
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
	    selector: '.contentHeader',
	    css: 
	    {
		    '.sIFR-root': { 'color': '#373636', 'font-size': '11px', 'text-align':'justify'}
        },  
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
	    selector: '.contentHeaderRightAligned',
	    css: 
	    {
		    '.sIFR-root': 
		    {
		        'color': '#373636', 
		        'font-size': '11px', 
		        'text-align':'right', 
		        'vertical-align' : 'middle'
		    }
        },  
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
	    selector: '.headerBoldContent',
	    css: 
	    {
		    '.sIFR-root': { 'color': '#373636', 'font-size': '12.5px', 'font-weight': 'bold' }
        },
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
	    selector: '.linkcontent',
	    css: 
	    [
            '.sIFR-root {font-size: 10px; }',
            'a { text-decoration: underline; }',
            'a:link { color: #ff0e0e; }',
            'a:hover { color: #ff0e0e; }'
        ], 
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
        selector: '.redLink',
        css: 
        [
            '.sIFR-root {font-size: 11px; color:#ff0e0e; text-align: center }',
            'a { text-decoration: underline;}',
            'a:link { color: #ff0e0e; text-decoration: underline; }',
            'a:hover { color: #ff0e0e; text-decoration: underline; }'
        ],  
        'wmode':'transparent'
    });
 
sIFR.replace(
    lucidagrande, 
    {
        selector: '.redLinkRightAligned',
        css: 
        [
            '.sIFR-root {font-size: 11px; color:#ff0e0e; text-align: right; vertical-align : middle;}',
            'a { text-decoration: underline;}',
            'a:link { color: #ff0e0e; text-decoration: underline; }',
            'a:hover { color: #ff0e0e; text-decoration: underline; }'
        ], 
        'wmode':'transparent'
    });
 
 sIFR.replace(
    lucidagrande, 
    {
        selector: '.grayLink',
        css: 
        [
            '.sIFR-root {font-size: 10.5px; color:#3a3939; text-align: left }',
            'a { text-decoration: none; vertical-align: middle;}',
            'a:link { color: #3a3939; text-decoration: none; }',
            'a:hover { color: #3a3939; text-decoration: none; }'
        ],  
        'wmode':'transparent'
    });

sIFR.replace(
    din, 
    {
        selector: '.GreenTitle',
        css: 
        {
            '.sIFR-root': 
            { 
                'color': '#ffffff', 
                'font-size': '30px', 
                'letter-spacing': '0.5', 
                'vertical-align' : 'middle'
            }
        }, 
        'wmode':'transparent'
    });

sIFR.replace(
    lucidagrande, 
    {
        selector: '.grayLink',
        css: 
        [
            '.sIFR-root {font-size: 10px; color:#373636; }',
            'a { text-decoration: underline; }',
            'a:link { color: #373636; text-decoration: underline;; }',
            'a:hover { color: #373636; text-decoration: underline;; }'
        ], 
        'wmode':'transparent'
    });