﻿/** 
 * @fileOverview 页面抽出JS
 * @author Tang Guohui 2011-4-18
 * @version 1.0.0
 */

switch (PAGE_NAME)
{
    case 'index':
        $('div.scrollable').scrollable(
        {
            circular: true,
            speed: 500,
			onSeek: function(event,index)
			{
				//DD_belatedPNG.fix('.navi a');
			}
        }).autoscroll(
        {
            interval: 10000
        }).navigator();
        break;
    case 'help':
        setCurrentHelpNav();
        initListShow('#help-content h5');
		setHelpNodeLink();
        showHelpByNode();
		ieRound('.help-node>div', 'round', 'b');
        break;
    case 'download':
        initListShow('#history-v h5');
        break;
	case 'active':
        _$('user_pw1').focus();
        break;
}

/******************** 全局处理 ********************/

setCurrentNav();

if (_$('user_name')) 
    _$('user_name').focus();

ieRound('.radius4', 'round', 'b');

//在右下角增加回到头部小按钮
/*
$('#go-top-btn').remove();
$('body').append('<a id="go-top-btn" href="#" title="回到頁頭"><img src="img/btn/go-to-top.gif" /></a>');
stayTopBtn();
*/
