function getLowDiv(){var num=all_div_id.length;if(num==1&&all_div_id[0]==''){return 0;};var tmp_a=[];if(num>0){for(var j=0;j<num;j++){if($('ohid_'+all_div_id[j]).style.display==''){var t=parseInt($('ohid_'+all_div_id[j]).style.height);if(isNaN(t)){t=0;};var t1=parseInt($('ohid_'+all_div_id[j]).style.top);if(isNaN(t1)){t1=0;};var h=t+t1;if(h>20){tmp_a.push(h);}}};tmp_a.shellSort();return tmp_a[tmp_a.length-1];}else{return 0;}};function openKefutong(url){openWindow(url,650,490);};function openWindow(url,w,h){window.open(url,'','top=50,left=200,width='+w+',height='+h);};function downLowDivv(id){var t=parseInt($('ohid_'+id).style.top);var l=parseInt($('ohid_'+id).style.left);var w=parseInt($('ohid_'+id).style.width);var h=parseInt($('ohid_'+id).style.height);var v=t+h;var num=all_div_id.length;if(num==1&&all_div_id[0]==''){return 0;};var tmp_a=[];if(num>0){for(var j=0;j<num;j++){if(!in_array(all_div_id[j],move_div_id)){var t1=parseInt($('ohid_'+all_div_id[j]).style.top);var l1=parseInt($('ohid_'+all_div_id[j]).style.left);var w1=parseInt($('ohid_'+all_div_id[j]).style.width);if(t1>=v&&l1<l+w&&l1>l&&id!=all_div_id[j]){move_div_id.push(all_div_id[j]);}else if(t1>=v&&l1+w1>l&&l1<l&&id!=all_div_id[j]){move_div_id.push(all_div_id[j]);}}};downLowDiv1();}else{return 0;}};function downLowDiv(id){var t=parseInt($('ohid_'+id).style.top);var l=parseInt($('ohid_'+id).style.left);var w=parseInt($('ohid_'+id).style.width);var num=all_div_id.length;if(num==1&&all_div_id[0]==''){return 0;};var tmp_a=[];if(num>0){for(var j=0;j<num;j++){if(!in_array(all_div_id[j],move_div_id)){var t1=parseInt($('ohid_'+all_div_id[j]).style.top);var l1=parseInt($('ohid_'+all_div_id[j]).style.left);var w1=parseInt($('ohid_'+all_div_id[j]).style.width);if(t1>t&&l1<l+w&&l1>l&&id!=all_div_id[j]){move_div_id.push(all_div_id[j]);}else if(t1>t&&l1+w1>l&&l1<l&&id!=all_div_id[j]){move_div_id.push(all_div_id[j]);}}};downLowDiv1();}else{return 0;}};function downLowDiv1(){var num=move_div_id.length;if(num==1&&all_div_id[0]==''){return 0;};if(num==1&&move_div_id[0]==''){return 0;};if(move_div_id1.length>=move_div_id.length){return 0;};if(num>0){for(var j=0;j<num;j++){if(!in_array(move_div_id[j],move_div_id1)){move_div_id1.push(move_div_id[j]);downLowDiv(move_div_id[j]);return false;}}}};function downLowDiv2(v){var num=move_div_id.length;if(num==1&&all_div_id[0]==''){return 0;};if(num==1&&move_div_id[0]==''){return 0;};if(num>0){for(var j=0;j<num;j++){var vv=parseInt($('ohid_'+move_div_id[j]).style.top);$('ohid_'+move_div_id[j]).style.top=vv+v+'px';}}};function adjust_d(){var v=$('alltable').style.width;var r=v.search('%');if(r>0){v=parseFloat(v);var tmp=document.body.clientWidth;if(isNaN(tmp)||tmp<2){var tmp=document.documentElement.clientWidth;};v=tmp*v/100;v=parseFloat(v);var vv=(tmp-v)/2;}else{v=parseInt(v);var tmp=document.body.clientWidth;if(isNaN(tmp)||tmp<2){var tmp=document.documentElement.clientWidth;};var vv=(tmp-v)/2;};$('alltable').style.right='';$('alltable').style.left=vv+'px';};function adjust_fix(){for(var i=0;i<_fix_a.length;i++){var o_id=_fix_a[i];var o_left=_fix_b[i];var v=parseInt($('alltable').style.left);if(isNaN(v)){v=0;};$(o_id).style.left=o_left+v+'px';}};function adjust_fix1(){for(var i=0;i<_fix_a.length;i++){var o_id=_fix_a[i];var o_top=_fix_c[i];$(o_id).style.position='absolute';var st=document.documentElement.scrollTop||window.pageYOffset;if(isNaN(st)){st=0;};var v=parseInt($('alltable').style.top);if(isNaN(v)){v=0;};$(o_id).style.top=st+o_top+v+"px";}};function mozillaAdjust(){if(Browser.isMozilla&&a_ba!='right'&&a_ba!='left'){adjust_d();adjust_fix();window.onresize=function(){adjust_d();adjust_fix();}}else{if(navigator.appVersion.indexOf("MSIE 7.0")>1||navigator.appVersion.indexOf("MSIE 8.0")>1){adjust_fix();window.onresize=function(){adjust_fix();}}else{adjust_fix1();window.onscroll=function(){adjust_fix1();}}}};function getcontop(){alltabletop=parseInt($('alltable').style.top);contop=parseInt($('table_header').style.height);var t=parseInt($('table_header').style.borderWidth);if(isNaN(t)){var t=parseInt($('table_header').style.borderTopWidth);if(!isNaN(t)){contop=contop+t;};var t=parseInt($('table_header').style.borderBottomWidth);if(!isNaN(t)){contop=contop+t;}}else{contop=contop+t*2;};headerheight=contop;if(json_command_bs!=''){$('bd_0').style.top=headerheight+'px';};var t=parseInt($('bd_10').style.padding);if(isNaN(t)){var t=parseInt($('bd_10').style.paddingTop);if(!isNaN(t)){contop=contop+t;}}else{contop=contop+t;}};function adjust_center_bd(){var v=getLowDiv();if(v==0){$('bd').height=200;}else{var v=getLowDiv()-contop;if(isNaN(v)){$('bd').height=200;}else{try{$('bd').height=v;}catch(e){}}};try{$('bd_10').style.height=parseInt($('bd').height)+'px';}catch(e){};var a=parseInt($('bd').offsetHeight);if(json_command_bs!=''&&a>100){$('bd_4').style.height=a-100+'px';};adjust_ya_mod();};function adjust_ya_mod(){var c=_ya_a.length;if(c==0){return 0;};var a=parseInt($('bd').offsetHeight)+headerheight;for(var i=0;i<c;i++){var t=$('ohid_'+_ya_a[i]).style.top;t=parseInt(t);var h=a-_ya_b[i]-t;if(!isNaN(h)&&h>20){$('ohid_'+_ya_a[i]).style.height=h+'px';try{$(_ya_a[i]+'_4').style.height=h-100+'px';}catch(e){}}}};function content_down(c_no){var c=_content_id_a.length;if(c==0){return 0;};if(isNaN(c_no)){c_no=0;};if(c_no==0){_content_have=0;};move_div_id=[];move_div_id1=[];_content_id=_content_id_a[c_no];if(_content_id!=''&&_content_id){var str=$(_content_id+'_c').style.top;var sTemp=parseFloat(str);if(isNaN(sTemp)){str=0;}else{str=sTemp;};var vv=$(_content_id+'_content').offsetHeight+50+str;var v=$('ohid_'+_content_id).offsetHeight;if(vv>v){_content_have=1;var vvv=vv-v;downLowDivv(_content_id);downLowDiv1();downLowDiv2(vvv);$('ohid_'+_content_id).style.height=vv+'px';try{$(_content_id+'_4').style.height=vv-100+'px';}catch(e){}}else if(c_no+1<c){c_no=c_no+1;content_down(c_no);}}};function checherror(){var c=_content_id_a.length;if(c==0){return 0;};_content_id=_content_id_a[0];if(_content_id!=''&&_content_id&&_content_have==1){content_down(0);getcontop();adjust_center_bd();setTimeout(checherror,100);}};function checherror1(){var c=_content_id_a.length;if(c==0){return 0;};_content_id=_content_id_a[0];if(_content_id!=''&&_content_id){content_down(0);getcontop();adjust_center_bd();}else{return;};if(_content_no+1>c){_content_no=0;c_error=c_error+1;}else{_content_no=_content_no+1;};if(c_error>20){setTimeout(checherror,100);}else{setTimeout(checherror1,100);}};function multi(blockid,count,id,mult){var v1=$(blockid+'_h3').style.cssText;var v2=$(blockid+'_h4').style.cssText;var v5=$(blockid+'_h5').style.cssText;var v4=$(blockid+'_h6').style.cssText;var link1=$(blockid+'_h1').getAttribute("link");var link2=$(blockid+'_h2').getAttribute("link");if(!mult){var mult=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}else{var mult=mult.split(',');};for(var i=1;i<=count;i++){if(i==id){$(blockid+'_la'+i).style.cssText=v2;$(blockid+'_lb'+i).style.cssText=v4;if(!isNaN(link2)&&link2>0){$(blockid+'_lb'+i).className='link_'+link2;};var v3=mult[i];if(v3!=0){var v3_a=v3.split('|');var c=v3_a.length;if(c>0){for(var j=0;j<c;j++){if(v3_a[j]){var d=v3_a[j];try{$(d).style.display='';}catch(e){}}}}}}else{$(blockid+'_la'+i).style.cssText=v1;$(blockid+'_lb'+i).style.cssText=v5;if(!isNaN(link1)&&link1>0){$(blockid+'_lb'+i).className='link_'+link1;};var v3=mult[i];if(v3!=0){var v3_a=v3.split('|');var c=v3_a.length;if(c>0){for(var j=0;j<c;j++){if(v3_a[j]){var d=v3_a[j];try{$(d).style.display='none';}catch(e){}}}}}}}};function mscrolls(v){if($(v+'_f1').offsetWidth-$(v+'_content').scrollLeft<=0){$(v+'_content').scrollLeft-=$(v+'_f').offsetWidth;}else{$(v+'_content').scrollLeft++;}};function mscrolls1(v){var a=$(v+'_content').scrollTop;$(v+'_content').scrollTop++;var b=$(v+'_content').scrollTop;if(a==b){$(v+'_content').scrollTop=0;}};function popgg(){if(popgg_dd!=1){return;};var editor_win=window.open('',"_blank",'height='+popgg_h+',width='+popgg_w+',top='+popgg_t+',left='+popgg_l+',toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no');editor_win.document.open('text/html','replace');editor_win.opener=null;editor_win.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');editor_win.document.writeln('<html>');editor_win.document.writeln('<head>');editor_win.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=utf-8">');editor_win.document.writeln('<link id="linkasd" href="'+_config_rooturl+'include/css/style_5617.css" rel="stylesheet" type="text/css" media="screen" />');editor_win.document.writeln('<link id="linkasd" href="'+_config_rooturl+'upload/moban/images/style.css" rel="stylesheet" type="text/css" media="screen" />');editor_win.document.writeln('<link id="linkasdasd" href="'+link_css+'" rel="stylesheet" type="text/css" media="screen" />');editor_win.document.writeln('</head>');editor_win.document.writeln('<body>');editor_win.document.writeln($('popgg').innerHTML);editor_win.document.writeln('</body>');editor_win.document.writeln('</html>');editor_win.document.close();};

