function help(url,winX,w,h) {
	var url=url?url:'../help.html';
	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(),60,10);
}
function DoZoomOut() {
	var pv=document.ptviewer; pv.moveTo(pv.pan(),pv.tilt(),120,10);
}
function DoShowHideHotspots() {
	document.ptviewer.toggleHS();
}
function DoReset() {
	document.ptviewer.gotoView(0,-90,165);
	document.ptviewer.moveTo(140,-20,70,40);document.ptviewer.waitWhilePanning();
	document.ptviewer.moveTo(175,0,60,17);document.ptviewer.waitWhilePanning();
	document.ptviewer.moveTo(265,0,80,45);document.ptviewer.waitWhilePanning();
	document.ptviewer.startAutoPan(0.6,0,1);
}
function CallHelp() {
	help();
}

