  //漂浮01
var flag=1;
$('#rightArrow').click(function(){
	if(flag==1){
		$("#floatDivBoxs").animate({right: '-175px'},300);
		$(this).animate({right: '-5px'},300);
		$(this).css('background-position','-50px 0');
		flag=0;
	}else{
		$("#floatDivBoxs").animate({right: '0'},300);
		$(this).animate({right: '170px'},300);
		$(this).css('background-position','0px 0');
		flag=1;
	}
});







//漂浮02
function turnoff(obj){
document.getElementById(obj).style.display="none";
}

//<![CDATA[
var tips; var theTop = 150; var old = theTop;
function initFloatTips() {
tips = document.getElementById('kfFloatqq');
moveTips();
};
function moveTips() {
var grantt=20;
if (window.innerHeight) {
pos = window.pageYOffset
}
else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
}
else if (document.body) {
pos = document.body.scrollTop;
}
pos=pos-tips.offsetTop+theTop;
pos=tips.offsetTop+pos/10;

if (pos < theTop) pos = theTop;
if (pos != old) {
tips.style.top = pos+"px";
grantt=10;
//alert(tips.style.top);
}
old = pos;
setTimeout(moveTips,grantt);
}
//!]]>
initFloatTips();




//漂浮03
var flag=1;
$('.ser_btn').click(function(){
	if(flag==1){
		$(".ser_main").animate({right: '0px'},300);
		$(this).animate({right: '149px'},300);
		$(this).css('background-position','0px 0');
		flag=0;
	}else{
		$(".ser_main").animate({right: '-150px'},300);
		$(this).animate({right: '0px'},300);
		$(this).css('background-position','-30px 0');
		flag=1;
	}
});


    window.onload = function(){
        imgZoomRun("product3","p","prod-zoom","li"); // 图片放大
        imgZoomRun("product7","p","prod-zoom","li");
        imgZoomRun("product8","p","prod-zoom","li");
        newsFontMove("fontjump"); // 鼠标放上，字体上下挪
        newsFontMove("fontjumpcolor"); // 鼠标放上，字体上下挪
        colorChange("fontjumpcolor"); // 隔行换色
        colorChange("news5"); // 隔行换色
        listImgZoom("product3","205"); // 图片缩放，需要给定宽度
		enterAnimation("news_fadein");
		if(typeof(data) != "undefined"){
            var lefttype = new LeftType(data,"left-type",0); // 多级分类
        }
        afx.conHeightAuto();
    };
    window.addEventListener("resize",function(){
        afx.conHeightAuto();
    },false);