// JavaScript Document

var newWidth;
var newHeight;

function showPres(url) {
	if(screen.width > 1024){
		newWidth = 1024;
		newHeight = 768;
	}else{
		newWidth = screen.width;
		newHeight = screen.height;
	}
	
	params  = 'width='+newWidth;
	params += ', height='+newHeight;
	params += ', top=0, left=0';
	params += ', toolbar=0, menubar=0, directories=0, location=0, status=0, copyhistory=0, scrollbars=1, resizable=1';
	
	newwin=window.open(url,'pressample', params);
	if (window.focus) {newwin.focus()}
}
