var theImgCache = [];
theImgCache['sayLoad.gif'] = new Image();
theImgCache['sayLoad.gif'].src = 'sayLoad.gif';
theImgCache['sayLoad2.gif'] = new Image();
theImgCache['sayLoad2.gif'].src = 'sayLoad.gif';
function getRefToDiv(divID) {
	if( document.getElementById ) { return document.getElementById(divID); }
	if( document.all ) { return document.all[divID]; }
	if( document.layers ) { return document.layers[divID]; }
	return document[divID];
}
function showPic( oLink, oWidth, oHeight ) {
	var theDiv = getRefToDiv('picDiv'), oPix = document.childNodes ? 'px' : 0;;
	if( !theDiv || ( typeof( theDiv.innerHTML ) == 'undefined' && ( !theDiv.document || theDiv.document == document ) ) ) { return true; }
	if( window.getComputedStyle ) { if( getComputedStyle(theDiv,null).position != 'absolute' ) { return true; } }
	else if( thediv.currentStyle && thediv.currentStyle.position != 'absolute' ) { return true; }
	if( !theImgCache[oLink.href] ) { theImgCache[oLink.href] = new Image(); theImgCache[oLink.href].src = oLink.href; }
	theDiv.innerHTML = '<a href="javascript:closePop();" align="center"><img src="'+oLink.href+'" width="'+oWidth+'" height="'+oHeight+'" alt=""> Close</a> '+(oLink.text?oLink.text:(oLink.innerText?oLink.innerText:(oLink.textContent?oLink.textContent:'')));
	if( theDiv.document && theDiv.document != document ) { theDiv.document.open(); theDiv.document.write(theDiv.innerHTML); theDiv.document.close(); }
	if( document.documentElement && document.documentElement.scrollTop ) { var HScroll = document.documentElement.scrollTop; }
	else if( document.body && document.body.scrollTop ) { var HScroll = document.body.scrollTop; }
	else if( window.pageYOffset ) { var HScroll = window.pageYOffset; }
	else { var HScroll = 0; } if( HScroll < 0 ) { HScroll = 0; }
	if( theDiv.style ) { theDiv = theDiv.style; theDiv.visibility = 'visible'; theDiv.marginLeft = ( -1 * ( Math.round( oWidth / 2 ) + 5 ) ) + oPix; theDiv.width = ( oWidth + 2 ) + oPix; theDiv.top = HScroll + oPix;
	} else { theDiv.visibility = 'show'; theDiv.left = ( window.innerWidth / 2 ) - ( ( oWidth + 10 ) / 2 ); theDiv.width = oWidth + 18; theDiv.top = HScroll;
	} return false;
}
function closePop() {
	var theDiv = getRefToDiv('picDiv');
	if( !theDiv || ( typeof( theDiv.innerHTML ) == 'undefined' && ( !theDiv.document || theDiv.document == document ) ) ) { return true; }
	theDiv.innerHTML = ''; if( theDiv.document && theDiv.document != document ) { theDiv.document.open(); theDiv.document.write(theDiv.innerHTML); theDiv.document.close(); }
	if( theDiv.style ) { theDiv.style.visibility = 'hidden'; } else { theDiv.visibility = 'hide'; }
}