// 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: 15%;	left: 10%;	width: 80%;	height: 70%;	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="about:blank" 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 show_viibox(urls){
	var evt = window.event || arguments.callee.caller.arguments[0]; // 获取event对象
	var obj = evt.srcElement || evt.target;  // 获取触发事件的源对象
	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.7;
	document.getElementById('viibox_light').style.width=document.documentElement.clientWidth*0.8;

	document.getElementById('win_viibox').style.height=document.getElementById('viibox_light').offsetHeight-25+"px";
	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;}
	if(urls!=null){document.getElementById('win_viibox').src=urls;}
	return false;
	}
function hidden_viibox(){
	document.getElementById('viibox_light').style.display='none';
	document.getElementById('viibox_fade').style.display='none';
	}
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]).onmouseover = 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.$(divs[this.value]).style.filter="alpha(opacity=0)"
				document.getElementById("zzdiv").style.display="block"
				fr=100
				
    _this.$(divs[this.value]).style.display = "block"; 
				show_zzdiv()
   }
  }
  },
 $ : function(oid){
  if(typeof(oid) == "string")
  return document.getElementById(oid);
  return oid;
 }
}
function viimarquee1(div0,div1,top,timeout){
	if(document.getElementById(div0).scrollTop!=top){
		if(document.getElementById(div0).scrollTop>top){
				//document.getElementById(div0).scrollTop=document.getElementById(div0).scrollTop-document.getElementById(div0).offsetHeight
				document.getElementById(div0).scrollTop=document.getElementById(div0).scrollTop-5
				
				setTimeout("viimarquee1('"+div0+"','"+div1+"',"+top+",'"+timeout+"')",5)
			}
			else{
				document.getElementById(div0).scrollTop=document.getElementById(div0).scrollTop+5
				
				setTimeout("viimarquee1('"+div0+"','"+div1+"',"+top+",'"+timeout+"')",5)	
			}
	}
	else{
				setTimeout("viimarquee('"+div0+"','"+div1+"',"+timeout+")",timeout)
		}
}
function viimarquee(div0,div1,timeout){
	if(document.getElementById(div0).scrollTop<document.getElementById(div1).offsetHeight-document.getElementById(div0).offsetHeight){
		ntop=document.getElementById(div0).scrollTop+document.getElementById(div0).offsetHeight
		viimarquee1(div0,div1,ntop,timeout)
		
		}
		else{
			viimarquee1(div0,div1,0,timeout)
			}
	}
function show_zzdiv(){
	fr=fr-10
	document.getElementById("zzdiv").style.filter="alpha(opacity="+fr+")"
	//document.getElementById("zzdiv").filters.Alpha.Opacity=fr;
	if(fr>=0){setTimeout("show_zzdiv()",50)}else{document.getElementById("zzdiv").style.display="none"}
	}
//window.onload = function(){
// var SDmodel = new scrollDoor();
// SDmodel.sd(["s_1","s_2","s_3"],["show_1","show_2","show_3"],"a_labs","a_labx");
//}