// JavaScript Document 11.23
document.writeln('<style> ')
document.writeln('.black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=70); } ')
document.writeln('.white_content{	display: none;	position: fixed;	_position: absolute;	top: 10%;	left: 5%;	width: 90%;	height: 80%;	z-index:1002;	overflow:auot;	padding-top: 25px;} ')
document.writeln('.layer_boxlabe{	position: absolute;	z-index:1012;	height: 25px;	width: 100%;	margin-top: -25px;	line-height: 25px;	font-size: 12px;	font-family: Verdana;	color: #999; border-bottom:3px solid #9c0;} ')
document.writeln('</style>')
document.writeln('<div id="viibox_light" class="white_content">')
document.writeln('<div class="layer_boxlabe"><span style="float:right; margin-right:9px; width:60px;"><a href="about:blank" title="关闭" target="win_viibox" onclick="hidden_viibox(this.title)" style="display:block; text-align:center; background:#9c0;	text-decoration: none; color:#fff;">关闭</a></span><span id="viibox_labe">网站会话框</span></div>')
document.writeln('<div style="background:#fff;"><iframe src="" frameborder="0" width="100%" height="100" scrolling="auto" name="win_viibox" id="win_viibox" style="height:300px;"></iframe></div>')
document.writeln('</div><div id="viibox_fade" class="black_overlay" ondblclick="hidden_viibox()"></div>')

function display_viibox(){
	document.getElementById('viibox_fade').style.display='block';
	document.getElementById('viibox_fade').style.height=document.documentElement.clientHeight;
	document.getElementById('viibox_fade').style.height=document.documentElement.scrollHeight;
	document.getElementById('viibox_fade').style.width=document.documentElement.clientWidth;
	
	document.getElementById('viibox_light').style.display='block';
	//document.getElementById('viibox_light').style.height=document.documentElement.clientHeight*0.8;
	//document.getElementById('viibox_light').style.width=document.documentElement.clientWidth*0.9;

	document.getElementById('win_viibox').style.height=document.getElementById('viibox_light').offsetHeight-25+"px";
	}
function show_viibox(){
	var evt = window.event || arguments.callee.caller.arguments[0]; // 获取event对象
	var obj = evt.srcElement || evt.target;  // 获取触发事件的源对象
	display_viibox()
	if(obj.innerText!=""){document.getElementById('viibox_labe').innerHTML=obj.innerHTML;}
	if(obj.title!=""){document.getElementById('viibox_labe').innerHTML=obj.title;}
	if(obj.href!=""){document.getElementById('win_viibox').src=obj.href;}
	return false;
	}
function hidden_viibox(){
	document.getElementById('viibox_light').style.display='none';
	document.getElementById('viibox_fade').style.display='none';
	}
function show_swf(ms){
	display_viibox()
	document.getElementById('viibox_labe').innerHTML="提示信息";
	document.getElementById('win_viibox').src="main_message.asp?mess="+ms
	}
function show_img(ms){
	display_viibox()
	document.getElementById('viibox_labe').innerHTML="提示信息";
	document.getElementById('win_viibox').src="main_message.asp?mess="+ms
	}
function scrollDoor(){
	}
scrollDoor.prototype = {
 sd : function(menus,divs,openClass,closeClass){
  var _this = this;
  if(menus.length != divs.length)
  {
   alert("菜单层数量和内容层数量不一样!");
   return false;
  }    
  for(var i = 0 ; i < menus.length ; i++)
  { 
   _this.$(menus[i]).value = i;    
   _this.$(menus[i]).onclick = function(){
     
    for(var j = 0 ; j < menus.length ; j++)
    {      
     _this.$(menus[j]).className = closeClass;
     _this.$(divs[j]).style.display = "none";
    }
    _this.$(menus[this.value]).className = openClass; 
    _this.$(menus[this.value]).blur; 
    _this.$(divs[this.value]).style.display = ""; 
   }
  }
  },
 $ : function(oid){
  if(typeof(oid) == "string")
  return document.getElementById(oid);
  return oid;
 }
}

