
var duration = 60; //Number of seconds to display popup
var props = 'width=780,height=580,top=0,left=0,resizable=yes,scrollbars=yes'; //window properties

function showHorizontal(img, alt, title){

	props = 'width=780,height=580,top=0,left=0,resizable=yes,scrollbars=yes'; 

	showPopup(img, alt, title, props);

}

function showHorizontal450(img, alt, title){

	props = 'width=520,height=420,top=0,left=0,resizable=yes,scrollbars=yes'; 

	showPopup(img, alt, title, props);

}

function showVertical(img, alt, title){

	props = 'width=550,height=580,top=0,left=0,resizable=yes,scrollbars=yes'; 

	showPopup(img, alt, title, props);

}

function showVertical350(img, alt, title){

	props = 'width=420,height=520,top=0,left=0,resizable=yes,scrollbars=yes'; 

	showPopup(img, alt, title, props);

}

function showSale(img, alt, title){

	props = 'width=780,height=700,top=0,left=0,resizable=yes,scrollbars=yes'; 

	showPopup(img, alt, title, props);

}



function showPopup(img, alt, title, winprops){

	asm=window.open('','asm',winprops); 

	asm.document.open();
	asm.document.write('<html>\n');
	asm.document.write('<head>\n');
	asm.document.write('<title>Image Closeup</title>\n');
	asm.document.write('<style type="text/css">\n');
	asm.document.write('<!--\n');
	asm.document.write('a {  font-family: Arial, Helvetica, sans-serif; font-size: small; color: #FFF8DC; text-decoration: none}\n');
	asm.document.write('-->\n');
	asm.document.write('</style>\n');
	asm.document.write('</head>\n');
	asm.document.write('<body bgcolor="#391808" text="#FFF8DC">\n');
	asm.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="10">\n');
	asm.document.write('  <tr>\n');
	asm.document.write('    <td align="center"><img src="/images/' + img + '.jpg" alt="' + alt + '" lowsrc="/images/' + img + 'l.jpg"></td>\n');
	asm.document.write('  </tr>\n');
	asm.document.write('  <tr>\n');
	asm.document.write('    <td align="center"><a href="javascript:window.close();">Close Window</a></td>\n');
	asm.document.write('  </tr>\n');
	asm.document.write('</table>\n');
	asm.document.write('</body>\n');
	asm.document.write('</html>\n');
	asm.document.close();

	if (duration) setTimeout("asm.close();", duration*1000);

}