var scroll_time = 300;
var obj;

function set_move_banner()
{
	window.setTimeout( "set_move_banner()", scroll_time );

	if( typeof( document ) != "object" || document == null )
	{
		return false;
	}

	if( typeof( document.body ) != "object" || document.body == null )
	{
		return false;
	}

        top_x = 0;
        top_y = document.body.scrollTop;

	if(typeof(document.all.r_scroll_area) == "object" || typeof(document.all.l_scroll_area) == "object")
	{
		if( typeof( document.all.r_scroll_area ) == "object"  )
		{
			document.all.r_scroll_area.style.marginTop = top_y;
		}
		if( typeof( document.all.l_scroll_area ) == "object" )
		{
			document.all.l_scroll_area.style.marginTop = top_y;
		}
	} else {
		is_banner_l = false;
		is_banner_r = false;
		//is_recent_p = false;

		if( typeof( document.all.scroll_banner_l ) == "object"  )
		{
			is_banner_l = true;
		}
		if( typeof( document.all.scroll_banner_r ) == "object" )
		{
			is_banner_r = true;
		}
		// if( typeof( document.all.scroll_recent_p ) == "object" && is_banner_l == false)
		// {
			// is_recent_p = true;
		// }

		move_banner();

		if( is_banner_l )
		{
			document.all.scroll_banner_l.style.marginTop = top_y;
		}

		if( is_banner_r )
		{
			document.all.scroll_banner_r.style.marginTop = top_y;
		}

		// if( is_recent_p )
		// {
			// document.all.scroll_recent_p.style.marginTop = top_y;
		// }
		//scroll_time -= 1;
	}
}

function move_banner()
{

        /*
        scroll_banner_top_y = document.all.scroll_banner.style.marginTop.split( "px", 1 )

        height = top_y + 1000

        for( i = 0; i < 200; i++ )
        {
                height--;
                document.all.scroll_banner.style.marginTop = height
                window.setTimeout( "", 3 );
        }

        if( document.all.scroll_banner.style.marginTop != ( top_y + "px" ) )
        {
                //alert( height )
                //alert( document.all.scroll_banner.style.marginTop + " " + top_y )
        }
        */

	/*
	height = top_y + 1000

	for( i = 0; i < 1000; i++ )
	{
		document.all.scroll_banner.style.marginTop = height - 1
                //window.setTimeout( "", 1 );
	}
	*/
}





function echosting_js_init()
{
	// ÁÂ,¿ìÃø ¿òÁ÷ÀÌ´Â ¹è³Ê
	set_move_banner();
	//window.setInterval( "set_move_banner()", scroll_time );
	//window.setTimeout( "set_move_banner()", scroll_time );
}

echosting_js_init()


// sujin
// object°ü·Ã script ÆÄÀÏ


