<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="view_scene.aspx.cs" Inherits="MYAPP.pano.view_scene" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="/CSS/main.css" rel="stylesheet" type="text/css" />
</head>
<script language='JavaScript' type='text/javascript' src='/js/common.js'></script>
<script language="JavaScript" type="text/javascript" src="/js/odialog.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/tdialog.js"></script>
<script type="text/javascript">
var oWindow=window.opener;
	function krpano() 
	{
			return document.getElementById("krpanoSWFObject");
	}
</script>
<style>
body {
	font-family:Arial, Helvetica, sans-serif;
	font-size:10px;
	color:#FFFFFF;
	padding:0;
	margin:0px; overflow-y:hidden; overflow-x:hidden;
}
a {
	color:#AAAAAA;
	text-decoration:underline;
}
a:hover {
	color:#FFFFFF;
	text-decoration:underline;
}
</style>
<body  onLoad="window.focus();">
  <table width="100%" cellspacing="2" border="1" cellpadding="0" bordercolor="#CCCCCC" height="100%"
            class="board_kong">
    <tr>
      <td height="100%" valign="top"><table cellspacing="1" cellpadding="0" width="100%" border="0" height="100%">
          <tr>
            <td align="right" style="border-bottom: #000000 1px solid; height: 24px"><table class="title_table">
                <tr>
                  <td align="right" style="color:#900"><%if (this.action=="heading"){%>旋转场景,屏幕中间十字指向场景的正北方向(正北偏角是设定场景旋转时候的方向跟地图上雷达方向同步的)<input type="button" class="width80px"   onclick="oWindow.SetValue('google_heading',-Number(krpano().get('view.hlookat')).toFixed(2));window.close();" value="设置正北偏角"/><%}%>
                  <%if (this.action=="getatvath"){%>旋转场景,屏幕中间十字位置为设定的坐标<input type="button" class="width80px"  onclick="oWindow.SetValue('ath',Number(krpano().get('view.hlookat')).toFixed(2));oWindow.SetValue('atv',Number(krpano().get('view.vlookat')).toFixed(2));window.close();" value="设置坐标"/>
                  <%}%>
                  
                   <%if (this.action=="gethvf"){%>旋转场景,把视角移动到需要查看的位置(默认视区视角是场景的默认显示位置) <input type="button" class="width80px"  onclick="oWindow.SetValue('view_hlookat',Number(krpano().get('view.hlookat')).toFixed(2));oWindow.SetValue('view_vlookat',Number(krpano().get('view.vlookat')).toFixed(2));oWindow.SetValue('view_fov',Number(krpano().get('view.fov')).toFixed(2));window.close();" value="设置默认视区"/>
                  <%}%>
				  
				  <%if (this.action=="get_Lensflare"){%>
                  <%}%><%if (this.action=="base"){%><input type="button" class="width80px" value="关闭窗口" onClick="window.close();">
                  <%}%></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="100%"><div id="krpanoDIV" style="height:100%">
	<noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
</div></td>
          </tr>
        </table></td>
    </tr>
  </table>
<script src="/pano/swfkrpano.js"></script>
<script>
	var viewer = createPanoViewer({swf:"/project/<%=_Tour_ID%>/epano.aspx", id:"krpanoSWFObject", target:"krpanoDIV"});
	//viewer.useHTML5("whenpossible");		// incomment to use the HTML5 krpanoJS viewer always when possible (Safari5)
	viewer.addVariable("xml", "<%=String.Format("view_scene_xml_{0}.aspx",  _Scene_ID)%>");
	viewer.addParam("wmode", "opaque");
	viewer.embed();
</script>
</body>
</html>
