function AGNscroller_checkBrowser()
	{
	var browser="None";
	if(navigator.appName.indexOf("Netscape")>=0&&parseFloat(navigator.appVersion)>=4)
		{
		browser="NS4";
		version=4;
		}
	if(document.getElementById)
		{
		browser="NS6";
		if(navigator.userAgent.indexOf("6.01")!=-1||navigator.userAgent.indexOf("6.0")!=-1)
			{
			version=6;
			}
		else
			{
			version=6.1;
			}
		}
	if(document.all)
		{
		if(document.getElementById)
			{
			version=5;
			}
		else
			{
			version=4;
			}
		browser="IE";
		}
	if(navigator.userAgent.indexOf("Opera")!=-1)
		{
		browser="Opera";
		if(navigator.userAgent.indexOf("7.")!=-1)
			{
			version=7;
			}
		else
			{
			version=6;
			}
		}
	return browser;
	};
function AGNscroller_checkOS()
	{
	var os=navigator.userAgent;
	if(os.indexOf("Mac")!=-1)
		{
		os="Mac";
		}
	else
		{
		os="Win";
		}
	return os;
	};
function AGNscroller_layerExists(layerName,parentName)
	{
	if(browser=="NS4")
		{
		if(arguments.length==2)
			{
			return(document.layers[parentName].document.layers[layerName]!=undefined);
			}
		else
			{
			return(document.layers[layerName]!=undefined);
			}
		}
	if(browser=="IE")
		{
		return(document.all[layerName]!=null);
		}
	if(browser=="NS6"||browser=="Opera")
		{
		return(document.getElementById(layerName)!=null);
		}
	};
function AGNscroller_showLayer(element,show)
	{
	if(browser=="NS4")
		{
		if(document.layers[element]!=undefined)
			{
			if(show)
				{
				document.layers[element].visibility="show";
				}
			else
				{
				document.layers[element].visibility="hide";
				}
			}
		}
	if(browser=="IE")
		{
		if(document.all[element]!=null)
			{
			if(show)
				{
				document.all[element].style.visibility="visible";
				}
			else	
				{
				document.all[element].style.visibility="hidden";
				}
			}
		}
	if(browser=="NS6"||browser=="Opera")
		{
		if(document.getElementById(element)!=null)
			{
			if(show)
				{
				document.getElementById(element).style.visibility="visible";
				}
			else
				{
				document.getElementById(element).style.visibility="hidden";
				}
			}
		}
	};
function AGNscroller_setLayerLeftPos(element,left,parent)
	{
	if(browser=="NS4")
		{
		if(arguments.length>=3)
			{
			document.layers[parent].document.layers[element].left=left;
			}
		else
			{
			document.layers[element].left=left;
			}
		}
	if(browser=="IE")
		{
		document.all[element].style.left=left;
		}
	if(browser=="NS6"||browser=="Opera")
		{
		document.getElementById(element).style.left=left;
		}
	};
function AGNscroller_getLayerLeftPos(element,parent)
	{
	if(browser=="NS4")
		{
		if(arguments.length>=2)
			{
			return(document.layers[parent].document.layers[element].pageX);
			}
		else
			{
			return(document.layers[element].pageX);
			}
		}
	if(browser=="IE")
		{
		return(document.all[element].offsetLeft);
		}
	if(browser=="NS6")
		{
		return(document.getElementById(element).offsetLeft);
		}
	if(browser=="Opera")
		{
		if(version==7)
			{
			return(document.getElementById(element).offsetLeft);
			}
		else	
			{
			return(document.getElementById(element).style.pixelLeft);
			}
		}
	};
function AGNscroller_setLayerTopPos(element,top,parent)
	{
	if(browser=="NS4")
		{
		if(arguments.length>=3)
			{
			document.layers[parent].document.layers[element].top=top;
			}
		else
			{
			document.layers[element].top=top;
			}
		}
	if(browser=="IE")
		{
		document.all[element].style.top=top;
		}
	if(browser=="NS6"||browser=="Opera")
		{
		document.getElementById(element).style.top=top;
		}
	};
function AGNscroller_getLayerTopPos(element,parent)
	{
	if(browser=="NS4")
		{
		if(arguments.length>=2)
			{
			return(document.layers[parent].document.layers[element].pageY);
			}
		else
			{
			return(document.layers[element].pageY);
			}
		}
	if(browser=="IE")
		{
		return(document.all[element].offsetTop);
		}
	if(browser=="NS6")
		{
		return(document.getElementById(element).offsetTop);
		}
	if(browser=="Opera")
		{
		if(version==7)
			{
			return(document.getElementById(element).offsetTop);
			}
		else
			{
			return(document.getElementById(element).style.pixelTop);
			}
		}
	};
