//<!--

// Handles popups for www.finecases.com

popupWin = null;
ZoomThumbNails = null;
Zoom = null;
leftPos = 25;
topPos = 25;

function zoomthumbnails(brand_no,count,array,height,width,rand) { 
	if (screen) {
	leftPos = (screen.width / 2) - (width / 2)
	}
ZoomThumbNails = window.open('/common_tables/detail_page/dynamic_zoomthumbs.html?brand_no=' + brand_no + '&count=' + count + '&array=' + array + '&w=' + width + '&h=' + height, 'ZoomPhotoThumbs' + rand, 'height=149,width=' + width + ',left='+leftPos+',top=10,resizable=no,scrollbars=no,menubar=no,directories=no,location=no,status=no,');
	if (!(ZoomThumbNails && ZoomThumbNails.top)) {
	alert('Please disable your popup blocker\nto use this feature.');
	}
ZoomThumbNails.focus();
}

function zoompic(brand_no,img,height,width,rand) { 
	if (screen) {
	leftPos = (screen.width / 2) - (width / 2)
	topPos = (screen.height / 2) - (height / 2)
	}
Zoom = window.open('/common_tables/detail_page/dynamic_zoompic.html?brand_no=' + brand_no + '&img=' + img + '&w=' + width + '&h=' + height, 'ZoomPhoto' + rand, 'height=' + height + ',width=' + width + ',left='+leftPos+',top='+topPos+',resizable=no,scrollbars=yes,menubar=no,directories=no,location=no,status=no,');
	if (!(Zoom && Zoom.top)) {
	alert('Please disable your popup blocker\nto use this feature.');
	}
Zoom.focus();
}


//-->