var optima = {
    src: '../_kh_etl/css/optimalt.swf'
};

sIFR.useStyleCheck = false;
sIFR.activate(optima);

sIFR.replace(optima, {
    selector: 'h1'
    ,ratios: [8, 1.41, 11, 1.31, 15, 1.29, 16, 1.28, 24, 1.26, 27, 1.24, 33, 1.23, 36, 1.22, 37, 1.23, 48, 1.22, 52, 1.21, 53, 1.22, 78, 1.21, 79, 1.2, 80, 1.21, 84, 1.2, 85, 1.21, 89, 1.2, 90, 1.21, 1.2]
    ,css: [
      '.sIFR-root { text-align: right; font-weight: normal; color: #333333; font-size: 26px; line-height: 32px; height: 32px; }'
    ]
    ,wmode: 'transparent'
});

sIFR.replace(optima, {
    selector: 'h2'
    ,ratios: [8, 1.41, 11, 1.31, 15, 1.29, 16, 1.28, 24, 1.26, 27, 1.24, 33, 1.23, 36, 1.22, 37, 1.23, 48, 1.22, 52, 1.21, 53, 1.22, 78, 1.21, 79, 1.2, 80, 1.21, 84, 1.2, 85, 1.21, 89, 1.2, 90, 1.21, 1.2]
    ,css: [
      '.sIFR-root { text-align: right; font-weight: normal; color: #333333; font-size: 16px; line-height: 20px; height: 20px; }'
    ]
    ,wmode: 'transparent'
});

sIFR.replace(optima, {
    selector: 'h3'
    ,ratios: [8, 1.41, 11, 1.31, 15, 1.29, 16, 1.28, 24, 1.26, 27, 1.24, 33, 1.23, 36, 1.22, 37, 1.23, 48, 1.22, 52, 1.21, 53, 1.22, 78, 1.21, 79, 1.2, 80, 1.21, 84, 1.2, 85, 1.21, 89, 1.2, 90, 1.21, 1.2]
    ,css: [
      '.sIFR-root { text-align: right; font-weight: normal; color: #333333; font-size: 24px; line-height: 58px; height: 58px; }'
    ]
    ,wmode: 'transparent'
});

//sIFR.debug.ratios({ src: '../css/optima.swf', selector: 'h3' });

function removeNastyAdblock(){
// Copyright: 2008 by Ronny Hausdorf
// feel free, to use it :)
// successfully tested with activated Adblock Plus 0.7.5.5 on Firefox 2/3

    // configuration
    var maxFlashIncluded    =   2;                  // how many flash files are used (maximum)
    var setClass            =   "sIFR-protect";     // new class name (to define in CSS)
    var delay               =   600;                // let Adblock enough time (in ms) to load, then blow it away
    
    // additional vars
    var tagToCheck          =   "a";                // Adblock Plus uses <a></a> to display it's annoying message
    var testPattern         =   "abp-";              // part of class name (Adblock Plus uses class="abp-object-1234567890")
    var tempCount           =   0;
    
    // program
    setTimeout( function () {    
        if(document.getElementsByTagName(tagToCheck)[0]){
            var abp=document.getElementsByTagName(tagToCheck);
        }
        for(var i=0;i<=abp.length;i++){
            if(abp[i]){
                var abpClass=abp[i].className;
                if(abpClass.substr(0,testPattern.length)==testPattern){
                    if(abp[i].title){abp[i].title="";}
                    if(abp[i].href){abp[i].href="";}
                    abp[i].className=setClass;
                    tempCount++;
                    if(tempCount==maxFlashIncluded){
                        i=abp.length+1;
                        break;
                    }
                }
            }
        }
    }, delay);
}