var img1=new Image();
img1.src="resources/graphics/arrowdn.png";
var img2=new Image();
img2.src="resources/graphics/arrowrt.png";

function showtab(obj) {
	t=obj.parentNode.firstChild;
	i=0;index=0;
	while(t){if(t.nodeType==1){if(t.className=='on')t.className='off';i+=1;if(t==obj)index=i;}t=t.nextSibling;}
	obj.className='on';
	t=obj.parentNode.nextSibling;
	do{if(t.getAttribute && t.getAttribute('id')=='pages')break;t=t.nextSibling;}while(t)
	t=t.firstChild;j=0;
	while(t){if(t.nodeType==1){if(t.className=='on')t.className='off';j+=1;if(j==index)t.className='on';}t=t.nextSibling;}
}

