function AutoBoxUp(sClassName, sImageBase, sImageFolder, sSuppress) {
	
	var aDivs=f.GetElementsByClassName('div',sClassName);
	for (var i=0;i<aDivs.length;i++) {
		
		if (sSuppress==undefined) {		
			new BoxUp(aDivs[i],sImageBase, sImageFolder);
		} else if (aDivs[i].className.indexOf(sSuppress)<0) {
			new BoxUp(aDivs[i],sImageBase, sImageFolder);
		}
	}
}

function BoxUp(sDiv,sImageBase,sImageFolder) {

	this.ImageNames=new Array('tl.gif','tr.gif'); //,'bl.gif','br.gif'
	
	this.ImageBase= sImageBase==undefined ? 'box' : sImageBase;
	this.ImageFolder= sImageFolder==undefined ? 'images/' : sImageFolder;
	
	this.Box=f.SafeObject(sDiv);
	
	this.BoxCreateImage=function(iIndex) {
		var oImage=document.createElement('img');
		this.Box.appendChild(oImage);
		oImage.setAttribute('src',this.ImageFolder+this.ImageBase+this.ImageNames[iIndex-1]);
		oImage.style.position='absolute';
		
		if (navigator.userAgent && navigator.userAgent.indexOf('MSIE 6.0')>-1) {
			if (iIndex==1) {oImage.style.top='-1px';oImage.style.left='-1px';}
			if (iIndex==2) {oImage.style.top='-1px';oImage.style.right='-2px';}
			//if (iIndex==3) {oImage.style.bottom='-2px';oImage.style.left='-1px';}
			//if (iIndex==4) {oImage.style.bottom='-2px';oImage.style.right='-2px';}
		} else {
			if (iIndex==1) {oImage.style.top='-1px';oImage.style.left='-1px';}
			if (iIndex==2) {oImage.style.top='-1px';oImage.style.right='-1px';}
			//if (iIndex==3) {oImage.style.bottom='-1px';oImage.style.left='-1px';}
			//if (iIndex==4) {oImage.style.bottom='-1px';oImage.style.right='-1px';}
		}
	}	
	
	this.Box.style.position='relative';
	this.BoxCreateImage(1);
	this.BoxCreateImage(2);
	//this.BoxCreateImage(3);
	//this.BoxCreateImage(4);
}