function chkVer(imagename,objectsrc)
{
var n=navigator.appName
var v=parseInt(navigator.appVersion)
var browsok=((n=="Netscape")&&(v>=3))
var browsok2=((n=="Microsoft Internet Explorer")&&(v>=4))
if ((browsok)||(browsok2))
document.images[imagename].src=eval(objectsrc+".src")
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=620,height=500,left = 511,top = 476');");
}

function roll(img_name1, img_src1, img_name2, img_src2)
   {
   document[img_name1].src = img_src1;
   document[img_name2].src = img_src2;
   }

function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}

///////////////// new accessory pages //////////////////////////

function singleroll(img_name1, img_src1)
   {
   document[img_name1].src = img_src1;
   }

prevDiv = "empty"; //should be the default DIV...

function swapstuff(x,y,a,b) {
	
	singleroll(a, b); //do the image-roll
	
	if (prevDiv != x) { // if the div variable is not the one already open... 
	
	document.getElementById(prevDiv).style.display = 'none'; //put the previous div to none
	document.getElementById(x).style.display = 'block'; //show the selected div...
	prevDiv = x;
	
	}
	
}