var imageHeight = 0;
var imageWidth = 0;
var imageTitle = '';
var imagePath = '';



function getImagePath() {
	return imagePath;
	imagePath = '../' + imagePath;
}

function getImageWidth() {
	return imageWidth;
}

function getImageHeight() {
	return imageHeight;
}

function showImage(imgPath,imgTitle,imgWidth,imgHeight) {
	
	var sScroll = 'no';
	var sPageContent = '';
	var sPageContent = '';
	imageWidth = parseInt(imgWidth);
	imageHeight = parseInt(imgHeight);
	imagePath = imgPath;
	imageTitle = 'ALSO gig poster closeup';
	myWinWidth = imageWidth+30;
	myWinHeight = imageHeight+40;

resizer = screen.availHeight-20;
	if (myWinHeight > resizer) {
		myWinHeight = screen.availHeight-120;
		myRatio = imageHeight/imageWidth;
		imageHeight = myWinHeight-40;
		imageWidth = Math.floor(imageHeight/myRatio);
		myWinWidth = imageWidth+20;
	}
	if (imageWidth > screen.availWidth) {
	var sScroll = 'yes';

	}
	var myTop = (screen.availHeight/2) - (myWinHeight/2);
	var myLeft = (screen.availWidth/2) - (myWinWidth/2);



	var frm = window.open('ALSO_PHOTO.html','ALSO_Gallery',',width='+myWinWidth+',height='+myWinHeight+',scrollbars='+sScroll+',top='+myTop+',left='+myLeft+',status=no,resizable=yes,location=no,toolbar=no');
	//frm.resizeTo(myWinWidth,myWinHeight); 
	frm_content = '<html><head><title>'+imageTitle+'<\/title><\/head><body class=\'viewer\'><a class=\'noshow\' href=\'javascript:window.close();\'><img style=\'border-color: #fff;\' class=\'popup\' alt=\''+imageTitle+'\' src=\''+imgPath+'\' width=\''+imageWidth+' height=\''+imageHeight+' \/><\/a><br\/><div id=\'popupcaption\' style=\'font-family: Verdana\, Arial\, Helvetica\, sans-serif;font-size: .8em;\'>'+imageTitle+'<\/div><\/body><\/html>';
	frm.document.write(frm_content);
	frm.document.close();
	frm.focus();
	
} // CLOSE FUNCTION SHOW IMAGE

