<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<!-- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| 房佳（专业的新房分销ERP管理系统）
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| Copyright (c) 2008-2019 http://fj.ytsofts.cn/ All rights reserved.
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| 本系统由淮南市银泰软件科技有限公司提供技术支持
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| QQ号：984784483
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title><?php echo ($jcpz['title']); ?></title>
		<link rel="icon" href="/Upload/Admin/Images/favicon.png" type="image/png"/>
		<link rel="stylesheet" href="/Public/lib/layui/css/layui.css" media="all">
		<link rel="stylesheet" type="text/css" href="/Public/lib/ceshi/bootstrap-3.3.7/dist/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="/Public/lib/ceshi/css/css.css"/>
		<link rel="stylesheet" type="text/css" href="/Public/lib/Hui-iconfont/1.0.8/iconfont.css"/>
		<style type="text/css">
			.s_nav li:link{
				text-decoration:none;
			}
			.s_nav li:visited{
				color:black;
				text-decoration:none;
			}
			.s_nav li:hover{
				color:red;
				text-decoration:none;
			}
			.s_nav li:active{
				color:orange;
				text-decoration:none;
			}
			.s_nav a:link{
				color: black;
				text-decoration:none;
			}
			.s_nav a:visited{
				color:black;
				text-decoration:none;
			}
			.s_nav a:hover{
				color:red;
				text-decoration:none;
			}
			.s_nav a:active{
				color:orange;
				text-decoration:none;
			}
			.s_nav{
				margin-left: 150px;
				width: 500px;
				max-height: 500px;
				overflow-y: auto;
				overflow-x: hidden;
				border-left: 5px solid #009688;
			}
			.both{
				clear: both;
			}
			.s_nav-div{
				margin:20px 0;
			}
			.s_nav .s_nav-div .s_nav-div-left{
				float: left;
				width: 110px;
				margin-left: 15px;
				color: dimgray;
			}
			.s_nav .s_nav-div .s_nav-div-right{
				color: black;
				float: left;
				width: 300px;
			}
			.s_nav .s_nav-div .s_nav-div-left .div-left-span{
				float: right;
				margin-right: 15px;
			}
			.s_nav .s_nav-div .s_nav-div-left .div-left-span span{
				height: 16px;
				background: dimgray;
			}
			.i-top{
				left: 250px;
				font-size:20px;
				color: #fff;
			}
			.s_nav .s_nav-div .s_nav-div-right ul li{
				float: left;
				cursor:pointer;
				margin-right: 24px;
			}
			.s_nav::-webkit-scrollbar:vertical{
				width: 10px;
				background-color: #F5F5F5;
			}
			.s_nav::-webkit-scrollbar-track:vertical{
				-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
				background-color: #F5F5F5;
				border-radius: 10px;
			}
			.s_nav::-webkit-scrollbar-thumb:vertical{
				border-radius: 10px;
				background-image: -webkit-gradient(
					linear,
					left bottom,
					left top,
					color-stop(0.44, rgb(122,153,217)),
					color-stop(0.72, rgb(73,125,189)),
					color-stop(0.86, rgb(28,58,148))
				);
			}
			#iframe_box div{
				-webkit-overflow-scrolling: touch;
				overflow-y: auto;
			}
			#iframe_box div iframe{
				height: 100%;
				width: 100%; 
			}
			body {
				overflow-y: auto;
				min-width: 1500px;
				min-height: 800px;
				height: 100%;
			}
		</style>
		<style type="text/css">
			.badges{
				background: red;
				animation: flash 1s linear infinite;
			}
			@keyframes flash{
				from {
					opacity: 0;
				}
				to {
					opacity: 1;
				}
			}
		</style>
	</head>
	<body>
		<header>
			<nav class="navbar navbar-fixed-top navbar-primary g-nav-bg" role="navigation" style="height: 53px;">
				<div class="container" style="width: 100%;">
					<div class="navbar-header" style="padding-right:15px;background-color:#393D49;">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
							<span class="sr-only">See You</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand layui-inline logo layui-small-hidden" href="/" style="padding-left:15px;">
							<div style="width: 50px;"></div>
						</a>
					</div>
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="background-color:#393D49;border-color:#009688!important;">
						<ul class="nav navbar-nav" style="padding-left:15px;line-height:30px;">
							<?php if(is_array($categorys)): $i = 0; $__LIST__ = $categorys;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?><li class="dropdown">
									<a href="javarcript:void(0);" class="dropdown-toggle" data-toggle="dropdown">
										<i class="<?php echo ($vo1['icon']); ?>"></i>
										&nbsp;<?php echo ($vo1['name']); ?>
										<span class="caret"></span>
									</a>
									<div class="dropdown-menu1">
										<i class="glyphicon glyphicon-triangle-top i-top" ></i>
										<div class="s_nav">
											<?php if(is_array($vo1['child'])): $i = 0; $__LIST__ = $vo1['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?><div class="s_nav-div">
													<div class="s_nav-div-left">
														<span class="div-left-span">
															<?php echo ($vo2['name']); ?>&nbsp;
															<span >&nbsp;</span>
														</span>
													</div>
													<div class="s_nav-div-right">
														<ul>
															<?php if(is_array($vo2['child'])): $i = 0; $__LIST__ = $vo2['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo3): $mod = ($i % 2 );++$i;?><li>
																	<?php if($vo3["type"] == 2): ?><a data-href="<?php echo ($vo3['url']); ?>" data-title="<?php echo ($vo3['name']); ?>" href="javascript:;" onclick="Hui_admin_tab(this)"><?php echo ($vo3['name']); ?></a>
																		<?php elseif($vo3["type"] == 3): ?>
																		<a target="_blank" href="<?php echo ($vo3['url']); ?>">
																			<?php echo ($vo3['name']); ?>
																		</a><?php endif; ?>
																</li><?php endforeach; endif; else: echo "" ;endif; ?>
														</ul>
													</div>
													<div class="both"></div>
												</div><?php endforeach; endif; else: echo "" ;endif; ?>
										<div class="both"></div>
									</div>
								</li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
						<ul class="nav navbar-nav navbar-right layui-small-hidden" style="width: 100px">
							<li class="dropdown">
								<a href="javarcript:void(0);" class="dropdown-toggle" data-toggle="dropdown" style="padding:0px; padding-top: 20px;">
									<span class="glyphicon glyphicon-envelope" style="font-size: 20px; margin-left:25px;"></span>
									<span id="zongxx" class="badge badges" style="background-color: #fa7d3c;position:relative;top:-13px;left: -15px;z-index: 999; display: none;" ></span>
								</a>
								<ul class="dropdown-menu" style="margin-top: 5px;padding: 10px;">
									<i class="glyphicon glyphicon-triangle-top" style="top:-20px;left: 150px;color: #fff;width: 100px;display: block;"></i>
									<li style="margin-top: 5px;width: 180px;" id="kytxli">
										<a data-href="<?php echo U('Ajax/tixing',array('txlx'=>1));?>" data-title="客户提醒" href="javascript:;" onClick="Polling();Hui_admin_tab(this)" class="">
											<i class="glyphicon glyphicon-log-out"></i>
											&nbsp;客户提醒
											<span id="kytx" class="badge" style="background-color: #fa7d3c;position:relative;top:-2px;left: 20px;z-index: 999;display: none;float:right;"></span>
										</a>
									</li>
								</ul>
							</li>
						</ul>
						<ul class="nav navbar-nav navbar-right layui-small-hidden" style="margin-right: 10px;">
							<li class="dropdown">
								<a href="javarcript:void(0);" class="dropdown-toggle" data-toggle="dropdown" style="padding:4px;">
									<?php if($user["touxiang"] == 1): ?><img id="useravatar" src="/Upload/Avatar/<?php echo session('gongsiid');?>/<?php echo session('username');?>_200.jpg?v=<?php echo mt_rand(1,1000000); ?>" width="42" height="42" alt="" class="layui-circle photo">
										<?php else: ?>
										<img src="/Public/images/public_photo.jpg" width="42" height="42" alt="" class="layui-circle photo"><?php endif; ?>
									<span class="caret"></span>
									<span class="">
										<?php echo ($user["ygmingcheng"]); ?>
									</span>
								</a>
								<ul class="dropdown-menu">
									<li style="font-size: 16px;">
										<a href="javascript:;" onClick="likaiyihui()" class="">
											<i class="glyphicon glyphicon-log-out"></i>
											&nbsp;离开一会
										</a>
									</li>
									<div style="line-height: 16px;">&nbsp;</div>
									<li style="font-size: 16px;">
										<a href="javascript:;" onClick="updatepass()" class="">
											<i class="glyphicon glyphicon-pencil"></i>
											&nbsp;修改密码
										</a>
									</li>
									<div style="line-height: 16px;">&nbsp;</div>
									<li style="font-size: 16px;">
										<a href="<?php echo U('Login/Logout');?>" class="">
											<i class="glyphicon glyphicon-refresh"></i>
											&nbsp;切换账户
										</a>
									</li>
									<div style="line-height: 16px;">&nbsp;</div>
									<li style="font-size: 16px;">
										<a href="<?php echo U('Login/Logout');?>" class="">
											<i class="glyphicon glyphicon-off"></i>
											&nbsp;退出登录
										</a>
									</li>
								</ul>
							</li>
						</ul>
					</div>
				</div>
			</nav>
		</header>
		<div style="height: 36px;width: 100%;position: absolute;top: 53px;" title="房佳学习版1.8.7仅供学习使用！">
			<style type="text/css">
				#znlyl{
					width:100%;
					height:36px;
					overflow:hidden;
					line-height:36px;
					font-size:18px;
					font-family:'宋体';
					background:#DDE5ED;
					color:#4682B4;
					font-weight:bold;
				}
				#znlyl #scroll_begin, #znlyl #scroll_end{
					display:inline;
				}
			</style>
			<div id="znlyl">
				<div style="width:500px;height:36px;margin:0 auto;white-space: nowrap;overflow:hidden;color:#F00;float: left;text-align: center;">
					<div>
						房佳（房产分销ERP学习版1.8.7仅供学习使用！）：
					</div>
				</div>
				<div style="min-width:1000px;width:calc(96% - 500px);height:36px;margin:0 auto;white-space: nowrap;overflow:hidden;float: left;" id="scroll_div" class="scroll_div">
					<div id="scroll_begin">
						<span style="margin-left: 60px;">
							<a title="官方网站" href="http://fj.ytsofts.cn/" target="_blank" class="ml-5" style="text-decoration:none;color:#4682B4;">
								官方网站
							</a>
						</span>
						<span style="margin-left: 60px;">
							<a title="旗舰版演示" href="http://fjdemo.ytsofts.cn" target="_blank" class="ml-5" style="text-decoration:none;color:#4682B4;">
								旗舰版演示
							</a>
						</span>
						<span style="margin-left: 60px;">
							<a title="开单大师" href="http://www.kaidandashi.cn/" target="_blank" class="ml-5" style="text-decoration:none;color:#4682B4;">
								开单大师
							</a>
						</span>
						<span style="margin-left: 60px;">
							<a title="房开源" href="http://fky.ytsofts.cn/" target="_blank" class="ml-5" style="text-decoration:none;color:#4682B4;">
								房开源
							</a>
						</span>
						<span style="margin-left: 60px;">
							<a title="房哨" href="http://fs.ytsofts.cn/" target="_blank" class="ml-5" style="text-decoration:none;color:#4682B4;">
								房哨
							</a>
						</span>
					</div>
					<div id="scroll_end"></div>
				</div>
			</div>
		</div>
		<section class="Hui-article-box" style="top: 89px;">
			<div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
				<div class="Hui-tabNav-wp">
					<ul id="min_title_list" class="acrossTab cl">
						<li class="active">
							<span title="我的桌面" data-href="welcome.html">
								我的桌面
							</span>
							<em></em>
						</li>
					</ul>
				</div>
				<div class="Hui-tabNav-more btn-group">
					<a id="js-tabNav-prev" class="btn" href="javascript:;" style="padding: 3px 7px;">
						<i class="glyphicon glyphicon-chevron-left"></i>
					</a>
					<a id="js-tabNav-next" class="btn" href="javascript:;" style="padding: 3px 7px;">
						<i class="glyphicon glyphicon-chevron-right"></i>
					</a>
				</div>
			</div>
			<div id="iframe_box" class="Hui-article">
				<div class="show_iframe">
					<div style="display:none" class="loading"></div>
					<iframe scrolling="yes" frameborder="0" src="<?php echo U('Index/welcome');?>"></iframe>
				</div>
			</div>
		</section>
		<div class="contextMenu" id="Huiadminmenu">
			<ul>
				<li id="closethis">关闭当前 </li>
				<li id="closeall">关闭全部 </li>
			</ul>
		</div>
		<script type="text/javascript" src="/Public/lib/jquery/1.9.1/jquery.min.js"></script>
		<script type="text/javascript" src="/Public/lib/layer/2.4/layer.js"></script>
		<script type="text/javascript" src="/Public/lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="/Public/static/h-ui/js/H-ui.min.js"></script>
		<script type="text/javascript" src="/Public/lib/ceshi/bootstrap-3.3.7/dist/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="/Public/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
		<script>
			$(document).ready(function(){
				$(document).off('click.bs.dropdown.data-api');
				dropdownOpen();//调用
			});
			/*
				* 鼠标划过就展开子菜单，免得需要点击才能展开
			*/
			function dropdownOpen() {
				var $dropdownLi = $('li.dropdown');
				$dropdownLi.mouseover(function() {
					$(this).addClass('open');
				}).mouseout(function() {
					$(this).removeClass('open');
				});
			}
		</script>
		<script type="text/javascript">
			$('.tab1').on('click', function(){
				layer.alert('更多功能请联系官网定制开发！');
			});
		</script>
		<script type="text/javascript">
			/*休假*/
			function xiujia(){
				layer.open({
					type: 2,
					title: '休假',
					shadeClose: true,
					shade: 0.8,
					area: ['810px', '480px'],
					content: '<?php echo U('kaoqin/xiujia');?>'
				});
			}
			/*请假*/
			function qingjia(){
				layer.open({
					type: 2,
					title: '请假',
					shadeClose: true,
					shade: 0.8,
					area: ['810px', '480px'],
					content: '<?php echo U('kaoqin/qingjia');?>'
				});
			}
			/*外出*/
			function waichu(){
				layer.open({
					type: 2,
					title: '外出',
					shadeClose: true,
					shade: 0.8,
					area: ['810px', '480px'],
					content: '<?php echo U('kaoqin/waichu');?>'
				});
			}
			/*异步修改密码*/
			function updatepass(){
				layer.open({
					type: 2,
					title: '修改密码',
					shadeClose: true,
					shade: 0.8,
					area: ['390px', '360px'],
					content: '<?php echo U('Index/updatepass');?>' //iframe的url
				});
			}
		</script>
		<script>
			$(document).ready(function(){
				$(document).bind("contextmenu",function(e){
					return false;
				});
				Polling();
			});
			function synchronous(){
				$.ajax({
					type: 'get',
					url: '<?php echo U('Index/xiaoxi');?>',
					dataType: 'json',
					success: function(data){
						if (data['data']['sh_count3']>0) {
							$('#zongxx').html(data['data']['sh_count3']);
							$('#zongxx').show();
							$('#kytx').html(data['data']['sh_count3']);
							$('#kytx').show();
							$('#kytxli').show();
						}else{
							$('#zongxx').hide();
							$('#kytx').hide();
							$('#kytxli').hide();
						}
					},
					error:function(data) {
						console.log(data.msg);
					},
				});
			}
			function Polling(){
				synchronous();
				setInterval("synchronous()", 300000);
			}
			$(function(){
				if($.cookie("lockscreen")=="1"){
					likaiyihui();
				}
			});
			function likaiyihui(){
				$.cookie("lockscreen", "1",{expires:1});
				layer.prompt({
					title: '输入密码',
					formType: 1,
					cancel: false,
					shade: 0.8,
					btn: ['解锁'],  //['确认','取消']
				},
				function(val, index){
					$.ajax({
						type: 'POST',
						url: '<?php echo U('Index/validatepass');?>',
						data: {passwd: val},
						dataType: 'json',
						success: function(data){
							//alert(data.r);
							if(data.r>0){
								$.cookie("lockscreen",null);
								layer.msg('欢迎回来!');layer.close();
							}else{
								layer.tips('再试试吧!', '.layui-layer-input', {
									tips: [1, '#0FA6D8'] //还可配置颜色
								});
							}
						},
						error:function(data) {
							console.log(data.msg);
						},	
					});
				});
			}
		</script>
		<script type="text/javascript">
			$(".navbar-nav").on("click",".tab",function(){
				Hui_admin_tab(this);
			});
			var num=0,oUl=$("#min_title_list"),hide_nav=$("#Hui-tabNav");
			/*获取顶部选项卡总长度*/
			function tabNavallwidth(){
				var taballwidth=0,
				$tabNav = hide_nav.find(".acrossTab"),
				$tabNavWp = hide_nav.find(".Hui-tabNav-wp"),
				$tabNavitem = hide_nav.find(".acrossTab li"),
				$tabNavmore =hide_nav.find(".Hui-tabNav-more");
				if (!$tabNav[0]){return}
				$tabNavitem.each(function(index, element) {
					taballwidth += Number(parseFloat($(this).width()+60))
				});
				$tabNav.width(taballwidth+25);
				var w = $tabNavWp.width();
				if(taballwidth+25>w){
					$tabNavmore.show()
				}else{
					$tabNavmore.hide();
					$tabNav.css({left:0})
				}
			}
			/*菜单导航*/
			function Hui_admin_tab(obj){
				var bStop = false,
				bStopIndex = 0,
				href = $(obj).attr('data-href'),
				title = $(obj).attr("data-title"),
				topWindow = $(window.parent.document),
				show_navLi = topWindow.find("#min_title_list li"),
				iframe_box = topWindow.find("#iframe_box");
				//console.log(topWindow);
				if(!href||href==""){
					alert("data-href不存在，v2.5版本之前用_href属性，升级后请改为data-href属性");
					return false;
				}
				if(!title){
					alert("v2.5版本之后使用data-title属性");
					return false;
				}
				if(title==""){
					alert("data-title属性不能为空");
					return false;
				}
				show_navLi.each(function() {
					if($(this).find('span').attr("data-href")==href){
						bStop=true;
						bStopIndex=show_navLi.index($(this));
						return false;
					}
				});
				if(!bStop){
					creatIframe(href,title);
					min_titleList();
				}
				else{
					show_navLi.removeClass("active").eq(bStopIndex).addClass("active");     
					iframe_box.find(".show_iframe").hide().eq(bStopIndex).show().find("iframe").attr("src",href);
				}
			}
			/*最新tab标题栏列表*/
			function min_titleList(){
				var topWindow = $(window.parent.document),
				show_nav = topWindow.find("#min_title_list"),
				aLi = show_nav.find("li");
			}
			/*创建iframe*/
			function creatIframe(href,titleName){
				var topWindow=$(window.top.document),
				show_nav=topWindow.find('#min_title_list'),
				iframe_box=topWindow.find('#iframe_box'),
				iframeBox=iframe_box.find('.show_iframe'),
				$tabNav = topWindow.find(".acrossTab"),
				$tabNavWp = topWindow.find(".Hui-tabNav-wp"),
				$tabNavmore =topWindow.find(".Hui-tabNav-more");
				var taballwidth=0;
				show_nav.find('li').removeClass("active");  
				show_nav.append('<li class="active"><span data-href="'+href+'">'+titleName+'</span><i></i><em></em></li>');
				if('function'==typeof $('#min_title_list li').contextMenu){
					$("#min_title_list li").contextMenu('Huiadminmenu', {
						bindings: {
							'closethis': function(t) {
								var $t = $(t);
								if($t.find("i")){
									$t.find("i").trigger("click");
								}
							},
							'closeall': function(t) {
								$("#min_title_list li i").trigger("click");
							},
						}
					});
				}else {} 
				var $tabNavitem = topWindow.find(".acrossTab li");
				if (!$tabNav[0]){
					return;
				}
				$tabNavitem.each(function(index, element) {
					taballwidth+=Number(parseFloat($(this).width()+60))
				});
				$tabNav.width(taballwidth+25);
				var w = $tabNavWp.width();
				if(taballwidth+25>w){
					$tabNavmore.show()}
				else{
					$tabNavmore.hide();
					$tabNav.css({left:0})
				} 
				iframeBox.hide();
				iframe_box.append('<div class="show_iframe"><div class="loading"></div><iframe frameborder="0" src='+href+'></iframe></div>');
				var showBox=iframe_box.find('.show_iframe:visible');
				showBox.find('iframe').load(function(){
					showBox.find('.loading').hide();
				});
			}
			/*关闭iframe*/
			function removeIframe(){
				var topWindow = $(window.parent.document),
				iframe = topWindow.find('#iframe_box .show_iframe'),
				tab = topWindow.find(".acrossTab li"),
				showTab = topWindow.find(".acrossTab li.active"),
				showBox=topWindow.find('.show_iframe:visible'),
				i = showTab.index();
				tab.eq(i-1).addClass("active");
				tab.eq(i).remove();
				iframe.eq(i-1).show();
				iframe.eq(i).remove();
			}
			/*关闭所有iframe*/
			function removeIframeAll(){
				var topWindow = $(window.parent.document),
				iframe = topWindow.find('#iframe_box .show_iframe'),
				tab = topWindow.find(".acrossTab li");
				for(var i=0;i<tab.length;i++){
					if(tab.eq(i).find("i").length>0){
						tab.eq(i).remove();
						iframe.eq(i).remove();
					}
				}
			}
			/*弹出层*/
			/*
			参数解释：
			title 标题
			url   请求的url
			id    需要操作的数据id
			w   弹出层宽度（缺省调默认值）
			h   弹出层高度（缺省调默认值）
			*/
			function layer_show(title,url,w,h){
				if (title == null || title == '') {
					title=false;
				};
				if (url == null || url == '') {
					url="404.html";
				};
				if (w == null || w == '') {
					w=800;
				};
				if (h == null || h == '') {
					h=($(window).height() - 50);
				};
				layer.open({
					type: 2,
					area: [w+'px', h +'px'],
					fix: false, //不固定
					maxmin: true,
					shade:0.4,
					title: title,
					content: url
				});
			}
			/*关闭弹出框口*/
			function layer_close(){
				var index = parent.layer.getFrameIndex(window.name);
				parent.layer.close(index);
			}
			$(function(){
				$(document).on("click","#min_title_list li",function(){
					var bStopIndex=$(this).index();
					var iframe_box=$("#iframe_box");
					$("#min_title_list li").removeClass("active").eq(bStopIndex).addClass("active");
					iframe_box.find(".show_iframe").hide().eq(bStopIndex).show();
				});
				$(document).on("click","#min_title_list li i",function(){
					var aCloseIndex=$(this).parents("li").index();
					$(this).parent().remove();
					$('#iframe_box').find('.show_iframe').eq(aCloseIndex).remove(); 
					num==0?num=0:num--;
					tabNavallwidth();
				});
				$(document).on("dblclick","#min_title_list li",function(){
					var aCloseIndex=$(this).index();
					var iframe_box=$("#iframe_box");
					if(aCloseIndex>0){
						$(this).remove();
						$('#iframe_box').find('.show_iframe').eq(aCloseIndex).remove(); 
						num==0?num=0:num--;
						$("#min_title_list li").removeClass("active").eq(aCloseIndex-1).addClass("active");
						iframe_box.find(".show_iframe").hide().eq(aCloseIndex-1).show();
						tabNavallwidth();
					}else{
						return false;
					}
				});
				tabNavallwidth();
				$('#js-tabNav-next').click(function(){
					num==oUl.find('li').length-1?num=oUl.find('li').length-1:num++;
					toNavPos();
				});
				$('#js-tabNav-prev').click(function(){
					num==0?num=0:num--;
					toNavPos();
				});
				function toNavPos(){
					oUl.stop().animate({'left':-num*100},100);
				}
			});
		</script>
	</body>
</html>