function displayBandTopRight(url,width,height,delta,w) {
	var clip;
	var html;
	var top,right,bottom,left;
	for (var h=0; h < height; h+=delta) {
		top = h;
		left = h * width / height;
		bottom = top + delta;
		right = left + w + (delta * width / height);
		clip = "clip: rect("+top+"px "+right+"px "+bottom+"px "+left+"px);"
		html = ' style="position:absolute; top: 0; right: 0; width: '+width+'px; height: '+height+'px; '+clip+'"';
		document.write("<div" + html + '><img src="'+url+'" width="'+width+'" height="'+height+'"></div>');
	}
}
function displayBandTopLeft(url,width,height,delta,w) {
	var clip;
	var html;

	html = ' style="position:absolute; top: 0; left: 0; width: '+width+'px; height: '+height+'px"';
	document.write("<div" + html + '><img src="'+url+'" width="'+width+'" height="'+height+'"></div>');
	return;

	var top,right,bottom,left;
	for (var h=0; h < height; h+=delta) {
		top = h;
		left = (height - h) * width / height;
		bottom = top + delta;
		right = left + w + (delta * width / height);
		clip = "clip: rect("+top+"px "+right+"px "+bottom+"px "+left+"px);"
		html = ' style="position:absolute; top: 0; left: 0; width: '+width+'px; height: '+height+'px; '+clip+'"';
		document.write("<div" + html + '><img src="'+url+'" width="'+width+'" height="'+height+'"></div>');
	}
}
function displayBandBottomLeft(url,width,height,delta,w) {
	var clip;
	var html;

	html = ' style="position:absolute; bottom: 0; left: 0; width: '+width+'px; height: '+height+'px"';
	document.write("<div" + html + '><img src="'+url+'" width="'+width+'" height="'+height+'"></div>');
	return;

	var top,right,bottom,left;
	for (var h=0; h < height; h+=delta) {
		top = h;
		left = (height - h) * width / height;
		bottom = top + delta;
		right = left + w + (delta * width / height);
		clip = "clip: rect("+top+"px "+right+"px "+bottom+"px "+left+"px);"
		html = ' style="position:absolute; top: 0; left: 0; width: '+width+'px; height: '+height+'px; '+clip+'"';
		document.write("<div" + html + '><img src="'+url+'" width="'+width+'" height="'+height+'"></div>');
	}
}
function displayBandTop(text) {
	var html;

	html = '<div style="position:absolute; top: 0; left: 0; width: 100%; background: #faa61a; color: #900; font: 14pt bold Arial, Helvetica, sans-serif; text-align: center">'+text+'</div>';
	html += '<style type="text/css"> body { margin-top: 70px; } </style>';
	document.write(html);
	return;
}