function floatgg(){if(floatgg_d=='1'){floatgg_s=parseInt(floatgg_s);if(!isNaN(floatgg_s)){showfloat.delay=floatgg_s;$('floatd').style.display='';showfloat.init($('floatd'));}}};
function getscrollTop(){if(typeof window.pageYOffset!='undefined'){return window.pageYOffset}else if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){return document.documentElement.scrollTop}else if(typeof document.body!='undefined'){return document.body.scrollTop}}
var showfloat={
	"obj":null,
	"x":150,
	"y":160, 
	"xin":true,
	"yin":true,
	"step":1,
	"itl":1,
	"delay":10,
	"init":function(obj){
		showfloat.obj=obj;
        showfloat.itl= setInterval(showfloat.float, showfloat.delay);
		showfloat.obj.onmouseover=showfloat.start;
		showfloat.obj.onmouseout=showfloat.end;
		
		//alert(document.body.clientWidth);
		
		//alert(showfloat.obj.offsetWidth);
	},
	"float":function(){
		var L=T=0 ;
	   var tmp=document.body.clientWidth;
	   if (isNaN(tmp) || tmp<2){
		   var tmp=document.documentElement.clientWidth;
	   }
		
		var R= tmp-showfloat.obj.offsetWidth ;
		var C=$('alltable').offsetHeight;
		var B = C-showfloat.obj.offsetHeight;
		if (B>500){
		    B=500;
		}
		if (R<10){
		   //alert(R);
		   //return;
		}
		showfloat.obj.style.left = showfloat.x + document.body.scrollLeft ;
		showfloat.obj.style.top = showfloat.y + getscrollTop();
		showfloat.x = showfloat.x + showfloat.step*(showfloat.xin?1:-1);
		if (showfloat.x < L) { showfloat.xin = true; showfloat.x = L;} 
		if (showfloat.x > R) { showfloat.xin = false; showfloat.x = R;} 
		showfloat.y = showfloat.y + showfloat.step*(showfloat.yin?1:-1);
		if (showfloat.y < T) { showfloat.yin = true; showfloat.y = T;} 
		if (showfloat.y > B) { showfloat.yin = false; showfloat.y = B;} 
    },
	"start":function(){
	   clearInterval(showfloat.itl);
	   return false;
    },
	"end":function(){
	   showfloat.itl= setInterval(showfloat.float, showfloat.delay);
	   return false;
	}	
}

