/***********************************************
* Stylesheet selection by screen resolution
***********************************************/
  if (screen.width<900)
  {document.write('<link rel="stylesheet" type="text/css" title="800display" href="stylesheet800.css" />')}
  else{document.write('<link rel="stylesheet" type="text/css" href="stylesheet.css" />')}

/************************************************
/Creates a pop-up sub-window for specifications page
*************************************************/
SubWin=''
function SubWindow(pagesource,winName,wide,high)
{
//determine scale from screen resolution
	x = screen.width
	scale = 0.5
    if (x >= 600)  {scale = 0.6}
	if (x >= 790)  {scale = 0.8}		
    if (x >= 1000) {scale = 1}
//close any previous occurance
	if (SubWin) {SubWin.close();}
//open window for passed image, scaled to screen resolution
	SubWin = window.open(pagesource,'','Width=' + (wide*scale+20) + ',Height=' + (high*scale+50) + ',scrollbars=yes,status=yes,resizable=yes,copyhistory=no,top=50,left=100,dependent=yes');
	setTimeout('',1000)
}
/************************************************
/Creates a pop-up sub-window for enlarged image view 
*************************************************/
BigPic=''
function BigPicture(imagesource,winName,wide,high)
{
//determine scale from screen resolution
	x = screen.width
	scale = 0.5
    if (x >= 600)  {scale = 0.6}
	if (x >= 790)  {scale = 0.8}		
    if (x >= 1000) {scale = 1}
//close any previous occurance
	if (BigPic) {BigPic.close();}
//open window for passed image, scaled to screen resolution
	BigPic = window.open('','','Width=' + (wide*scale) + ',Height=' + (high*scale) + ',scrollbars=no,status=yes,resizable=yes,copyhistory=no,top=10,left=200,dependent=yes');
	setTimeout('',1000)
//write scaled image and description text into window
	doc = BigPic.document;
	doc.open('text/html');
    doc.write('<HTML><HEAD><TITLE>' + winName + '<\/TITLE><\/HEAD><BODY bgcolor="#313D57">');
    doc.write('<IMG style="position:absolute; left:0px; top:0px; " SRC="' + imagesource + '" width="' + (wide*scale) + '" height="' + (high*scale) + '">');	
    doc.write('<\/BODY><\/HTML>');
    doc.close();
}
