window.addEvent( 'domready', function()
{
	$each( $$( 'input, textarea' ), function( element )
	{
		if( element.get( 'value' ) != element.get( 'title' ) )
		{
			return;
		}

		element.addEvents(
		{
			'blur' : function()
			{
				if( this.get( 'value' ) )
				{
					return;
				}

				this.set( 'value', this.get( 'title' ) );
			},

			'focus' : function()
			{
				if( this.get( 'value' ) != this.get( 'title' ) )
				{
					return;
				}
				
				this.set( 'value', '' );
			}
		} );
	} );
} );

window.addEvent( 'load', function()
{
	if( top != self && !top.location.href.indexOf( '123konkurs.pl/' ) ) top.location = self.location; 
} );

window.addEvent( 'domready', function()
{
	var dock = $( 'userinfo' );
	
		if( !dock )
		{
			return;
		}
		
	var more = dock.getElement( '.more' );
	
		if( !more )
		{
			return;
		}
		
		more.fade( 'hide' );
		more.setStyle( 'display', 'block' );
		
		$each( dock.getElements( 'input' ), function( input )
		{
			input.addEvents( 
			{
				focus: function()
				{
					more.fade( 'in' );
					//more.setStyle( 'display', 'block' );
				},
				
				blur: function()
				{
					more.fade( 'out' );
					//more.setStyle( 'display', 'none' );
				}
			} );
		} );
} );

window.addEvent( 'load', function()
{
    if( !$( 'promoaward' ) )
    {
	return;
    }
    
    $( 'promoaward' ).setStyle( 'position', 'absolute' );
    $( 'promoaward' ).setStyle( 'position', 'relative' );
    $( 'promoaward' ).setStyle( 'overflow', 'hidden' );
    
    var c = $( 'promoaward' );
    
    $each( [c.getElement( '.name' ), c.getElement( '.desc' ), c.getElement( '.now' )], function( el )
    {
	el.setStyle( 'position', 'relative' );
	el.setStyle( 'position', 'absolute' );
    } );
    
} );