navWindow = parent.frames['retswitchframe'];

{
	var upButt = new Array(2);
	upButt[0]=new Image(143,15);
	upButt[0].src="images/ret_sortalpha_up.gif";
	upButt[1]=new Image(143,15);
	upButt[1].src="images/ret_sortcat_up.gif";
}
{
	var dwnButt = new Array(2);
	dwnButt[0]=new Image(143,15);
	dwnButt[0].src="images/ret_sortalpha_dwn.gif";
	dwnButt[1]=new Image(143,15);
	dwnButt[1].src="images/ret_sortcat_dwn.gif";
}

function StartButton() {
	if (navigator.appVersion.indexOf("3") != 0) {
        navWindow.document.catbutt.src=dwnButt[1].src;
    	parent.frames['retlistframe'].location = 'retlist.htm';
    }
}

function SwitchAll() {
	navWindow.document.alphabutt.src=upButt[0].src;
	navWindow.document.catbutt.src=upButt[1].src;
}

function SwitchOne(which, doc) {
	SwitchAll();
	navWindow.document.images[doc].src=dwnButt[which].src;
}
