	var Rimifon = { 
		"Ads" : new Object, 
		"NewFloatAd" : function(aobj,imgUrl, strLink) 
		{ 
			var ad = document.createElement('adright'); 
//			var ad = document.createElement(aobj); 			
			
			ad.DirV = true; 
			ad.DirH = true; 
			ad.AutoMove = true; 
			ad.Image = new Image; 
			ad.Seed = Math.random(); 
			ad.Timer = setInterval("Rimifon.Float(" + ad.Seed + ")", 50); 
			this.Ads[ad.Seed] = ad; 
			ad.Image.Parent = ad; 
			ad.style.position = "absolute"; 
			ad.style.left = 0; 
			ad.style.top = 0; 
			ad.Image.src = imgUrl; 
			ad.Image.onmouseover = function(){this.Parent.AutoMove = false;} 
			ad.Image.onmouseout = function(){this.Parent.AutoMove = true;} 
			if(strLink) 
			{ 
				ad.style.cursor= "pointer"; 			
				ad.Image.onclick = function(){window.open(strLink,"_blank");} //location.href = strLink			
			} 
			ad.appendChild(ad.Image); 
			document.body.appendChild(ad); 
			return ad; 
		}, 
		"Float" : function(floatId,type) 
		{ 
			var ad = this.Ads[floatId]; 
			if(ad.AutoMove) 
			{ 
				var curLeft = parseInt(ad.style.left); 
				var curRight = parseInt(ad.style.right); 
				var curTop = parseInt(ad.style.top); 

				if(ad.offsetHeight + curTop > document.body.clientHeight + document.body.scrollTop - 1) 
				{ 
				curTop = document.body.scrollTop + document.body.clientHeight - ad.offsetHeight; 
				ad.DirV = false; 
				} 

				if(curTop < document.body.scrollTop) 
				{ 
				curTop = document.body.scrollTop; 
				ad.DirV = true; 
				} 
				ad.style.left = curLeft + "px"; 
				ad.style.top = curTop + (ad.DirV ? 1 : -1) + "px"; 
			} 
		} 
	} 

function loadAds()
{
	try{
		var adright = Rimifon.NewFloatAd("adright","http://www.77.net/huodong/voteLinks/floatImg.jpg","http://www.77.net/huodong/voteLinks/"); 
		adright.style.left ="5px";
		adright.style.top = "0px"; 
	}catch (e){;}
}

