﻿    
    var executeOnload = "";
    
    function replaceSIFR()
    {
    if(typeof sIFR == "function"){

    // This is the preferred "named argument" syntax 
        //sIFR.replaceElement(named({sSelector:".sifralignright h1", sFlashSrc:"swf/sifravenirblack.swf", sColor:"#F79E18", sLinkColor:"#F79E18", sBgColor:"#FFFFFF", sCase: "upper", sFlashVars : "textalign=right", sWmode: "transparent"}));
	    //sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"swf/sifravenirblack.swf", sColor:"#F79E18", sLinkColor:"#F79E18", sBgColor:"#FFFFFF", sCase: "upper", sWmode: "transparent"}));
	    sIFR.replaceElement(named({sSelector:"h3", sFlashSrc:"/swf/sifravenirblack.swf", sColor:"#F8A008", sLinkColor:"#F8A008", sBgColor:"#000000", sCase: "upper", sWmode: "transparent"}));
    };
    }
    
    window.onload = function()
    {
        var bodyHeight = (document.getElementsByTagName("body")[0].offsetHeight - 24) + "px";
        document.getElementsByTagName("body")[0].getElementsByTagName("table")[0].getElementsByTagName("tr")[0].getElementsByTagName("td")[0].style.height = bodyHeight;
        replaceSIFR();
        try
        {
        eval(executeOnload);
        }catch(err){}
        
        executeOnload = "";
    }    

function BuildCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
 + ";expires="+expire.toGMTString()+";path=/";
}

// this function gets the cookie, if it exists
function GetCookie( name ) {

var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) &&
( name != document.cookie.substring( 0, name.length ) ) )
{
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}

if(GetCookie("subsubmenu") == "open")
{
    document.write("<style>.subsubmenu{display:block;}</style>");
}