function help(url,winX,w,h) {
	var url=url?url:'help.htm';
	var winX=winX?winX:'Help';
	var w=w?w:405;
	var h=h?h:325;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	win = window.open(url,winX,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition);
	if(win.window.focus){win.window.focus();}
}
function pano(url, winX, w, h) {
	var winX=winX?winX:'PTViever';
	var w=w?w:400;
	var h=h?h:300;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	win = window.open(url,winX,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition);
	if(win.window.focus){win.window.focus();}
}
function DoAutorotationStart() {
        document.ptviewer.startAutoPan( 0.5, 0.0, 1.0 );
}
function DoAutorotationStop() {
        document.ptviewer.stopAutoPan();
}
function DoZoomIn() {
	var pv=document.ptviewer; pv.moveTo(pv.pan(),pv.tilt(),30,50);
}
function DoZoomOut() {
	var pv=document.ptviewer; pv.moveTo(pv.pan(),pv.tilt(),100,50);
}
function DoShowHideHotspots() {
	document.ptviewer.toggleHS();
}
function DoReset() {
	document.ptviewer.moveFromTo(177,5,-90,-90,162,70,50);document.ptviewer.waitWhilePanning();
	document.ptviewer.moveTo(-4,-3,70,50);document.ptviewer.waitWhilePanning();
	document.ptviewer.moveTo(-174,15,70,75);document.ptviewer.waitWhilePanning();
	document.ptviewer.startAutoPan(-0.6,0,1);
}
function CallHelp() {
	help();
}

