/************************
Script by Mamed Mamedov.
Desc: GenieSpace.GenieWindow
      Window contols
Date: 06.04.2008 00:37
************************/
genieSpace.genieWindow = {

    correctWidth: function( max ){
        var width = jQuery( 'body' ).width( );
        if( width > max )
        {
            width = max;
            jQuery( '.a-wide' ).width( max );
        }
        jQuery( '#_pageTable' ).width( width );
    }, //correctWidth

    hoverButtons: function( ){
        var htClass = 'btn_';
        jQuery( 'td.top-button' ).hover( function( ){
             jQuery( this ).addClass( htClass + 'bgx' );
        }, function( ){
             jQuery( this ).removeClass( htClass + 'bgx' );
        } );

    }
};

jQuery( document ).ready( function( ){
    with( genieSpace.genieWindow )
    {
        correctWidth( 1024 );
        hoverButtons( );
    }
} );

jQuery( window ).bind( 'resize', function( ){
    with( genieSpace.genieWindow )
    {
        correctWidth( 1024 );
    }
} );
