<!--
var Dom = YAHOO.util.Dom;
var Event = YAHOO.util.Event;

/*****************
 * F L O A T E R *
 *****************/
 
YAHOO.namespace('floater');
var floaterObject = null;
var floaterPosY = 0;
var floaterBaseOpacity = 1.0;
var floaterPosYGap = 20;
var floaterReposSpeed = 0.1;
var floaterCallInterval = null;
var floaterPosX = 0;
var floaterPosXabs = 70;
var floaterBoolX = true;
var floaterPage = null;

YAHOO.floater.PosX = function () {
	if(floaterBoolX)
	{
		floaterPage = elemId('div_01');
		if(Dom.getViewportWidth() >= parseInt(Dom.getStyle(floaterPage,'width')) + floaterPosXabs)
		{
			floaterPosX = Dom.getViewportWidth() / 2 - parseInt(Dom.getStyle(floaterPage,'width')) / 2 + floaterPosXabs;
		}
		else 
		{
			floaterPosX = 0 + floaterPosXabs;
		}
			var attributes = {
				left: { to: floaterPosX }
			}
			var moveFloaterX = new YAHOO.util.Anim(floaterObject,attributes,floaterReposSpeed,YAHOO.util.Easing.easeOut);
			moveFloaterX.animate();
	}
}
YAHOO.floater.init = function () {
	if (floaterCallInterval) clearInterval(floaterCallInterval);
	
	floaterObject = Dom.getElementsByClassName('mozgo')[0];
	Dom.setStyle(floaterObject,'top',350+'px'); 
	Dom.setStyle(floaterObject,'opacity',floaterBaseOpacity);
	Event.addListener(floaterObject,'mouseover',YAHOO.floater.fadeIn);
	Event.addListener(floaterObject,'mouseout',YAHOO.floater.fadeOut);
	Event.onDOMReady(YAHOO.floater.PosX);
	Dom.setStyle(floaterObject,'left',floaterPosX+'px');
	floaterCallInterval = setInterval("YAHOO.floater.move()",floaterReposSpeed);
}

YAHOO.floater.move = function () {
	floaterPosY = Dom.getDocumentScrollTop() + (Dom.getViewportHeight()*floaterPosYGap/100);
	//alert(parseInt(Dom.getStyle(floaterObject,'height')));
	//if(floaterPosY >=350 && floaterPosY + parseInt(Dom.getStyle(floaterObject,'height')) < Dom.getDocumentHeight())
	var foR = Dom.getRegion(floaterObject);
	var checkbottom = Dom.getDocumentHeight()-(foR.bottom-foR.top)-100;
	if(floaterPosY >=350 && floaterPosY<checkbottom)
	{
	var attributes = {
		top: { to: floaterPosY }
	}
	var moveFloater = new YAHOO.util.Anim(floaterObject,attributes,floaterReposSpeed,YAHOO.util.Easing.easeOut);
	moveFloater.animate();
	}
}

YAHOO.floater.fadeIn = function() {
	var attributes = {
		opacity: { to: 1 }
	}
	var fadeFloater = new YAHOO.util.Anim(floaterObject,attributes,0.1);
	fadeFloater.animate();
}

YAHOO.floater.fadeOut = function() {
	var attributes = {
		opacity: { to: floaterBaseOpacity }
	}
	var fadeFloater = new YAHOO.util.Anim(floaterObject,attributes,0.1);
	fadeFloater.animate();
}

Event.onDOMReady(YAHOO.floater.init);
-->
