//All scripts Copyright 2005 The Digital Practice. All Rights Reserved. Use without written consent
//prohibited. Limited license to use script granted to SimGlobal.
//For more information contact matej@thedigitalpractice.com

//Decides what the name of the file using this script is
var url_loc=window.location.href
var slash=url_loc.lastIndexOf("/");
var ext=url_loc.lastIndexOf("?");
if (ext==-1) {
	ext=url_loc.length;
}
var file=url_loc.substring(slash+1, ext);
// Opens up the zoom screen
function winImage(title, loc) {
	if(!newwin.closed) {
		newwin.close();
		}
	newwin=window.open("","","scrollbars=no,resizable=no,width=0,height=0");
	newwin.document.write('<html><head><title>'+title+'</title>');
	newwin.document.write('<script type="text/javascript">function resizer() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+30,document.images[0].height+60); window.focus();}}</scr'+'ipt></head>');
	newwin.document.write('<body bgcolor="#ffffff" onload="resizer();">');
	newwin.document.write('<img src="'+loc+'" alt="'+title+'" /></body></html>');
	newwin.document.close();
}
//Changes the amount of items displayed per page
function numChanger(num) {
	if (window.location) {
		window.location=file+"?ppage="+num+"&1";
	}
	else if(window.location.replace) {
		window.location.replace(file+"?ppage="+num+"&1");
	}
}
newwin=new Object;
newwin.closed=true;