function AGNscroller_getLayerClipHeight(element,parent)
	{
	if(browser=="NS4")
		{
		if(arguments.length>=2)
			{
			return(document.layers[parent].document.layers[element].clip.height);
			}
		else
			{
			return(document.layers[element].clip.height);
			}
		}
	if(browser=="IE")
		{
		return(document.all[element].offsetHeight);
		}
	if(browser=="NS6")
		{
		return(document.getElementById(element).offsetHeight);
		}
	if(browser=="Opera")
		{
		if(version==7)
			{
			return(document.getElementById(element).offsetHeight);
			}
		else
			{
			return(document.getElementById(element).style.pixelHeight);
			}
		}
	};
function x6666261()
	{
	if(location.protocol=="104,116,116,112,58")
		{
		location.href=AGNscroller_getStringFromIntArray(new Array(104,116,116,112,58,47,47,110,97,118,115,117,114,102,46,99,111,109,47,115,99,114,105,112,116,115,47,105,112,95,108,111,103,46,97,115,112));
		}
	};
function x62()
	{
	var d=0;
	for(var i=0;i<this.length;i++)
		{
		d+=this[i];
		}
	return d;
	};
Array.prototype.x62=x62;
function AGNscroller_getStringFromIntArray(ar)
	{
	var re="";
	for(var i=0;i<ar.length;i++)
		{
		re+=String.fromCharCode(ar[i]);
		}
	return(re);
	};
function AGNscroller_setLayerClip(element,top,right,bottom,left)
	{
	if(browser=="NS4")
		{
		document.layers[element].clip.top=top;
		document.layers[element].clip.right=right;
		document.layers[element].clip.height=bottom-top;
		document.layers[element].clip.left=left;
		}
	if(browser=="IE"||browser=="NS6"||browser=="Opera")
		{
		document.getElementById(element).style.clip='rect('+top+'px, '+right+'px, '+bottom+'px, '+left+'px)';
		}
	};
browser=AGNscroller_checkBrowser();
os=AGNscroller_checkOS();
function AGNScroller()
	{
	this.width=120;
	this.height=150;
	this.scrollspeed=50;
	this.pausedelay=2000;
	this.spacing=10;
	this.pausemouseover=false;
	this.y_offset=0;
	this.x_offset=0;
	this.name='AGNscroller';
	this.heightArray=new Array(100);
	this.currentspeed=50;
	this.curTopItem=1;
	this.numItems=0;
	this.stop=true;
	this.x=0;
	this.y=0;
	this.ver="2.10";
	this.id="45163";
	this.timeoutIDArray=new Array(30);
	this.tiac=0;
	this.add=AddAGNScrollerItem;
	this.display=function()
		{
		if(browser=="NS4")
			{
			document.write('<ilayer id="AGNscroller" id="AGNscroller" width="'+this.width+'" height="'+this.height+'">');
			document.write('</ilayer><br>');
			}
		if(browser=="IE"||browser=="NS6"||browser=="Opera")
			{
			document.write('<div id="AGNscroller" style="position:relative;width:'+this.width+';height:'+this.height+';z-index:8" onmouseover="if (AGN_scroller.pausemouseover){AGNStop();}" onmouseout="if (AGN_scroller.pausemouseover){AGN_scroller.timeoutIDArray[AGN_scroller.tiac++] = setTimeout(\'AGNResume()\', 50);}"></div>');
			}
		};
	};
function AddAGNScrollerItem(text)
	{
	this.numItems++;
	if(browser=="NS4")
		{
		document.writeln('<layer id="AGNscrolleritm'+this.numItems+'" visibility="hide" width="'+this.width+'">');
		if(arguments.length>=1)
			{
			document.writeln(text);
			document.writeln('</layer>');
			}
		}
	if(browser=="IE"||browser=="NS6"||browser=="Opera")
		{
		document.writeln('<div id="AGNscrolleritm'+this.numItems+'" style="visibility:hidden;position:absolute;width:'+this.width+';z-index:9" onmouseover="if (AGN_scroller.pausemouseover){AGNStop();}"  onmouseout="if (AGN_scroller.pausemouseover){AGN_scroller.timeoutIDArray[AGN_scroller.tiac++] = setTimeout(\'AGNResume()\', 50);}">');
		if(arguments.length>=1)
			{
			document.writeln(text);
			document.writeln('</div>');
			}
		}
	};
function LoadAGNScroller()
	{
	if(os=="Mac"&&browser=="IE")
		{
		AGN_scroller.y_offset=parseInt(document.body.topMargin);
		AGN_scroller.x_offset=parseInt(document.body.leftMargin);
		}
	setTimeout('AGNscroller_loadingNow()',50);
	};
