// <![CDATA[

( function()
{
    
    function addEvent( obj, name, callback )
    {
        if( obj.addEventListener ) {
            
            obj.addEventListener( name, callback, false );
            
        } else if( obj.attachEvent ) {
        
            obj.attachEvent( 'on' + name, callback );
            
        } else {
        
            obj[ 'on' + name ] = callback;
        }
    }
    
    // Page Tools Labels
    var pageToolsLabels = {
        'en' : [
            '',
            'Mail contact',
            'Print page',
            'Send to a friend'
        ]
    };
    
    var defaultLang = 'en';
    
    window.viewIconLabel = function( toolId )
    {
        var wich = document.getElementById( 'tools-description' );
        
        wich.innerHTML = pageToolsLabels[ defaultLang ][ toolId ];
    };
    
    addEvent( window, 'load', function()
    {
        var searchInput = document.getElementById( 'searchinput' );
        
        addEvent( searchInput, 'focus', function()
        {
            searchInput.value = '';
        } );
    } );
    
} )();

// ]]>