var imgArrR=new Image(); imgArrR.src="img/arrr.gif";
function objStyle(sID) {
    var obj=null;
    if (document.layers)
        obj=document.layers[sID];
    else if (document.all)
        obj=document.all(sID);
    else if (document.getElementById)
        obj=document.getElementById(sID);

    if (obj!=null && obj.style)
        obj=obj.style;

    return obj;
}
function overArr(sID,iBg) {
	if (iBg==null) iBg=3;
	var sBgI="url(img/arrr.gif)";
	switch (iBg) {
		case 1:	sBgI="url(img/arrbr.gif)"; break;
		case 2: sBgI="url(img/arrrprev.gif)"; break;
	}

	var obj=objStyle(sID);
	if (obj!=null) obj.backgroundImage=sBgI;
}
function outArr(sID,iBg) {
	if (iBg==null) iBg=3;
	var sBgI="url(img/arrb.gif)";
	switch (iBg) {
		case 1:	sBgI="url(img/arrbb.gif)"; break;
		case 2: sBgI="url(img/arrbprev.gif)"; break;
	}

	var obj=objStyle(sID);
	if (obj!=null) obj.backgroundImage=sBgI;
}
String.prototype.trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')");