var parameters = 
{
    delta: 0.05,
    collection:null,
    closeB: false
}
function floaters() 
{
  this.items = [];
  this.addItem = function(id,x,y,content)
  {	      		
		document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:130px; height:337px;left:'+(typeof(x)=='string'?eval(x):x)+'px;top:'+(typeof(y)=='string'?eval(y):y)+'px; background-color:#eeeeee;">'+content +'</DIV>');
		
		var newItem    = {};
		newItem.object   = document.getElementById(id);
		newItem.x    = x;
		newItem.y    = y;
		
		this.items[this.items.length]  = newItem;
   }
		this.play = function()
		{
		    parameters.collection    = this.items;
		    setInterval('play()',30);
	    }
}
function play()
{
   if(screen.width<=800 || parameters.closeB)
   {
        for(var i=0;i<parameters.collection.length;i++)
        {
         parameters.collection[i].object.style.display = 'none';
        }
    return;
   }
   for(var i=0;i<parameters.collection.length;i++)
   {
    var followObj  = parameters.collection[i].object;
    var followObj_x  = (typeof(parameters.collection[i].x)=='string'?eval(parameters.collection[i].x):parameters.collection[i].x);
    var followObj_y  = (typeof(parameters.collection[i].y)=='string'?eval(parameters.collection[i].y):parameters.collection[i].y);

    if(followObj.offsetLeft!=(document.documentElement.scrollLeft+followObj_x)) 
    {
         var dx=(document.documentElement.scrollLeft+followObj_x-followObj.offsetLeft)*parameters.delta;
         dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
         followObj.style.left=followObj.offsetLeft+dx;      
     }

    if(followObj.offsetTop!=(document.documentElement.scrollTop+followObj_y)) 
    {
         var dy=(document.documentElement.scrollTop+followObj_y-followObj.offsetTop)*parameters.delta;
         dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
         followObj.style.top=followObj.offsetTop+dy;
     }
    followObj.style.display = '';
   }
}
function hiddenAdv()
{
    parameters.closeB = true;
}
function open_window(url,name,para) 
{ 
	var vp = window.open("about:blank",name,para); 
	vp.location.href = url;
}

/*************************************************************/
function high(which2)
{
	theobject=which2;
	theobject.filters.alpha.opacity=5;
	highlighting=setInterval("highlightit(theobject)",50);
}
function low(which2)
{
	clearInterval(highlighting);
	which2.filters.alpha.opacity=100;
}
function highlightit(cur2)
{
	if (cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=15;
	else 
		if(window.highting)
			clearInterval(highlighting);
}
window.onerror = function(){ return true; }
