<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	
    <script type="text/javascript">
       
    function init() {
    	
    	var centerId = nvl('${centerId}', "");    	//CCTV버튼일 경우
    	if (centerId == ""){		
    		var activex = document.getElementById("axPlayer");
    		var url = '${cctvPath}';
    		
    		if (!activex) alert("no player !!!");
    		activex.URL = url;
    		activex.Connect();
    	}
    	
    	// 고속도로&국도 CCTV 버튼(익산지방국토관리청)
      	if (centerId == "E20"){		
    		
   			var axPlayer = document.getElementById("axPlayer_load_" + '${cctvId}');
	   			axPlayer.URL = "rtsp://"+ '${sCctvIp}' +":1935/live/live"+ '${sId}' +".stream";
	   			axPlayer.Connect();
    	}
	}
		
    </script></head><body onload="init();"><table  width="325" height="240" cellspacing="0" cellpadding="0" border="0" summary="팝업 상황박스입니다." class="pop_table2">
	<caption>현황페이지</caption>
	<colgroup><col style="width:12%;"><col style="width:*"></colgroup><thead>
		<tr>
			<c:if test="${empty centerId}">
				<th><img src="${contextRoot}/images/icon02.png" alt="타이틀 블릿"/>${title}<span><a href="javascript:parent.cctvClose('${cctvId}');"><img src="${contextRoot}/images/close_btn2.gif" alt="close_btn2"></a></span></th>
			</c:if>
			<c:if test="${not empty centerId}">
				<th><img src="${contextRoot}/images/icon02.png" alt="타이틀 블릿"/>${title}<span><a href="javascript:parent.roadCctvClose('${cctvId}');"><img src="${contextRoot}/images/close_btn2.gif" alt="close_btn2"></a></span></th>
			</c:if>
		</tr>
		<tbody>
			<tr>
				<td>
					<div id="mmp-div" style="width:320px; height:240px; z-index:0">
						<c:if test="${empty centerId}">
							<!-- <object id="axPlayer" classid="CLSID:{384E1771-63B6-4D1B-9A00-F55E691107E0}" width="320" height="240" codebase="http://smartway.seoul.go.kr/infoImg/cctv/AcesTechXPlayer2.cab#version=2,1,1,10"> -->
							<object id="axPlayer" classid="CLSID:{384E1771-63B6-4D1B-9A00-F55E691107E0}" width="320" height="240" codebase="/cab/AcesTechXPlayer2_license_free.cab#version=2,3,0,2">
								<param name="AutoStart" value="true" />
								<param name="windowless" value="true" />
								<param name="wmode" value="transparent" />		
							</object>  
						</c:if>
						<c:if test="${not empty centerId}">
							<c:choose>
								<c:when test="${centerId eq 'E05'}">
									<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="320px" height="240px" id="live" align="middle" data="http://www.roadplus.co.kr/cctvPlayer.do?op=cctvPlayer&cctvId=${sCctvIp}">
									<param name="allowScriptAccess" 	value="always" />
									<param name="allowFullScreen" 		value="true" />
									<param name="movie" 				value="/jsp/web/app/cctvPlayer/exPlayer_winter.swf" />
									<param name="quality" 				value="high" />
									<param name="bgcolor" 				value="" />
									<param name="FlashVars" 			value="inParam=430"/>
									</object>
								</c:when>
								<c:when test="${centerId eq 'E06'}"><!--  서울지방국토관리청 -->
									<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="320" height="240" id="movie">
									<param name="movie" value="http://its.busan.go.kr/dmap/flhplayer/player.swf?file=${sId}.stream&streamer=rtmp://${sCctvIp}/live/&file=${sId}&controlbar=none&autostart=True&stretching=exactfit&duration=&image=play.png"/>
									<embed src="http://its.busan.go.kr/dmap/flhplayer/player.swf" width="320" height="240" name="movie" flashvars="file=${sId}.stream&streamer=rtmp://${sCctvIp}/live/&file=${sId}&controlbar=none&autostart=True&stretching=exactfit&duration=&image=play.png" style="border:3px solid #c5d6ff" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
									</object>
								</c:when>
								<c:when test="${centerId eq 'E19'}"><!--  대전지방국토관리청 -->
									<object type="application/x-shockwave-flash" data="http://dcmoits.mltm.go.kr/js/jwplayer/player.swf" width="320" height="240" bgcolor="#000000" id="myElement" name="myElement" tabindex="0">
										<param name="allowfullscreen" 		value="true">
										<param name="allowscriptaccess" 	value="always">
										<param name="seamlesstabbing" 		value="true">
										<param name="wmode" 				value="opaque">
										<param name="flashvars" value="netstreambasepath=http://dcmoits.mltm.go.kr/FaviInfo/newCctvView.jsp?cctv_id=${sId}&id=myElement&file=${sId}.stream&autostart=true&repeat=list&allowmenu=false&stretching=exactfit&provider=rtmp&streamer=rtmp://${sCctvIp}/${sId}/&controlbar.position=none">			 
									</object>
								</c:when>
								<c:when test="${centerId eq 'E20'}"><!--  익산지방국토관리청 -->
									<object id="axPlayer_load_${cctvId}" classid="CLSID:{384E1771-63B6-4D1B-9A00-F55E691107E0}" width=320 height=240 codebase="http://smartway.seoul.go.kr/infoImg/cctv/AcesTechXPlayer2.cab#version=2,1,1,10"></object>
								</c:when>
								<c:when test="${centerId eq 'E21'}"><!--  부산지방국토관리청 -->
									<object type="application/x-shockwave-flash" data="http://dcmoits.mltm.go.kr/js/jwplayer/player.swf" width="320" height="240" bgcolor="#000000" id="myElement" name="myElement" tabindex="0">
										<param name="allowfullscreen" 		value="true">
										<param name="allowscriptaccess" 	value="always">
										<param name="seamlesstabbing" 		value="true">
										<param name="wmode" 				value="opaque">
										<param name="flashvars" 			value="netstreambasepath=http://pcmoits.molit.go.kr/main/cctvView/CCTV_Info.jsp?d=cctvPlay&provider=rtmp&amp;streamer=rtmp://${sCctvIp}/live&amp;file=/${sId}.stream&amp;autostart=true&amp;controlbar.position=over">
									</object>
								</c:when>
								<c:otherwise><!--  원주지방국토관리청 -->
									<object type="application/x-shockwave-flash" data="http://dcmoits.mltm.go.kr/js/jwplayer/player.swf" width="320" height="240" bgcolor="#000000" id="myElement" name="myElement" tabindex="0">
									<param name="allowfullscreen" 			value="true">
										<param name="allowscriptaccess" 	value="always">
										<param name="seamlesstabbing" 		value="true">
										<param name="wmode" 				value="opaque">
										<param name="flashvars" 			value="netstreambasepath=http://pcmoits.molit.go.kr/main/cctvView/CCTV_Info.jsp?d=cctvPlay&provider=rtmp&amp;streamer=rtmp://${sCctvIp}/live&amp;file=/${sId}.stream&amp;autostart=true&amp;controlbar.position=over">
									</object>
								</c:otherwise>
							</c:choose>
						</c:if>
					</div> 
		 		</td>
			</tr>
	</tbody>
	<tfoot>
		<tr> <!--  //테이블 푸터 여백 지우면안됨 -->
			<td>
			</td>
		</tr>
	</tfoot>
</table> </body>
</HTML> 