/***************************************************************
*
*  Example script for keeping rollover effect when a menu item is clicked.
*
*
*  Copyright notice
* 
*  (c) 1998-2000 Kasper Skårhøj
*  All rights reserved
*
*  This script is part of the standard PHP-code library provided by
*  Kasper Skårhøj, kasper@typo3.com
* 
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* 
*  This copyright notice MUST APPEAR in all copies of this script
***************************************************************/

var ARO_Image=null;
function ARO_setLocationPage(uid,sl,image) {
	ARO_setActiveImg(image);
	// left
	ARO_setFrame(0,'index.php?id='+uid+'&type=2&L='+sl);
	// page
	ARO_setFrame(2,'index.php?id='+uid+'&type=1&L='+sl);
}
function ARO_setLocationLeft(uid,sl,image) {
	ARO_setActiveImg(image);
	// page
	ARO_setFrame(2,'index.php?id='+uid+'&type=1&L='+sl);
}
function ARO_setFrame(F1,url)	{
	if (parent.frames) {
		parent.frames[F1].location.href = url;
	}
}

function ARO_setActiveImg(image)	{
	ARO_out(ARO_Image,'',1);
	ARO_Image = image;
}
function ARO_over(name,imgObj,noOutAction)	{
	if (version == 'n3' && document[name]) {document[name].src = eval(name+'_h.src');}
		else if (imgObj)	{imgObj.src = eval(name+'_h.src');}
	if (ARO_Image!=name)  ARO_out(ARO_Image,'',1);
}
function ARO_out(name,imgObj,noOverAction)	{
	if (version == 'n3' && document[name]) {document[name].src = eval(name+'_n.src');}
		else if (imgObj)	{imgObj.src = eval(name+'_n.src');}
	if (!noOverAction)	ARO_over(ARO_Image,'',1);
}

