//切换TAG IndexTag('BatHot',1,2)
var BarName='BatHot';
var TagContent='_Content';
var TagSum=0;
function IndexTag(BarName,CurrTag,TagSum){
	//var TagTo=BarName+TagSum+TagContent;
	//document.getElementById(TagTo).filters.Apply();
	for(i=1; i <= TagSum; i++)
	{
		if(i==CurrTag){
			//标题部分
			document.getElementById(BarName+i).className='ok';
			//内容部分
			document.getElementById(BarName+i+TagContent).style.display='block';
		}else{
			//标题部分
			document.getElementById(BarName+i).className='';
			//内容部分
			document.getElementById(BarName+i+TagContent).style.display='none';

		}
	}
	//document.getElementById(TagTo).filters.play(); 	
}

function isVar(v){
    return (typeof v == 'undefined' || v==='' || v===null) ? false : true;
}

//切换定位
function ckTag(){
    var baseURL=document.location.href;
    baseURL=baseURL.split('/');
    var d='t_'+(!isVar(baseURL[3]) ? 'index' : baseURL[3]);
    if(document.getElementById(d)){
        document.getElementById(d).className='navNow';
    }
}


function FD_hide(obj,t){
    if(t){
        $(obj).find('dl').toggle(200);
    }else{
        $(obj).find('dl').toggle(200);
    }
}

function FD_img(obj,wd){
    if(wd<=obj.width){
        obj.width=wd;
    }
}

jQuery(function($){
    ckTag();
//    if(!$('#Fctag').height()) return;
//    $('#Fctag li').each(function(i){
//        $(this).mouseover(function(){FD_hide(this,1)}).mouseout(function(){FD_hide(this,0)});
//    });
});


