
sIFR.activate(cas);
document.observe('dom:loaded', function()
{
    var liEl = $$('#fomenu li');
    for (i = 0; i < liEl.length; i++) 
    {
        //liEl[i].getElementsBySelector('img')[0].writeAttribute('width', liEl[i].getWidth());
        liEl[i].getElementsBySelector('img')[0].setStyle('width: ' + liEl[i].getWidth() + 'px');
        liEl[i].getElementsBySelector('div')[0].setStyle('width: ' + (liEl[i].getWidth() - 30) + 'px');
    }
    var liEl = $$('#subtable tr td');
    for (i = 0; i < liEl.length; i++) 
    {
        liEl[i].getElementsBySelector('div')[0].setStyle('width: ' + (liEl[i].getWidth()) + 'px');
    }
   /* sIFR.replace(cas, 
    {
        selector: 'h1',
        css: ['.sIFR-root {color: #9a1009;}'],
        transparent: 'true',
        preventWrap: 'true',
        wmode: 'transparent',
        ratios: [10, 1.91, 12, 1.81, 15, 1.8, 18, 1.78, 26, 1.76, 29, 1.74, 32, 1.75, 38, 1.74, 39, 1.73, 42, 1.74, 55, 1.73, 56, 1.72, 58, 1.73, 88, 1.72, 89, 1.71, 90, 1.72, 91, 1.71, 93, 1.72, 96, 1.71, 97, 1.72, 103, 1.71, 104, 1.72, 1.71]
    });*/
    sIFR.replace(cas, 
    {
        selector: '#item_wrapper li.active div',
        forceWidth: 'false',
        tuneWidth: '10',
        fitExactly: 'true',
        css: ['.sIFR-root {color: #606702}, a {text-decoration: none; color: #606702;}, a:hover {color: #606702}'],
        preventWrap: 'true',
        transparent: 'true',
        wmode: 'transparent',
        ratios: [10, 1.91, 12, 1.81, 15, 1.8, 18, 1.78, 26, 1.76, 29, 1.74, 32, 1.75, 38, 1.74, 39, 1.73, 42, 1.74, 55, 1.73, 56, 1.72, 58, 1.73, 88, 1.72, 89, 1.71, 90, 1.72, 91, 1.71, 93, 1.72, 96, 1.71, 97, 1.72, 103, 1.71, 104, 1.72, 1.71]
    });
    sIFR.replace(cas, 
    {
        selector: '.tab_list td div',
        forceWidth: 'false',
        tuneWidth: '10',
        fitExactly: 'true',
        css: ['.sIFR-root {color: #9a1009;}, a {text-decoration: none; color: #9a1009;}, a:hover {color: #545a00}'],
        preventWrap: 'true',
        transparent: 'true',
        wmode: 'transparent',
        ratios: [10, 1.91, 12, 1.81, 15, 1.8, 18, 1.78, 26, 1.76, 29, 1.74, 32, 1.75, 38, 1.74, 39, 1.73, 42, 1.74, 55, 1.73, 56, 1.72, 58, 1.73, 88, 1.72, 89, 1.71, 90, 1.72, 91, 1.71, 93, 1.72, 96, 1.71, 97, 1.72, 103, 1.71, 104, 1.72, 1.71]
    });
    sIFR.replace(cas, 
    {
        selector: '#item_wrapper li.active div',
        forceWidth: 'false',
        tuneWidth: '10',
        fitExactly: 'true',
        css: ['.sIFR-root {color: #606702}, a {text-decoration: none; color: #606702;}, a:hover {color: #606702}'],
        preventWrap: 'true',
        transparent: 'true',
        wmode: 'transparent',
        ratios: [10, 1.91, 12, 1.81, 15, 1.8, 18, 1.78, 26, 1.76, 29, 1.74, 32, 1.75, 38, 1.74, 39, 1.73, 42, 1.74, 55, 1.73, 56, 1.72, 58, 1.73, 88, 1.72, 89, 1.71, 90, 1.72, 91, 1.71, 93, 1.72, 96, 1.71, 97, 1.72, 103, 1.71, 104, 1.72, 1.71]
    });
    sIFR.replace(cas, 
    {
        selector: '#item_wrapper li div',
        forceWidth: 'false',
        tuneWidth: '10',
        fitExactly: 'true',
        css: ['.sIFR-root {color: #FFFFFF}, a {text-decoration: none; color: #FFFFFF;}, a:hover {color: #606702}'],
        preventWrap: 'true',
        transparent: 'true',
        wmode: 'transparent',
        ratios: [10, 1.91, 12, 1.81, 15, 1.8, 18, 1.78, 26, 1.76, 29, 1.74, 32, 1.75, 38, 1.74, 39, 1.73, 42, 1.74, 55, 1.73, 56, 1.72, 58, 1.73, 88, 1.72, 89, 1.71, 90, 1.72, 91, 1.71, 93, 1.72, 96, 1.71, 97, 1.72, 103, 1.71, 104, 1.72, 1.71]
    });
});
function pOver(element)
{
    element.style.backgroundColor = "#f0f1e0";
}
function pOut(element)
{
    element.style.backgroundColor = "#FFFFFF";
}
var prevClassName;
function tabOn(element)
{
    prevClassName = element.className;
    element.className = "active";
}
function tabOff(element)
{
    element.className = prevClassName;
}
function toggleComment()
{
    if ($('comment').style.display == "block") 
    {
        $('comment').style.display = "none";
    }
    else 
    {
        $('comment').style.display = "block";
    }
}
