﻿document.write('<div id="kfOutBox" style="position:absolute;right:2px;z-index:1000;top:0px;"><div><img src="http://www.100xuexi.com/Images/kf/top1.gif" style="width:75px;height:20px;border:0px"/><img onclick="_XX_hidKF();" src="http://www.100xuexi.com/Images/kf/top2.gif" style="width:25px;height:20px;border:0px;cursor:pointer" alt="关闭"></div><a href="http://ol.100xuexi.com/index.aspx" target="_blank" title="点击开始咨询"><img src="http://www.100xuexi.com/Images/kf/top3.gif" width="100px" height="130px" border="0"/></a></div>');
function _XX_get_scrollValue(){
	var scrollLeftValue = 0 ;
	var scrollTopValue = 0 ;
	var obj = new Object();
	if (typeof window.pageYOffset != 'undefined') {
	  scrollLeftValue = window.pageXOffset;
	  scrollTopValue = window.pageYOffset;
	}
	else if (typeof document.compatMode != 'undefined' &&
		document.compatMode != 'BackCompat') {
		scrollLeftValue = document.documentElement.scrollLeft;
		scrollTopValue = document.documentElement.scrollTop;
	}
	else if (typeof document.body != 'undefined') {
		scrollLeftValue = document.body.scrollLeft;
		scrollTopValue = document.body.scrollTop;
	}else{
		scrollLeftValue = 0 ;
		scrollTopValue = 0 ;
	}
	obj.scrollLeftValue = scrollLeftValue;
	obj.scrollTopValue = scrollTopValue;
	return obj;
}
function _XX_get_clientValue(){
    var widthValue = 0;
    var heightValue = 0;
    var obj = new Object();
    if (typeof window.pageYOffset != 'undefined') {
        widthValue = window.innerWidth;
        heightValue = window.innerHeight;
    }
    else if (typeof document.compatMode != 'undefined' &&
        document.compatMode != 'BackCompat') {
        widthValue = document.documentElement.clientWidth;
        heightValue = document.documentElement.clientHeight;
    }
    else if (typeof document.body != 'undefined') {
        widthValue = document.body.clientWidth;
        heightValue = document.body.clientHeight;
    }else{
        widthValue = 0;
        heightValue = 0;
    }
    obj.widthValue = widthValue;
    obj.heightValue = heightValue;
    return obj;
}
function _XX_auto_scroll(){
    var _kfOutBox = document.getElementById("kfOutBox");
    var _XX_obj1 = _XX_get_scrollValue();
    var _XX_obj2 = _XX_get_clientValue();
    if(_kfOutBox){
        _kfOutBox.style.pixelTop = _XX_obj1.scrollTopValue + _XX_obj2.heightValue - 152;
    }
}
function _XX_hidKF(){
    document.getElementById("kfOutBox").style.display = "none";
}
setInterval("_XX_auto_scroll()",10);

