// JavaScript Document


<!--

function openWindow(URLpath,winName,height,width,resizeOK,scrollOK)
{

	widthLoc = (screen.width - width)/2;
	heightLoc = (screen.height - height)/2;

	openstring = 'width=' + width + ',height=' + height + ',resizable=' + resizeOK + ',titlebar=no,menubar=no,status=no,scrollbars=' + scrollOK + ',toolbars=no,location=no,left=' + widthLoc + ',top=' + heightLoc;	
	
	win = window.open(URLpath + ".html", winName, openstring);
	win.focus();
}


function openLg (fileName,imgName,fileHeight,fileWidth,caption)
{
	//this function is used for viewing the larger images
	//add in a factor for the padding - see the css file and the class called 'lgImgPad' -- the factor must be the padding x2 because it is one each side
	//this function written by Adam Michel | AJM Design Studio
	padFactor = 60;
	height = fileHeight + padFactor;
	width = fileWidth + padFactor;
	
	widthLoc = (screen.width - width)/2;
	heightLoc = (screen.height - height) - 100;

	openstring = 'width=' + width + ',height=' + height + ',resizable=yes,titlebar=no,menubar=no,status=no,scrollbars=no,toolbars=no,location=no,left=' + widthLoc + ',top=' + heightLoc;	
	
	win = window.open("", "", openstring);
	
	//create dynamic html
	var d = win.document;	//to save typing	
	d.writeln('<html>');
	d.writeln('<head>');
	d.writeln('<title>[ ' + imgName + ' ] &copy; 2010 All rights reserved</title>');
	d.writeln('</head>');
	d.writeln('<body style="background-color:#000; margin:0; text-align:center;">');
	d.writeln('<div style="width:' + fileWidth + 'px; margin:10px auto;">');
	d.writeln('<img src=' + fileName + ' />');
	d.writeln('</div>');
	d.writeln('</body>');
	d.writeln('</html>');
	//end create dynamic html			
	win.focus();
}

function printPage() {
  if (window.print) {
   	 window.print();
  } else {
    alert ("Your browser does not support automatic printing - Press 'Cmd+p' or 'Ctrl+p' on your keyboard to print.");
    }
}

//-->