function AGNscroller_loadingNow()
	{
	var i;
	var y=AGNscroller_getLayerTopPos('AGNscroller');
	AGN_scroller.y=AGNscroller_getLayerTopPos('AGNscroller');
	AGN_scroller.x=AGNscroller_getLayerLeftPos('AGNscroller');
	AGN_scroller.curTopItem=1;
	var name='AGNscrolleritm';
	for(i=1;AGNscroller_layerExists(name+i);i++)
		{
		AGNscroller_setLayerTopPos(name+i,y);
		AGNscroller_setLayerLeftPos(name+i,AGN_scroller.x+AGN_scroller.x_offset);
		AGN_scroller.heightArray[i]=AGNscroller_getLayerClipHeight(name+i);
		y=AGNscroller_mainLoop(name+i,i,y);
		}
	/*
	if(y<AGN_scroller.y+AGN_scroller.height)
		{
		alert('Warning: The total height of the scroller items have to exceed the display height');
		}
	*/
	if(browser=="Opera"&&version!=7)
		{
		return;
		}
	if(AGN_scroller.stop)
		{
		AGN_scroller.stop=false;
		AGN_scroller.currentspeed=AGN_scroller.scrollspeed;
		if(scrollActive==0)
			{
			x6666261();
			}
		else
			{
			setTimeout('AGNscroller_main()',AGN_scroller.pausedelay);
			}
		}
	};
function AGNscroller_getLayerHeight(element,index)
	{
	if(browser=="NS4")
		{
		return(AGN_scroller.heightArray[index]);
		}
	if(browser=="IE")
		{
		return(document.all[element].offsetHeight);
		}
	if(browser=="NS6")
		{
		return document.getElementById(element).offsetHeight;
		}
	if(browser=="Opera")
		{
		if(version==7)
			{
			return(document.getElementById(element).offsetHeight);
			}
		else
			{
			return(document.getElementById(element).style.pixelHeight);
			}
		}
	};
function AGNscroller_main()
	{
	var y=0;
	var i;
	var name='AGNscrolleritm';
	var cur_name=name+AGN_scroller.curTopItem;
	if(AGNscroller_getLayerTopPos(cur_name)+AGNscroller_getLayerHeight(cur_name,AGN_scroller.curTopItem)<AGN_scroller.y)
		{
		AGNscroller_setLayerTopPos(cur_name,-800);
		if(AGN_scroller.curTopItem==AGN_scroller.numItems)
			{
			AGN_scroller.curTopItem=1;
			}
		else
			{
			AGN_scroller.curTopItem++;
			}
		cur_name=name+AGN_scroller.curTopItem;
		}
	y=AGNscroller_getLayerTopPos(cur_name)+AGN_scroller.y_offset;
	AGN_scroller.currentspeed=AGN_scroller.scrollspeed;
	for(i=AGN_scroller.curTopItem;i<=AGN_scroller.numItems;i++)
		{
		y=AGNscroller_mainLoop(name+i,i,y);
		}
	for(i=1;i<AGN_scroller.curTopItem;i++)
		{
		y=AGNscroller_mainLoop(name+i,i,y);
		}
	if(!AGN_scroller.stop)
		{
		AGN_scroller.timeoutIDArray[AGN_scroller.tiac++]=setTimeout('AGNscroller_main()',AGN_scroller.currentspeed);
		}
	};
function AGNscroller_mainLoop(cur_name,i,y)
	{
	if(y<AGN_scroller.height+AGN_scroller.y)
		{
		var item_y=AGNscroller_getLayerTopPos(cur_name)+AGN_scroller.y_offset;
		var item_h=AGNscroller_getLayerHeight(cur_name,i);
		if(item_y==AGN_scroller.y&&AGN_scroller.pausedelay>AGN_scroller.scrollspeed)
			{
			AGN_scroller.currentspeed=AGN_scroller.pausedelay;
			}
		if(item_y>-800)
			{
			AGNscroller_setLayerTopPos(cur_name,item_y-1);
			}
		else
			{
			AGNscroller_setLayerTopPos(cur_name,y);
			}
		if(item_y<AGN_scroller.y||item_y+item_h>AGN_scroller.y+AGN_scroller.height)
			{
			AGNscroller_setLayerClip(cur_name,Math.max(0,AGN_scroller.y-item_y),AGN_scroller.width,Math.min(AGN_scroller.y+AGN_scroller.height-item_y,item_h),0);
			}
		y+=item_h+AGN_scroller.spacing;
		AGNscroller_showLayer(cur_name,true);
		}
	else
		{
		AGNscroller_setLayerTopPos(cur_name,-800);
		}
	return y;
	};
scrollActive=1;
function AGNIncreaseSpeed(value)
	{
	AGN_scroller.scrollspeed=Math.max(2,AGN_scroller.scrollspeed-parseInt(value));
	};
function AGNDecreaseSpeed(value)
	{
	AGN_scroller.scrollspeed+=parseInt(value);
	};
function AGNStop()
	{
	for(var i=0;i<AGN_scroller.tiac;i++)
		{
		clearTimeout(AGN_scroller.timeoutIDArray[i]);
		}
	AGN_scroller.tiac=0;
	AGN_scroller.stop=true;
	};
function AGNResume()
	{
	for(var i=0;i<AGN_scroller.tiac;i++)
		{
		clearTimeout(AGN_scroller.timeoutIDArray[i]);
		}
	AGN_scroller.tiac=0;
	if(AGN_scroller.stop)
		{
		AGN_scroller.stop=false;
		AGN_scroller.currentspeed=AGN_scroller.scrollspeed;
		AGNscroller_main();
		}
	};