
function findThumbY(oThumb){
			var dTop = 0;
			
			if(oThumb.offsetParent){
				while(oThumb.offsetParent){
					dTop += oThumb.offsetTop
					oThumb = oThumb.offsetParent;
				}
			}
			else if(oThumb.y){

				dTop += oThumb.y;
			}
			return dTop;
		}

function showThumbnail(thumbNum,thumbUrl,contentUrl) {


expandThumb = document.getElementById('thumbnail_link');
expandLoc = document.getElementById('thumbnail'+thumbNum);


expandThumb = document.getElementById('thumbnail_link');
expandLoc = document.getElementById('thumbnail'+thumbNum);


expandThumb.className = 'thumbnail_box_on';
document.getElementById('img_thumnail').setAttribute('src',thumbUrl);
var popup = "javascript:void(popitupbig(\'"+contentUrl+"\',650,850))";
document.getElementById('viewEnl').setAttribute('href',popup);
expandThumb.style.top = findThumbY(expandLoc);
expandThumb.style.left = 214 + 'px';

//wp_header = document.getElementById('wp_header_search');
//wp_header.style.display = 'none';

}

function closeThumbnail() {
expandThumb = document.getElementById('thumbnail_link');
//wp_header = document.getElementById('wp_header_search');

expandThumb.className = 'thumbnail_box_off';
//wp_header.style.display = '';
}
