document.write('<link rel="styleSheet" href="style/js.css" type="text/css" media="all" />');

window.onload = function() {
	if (document.getElementById('thumb')) { thumbalign(); }
	if (document.getElementById('image')) { imagealign(); } }

thumbalign = function() {
	var _thumball = document.getElementById('thumb').getElementsByTagName('img');
	for (var _thumbcount = 0; _thumbcount < _thumball.length; _thumbcount ++) {
		_thumbpadding = (120 - _thumball[_thumbcount].clientHeight) / 2 + "px";
		_thumball[_thumbcount].style.paddingTop = _thumbpadding; 
		_thumball[_thumbcount].style.paddingBottom = _thumbpadding; } }
		
imagealign = function() {
	var _thumball = document.getElementById('image').getElementsByTagName('img');
	for (var _imagecount = 0; _imagecount < _imageall.length; _imagecount ++) {
		_imagepadding = (280 - _imageall[_imagecount].clientHeight) / 2 + "px";
		_imageall[_imagecount].style.paddingTop = _imagepadding; 
		_imageall[_imagecount].style.paddingBottom = _imagepadding; } }