function load( introFunction )
{
    var context = document.getElementById( "context" );
    var title = document.getElementById( "title" );

    context.style.display = "block";
    title.style.display = "block";
    new Silk( context, "top", null, 80, "px", 20, function()
    {
        new Silk( context, "top", null, 70, "px", 1, null );
    } );
    new Silk( title, "left", null, 60, "px", 20, function()
    {
        new Silk( title, "left", null, 50, "px", 1, null );
    } );
    if( introFunction != null ) introFunction();
}
function mainMenuItemSelect( mainMenuItem )
{
    var mainMenu = mainMenuItem.parentNode;

    for( var i = 0; i < mainMenu.getElementsByTagName( "div" ).length; i ++ )
    {
        new Silk( mainMenu.getElementsByTagName( "div" )[ i ], "opacity", null, 0.3, null, 0.1, null );
        mainMenu.getElementsByTagName( "div" )[ i ].setAttribute( "selected", "false" );
    }
    new Silk( mainMenuItem, "opacity", null, 1, null, 0.1, null );
    mainMenuItem.setAttribute( "selected", "true" );
    location.href = mainMenuItem.getElementsByTagName( "a" )[ 0 ].getAttribute( "href" );
}
function mainMenuItemOver( mainMenuItem )
{
    if( mainMenuItem.getAttribute( "selected" ) == "true" ) return;
    new Silk( mainMenuItem, "opacity", null, 1, null, 0.1, null );
}
function mainMenuItemOut( mainMenuItem )
{
    if( mainMenuItem.getAttribute( "selected" ) == "true" ) return;
    new Silk( mainMenuItem, "opacity", null, 0.3, null, 0.1, null );
}
function defaultFunction( fnc )
{
    if( fnc != null ) fnc();
}
function loadingShow()
{
    var loading = document.getElementById( "loading" );
    
    document.body.style.cursor = "pointer";
    new Silk( loading, "opacity", null, 1, null, 0.1, null );
}
function loadingHide()
{
    var loading = document.getElementById( "loading" );
    
    document.body.style.cursor = "default";
    new Silk( loading, "opacity", null, 0, null, 0.1, null );
}
function buttonOver( button )
{
    new Silk( button, "opacity", null, 1, null, 0.1, null );
}
function buttonOut( button )
{
    new Silk( button, "opacity", null, 0.5, null, 0.1, null );
}
function linkOver( link )
{
    link.style.textDecoration = "underline";
}
function linkOut( link )
{
    link.style.textDecoration = "none";
}
function legalMenuItemOver( legalMenuItem )
{
    legalMenuItem.style.textDecoration = "underline";
}
function legalMenuItemOut( legalMenuItem )
{
    legalMenuItem.style.textDecoration = "";
}