//第一种调用方法
//	var delta=0.15
//	var collection;
//	function floaters() {
//		this.items	= [];
//		this.addItem	= function(id,x,y,content)
//				  {
//					document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
//					
//					var newItem				= {};
//					newItem.object			= document.getElementById(id);
//					newItem.x				= x;
//					newItem.y				= y;
//
//					this.items[this.items.length]		= newItem;
//				  }
//		this.play	= function()
//				  {
//					collection				= this.items
//					setInterval('play()',10);
//				  }
//		}
//		function play()
//		{
//
//			for(var i=0;i<collection.length;i++)
//			{
//				var followObj		= collection[i].object;
//				var followObj_x		= (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
//				var followObj_y		= (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

//				if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
//					var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
//					dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
//					followObj.style.left=followObj.offsetLeft+dx;
//					}
//
//				if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
//					var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
//					dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
//					followObj.style.top=followObj.offsetTop+dy;
//					}
//				followObj.style.display	= '';
//			}
//		}	
//		
//	var theFloaters		= new floaters();
//	theFloaters.addItem('followDiv1','document.body.clientWidth-110',50,'<div align=center><OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=100 HEIGHT=300 id=leftB ALIGN=> <PARAM NAME=movie VALUE=adv-index.swf> <PARAM NAME=quality VALUE=high><PARAM NAME=wmode> <EMBED id=leftBG src=adv-index.swf quality=high  WIDTH=100 HEIGHT=300 NAME=left ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT></div>');
//	theFloaters.addItem('followDiv2',10,50,'<div align=center><OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=100 HEIGHT=300 id=leftB ALIGN=> <PARAM NAME=movie VALUE=adv-index.swf> <PARAM NAME=quality VALUE=high><PARAM NAME=wmode> <EMBED id=leftBG src=adv-index.swf quality=high  WIDTH=100 HEIGHT=300 NAME=left ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT></div>');
//	theFloaters.play();
//---第二种方法,下面的代码调用的是固定的广告位
//--
InsertCouplet();
	/*function leftFFG_DoFSCommand(command,args){
		if ((command == "SohuCLFS")&&(args =="hidecouplet")){
			//document.all.sidebar.style.visibility = "hidden";
			//document.all.sidebar2.style.visibility = "hidden";
		}
	}*/
	
	function leftFFG_DoFSCommand(command, args) {
		document.all.sidebar.style.visibility = "hidden";
		document.all.sidebar2.style.visibility = "hidden";
	} 
	
	function youFFG_DoFSCommand(command,args){
		leftFFG_DoFSCommand(command,args);
	}
	<!--
	if (document.all){
		document.write("<Script language=\"JavaScript\" For=\"youFF\" Event=\"FSCommand(command,args)\">\n");
		document.write("	leftFFG_DoFSCommand(command,args);\n");
		document.write("</Script>\n");
		document.write("<Script language=\"JavaScript\" For=\"leftFF\" Event=\"FSCommand(command,args)\">\n");
		document.write("	leftFFG_DoFSCommand(command,args);\n");
		document.write("</Script>\n");
	}
//---加入下面的代码就会随着滚动条滚动的浮动广告条

var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
//--左边的浮动条
if (window.screen.width>=1024){	
function CheckUIElements1(){
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { 
                yMenuFrom   = document["sidebar"].top;
                yMenuTo     = top.pageYOffset + 100; //捞 箭磊甫 荐沥窍搁 困率咯归阑 炼例 且 荐 乐嚼聪促(匙明纳捞橇)
        }
        else if ( bExplorer4plus ) {
                yMenuFrom   = parseInt (sidebar.style.top, 10);
                yMenuTo     = document.body.scrollTop + 100;//捞 箭磊甫 荐沥窍搁 困率咯归阑 炼例 且 荐 乐嚼聪促(劳胶敲肺矾)
        }

        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements1()", timeoutNextCheck);
                return;
        }

        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["sidebar"].top += yOffset;
                else if ( bExplorer4plus )
                        sidebar.style.top = parseInt (sidebar.style.top, 10) + yOffset;
                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements1()", timeoutNextCheck);
}

function OnLoad1()
{
        var y;
        if ( top.frames.length )
        if ( bNetscape4plus ) {
                document["sidebar"].top = top.pageYOffset + 135;
                document["sidebar"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                sidebar.style.top = document.body.scrollTop + 135;
                sidebar.style.visibility = "visible";
        }
        CheckUIElements1();
        return true;
}
OnLoad1();
//--右边的浮动条
function CheckUIElements(){
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { 
                yMenuFrom   = document["sidebar2"].top;
                yMenuTo     = top.pageYOffset + 100; //捞 箭磊甫 荐沥窍搁 困率咯归阑 炼例 且 荐 乐嚼聪促(匙明纳捞橇)
        }
        else if ( bExplorer4plus ) {
                yMenuFrom   = parseInt (sidebar2.style.top, 10);
                yMenuTo     = document.body.scrollTop + 100;//捞 箭磊甫 荐沥窍搁 困率咯归阑 炼例 且 荐 乐嚼聪促(劳胶敲肺矾)
        }

        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }

        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["sidebar2"].top += yOffset;
                else if ( bExplorer4plus )
                        sidebar2.style.top = parseInt (sidebar2.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
        var y;
        if ( top.frames.length )
        if ( bNetscape4plus ) {
                document["sidebar2"].top = top.pageYOffset + 135;
                document["sidebar2"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                sidebar2.style.top = document.body.scrollTop + 135;
                sidebar2.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
}
OnLoad();
}
//-->

























