if(top == self) {
		top.location='/'
	}

function sp(id){
	var tabArea=document.getElementById('hotarticle');

	var contents=tabArea.childNodes;
	for(i=0; i<contents.length; i++) {
		if(contents[i].className=='tabcontent'){contents[i].style.display='none';}
	}
	document.getElementById(id).style.display='';

	var tabs=document.getElementById('hotarticletabs').getElementsByTagName('a');
	for(i=0; i<tabs.length; i++) { tabs[i].className='tab'; }
	document.getElementById(id+'tab').className='tab curtab';
	document.getElementById(id+'tab').blur();
	}
function $(id){
	if(document.getElementById(id))
	return document.getElementById(id);
}
function $p(id){
	if(window.parent.document.getElementById(id))
	return window.parent.document.getElementById(id);
}
function $$(id){
	if(document.getElementsByTagName(id))
	return document.getElementsByTagName(id);
}
function $sn(obj){
	$(obj).style.display="none";
}
function $sb(obj){
	$(obj).style.display="block";
}

function scroll() {
var ul = document.getElementById("managerlist");
try {
slideLine(ul, 1000, 3, 39);
} catch (e) {}
}
function slideLine(ul, delay, speed, lh) {
var slideBox = (typeof ul == "string") ? document.getElementById(ul):ul;
var delay = delay, speed=speed, lh = lh;
var tid = null, pause = false;
var start = function () {
tid = setInterval(slide, speed);
}
var slide = function () {
if (pause) return;
var i;
slideBox.scrollTop += 1;
if (slideBox.scrollTop % lh == 0) {
clearInterval(tid);
for (i = 0; i  < 1; i ++) {
slideBox.appendChild(slideBox.getElementsByTagName("li")[0]);
}
setTimeout(start, delay);
slideBox.scrollTop = 0;
}
}
slideBox.onmouseover = function () {pause = true;}
slideBox.onmouseout = function () {pause = false;}
setTimeout(start, delay);
}

function window_load(){
				documentbody = document.documentElement.clientHeight > document.body.clientHeight ? document.documentElement : document.body;
				var LMenuH = $('LMenu')
				LMenuH.style.height = documentbody.clientHeight-250 +'px';
				LMenuH.style.left = 0; //document.body.clientWidth - 6;
				LMenuH.style.top = documentbody.scrollTop + 'px'; //document.body.clientWidth - 6;
				document.onscroll = function(){ 
												LMenuH.style.height=documentbody.clientHeight +'px';
												LMenuH.style.top=documentbody.scrollTop + 'px'; 
											}
											
				document.onresize = function(){ 
												LMenuH.style.height=documentbody.clientHeight +'px';
												LMenuH.style.top=documentbody.scrollTop + 'px'; 
											}
				
			}
			
/**
*设置父窗口iframe的高度
**/
function LoadHeight(){
if(window.name){
	//window.parent.document.getElementById(window.name).style.height = document.body.scrollHeight+"px";
		if($p('ListLeft') && $p('ListRight')){		
		if($p('ListLeft').clientHeight < $p('ListRight').clientHeight){
			$p('ListLeft').style.height=$p('ListRight').clientHeight-2+"px"
		}
		else{
		$p('ListLeft').style.height="100%"
		if($p('ListLeft').clientHeight < $p('ListRight').clientHeight)
			$p('ListLeft').style.height=$p('ListRight').clientHeight-2+"px"
		}
	}
	}
}
/**
*设置左栏的高度
**/
function SetLeftHeight(){
	
	if(('ListLeft') && $('ListRight')){		
		if($('ListLeft').clientHeight < $('ListRight').clientHeight){
			$('ListLeft').style.height=$('ListRight').clientHeight-2+"px"
		}
		else{
		$('ListLeft').style.height="100%"
		if($('ListLeft').clientHeight < $('ListRight').clientHeight)
			$('ListLeft').style.height=$('ListRight').clientHeight-2+"px"
		}
	}
}