(function(){
	var bg=document.getElementById('bg'),float=document.createElement('span'),scale=Scaler(bg);						//Create and bind scaler-function
		addEvent=function(el,on,fn){el.attachEvent?el.attachEvent('on'+on,fn):el.addEventListener(on,fn,false)},	//Function for cross-borwser addEvent
		move=function(e){
			float.style.left=(e=e||window.event).clientX+20+'px';
			float.style.top=e.clientY+20+'px';
//			if(float.nxt!=(e.clientX>(document.body.offsetWidth/2)))float.innerHTML=(float.nxt=!float.nxt)?'next':'previous';	//Change html only if needed
		},

	addEvent(bg,'mouseout',function(){float.style.display='none'});													//Hide floater when not over image
	addEvent(bg,'mouseover',function(){float.style.display='block'});
	addEvent(bg,'mousemove',move);

	float.style.position='absolute';
	float.style.zIndex='2';
	float.style.color='#fff';
//	bg.style.cursor='pointer';
	bg.appendChild(float);
})();