var Marqueen={"init":function(a,c,d){var b=a.id.replace('_content','');try{a.style.height='';a.style.width='';eval("clearInterval(Marqueen.scroll_"+b+");");}catch(e){};if(c==1){var tmp=parseInt(a.offsetWidth);var c=$('ohid_'+b).offsetWidth;if(c<tmp){tmp=c-2;};$(b+'_f2').width=tmp*2;a.style.width=tmp+'px';a.style.overflow='hidden';eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls,d,b);");a.onmouseover=function(){eval("clearInterval(Marqueen.scroll_"+b+");");};a.onmouseout=function(){eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls,d,b);");}}else if(c==2){var tmp=parseInt(a.offsetHeight/2);a.style.height=tmp+'px';a.style.overflow='hidden';eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls1,d,b);");a.onmouseover=function(){eval("clearInterval(Marqueen.scroll_"+b+");");};a.onmouseout=function(){eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls1,d,b);");}}}};var tmp_num=marqueen_a.length;if(tmp_num>1){for(var i=0;i<tmp_num-1;i++){var tmp_a=marqueen_a[i].split('|');Marqueen.init($(tmp_a[0]+'_content'),tmp_a[1],tmp_a[2]);}};




function special_asqewrqdfad(t){var b=t.getAttribute("sbgimg");var b1=t.getAttribute("sbg");var b2=t.getAttribute("sfg");if(b!='undefined'){t.setAttribute("sbgimg1",t.style.backgroundImage);t.style.backgroundImage="url("+b+")";}if(b1!='undefined'){t.setAttribute("sbg1",t.style.backgroundColor);t.style.backgroundColor=b1;}if(b2!='undefined'){t.setAttribute("sfg1",t.style.color);t.style.color=b2;}}function special_asqewrqdfad1(t){var b=t.getAttribute("sbgimg1");var b1=t.getAttribute("sbg1");var b2=t.getAttribute("sfg1");if(b!='undefined'){t.style.backgroundImage=b;}if(b1!='undefined'){t.style.backgroundColor=b1;}if(b2!='undefined'){t.style.color=b2;}}function special_asqewrqdfad2(t){var b=t.getAttribute("sbgimg");if(b!='undefined'){t.setAttribute("sbgimg1",t.src);t.src=b;}}function special_asqewrqdfad3(t){var b=t.getAttribute("sbgimg1");if(b!='undefined'){t.src=b;}};content_down(0);getcontop();adjust_center_bd();popgg();floatgg();mozillaAdjust();setTimeout(checherror1,100);

