/*system_start*/
var Site_Url="http://www.huaerhunli.com";
var Xml_Path="/xml";
            var Html_User = "{#Html_Title#}";

            var host = window.location.host;

	        if(Site_Url.lastIndexOf("/")<Site_Url.length-1) Site_Url = Site_Url+"/";
	        var start = Site_Url.substring(8,Site_Url.length).indexOf("/")+8;
	        var Site_Url1 = "http://"+host+Site_Url.substring(start);
	        Site_Url = Site_Url1;
            if(Site_Url.lastIndexOf("/")==Site_Url.length-1) Site_Url=Site_Url.substring(0,Site_Url.length-1);
            /*system_end*/

/*model_start*/

/*model_end*//*pagekeyword_start*/
 function PageKeyword(){$.get(Site_Url+"/pagestyle/kd.asp",function(data){var items=$(data).find("item");if(items.length==0)return;$("div#Html_Main > div[type='dragDiv'][pKey='true']").each(function(index,dragDiv){$(dragDiv).find("div[type='dragDivBody']:first").each(function(index,dragDivBody){var html=$(dragDivBody).html();items.each(function(index,item){item=$(item);var value=item.attr("value");html=html.replace(new RegExp(value,"g"),"<a href=\""+item.attr("link")+"\" target=\"_blank\" style=\"color:#00F\">"+value+"</a>");});$(dragDivBody).html(html);});});});}
  /*pagekeyword_end*//*pageheight_start*/
function clsPageHeight(intAllOffset,isStartPage){var autoAdjustarr=[];var autoAdjustArrHeight=new Array();var allDragArray=[];{var Html_Main=$("div#Html_Main");var dragDivs=Html_Main.children("div[type='dragDiv'][autoAdjust='1']");if(dragDivs.length>1){autoAdjustarr=$.makeArray(dragDivs);dragDivs.each(function(){autoAdjustArrHeight.push({"id":this.id,"height":$(this).children("div[type='dragDivBody']")[0].childNodes[0].offsetHeight});});autoAdjustarr.sort(function(a,b){return(parseInt(a.style.top)-parseInt(b.style.top));});}var allDrag=$("div#Html_Main").children("div[type='dragDiv']");allDragArray=$.makeArray(allDrag);}function checkBelow(a,b){var accuracy=30;var aLeft=$(a).offset().left;var aTop=$(a).offset().top;var bLeft=$(b).offset().left;var bTop=$(b).offset().top;return(aTop+$(a).height()-accuracy<bTop)&&(aLeft<bLeft+accuracy)&&((aLeft+$(a).width())>(bLeft+$(b).width()-accuracy));};function makeLinkedArray(a,arr){var _arr=new Array();_arr.push(a);for(var j=0;j<arr.length;j++){if(checkBelow(a,arr[j]))_arr.push(arr[j]);}return _arr;};var autoAdjustLinkedArr=new Array();for(var i=0;i<autoAdjustarr.length;i++){var arr=makeLinkedArray(autoAdjustarr[i],allDragArray);autoAdjustLinkedArr.push(arr);}if((intAllOffset+"").indexOf(",")<0)intAllOffset='0,0,0';var inAll=intAllOffset.split(",");var intTopOffset=parseInt(inAll[0]);var intMainOffset=parseInt(inAll[1]);var intBottomOffset=parseInt(inAll[2]);var clearPx=function(){return parseInt(arguments[0])||0;};var shellSort=function(arrDivList){for(var step=arrDivList.length>>1;step>0;step>>=1){for(var i=0;i<step;++i){for(var j=i+step;j<arrDivList.length;j+=step){var k=j;value=arrDivList[j];while(k>=step&&arrDivList[k-step].cssPos.top>value.cssPos.top){arrDivList[k]=arrDivList[k-step];k-=step;}arrDivList[k]=value;}}}return arrDivList;};var parseColumn=function(obj){var _top,_body,_bottom,_body_container;var _bodyPH=0;var _isCustomBorder=obj.className.indexOf("border_c_")==0;for(var i=0;i<obj.childNodes.length;i++){switch(obj.childNodes[i].getAttribute("type")){case "dragDivHead":_top=obj.childNodes[i];break;case "dragDivBody":_body=obj.childNodes[i];for(var j=0;j<_body.childNodes.length;j++){if(_body.childNodes[j].nodeType==1){_bodyPH+=_body.childNodes[j].offsetHeight;}}break;case "dragDivBottom":_bottom=obj.childNodes[i];break;}}return{isCustomBorder:_isCustomBorder,head:_top,body:_body,bodyPH:_bodyPH,bottom:_bottom};};var inRect=function(oPoint,oArea){return((oPoint.y>=oArea.y1&&oPoint.y<=oArea.y2)&&(oPoint.x>=oArea.x1&&oPoint.x<=oArea.x2));};var rightRect=function(oPoint,oArea){return(oPoint.x>=oArea.x2)&&(oPoint.y>=oArea.y1&&oPoint.y<=oArea.y2);};var leftRect=function(oPoint,oArea){return(oPoint.x<=oArea.x1)&&(oPoint.y>=oArea.y1&&oPoint.y<=oArea.y2);};var findAdjustObj=function(checkArea,checkUp,curArea){var rtnArray=[];var _obj=null;var _leftP1={x:0,y:0};var _leftP2={x:0,y:0};var _rightP1={x:0,y:0};var _rightP2={x:0,y:0};for(var i=0;i<_Columns[curArea].length;i++){_obj=_Columns[curArea][i];_leftP1.x=_obj.column.offsetLeft;_leftP1.y=_obj.column.offsetTop;_leftP2.x=_leftP1.x;_leftP2.y=_leftP1.y+_obj.column.offsetHeight;_rightP1.x=_leftP1.x+_obj.column.offsetWidth;_rightP1.y=_leftP1.y;_rightP2.x=_rightP1.x;_rightP2.y=_leftP2.y;if(checkUp){if(inRect(_leftP2,checkArea)||inRect(_rightP2,checkArea)||(leftRect(_leftP2,checkArea)&&rightRect(_rightP2,checkArea))){rtnArray.push(_obj);}}else{if(inRect(_leftP1,checkArea)||inRect(_rightP1,checkArea)||(leftRect(_leftP1,checkArea)&&rightRect(_rightP1,checkArea))){rtnArray.push(_obj);}}}return rtnArray;};var getCssValue=function(cssTag,styleName){var rules=null;for(var i=0;i<document.styleSheets.length;i++){rules=document.styleSheets[i].rules;if(!rules){rules=document.styleSheets[i].cssRules;}for(var j=0;j<rules.length;j++){if(rules[j].selectorText=="."+cssTag){return rules[j].style[styleName];}}}return "";};var adjustColumnHeight=function(obj,topOffset,curArea){if(topOffset&&topOffset!=0){obj.cssPos.top-=topOffset;obj.column.style.top=obj.cssPos.top+"px";}if(window.navigator.userAgent.indexOf("Firefox")>=0){obj.isAdjust=1;}var _startOffset=0;var _startY2=obj.column.offsetTop+obj.cssPos.height;if(obj.columnInner.isCustomBorder){if(obj.isAdjust){var _bottomH=0;var _headH=0;if(obj.columnInner.bottom){_bottomH=obj.columnInner.bottom.offsetHeight;}if(obj.columnInner.head){_headH=obj.columnInner.head.offsetHeight;}if(parseInt(jQuery("#"+obj.column.id).data("customBottom"))>=0){}else{var customBottom=(obj.column.offsetHeight-parseInt(obj.columnInner.body.style.height)-obj.columnInner.body.offsetTop);jQuery("#"+obj.column.id).data("customBottom",customBottom);}_startOffset=obj.column.offsetHeight-(obj.columnInner.body.scrollHeight+obj.columnInner.body.offsetTop+jQuery("#"+obj.column.id).data("customBottom")+_bottomH+_headH);if(_startOffset!=0){if(window.navigator.userAgent.indexOf("Firefox")>=0&&_startOffset<0){_startOffset=0;}var _newHeight=obj.cssPos.height-_startOffset;customColumnReduce({obj:obj.column,child:[obj.columnInner.head,obj.columnInner.body,obj.columnInner.bottom],size:{width:obj.cssPos.width,height:obj.cssPos.height},resize:{width:obj.cssPos.width,height:_newHeight}});obj.cssPos.width=clearPx(obj.column.style.width);obj.cssPos.height=clearPx(obj.column.style.height);}}}else{var _head=0,_body=0,_bottom=0;var _startY2=obj.column.offsetTop+obj.cssPos.height;var clsName;if(obj.isAdjust){if(obj.columnInner.head){_head=obj.columnInner.head.offsetHeight;_head+=parseInt(obj.columnInner.head.style.marginTop)||0;_head+=parseInt(obj.columnInner.head.style.marginBottom)||0;}_body=obj.columnInner.bodyPH;if(obj.columnInner.bottom){_bottom=obj.columnInner.bottom.offsetHeight;}}else{if(obj.columnInner==null){_body=obj.cssPos.height;}else{_head=obj.columnInner.head;if(_head){_head=_head.offsetHeight;clsName=obj.columnInner.head.className}else{_head=0;}_head+=parseInt(getCssValue(obj.column.className,"borderTopWidth"))||0;_bottom=obj.columnInner.bottom;if(_bottom){_bottom=_bottom.offsetHeight;clsName=obj.columnInner.bottom.className;_bottom+=parseInt(getCssValue(clsName,"borderTopWidth"))||0;}else{_bottom=0;}_bottom+=parseInt(getCssValue(obj.column.className,"borderBottomWidth"))||0;clsName=obj.columnInner.body.className;_body=obj.cssPos.height-_head-_bottom-(parseInt(getCssValue(clsName,"marginTop"))||0)-(parseInt(getCssValue(clsName,"marginBottom"))||0);}}if(obj.columnInner!=null){if(_body<=0)_body=0;if(window.navigator.userAgent.indexOf("Firefox")>=0){if(parseInt(obj.columnInner.body.style.height)<_body)obj.columnInner.body.style.height=_body+"px";}else{obj.columnInner.body.style.height=_body+"px";}}var _tmpHeight=_head+_body+_bottom;obj.column.style.height=_tmpHeight+"px";_startOffset=obj.cssPos.height-_tmpHeight;obj.cssPos.height=_tmpHeight;}if(_startOffset!=0&&obj.isAdjust){var _ObjArray=findAdjustObj({x1:obj.column.offsetLeft,y1:_startY2,x2:obj.column.offsetLeft+obj.column.offsetWidth,y2:_AreaArray[curArea].offsetHeight},false,curArea);var _ObjUpArray=null;var _UpAreaMaxHeight=0;for(var i=0;i<_ObjArray.length;i++){_ObjUpArray=findAdjustObj({x1:_ObjArray[i].column.offsetLeft,y1:_ObjArray[i].column.offsetTop-_startOffset,x2:_ObjArray[i].column.offsetLeft+_ObjArray[i].column.offsetWidth,y2:_ObjArray[i].column.offsetTop},true,curArea);if(false){for(var j=0;j<_ObjUpArray.length;j++){if(_ObjUpArray[j].column.offsetTop+_ObjUpArray[j].column.offsetHeight>_UpAreaMaxHeight){_UpAreaMaxHeight=_ObjUpArray[j].column.offsetTop+_ObjUpArray[j].column.offsetHeight;}}adjustColumnHeight(_ObjArray[i],_startOffset-(_UpAreaMaxHeight-(obj.column.offsetTop+obj.column.offsetHeight)),curArea);}else{adjustColumnHeight(_ObjArray[i],_startOffset,curArea);}}}};var customColumnReduce=function(para){var getBorder=function(){var rtn={title:{},more:{},content:{}};var findBorder=function(obj,isAll){if(!obj){return;}var _left=(parseInt(obj.style['left'])||0);var _top=(parseInt(obj.style['top'])||0);var _width=(parseInt(obj.style['width'])||0);var _height=(parseInt(obj.style['height'])||0);var rtnValue={left:_left,top:_top,right:para.size.width-(_left+_width),bottom:para.size.height-(_top+_height)};if(!isAll){if(rtnValue.left>rtnValue.right){rtnValue.left=NaN;}else{rtnValue.right=NaN;}if(rtnValue.top>rtnValue.bottom){rtnValue.top=NaN;}else{rtnValue.bottom=NaN;}}return rtnValue;};rtn.title=findBorder(para.child[0],false);rtn.more=findBorder(para.child[2],false);rtn.content=findBorder(para.child[1],true);return rtn;};var setBorder=function(obj,pos,isSide){var _top=0,_left=0,_width=0,_height=0;if(isSide){if(isNaN(pos.top)&&!isNaN(pos.bottom)){_top=obj.parentNode.offsetHeight-(pos.bottom+obj.offsetHeight);obj.style['top']=_top+'px';}if(isNaN(pos.left)&&!isNaN(pos.right)){_left=obj.parentNode.offsetWidth-(pos.right+obj.offsetWidth);obj.style['left']=_left+'px';}}else{_width=obj.parentNode.offsetWidth-(pos.left+pos.right);_height=obj.parentNode.offsetHeight-(pos.top+pos.bottom);obj.style['width']=Math.abs(_width)+'px';obj.style['height']=Math.abs(_height)+'px';}};var actualWH=function(pos){var rtn={width:0,height:0};var chk=function(obj,pn){var tmp=0;if(obj){tmp=obj.offsetTop+obj.offsetHeight;if(!isNaN(pos[pn].bottom)){tmp+=pos[pn].bottom;}if(rtn.height<tmp){rtn.height=tmp;}tmp=obj.offsetLeft+obj.offsetWidth;if(!isNaN(pos[pn].right)){tmp+=pos[pn].right;}if(rtn.width<tmp){rtn.width=tmp;}}};chk(para.child[0],'title');chk(para.child[2],'more');chk(para.child[1],'content');return rtn;};var childBorder=getBorder();var minW=(parseInt(para.obj.getAttribute("minWidth"))||100);var minH=(parseInt(para.obj.getAttribute("minHeight"))||100);var endOffsetHeight=(minH>para.resize.height)?minH:para.resize.height;var endOffsetWidth=(minW>para.resize.width)?minW:para.resize.width;para.obj.style['width']=endOffsetWidth+'px';para.obj.style['height']=endOffsetHeight+"px";if(para.child[0]){setBorder(para.child[0],childBorder.title,true);}if(para.child[2]){setBorder(para.child[2],childBorder.more,true);}if(para.child[1]){setBorder(para.child[1],childBorder.content,false);}var actWH=actualWH(childBorder);if((actWH.width>minW&&actWH.width!=minW)||(actWH.height>minH&&actWH.height!=minH)){para.obj.style['width']=actWH.width+'px';para.obj.style['height']=actWH.height+"px";if(para.child[0]){setBorder(para.child[0],childBorder.title,true);}if(para.child[2]){setBorder(para.child[2],childBorder.more,true);}if(para.child[1]){setBorder(para.child[1],childBorder.content,false);}}};function customColumnReduce(para){var getBorder=function(){var rtn={title:{},more:{},content:{}};var findBorder=function(obj,isAll){if(!obj){return;}var _left=(parseInt(obj.style['left'])||0);var _top=(parseInt(obj.style['top'])||0);var _width=(parseInt(obj.style['width'])||0);var _height=(parseInt(obj.style['height'])||0);var rtnValue={left:_left,top:_top,right:para.size.width-(_left+_width),bottom:para.size.height-(_top+_height)};if(!isAll){if(rtnValue.left>rtnValue.right){rtnValue.left=NaN;}else{rtnValue.right=NaN;}if(rtnValue.top>rtnValue.bottom){rtnValue.top=NaN;}else{rtnValue.bottom=NaN;}}return rtnValue;};rtn.title=findBorder(para.child[0],false);rtn.more=findBorder(para.child[2],false);rtn.content=findBorder(para.child[1],true);return rtn;};var setBorder=function(obj,pos,isSide){var _top=0,_left=0,_width=0,_height=0;if(isSide){if(isNaN(pos.top)&&!isNaN(pos.bottom)){_top=obj.parentNode.offsetHeight-(pos.bottom+obj.offsetHeight);obj.style['top']=_top+'px';}if(isNaN(pos.left)&&!isNaN(pos.right)){_left=obj.parentNode.offsetWidth-(pos.right+obj.offsetWidth);obj.style['left']=_left+'px';}}else{_width=obj.parentNode.offsetWidth-(pos.left+pos.right);_height=obj.parentNode.offsetHeight-(pos.top+pos.bottom);obj.style['width']=Math.abs(_width)+'px';obj.style['height']=Math.abs(_height)+'px';}};var actualWH=function(pos){var rtn={width:0,height:0};var chk=function(obj,pn){var tmp=0;if(obj){tmp=obj.offsetTop+obj.offsetHeight;if(!isNaN(pos[pn].bottom)){tmp+=pos[pn].bottom;}if(rtn.height<tmp){rtn.height=tmp;}tmp=obj.offsetLeft+obj.offsetWidth;if(!isNaN(pos[pn].right)){tmp+=pos[pn].right;}if(rtn.width<tmp){rtn.width=tmp;}}};chk(para.child[0],'title');chk(para.child[2],'more');chk(para.child[1],'content');return rtn;};var childBorder=getBorder();var minW=(parseInt(para.obj.getAttribute("minWidth"))||100);var minH=(parseInt(para.obj.getAttribute("minHeight"))||100);var endOffsetHeight=(minH>para.resize.height)?minH:para.resize.height;var endOffsetWidth=(minW>para.resize.width)?minW:para.resize.width;para.obj.style['width']=endOffsetWidth+'px';para.obj.style['height']=endOffsetHeight+"px";if(para.child[0]){setBorder(para.child[0],childBorder.title,true);}if(para.child[2]){setBorder(para.child[2],childBorder.more,true);}if(para.child[1]){setBorder(para.child[1],childBorder.content,false);}var actWH=actualWH(childBorder);if((actWH.width>minW&&actWH.width!=minW)||(actWH.height>minH&&actWH.height!=minH)){para.obj.style['width']=actWH.width+'px';para.obj.style['height']=actWH.height+"px";if(para.child[0]){setBorder(para.child[0],childBorder.title,true);}if(para.child[2]){setBorder(para.child[2],childBorder.more,true);}if(para.child[1]){setBorder(para.child[1],childBorder.content,false);}}};function ColumnReductive(objColumn,_w,_h){var columnInfo=splitColumnItem(objColumn);if(/^border_c_\w*$/.test(objColumn.className)){return;}var cssArray=null,i=0;var _tWidth=0;cssArray=GetCssValue("."+objColumn.className,["borderLeftWidth","borderRightWidth"]);for(i=0;i<cssArray.length;i++){_tWidth+=(parseInt(cssArray[i])||0);}var cssPaddingArray=GetCssValue("."+objColumn.className,["paddingLeft","paddingRight"]);for(i=0;i<cssPaddingArray.length;i++){cssPaddingArray[i]=(parseInt(cssPaddingArray[i])||0);}_w-=(cssPaddingArray[0]+cssPaddingArray[1]);cssArray=GetCssValue("."+columnInfo.body.obj.className,["marginLeft","marginRight","marginTop","marginBottom"]);for(i=0;i<cssArray.length;i++){cssArray[i]=(parseInt(cssArray[i])||0);}columnInfo.body.obj.style.width=Math.abs(_w-(cssArray[0]+cssArray[1]+_tWidth))+"px";columnInfo.body.obj.style.height=Math.abs(_h-(columnInfo.head.height+columnInfo.bottom.height)-(cssArray[2]+cssArray[3]))+"px";_w=columnInfo.body.obj.offsetWidth+cssArray[0]+cssArray[1]+_tWidth;if(columnInfo.head.obj){cssArray=GetCssValue("."+columnInfo.head.obj.className,["marginLeft","marginRight"]);for(i=0;i<cssArray.length;i++){cssArray[i]=(parseInt(cssArray[i])||0);}columnInfo.head.obj.style.width=(_w-(cssArray[0]+cssArray[1]+_tWidth))+"px";}if(columnInfo.bottom.obj){cssArray=GetCssValue("."+columnInfo.bottom.obj.className,["marginLeft","marginRight"]);for(i=0;i<cssArray.length;i++){cssArray[i]=(parseInt(cssArray[i])||0);}columnInfo.bottom.obj.style.width=(_w-(cssArray[0]+cssArray[1]+_tWidth))+"px";if(columnInfo.bottom.obj.innerHTML.isNullOrEmpty()&&(parseInt(GetCssValue("."+columnInfo.bottom.obj.className,["height"])[0])||0)<=0){columnInfo.bottom.obj.style.fontSize="0px";columnInfo.bottom.obj.style.height="0px";columnInfo.bottom.obj.style.lineHeight="0px";}}objColumn.style.width=_w+"px";objColumn.style.height=_h+"px";};var _AreaArray=[];var _Columns=[];this.init=function(){window.setTimeout("objPageHeight.startCheck1();",10);};function adjustHeight(arr,h){if(h>0){for(var i=0;i<arr.length;i++){arr[i].style.top=parseInt(arr[i].style.top)+h+"px";if(arr[i].offsetTop+arr[i].offsetHeight>$(".Html_Main_Class").height()){$(".Html_Main_Class").height(arr[i].offsetTop+arr[i].offsetHeight);}}}else{for(var i=0;i<arr.length;i++){arr[i].style.top=parseInt(arr[i].style.top)+h+"px";}var maxHeight=0;$(allDragArray).each(function(){if(maxHeight<this.offsetTop+this.offsetHeight)maxHeight=this.offsetTop+this.offsetHeight;});$(".Html_Main_Class").height(maxHeight);}};this.startCheck1=function(){for(var i=0;i<_Columns.length;i++){for(var j=0;j<_Columns[i].length;j++){if(_Columns)adjustColumnHeight(_Columns[i][j],0,i);}if(i<=2){var maxHeightObj=null;var maxHeight=0;var tmpBtm=0;for(var j=0;j<_Columns[i].length;j++){maxHeightObj=_Columns[i][j];tmpBtm=maxHeightObj.column.offsetTop+maxHeightObj.column.offsetHeight;if(maxHeight<tmpBtm){maxHeight=tmpBtm;}}if(i==0)maxHeight+=(intTopOffset+(parseInt(getCssValue(_AreaArray[i].className,"borderBottomWidth"))||0));if(i==1)maxHeight+=(intMainOffset+(parseInt(getCssValue(_AreaArray[i].className,"borderBottomWidth"))||0));if(i==2)maxHeight+=(intBottomOffset+(parseInt(getCssValue(_AreaArray[i].className,"borderBottomWidth"))||0));if(isStartPage!=true){_AreaArray[i].style.height=maxHeight+"px";}}}};this.startCheck=function(e){var h=100;var oldHeight=0;var e=e||window.event;var t=e.target||e.srcElement;var dragDivBody=$(t).parents("div[type='dragDivBody']");var dragDiv=$(t).parents("div[type='dragDiv']");$(autoAdjustArrHeight).each(function(){if(this.id==dragDiv.attr("id")){oldHeight=this.height;this.height=dragDivBody[0].scrollHeight;}});h=dragDivBody[0].scrollHeight-oldHeight;var d=dragDiv[0];var dh=dragDiv.children("div[type='dragDivHead']")[0];var db=dragDiv.children("div[type='dragDivBody']")[0];var df=dragDiv.children("div[type='dragDivBottom']")[0];if(d.getAttribute("isCustom")=="0")ColumnReductive(d,d.offsetWidth,d.offsetHeight+h);else customColumnReduce({obj:d,child:[db,db,db],size:{width:d.offsetWidth,height:d.offsetHeight},resize:{width:d.offsetWidth,height:d.offsetHeight+h}});for(var i=0;i<autoAdjustLinkedArr.length;i++){if(autoAdjustLinkedArr[i][0].id==dragDiv.attr("id"))adjustHeight(autoAdjustLinkedArr[i].slice(1),h);}};{if(typeof intTopOffset=="undefined")intTopOffset=0;if(typeof intMainOffset=="undefined")intMainOffset=0;if(typeof intBottomOffset=="undefined")intBottomOffset=0;var _mainBody=document.getElementById("Html_Container");var _clmTmp=null;var _CanvasArray=[];var _CanvasColumns=[];for(var i=0;i<_mainBody.childNodes.length;i++){if(_mainBody.childNodes[i].nodeType==1){var _tmpArray=[];for(var j=0;j<_mainBody.childNodes[i].childNodes.length;j++){if(_mainBody.childNodes[i].childNodes[j].nodeType==1){_clmTmp=_mainBody.childNodes[i].childNodes[j];switch(_clmTmp.getAttribute("type")){case "dragDiv":_tmpArray.push({column:_clmTmp,isAdjust:_clmTmp.getAttribute("autoAdjust")=="1",cssPos:{top:clearPx(_clmTmp.style.top),left:clearPx(_clmTmp.style.left),width:clearPx(_clmTmp.style.width),height:clearPx(_clmTmp.style.height)},columnInner:parseColumn(_clmTmp)});break;case "dragCanvas":_tmpArray.push({column:_clmTmp,isAdjust:false,cssPos:{top:clearPx(_clmTmp.style.top),left:clearPx(_clmTmp.style.left),width:clearPx(_clmTmp.style.width),height:clearPx(_clmTmp.style.height)},columnInner:null});_CanvasArray.push(_clmTmp);var _tmpCanvasArray=[];for(var k=0;k<_CanvasArray[_CanvasArray.length-1].childNodes.length;k++){_clmTmp=_CanvasArray[_CanvasArray.length-1].childNodes[k];if(_clmTmp.getAttribute("type")=="dragDiv"){_tmpCanvasArray.push({column:_clmTmp,isAdjust:_clmTmp.getAttribute("autoAdjust")=="1",cssPos:{top:clearPx(_clmTmp.style.top),left:clearPx(_clmTmp.style.left),width:clearPx(_clmTmp.style.width),height:clearPx(_clmTmp.style.height)},columnInner:parseColumn(_clmTmp)});}}shellSort(_tmpCanvasArray);_CanvasColumns.push(_tmpCanvasArray);break;}}}shellSort(_tmpArray);_Columns.push(_tmpArray);_AreaArray.push(_mainBody.childNodes[i]);}}_Columns=_Columns.concat(_CanvasColumns);_AreaArray=_AreaArray.concat(_CanvasArray);}} 
/*pageheight_end*//*navigator_start*/
if(typeof Com=="undefined")Com={};if(typeof Com.Loonyee=="undefined")Com.Loonyee={};(function(){if(typeof Com.Loonyee.Misc=="undefined")Com.Loonyee.Misc={};Com.Loonyee.Misc.Security={Base64:function(){var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);this.Encode=function(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i<len){c1=str.charCodeAt(i++)&0xff;if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break;}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break;}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F);}return out;};this.Decode=function(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i<len){do{c1=base64DecodeChars[str.charCodeAt(i++)&0xff];}while(i<len&&c1==-1);if(c1==-1)break;do{c2=base64DecodeChars[str.charCodeAt(i++)&0xff];}while(i<len&&c2==-1);if(c2==-1)break;out+=String.fromCharCode((c1<<2)|((c2&0x30)>>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3];}while(i<len&&c3==-1);if(c3==-1)break;out+=String.fromCharCode(((c2&0XF)<<4)|((c3&0x3C)>>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4];}while(i<len&&c4==-1);if(c4==-1)break;out+=String.fromCharCode(((c3&0x03)<<6)|c4);}return out;};this.u16to8=function(str){var out,i,len,c;out="";len=str.length;for(i=0;i<len;i++){c=str.charCodeAt(i);if((c>=0x0001)&&(c<=0x007F)){out+=str.charAt(i);}else if(c>0x07FF){out+=String.fromCharCode(0xE0|((c>>12)&0x0F));out+=String.fromCharCode(0x80|((c>>6)&0x3F));out+=String.fromCharCode(0x80|((c>>0)&0x3F));}else{out+=String.fromCharCode(0xC0|((c>>6)&0x1F));out+=String.fromCharCode(0x80|((c>>0)&0x3F));}}return out;};this.u8to16=function(str){var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i<len){c=str.charCodeAt(i++);switch(c>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charAt(i-1);break;case 12:case 13:char2=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x1F)<<6)|(char2&0x3F));break;case 14:char2=str.charCodeAt(i++);char3=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x0F)<<12)|((char2&0x3F)<<6)|((char3&0x3F)<<0));break;}}return out;}}}})();(function(){Com.Loonyee.Page={NavigatorService:function(){var arrNavigatorDaemon=new Array();this.Add=function(strColumnID,blnMainVertical,blnSubVertical,strSubTableContent,intNavMenuWidth,intNavWidth,intNavHeight,strNavOut,strNavOver,intSubWidth,intSubHeight,strSubOut,strSubOver,intSeparaterWidth,intSeparaterHeight){var intPos=arrNavigatorDaemon.length;arrNavigatorDaemon[intPos]=new Com.Loonyee.Page.NavigatorDaemon(strColumnID,blnMainVertical,blnSubVertical,strSubTableContent,intNavMenuWidth,intNavWidth,intNavHeight,strNavOut,strNavOver,intSubWidth,intSubHeight,strSubOut,strSubOver,intSeparaterWidth,intSeparaterHeight);arrNavigatorDaemon[intPos].Init();}},NavigatorDaemon:function(strColumnID,blnMainVertical,blnSubVertical,strSubTableContent,intNavMenuWidth,intNavWidth,intNavHeight,strNavOut,strNavOver,intSubWidth,intSubHeight,strSubOut,strSubOver,intSeparaterWidth,intSeparaterHeight){var ref=this;this.id=strColumnID;var container=$("div#NavMenu_"+(blnMainVertical?"V":"H")+"_"+strColumnID);var submenu=null;var timer=null;var blnNavBgExsits=(strNavOut&&strNavOut.length>0)||(strNavOver&&strNavOver.length>0);var blnSubBgExsits=(strSubOut&&strSubOut.length>0)||(strSubOver&&strSubOver.length>0);var intNavPaddingWidth=65532;var intSubPaddingWidth=65532;this.Init=function(){InitBgImage();InitMainmenu();InitSubmenu();};var InitBgImage=function(){if(strNavOut&&strNavOut.length>0){var img=new Image();img.src=strNavOut;}if(strNavOver&&strNavOver.length>0){var img=new Image();img.src=strNavOver;}if(strSubOut&&strSubOut.length>0){var img=new Image();img.src=strSubOut;}if(strSubOver&&strSubOver.length>0){var img=new Image();img.src=strSubOver;}};var InitMainmenu=function(){if(container.length==0)return;container.find("td[className != 'Nav_Separate']").each(function(index,tdCell){tdCell=$(tdCell);var span=tdCell.children('span:first');span.bind("mouseover",function(evt){var eventTd=$(evt.srcElement||evt.target).parent("td");eventTd.removeClass("Nav_Out_{#Direction#}".replace(/\{#Direction#\}/g,blnMainVertical?"V":"H"));eventTd.addClass("Nav_Over_{#Direction#}".replace(/\{#Direction#\}/g,blnMainVertical?"V":"H"));if(blnNavBgExsits){var img=eventTd.children('img:first');if(img.length==0){img=$('<img />');img.css({"position":"absolute","z-index":"-1","top":"0px","left":"0px"});img.height(strNavOver.length>0?eventTd[0].offsetHeight:0);img.appendTo(eventTd);}img.attr('src',strNavOver);img.width(strNavOver.length>0?eventTd[0].offsetWidth:0);}ShowSubmenu(evt);});span.bind("mousemove",KeepSubmenu);span.bind('mouseout',function(evt){var eventTd=$(evt.srcElement||evt.target).parent("td");eventTd.removeClass("Nav_Over_{#Direction#}".replace(/\{#Direction#\}/g,blnMainVertical?"V":"H"));eventTd.addClass("Nav_Out_{#Direction#}".replace(/\{#Direction#\}/g,blnMainVertical?"V":"H"));if(blnNavBgExsits){var img=eventTd.children('img:first');if(img.length==0){img=$('<img />');img.css({"position":"absolute","z-index":"-1","top":"0px","left":"0px"});img.height(strNavOver.length>0?eventTd[0].offsetHeight:0);img.appendTo(eventTd);}img.attr('src',strNavOut);img.width(strNavOut.length>0?eventTd[0].offsetWidth:0);}HideSubmenu();});});};var InitSubmenu=function(){submenu=$('div#SubMenu_'+strColumnID);if(submenu.length==0){submenu=$("<div id=SubMenu_"+strColumnID+"></div>");submenu.css("position","absolute");submenu.css("z-index","9999");submenu.hide();submenu.appendTo("body");submenu.bind("mouseout",HideSubmenu);}var objBase64=new Com.Loonyee.Misc.Security.Base64();strSubTableContent=decodeURIComponent(strSubTableContent);submenu.html(strSubTableContent.replace(/\{#ColumnID#\}/ig,strColumnID));var tdCells=submenu.find("td[className != 'Sub_Separate']");if(tdCells.length==0)return;if(tdCells.length>0){tdCells.bind("mouseover",function(){var ref=$(this);ref.removeClass(("Sub_Out_{#Direction#}").replace(/\{#Direction#\}/g,blnSubVertical?"V":"H"));ref.addClass(("Sub_Over_{#Direction#}").replace(/\{#Direction#\}/g,blnSubVertical?"V":"H"));if(blnSubBgExsits){var img=ref.children('img:first');img.attr('src',strSubOver);img.width(strSubOver.length>0?ref.width()+intSubPaddingWidth:0);}KeepSubmenu();});tdCells.bind("mouseout",function(e){var ref=$(this);ref.removeClass(("Sub_Over_{#Direction#}").replace(/\{#Direction#\}/g,blnSubVertical?"V":"H"));ref.addClass(("Sub_Out_{#Direction#}").replace(/\{#Direction#\}/g,blnSubVertical?"V":"H"));if(blnSubBgExsits){var img=ref.children('img:first');img.attr('src',strSubOut);img.width(strSubOut.length>0?ref.width()+intSubPaddingWidth:0);}HideSubmenu();});}};var ShowSubmenu=function(evt){var eventTd=$(evt.srcElement||evt.target).parent("td");if(!eventTd)return;if(!submenu)return;var subtable=$("div#SubMenu_"+(blnSubVertical?"V":"H")+"_"+strColumnID).children("table:first");if(!subtable)return;var id=eventTd.attr('id');id=id.substring(id.lastIndexOf("_")+1);var blnVisible=false;if(blnSubVertical){subtable.find("td[parentID='"+id+"']").parent().show();subtable.find("td[parentID !='"+id+"']").parent().hide();blnVisible=(subtable.find("tr:visible").length>0);}else{subtable.find("td[parentID='"+id+"']").show();subtable.find("td[parentID !='"+id+"']").hide();blnVisible=(subtable.find("td:visible").length>0);}if(!blnVisible){submenu.hide();}else{if(blnMainVertical){submenu.css("left",getOffset(eventTd[0],"offsetLeft")+eventTd[0].offsetWidth);submenu.css("top",getOffset(eventTd[0],"offsetTop"));}else{submenu.css("left",getOffset(eventTd[0],"offsetLeft"));submenu.css("top",getOffset(eventTd[0],"offsetTop")+eventTd[0].offsetHeight);}submenu.show();SortSubMenu();}};var SortSubMenu=function(){if(!submenu)return;var tdCells=submenu.find("td[className != 'Sub_Separate']");if(intSubPaddingWidth==65532){tdCells.each(function(index,tdCell){tdCell=$(tdCell);if((blnSubVertical&&tdCell.parent().css("display")=="none")||tdCell.css("display")=="none")return;if(tdCell.children("span").length<=0)return;var currSubPaddingWidth=tdCell.width()-tdCell.children("span").get(0).offsetWidth;intSubPaddingWidth=Math.min(parseInt(tdCell.css("paddingLeft"))+parseInt(tdCell.css("paddingRight")),currSubPaddingWidth);});intSubPaddingWidth=Math.max(intSubPaddingWidth,0);}var intSubMaxVercicalWidth=0;if(blnSubVertical){tdCells.each(function(index,tdCell){tdCell=$(tdCell);if((blnSubVertical&&tdCell.parent().css("display")=="none")||tdCell.css("display")=="none")return;if(tdCell.children("span").length<=0)return;var contentWidth=tdCell.children("span").width();if(contentWidth>intSubMaxVercicalWidth)intSubMaxVercicalWidth=contentWidth;});}var imgContent="<img src=\""+strSubOut+"\" style='position:absolute;top:0px;left:0px;width:0px;height:0px;z-index:-1'>";tdCells.each(function(index,tdCell){tdCell=$(tdCell);if((blnSubVertical&&tdCell.parent().css("display")=="none")||tdCell.css("display")=="none")return;if(tdCell.children("span").length<=0)return;var contentWidth=blnSubVertical?intSubMaxVercicalWidth:(tdCell.children("span").width());if(contentWidth+intSubPaddingWidth<intSubWidth){tdCell.width(intSubWidth-intSubPaddingWidth);}else{tdCell.width(tdCell.width());}if(blnSubBgExsits){var img=tdCell.children('img');if(img.length==0){tdCell.html(tdCell.html()+imgContent);img=tdCell.children('img');img.height(tdCell.height());}if(strSubOut.length>0){img.width(tdCell.width()+intSubPaddingWidth);}else{img.width(0);}}});};var KeepSubmenu=function(){if(timer){timer=window.clearTimeout(timer);}};var HideSubmenu=function(){if(!timer){timer=window.setTimeout(ref._HideSubmenu,350);}};this._HideSubmenu=function(){KeepSubmenu();if(submenu)submenu.css('display',"none");};var getOffset=function(objField,objAttr){try{var intOffset=0;while(objField){intOffset+=objField[objAttr];objField=objField.offsetParent;}return intOffset;}catch(r){return 0;}};var findPaddingWidth=function(objTable){var tdCells=objTable.getElementsByTagName("td");if(tdCells.length==0){return(0);}var maxCell=tdCells[0];for(var i=0;i<tdCells.length;i++){var tdCell=tdCells[i];if(tdCell.offsetWidth>=maxCell.offsetWidth){if(tdCell.className!="Nav_Separate"&&tdCell.innerHTML.replace(/\s/g,"").length>0){if(tdCell.childNodes[0].offsetWidth>maxCell.childNodes[0].offsetWidth){maxCell=tdCell;}}}}return Math.max((maxCell.offsetWidth-maxCell.childNodes[0].offsetWidth),0);}}}})();self["navigatorService"]=new Com.Loonyee.Page.NavigatorService();
/*navigator_end*//*scroll_start*/
String.prototype.Trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};if(typeof(Com)=="undefined")Com={};if(typeof(Com.Loonyee)=="undefined")Com.Loonyee={};if(typeof(Com.Loonyee.UI)=="undefined")Com.Loonyee.UI={};Com.Loonyee.UI={scrollFunction:function(){this.showModel=2;this.copyModel=0;this.scrollModel=0;this.startPlace=1;this.picWidth=0;this.picHeight=0;this.runNum=0;this.runNow=0;this.scrollNum=0;this.picNum=0;this.picRow=0;this.picPathes=new Array();this.picHreyes=new Array();this.bolUpEvent=true;this.bolDownEvent=true;this.picHrefModel="_blank";this.topDivClassName="";this.divClassName="sondiv";this.tabId="tableParent";this.tabClassName="";this.tabWidth="0px";this.tabBorder="0px";this.tabCellspacing="0px";this.tabCellpadding="0px";this.trClassName="";this.tdClassName="";this.aClassName="";this.imgClassList="imglist";this.imgClassChecked="imgchecked";this.imgOnmouseover="";this.imgOnmouseout="";this.topDivName="piclistdiv";this.aEvntName="";this.aImgName="";this.upFalseEvent="";this.downFalseEvent="";this.direction="";this.scrollDelay=0;this.screenDelay=0;this.scrollParentDivID="";this.scrollBaseDivID="";this.scrollElementHeight=0;this.scrollElementWidth=0;this.scrollBgColor="";this.temp=0;this.strHtml="";this.objName="";this.seeWidth=0;this.seeHeight=0;this.checkRun=true;this.scrollSide=0;this.stopSpace=0;this.stopTime=0;this.stopNum=0;this.intTopPosition=0;this.intLeftPosition=0;this.partSum=0;this.formatDiv=function(){if(this.picPathes.length<1){alert("nopic");return false}if(this.copyModel==1)for(var B=0;B<this.picNum;B++)if(this.picNum>=this.picPathes.length)this.picPathes=this.picPathes.concat(this.picPathes);else break;switch(this.showModel){case 1:this.fillDiv();break;case 2:this.fillTable();break;case 3:this.fillDivTable();this.formatByMiddle();break}var A=document.getElementById(window[this.objName].topDivName).getElementsByTagName("img");window[this.objName].downFalseEvent();window[this.objName].upFalseEvent(A.length)};this.fillDiv=function(){};this.formatByMiddle=function(){var A=document.getElementById("tableParent").getElementsByTagName("div"),B=document.getElementById("tableParent").getElementsByTagName("img");for(var C=0;C<A.length;C++)if(B[C].readyState=="complete"){A[C].style.display="";this.middleFormat(A[C],B[C])}else{A[C].style.display="none";bolcheck=true}};this.middleFormat=function(E,D){var B=E.offsetWidth,A=E.offsetHeight,C=D.offsetWidth,F=D.offsetHeight;D.style.position="absolute";D.style.top=(A-F-this.listImgBorder*2)/2+"px";D.style.left=(B-C-this.listImgBorder*2)/2+"px"};this.fillDivTable=function(){var D=0,C="<table id=\""+this.tabId+"\"  border=\""+this.tabBorder+"\" cellspacing=\""+this.tabCellspacing+"\" cellpadding=\""+this.tabCellpadding+"\"  class=\""+this.tabClassName+"\">";for(var B=0;B<this.picRow;B++){C=C+"<tr class=\""+this.trClassName+"\">";for(var A=0;A<this.picNum;A++){C=C+"<td class=\""+this.tdClassName+"\" style=\"padding:"+this.listImgpadding+"px;\">";C=C+"<span  style=\"position:relative;top:0px;left:0px;width:"+(this.picWidth+this.listImgBorder*2)+"px;height:"+(this.picHeight+this.listImgBorder*2)+"px;border-width:"+this.listImgBorder+"px; border-style:"+this.listImgstyle+"; border-color:"+this.imgOutColor+";\"><a class=\""+this.aClassName+"\"  href=\"javascript:;\" onclick=\"eval('"+this.aEvntName+"');\" value=\""+this.picHreyes[D]+"\"><div style=\"cursor:hand;background-color:"+this.listImggroundcolor+";position:relative;top:0px;left:0px;width:"+(this.picWidth)+"px;height:"+(this.picHeight)+"px;\">";if(this.imgbool)C=C+"<img onmouseover=\""+this.imgOnmouseover+"\" onmouseout=\""+this.imgOnmouseout+"\" alt=\"\"   src=\""+this.picPathes[D]+"\" style=\"width:"+this.picWidth+";height:"+this.picHeight+";\"/>";else C=C+"<img onmouseover=\""+this.imgOnmouseover+"\" onmouseout=\""+this.imgOnmouseout+"\" alt=\"\"   src=\""+this.picPathes[D]+"\" />";C=C+"</div></a></span>";C=C+"</td>";D++;if((this.copyModel==0)&&(this.picRow==1)&&(D==this.picPathes.length))break}if((this.copyModel==0)&&(D==this.picPathes.length))break;C=C+"</tr>"}C=C+"</table>";document.getElementById(this.topDivName).innerHTML=C;document.close()};this.fillTable=function(){var F=0,E=parseInt(this.picWidth+this.listImgBorder*2),C=parseInt(this.picHeight+this.listImgBorder*2),D="<table id=\""+this.tabId+"\" width=\""+this.tabWidth+"\" border=\""+this.tabBorder+"\" cellspacing=\""+this.listImgpadding+"\" cellpadding=\""+this.tabCellpadding+"\"  class=\""+this.tabClassName+"\">";for(var B=0;B<this.picRow;B++){D=D+"<tr class=\""+this.trClassName+"\">";for(var A=0;A<this.picNum;A++){D=D+"<td class=\""+this.tdClassName+"\">";D=D+"<table  border=\"0px\" cellspacing=\"0px\" cellpadding=\"0px\" style=\"width:"+(this.picWidth+this.listImgBorder*2)+"px;height:"+(this.picHeight+this.listImgBorder*2)+"px;\"><tr><td  onclick=\"eval('"+this.aEvntName+"');\" value=\""+this.picHreyes[F]+"\" style=\"cursor:hand;text-align:center;vertical-align:middle;border-width:"+this.listImgBorder+"px; border-style:"+this.listImgstyle+"; border-color:"+this.imgOutColor+";background-color:"+this.listImggroundcolor+"; \">";if(this.imgbool)D=D+"<img onmouseover=\""+this.imgOnmouseover+"\" onmouseout=\""+this.imgOnmouseout+"\" alt=\"\"   src=\""+this.picPathes[F]+"\" style=\"width:"+this.picWidth+";height:"+this.picHeight+";\"/>";else D=D+"<img onmouseover=\""+this.imgOnmouseover+"\" onmouseout=\""+this.imgOnmouseout+"\" alt=\"\"  src=\""+this.picPathes[F]+"\" />";D=D+"</td></tr></table >";D=D+"</td>";F++;if((this.copyModel==0)&&(this.picRow==1)&&(F==this.picPathes.length))break}if((this.copyModel==0)&&(F==this.picPathes.length))break;D=D+"</tr>"}D=D+"</table>";document.getElementById(this.topDivName).innerHTML=D;document.close()};this.scrollByPX=function(){document.getElementById(this.scrollParentDivID).innerHTML=this.strHtml;if(this.strHtml.Trim()==""||this.strHtml==null)return;this.scrollIng()};this.scrollIng=function(){if(this.checkRun){this.scrollStop();this.scrollClone();this.scroll()}};this.scroll=function(){this.scrollStop();switch(this.direction){case"up":this.scrollUp();break;case"down":this.scrollDown();break;case"left":this.scrollLeft();break;case"right":this.scrollRight();break;default:break}};this.getScrollEventStr=function(A){return"window."+this.objName+".stopNum++;if(window."+this.objName+".stopNum >= "+this.stopSpace+" ){ window."+this.objName+".scrollStop();window."+this.objName+".stopNum=0 ;window."+this.objName+".timeout=window.setTimeout(\"window."+this.objName+"."+A+"()\","+this.stopTime+");}"};this.scrollUp=function(){var strevent="if(document.getElementById('"+this.scrollBaseDivID+"')){var str = parseInt(document.getElementById('"+this.scrollBaseDivID+"').style.top);"+"var i =  (String(str) == \"NaN\" )?0:str;"+"if(i == -1*parseInt("+this.scrollSide+")){"+" i="+this.intTopPosition+";}"+"document.getElementById('"+this.scrollBaseDivID+"').style.top = (i-1)+\"px\";";if(this.scrollModel==2||this.scrollModel==4)strevent+=this.getScrollEventStr("scrollUp");strevent+=this.stopEventStr+"}else{if(typeof(window."+this.objName+".objName ) != \"undefined\"){window."+this.objName+".scrollStop();window."+this.objName+"=null;}}";this.temp=window.setInterval(function(){eval(strevent)},this.scrollDelay)};this.scrollDown=function(){var strevent="if(document.getElementById('"+this.scrollBaseDivID+"')){var str = parseInt(document.getElementById('"+this.scrollBaseDivID+"').style.top);"+"var i =  (String(str) == \"NaN\" )?0:str;"+"if(i == "+this.intTopPosition+"){"+" i=-1*(parseInt("+this.scrollSide+"));}"+"document.getElementById('"+this.scrollBaseDivID+"').style.top = (i+1)+\"px\";";if(this.scrollModel==2||this.scrollModel==4)strevent+=this.getScrollEventStr("scrollDown");strevent+=this.stopEventStr+"}else{if(typeof(window."+this.objName+".objName ) != \"undefined\"){window."+this.objName+".scrollStop();window."+this.objName+"=null;}}";this.temp=setInterval(function(){eval(strevent)},this.scrollDelay)};this.scrollRight=function(){var strevent="if(document.getElementById('"+this.scrollBaseDivID+"')){var str = parseInt(document.getElementById('"+this.scrollBaseDivID+"').style.left);"+"var i =  (String(str) == \"NaN\" )?0:str;"+"if(i == "+this.intLeftPosition+"){"+" i=-1*(parseInt("+this.scrollSide+"));}"+"document.getElementById('"+this.scrollBaseDivID+"').style.left = (i+1)+\"px\";";if(this.scrollModel==2||this.scrollModel==4)strevent+=this.getScrollEventStr("scrollRight");strevent+=this.stopEventStr+"}else{if(typeof(window."+this.objName+".objName ) != \"undefined\"){window."+this.objName+".scrollStop();window."+this.objName+"=null;}}";this.temp=setInterval(function(){eval(strevent)},this.scrollDelay)};this.scrollLeft=function(){var strevent="if(document.getElementById('"+this.scrollBaseDivID+"')){var str = parseInt(document.getElementById('"+this.scrollBaseDivID+"').style.left);"+"var i =  (String(str) == \"NaN\" )?0:str;"+"if(i == -1*parseInt("+this.scrollSide+")){"+" i="+this.intLeftPosition+";}"+"document.getElementById('"+this.scrollBaseDivID+"').style.left = (i-1)+\"px\";";if(this.scrollModel==2||this.scrollModel==4)strevent+=this.getScrollEventStr("scrollLeft");strevent+=this.stopEventStr+"}else{if(typeof(window."+this.objName+".objName ) != \"undefined\"){window."+this.objName+".scrollStop();window."+this.objName+"=null;}}";this.temp=setInterval(function(){eval(strevent)},this.scrollDelay)};this.scrollClone=function(){var C=0,B="",E=document.getElementById(this.scrollParentDivID);if(E){var D=E.firstChild;this.scrollBaseDivID=this.scrollParentDivID+"_"+"son";this.scrollElementWidth=D.offsetWidth;this.scrollElementHeight=D.offsetHeight;if(parseInt(this.seeWidth)==0){this.seeWidth=this.scrollElementWidth;E.style.width=this.scrollElementWidth}if(parseInt(this.seeHeight)==0){this.seeHeight=this.scrollElementHeight;E.style.height=this.scrollElementHeight}if(parseInt(this.partSum)!=0)switch(this.direction){case"up":case"down":this.stopSpace=parseInt(this.scrollElementHeight)/parseInt(this.partSum);break;case"left":case"right":this.stopSpace=parseInt(this.scrollElementWidth)/parseInt(this.partSum);break;default:break}if(this.scrollModel==3||this.scrollModel==4)switch(this.direction){case"up":this.intTopPosition=this.seeHeight;break;case"down":this.intTopPosition=-1*parseInt(this.scrollElementHeight);break;case"left":this.intLeftPosition=this.seeWidth;break;case"right":this.intLeftPosition=-1*parseInt(this.scrollElementWidth);break;default:break}var A="";if(this.scrollBgColor!="")A="background-color:"+this.scrollBgColor+";";B="<div   onmouseover=\"window."+this.objName+".scrollStop();\" onmouseout=\"window."+this.objName+".scroll();\"   style=\"position:relative;overflow:hidden;"+A+"top:0px; width:"+this.seeWidth+"px;height:"+this.seeHeight+"px;\"><div style=\"position:relative;top:"+this.intTopPosition+"px;left:"+this.intLeftPosition+"px;\"  id=\""+this.scrollBaseDivID+"\" >";switch(this.direction){case"up":case"down":C=parseInt(this.seeHeight/this.scrollElementHeight);if(C<=1)C=1;if(this.seeHeight%this.scrollElementHeight>0)C=C+1;if(this.scrollModel==1||this.scrollModel==2)this.scrollSide=this.scrollElementHeight*C;else this.scrollSide=this.scrollElementHeight;break;case"left":case"right":C=parseInt(this.seeWidth/this.scrollElementWidth);if(C<=1)C=1;if(this.seeWidth%this.scrollElementWidth>0)C=C+1;if(this.scrollModel==1||this.scrollModel==2)this.scrollSide=this.scrollElementWidth*C;else this.scrollSide=this.scrollElementWidth;break;default:break}if(this.scrollModel==3||this.scrollModel==4){B+=this.strHtml+"</div></div>";E.innerHTML=B;document.close();this.checkRun=false;switch(this.direction){case"down":this.intTopPosition=parseInt(this.seeHeight);break;case"right":this.intLeftPosition=parseInt(this.seeWidth);break;default:break}return}C=C*2;switch(this.direction){case"up":case"down":B=B+"<table  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width:"+this.scrollElementWidth+"px;height:"+this.scrollElementHeight*C+"px; \">";for(var F=0;F<C;F++)B=B+"<tr><td style=\"width:"+this.scrollElementWidth+"px; height:"+this.scrollElementHeight+"px;vertical-align:top;\">"+this.strHtml+"</td></tr>";B=B+"</table></div></div>";E.innerHTML=B;break;case"left":case"right":B=B+"<table  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"  style=\"width:"+this.scrollElementWidth*C+"px;height:"+this.scrollElementHeight+"px; \">";B=B+"<tr>";for(F=0;F<C;F++)B=B+"<td style=\"width:"+this.scrollElementWidth+"px; height:"+this.scrollElementHeight+"px;vertical-align:top;\">"+this.strHtml+"</td>";B=B+"</tr></table></div></div>";E.innerHTML=B;break;default:break}document.close();this.checkRun=false}};this.scrollStop=function(){window.clearInterval(this.temp);this.checkRun=false;window.clearTimeout(this.timeout)};this.upRun=function(){var A=document.getElementById(this.topDivName).getElementsByTagName("img"),C=A.length;this.checkUpRunState(C);this.checkDownRunState();if(this.bolUpEvent){var B=this.runNum++;this.formatImg();if((B+C+1)==this.picPathes.length&&this.copyModel==1){this.picPathes=this.picPathes.concat(this.picPathes);this.picHreyes=this.picHreyes.concat(this.picHreyes);this.picHrefModel=this.picHrefModel.concat(this.picHrefModel)}}this.upFalseEvent(C);this.downFalseEvent();this.changeImgForChecked()};this.checkUpRunState=function(A){if(this.copyModel==0&&((this.runNum+A)==this.picPathes.length||(this.runNum+A)>this.picPathes.length))this.bolUpEvent=false;else this.bolUpEvent=true};this.checkDownRunState=function(){if(this.copyModel==0&&this.runNum==0)this.bolDownEvent=false;else this.bolDownEvent=true};this.downRun=function(){var A=document.getElementById(this.topDivName).getElementsByTagName("img"),C=A.length;this.checkUpRunState(C);this.checkDownRunState();if(this.bolDownEvent){this.runNum--;if(this.runNum<0){var B=this.picPathes.length;this.picPathes=this.picPathes.concat(this.picPathes);this.picHreyes=this.picHreyes.concat(this.picHreyes);this.picHrefModel=this.picHrefModel.concat(this.picHrefModel);this.runNum=B-1}this.formatImg()}this.upFalseEvent(C);this.downFalseEvent();this.changeImgForChecked()};this.getImgPoint=function(B){for(var C=0;C<this.picPathes.length;C++){var A=((this.picPathes[C].split("?")[1]).split("&")[0]).split("=")[1];if(B.match(A)){this.runNow=C;this.runNum=C;return}}};this.formatImg=function(){var B=document.getElementById(this.topDivName).getElementsByTagName("img");if(this.picPathes.length>0)for(var C=0;C<B.length;C++){B[C].setAttribute("src",this.picPathes[this.runNum+C]);var A=this.picHreyes[this.runNum+C];if(A==""||A==null)B[C].parentNode.setAttribute("value","");else B[C].parentNode.setAttribute("value",this.picHreyes[this.runNum+C])}this.changeImgForChecked()};this.changeImgForOver=function(A,C){var B=A.parentNode;while(true){if(B.tagName==C){B.style.borderColor=this.imgOverColor;return}B=B.parentNode}};this.changeImgForOut=function(A,D){var B=((this.picPathes[this.runNow].split("?")[1]).split("&")[0]).split("=")[1];if(A.src.match(B))return;var C=A.parentNode;while(true){if(C.tagName==D){C.style.borderColor=this.imgOutColor;return}C=C.parentNode}};this.changeImgForChecked=function(){var B=document.getElementById(this.topDivName).getElementsByTagName("img");if(B.length>0){var A=((this.picPathes[this.runNow].split("?")[1]).split("&")[0]).split("=")[1];for(var C=0;C<B.length;C++)if(B[C].src.match(A))this.changeImgForOver(B[C],this.listParentTabg);else this.changeImgForOut(B[C],this.listParentTabg)}};this.formatImgByPower=function(C){var B=document.getElementById(this.topDivName).getElementsByTagName("img"),A=B.length,D=this.picPathes.length;this.getImgPoint(C);if(this.runNow+B.length>D){this.runNum=D-A;for(var E=0;E<A;E++)B[E].src=this.picPathes[this.runNum+E]}else for(E=0;E<B.length;E++)B[E].src=this.picPathes[this.runNow+E];this.upFalseEvent(A);this.downFalseEvent()};this.changeClass=function(A,B){A.className=B};this.pointToMid=function(C,B){(function A(){if(document.getElementById(B).readyState=="complete"){var K=document.getElementById(C),D=document.getElementById(B);D.src=D.src;var F=parseInt(K.offsetHeight),J=parseInt(D.offsetHeight),I=parseInt(K.offsetWidth),G=parseInt(D.offsetWidth),E=(F-J)/2,H=(I-G)/2;D.style.top=E+"px";D.style.left=H+"px";D.parentNode.parentNode.align="center";D.parentNode.parentNode.valign="middle"}else setTimeout(A,5)})()}},scrollRuning:function(E,D){var A=E.replace(/-/g,"_"),B="scroll_"+E;if(typeof(D)=="string"){if(D.Trim()=="")return false;D=new Com.Loonyee.UI.scrollStringToObj(B,D)}if(typeof(Com.Loonyee.UI.scrollFunction)=="function"){if(typeof(window[A])!="undefined"){if(window[A]!=null)if(typeof(window[A].scrollStop)=="function")window[A].scrollStop();window[A]=null}var C=new Com.Loonyee.UI.scrollFunction();C.scrollStop();C.objName=A;C.scrollParentDivID=B;C.showModel=3;C.checkRun=true;C.scrollModel=D.scrollModel;C.direction=D.direction;C.scrollDelay=D.scrollDelay;C.seeWidth=D.seeWidth;C.seeHeight=D.seeHeight;C.stopSpace=D.stopSpace;C.stopTime=D.stopTime;C.scrollBgColor=D.scrollBgColor;C.strHtml="<div>"+D.htmlCache+"</div>";C.scrollByPX();window[A]=C}else if(typeof(window[A])!="object"){if(typeof(window[A].scrollStop)=="function")window[A].scrollStop();window[A]=null}},scrollStringToObj:function(A,B){var D=B.split("@");for(var F=0;F<D.length;F++){var E=D[F].split("="),C=E[1].Trim();switch(E[0].Trim()){case"showModel":if(C!="")this.showModel=E[1];break;case"scrollModel":if(C!="")this.scrollModel=E[1];break;case"direction":if(C!="")this.direction=E[1];break;case"scrollDelay":if(C!="")this.scrollDelay=E[1];break;case"seeWidth":if(C!="")this.seeWidth=E[1];break;case"seeHeight":if(C!="")this.seeHeight=E[1];break;case"stopSpace":if(C!="")this.stopSpace=E[1];break;case"stopTime":if(C!="")this.stopTime=E[1];break;case"scrollBgColor":if(C!="")this.scrollBgColor=E[1];break;case"partSum":if(C!="")this.partSum=E[1];break;default:break}}if(document.getElementById(A))this.htmlCache=document.getElementById(A).innerHTML}}
	/*scroll_end*/

function clsPageHeight(intAllOffset, isStartPage) {
		var autoAdjustarr = [];
		var autoAdjustArrHeight = new Array();
		var allDragArray = [];
    //construct
    {
			var Html_Main = $("div#Html_Main");
			var dragDivs = Html_Main.children(
			"div[type='dragDiv'][autoAdjust='1']"
			);
			if(dragDivs.length > 1)
			{
				autoAdjustarr=$.makeArray(dragDivs);
				dragDivs.each(function(){
							autoAdjustArrHeight.push({"id":this.id,"height":$(this).children("div[type='dragDivBody']")[0].childNodes[0].offsetHeight});
					});
				autoAdjustarr.sort(
				function(a,b)
				{
					return(parseInt(a.style.top)-parseInt(b.style.top));
				});			
			}
			var allDrag=$("div#Html_Main").children("div[type='dragDiv']");
			allDragArray=$.makeArray(allDrag);
    }
    //check whether b is below a
    function checkBelow(a,b){
    	var accuracy=30;
    	var aLeft=$(a).offset().left;
    	var aTop=$(a).offset().top;
    	var bLeft=$(b).offset().left;
    	var bTop=$(b).offset().top;
    	return (aTop+$(a).height()-accuracy<bTop)&&(aLeft<bLeft+accuracy)&&((aLeft+$(a).width())>(bLeft+$(b).width()-accuracy));
    }
    function makeLinkedArray(a,arr){
				var _arr=new Array();    	
				_arr.push(a);
				for(var j=0;j<arr.length;j++){
							if(checkBelow(a,arr[j]))
									_arr.push(arr[j]);
				}
				return _arr;
    }
    var autoAdjustLinkedArr=new Array();
    for(var i=0;i<autoAdjustarr.length;i++){
    		var arr=makeLinkedArray(autoAdjustarr[i],allDragArray);
    		autoAdjustLinkedArr.push(arr);
    }

	
//function clsPageHeight(intMainOffset, isStartPage) {
	if((intAllOffset+"").indexOf(",")<0) intAllOffset='0,0,0';
	var inAll=intAllOffset.split(",");
	 var intTopOffset=parseInt(inAll[0]);
	 var intMainOffset=parseInt(inAll[1]);
	 var intBottomOffset=parseInt(inAll[2]);
   //cssʽаpxıֵ
   var clearPx = function() { return parseInt(arguments[0]) || 0; };

   //(shell sort)
   var shellSort = function(arrDivList) {
      for (var step = arrDivList.length >> 1; step > 0; step >>= 1) {
         for (var i = 0; i < step; ++i) {
            for (var j = i + step; j < arrDivList.length; j += step) {
               var k = j; value = arrDivList[j];

               while (k >= step && arrDivList[k - step].cssPos.top > value.cssPos.top) {
                  arrDivList[k] = arrDivList[k - step];
                  k -= step;
               }

               arrDivList[k] = value;
            }
         }
      }

      return arrDivList;
   };

   //ΪColumndiv
   var parseColumn = function(obj) {
      var _top, _body, _bottom,_body_container;
      var _bodyPH = 0;
      var _isCustomBorder = obj.className.indexOf("border_c_") == 0;

      for (var i = 0; i < obj.childNodes.length; i++) {
         switch (obj.childNodes[i].getAttribute("type")) {
            case "dragDivHead": //Columnͷ
               _top = obj.childNodes[i];
               break;
            case "dragDivBody": //Column
               _body = obj.childNodes[i];

               for (var j = 0; j < _body.childNodes.length; j++) {
                  if (_body.childNodes[j].nodeType == 1) {
                     _bodyPH += _body.childNodes[j].offsetHeight;
                  }
               }
               break;
            case "dragDivBottom": //Columnײ
               _bottom = obj.childNodes[i];
               break;
         }
      }

      return {
      	 isCustomBorder:_isCustomBorder, //ǷʹԶ߿
         head:_top, //ͷ
         body:_body, //
         bodyPH:_bodyPH, //ҳʵʱָ߶
         bottom:_bottom //ײ
      };
   };

   /**
    * Ƿ
    *
    * @params:oPoint,
    * @params:oArea,Ŀλ
    *
    * @return:boolean
    */
   var inRect = function(oPoint, oArea) {
      return ((oPoint.y >= oArea.y1 && oPoint.y <= oArea.y2) && (oPoint.x >= oArea.x1 && oPoint.x <= oArea.x2));
   };

   /**
    * topʺϵColumn
    *
    * @params:checkArea, 
    * @params:checkUp, ǷΪϲ
    * @params:curArea, ǰţ>2ΪCanvas
    *
    * @return:ҵĽ
    */
   var findAdjustObj = function(checkArea, checkUp, curArea) {
      var rtnArray = [];
      var _obj = null;

      var _leftP1 = { x:0, y:0 };
      var _leftP2 = { x:0, y:0 };
      var _rightP1 = { x:0, y:0 };
      var _rightP2 = { x:0, y:0 };

      for (var i = 0; i < _Columns[curArea].length; i++) {
         _obj = _Columns[curArea][i];

         _leftP1.x = _obj.column.offsetLeft;
         _leftP1.y = _obj.column.offsetTop;
         _leftP2.x = _leftP1.x;
         _leftP2.y = _leftP1.y + _obj.column.offsetHeight;

         _rightP1.x = _leftP1.x + _obj.column.offsetWidth;
         _rightP1.y = _leftP1.y;
         _rightP2.x = _rightP1.x;
         _rightP2.y = _leftP2.y;

         if (checkUp) {
            if (inRect(_leftP2, checkArea) || inRect(_rightP2, checkArea)) {
               rtnArray.push(_obj);
            }
         } else {
            if (inRect(_leftP1, checkArea) || inRect(_rightP1, checkArea)) {
               rtnArray.push(_obj);
            }
         }
      }

      return rtnArray;
   };

   var getCssValue = function(cssTag, styleName) {
      var rules = null;

      for(var i = 0; i < document.styleSheets.length; i++) {
         rules = document.styleSheets[i].rules;
         if (!rules) {
            rules = document.styleSheets[i].cssRules;
         }

         for (var j = 0; j < rules.length; j++) {
            if (rules[j].selectorText == "." + cssTag) {
                return rules[j].style[styleName];
            }
         }
      }

      return "";
   };

   /**
    * ()ָĸ߶
    *
    * @params:obj, ʼ
    * @params:topOffset, ϵλֵ
    * @params:curArea, ǰ
    */
   var adjustColumnHeight = function(obj, topOffset, curArea) {
      if (topOffset && topOffset != 0) {
         obj.cssPos.top -= topOffset;
         obj.column.style.top = obj.cssPos.top + "px";
      }
		if(window.navigator.userAgent.indexOf("Firefox")>=0){
			obj.isAdjust=1;
		}   
   		var _startOffset = 0;
var _startY2=obj.column.offsetTop+obj.cssPos.height+topOffset; 
   		if(obj.columnInner.isCustomBorder)
   		{
   			if(obj.isAdjust)
   			{
	   			//_startOffset =  obj.columnInner.body.scrollHeight - obj.columnInner.body.offsetHeight;
	   			//_startOffset =  obj.columnInner.body.scrollHeight - obj.column.offsetHeight;
	   			var _bottomH=0;
	   			var _headH=0;
	   			if(obj.columnInner.bottom){
	   				_bottomH=obj.columnInner.bottom.offsetHeight;
	   			}
	   			if(obj.columnInner.head){
	   				_headH=obj.columnInner.head.offsetHeight;
	   			}
	   			_startOffset =  obj.column.offsetHeight-(obj.columnInner.body.scrollHeight+_bottomH+_headH);
	   			
	   			if(_startOffset != 0)
					//if(_startOffset != 0&&(window.navigator.userAgent.indexOf("Firefox")<0||(window.navigator.userAgent.indexOf("Firefox")>=0&&_startOffset>0)))
	   			{	       
		if(window.navigator.userAgent.indexOf("Firefox")>=0&&_startOffset<0){
			_startOffset=0;
		}   
	   				var _newHeight = obj.cssPos.height - _startOffset;
	   				   				
	   				//Զ߿ģʽͬCanvas
	          customColumnReduce({
	              obj: obj.column,
	              child: [obj.columnInner.head, obj.columnInner.body, obj.columnInner.bottom],
	              size: {
	                  width: obj.cssPos.width,
	                  height: obj.cssPos.height
	              },
	              resize: {
	                  width:obj.cssPos.width,
	                  height: _newHeight
	              }
	          });
	          
	          //
	          obj.cssPos.width = clearPx(obj.column.style.width);
	          obj.cssPos.height = clearPx(obj.column.style.height);          	          
	   			}
	   		}
   		}
   		else
   		{
   			var _head = 0, _body = 0, _bottom = 0;

	      //var _startY2 = obj.column.offsetTop + obj.column.offsetHeight; //δ֮ǰY2λ
	      var _startY2=obj.column.offsetTop+obj.cssPos.height;
	      var clsName;
	
	      if (obj.isAdjust) {
	         if (obj.columnInner.head) {
	            _head = obj.columnInner.head.offsetHeight;
	            _head += parseInt(obj.columnInner.head.style.marginTop) || 0;
	            _head += parseInt(obj.columnInner.head.style.marginBottom) || 0;
	         }
	         _body = obj.columnInner.bodyPH;
	         if (obj.columnInner.bottom) {
	            _bottom = obj.columnInner.bottom.offsetHeight;
	         }
	      } else {
         if (obj.columnInner == null) { //Canvas
            _body = obj.cssPos.height;
         } else {
	          _head = obj.columnInner.head;
	
	            if (_head) {
	               _head = _head.offsetHeight;
	               clsName = obj.columnInner.head.className
	//               _head += parseInt(getCssValue(clsName, "marginTop")) || 0;
	//               _head += parseInt(getCssValue(clsName, "marginBottom")) || 0;
	//               _head += parseInt(getCssValue(clsName, "borderTopWidth")) || 0;
	//               _head += parseInt(getCssValue(clsName, "borderBottomWidth")) || 0;
	//               _head += parseInt(getCssValue(obj.column.className, "borderTopWidth")) || 0;
	            } else {
	               _head = 0;
	            }
	
	            _head += parseInt(getCssValue(obj.column.className, "borderTopWidth")) || 0;
	
	            _bottom = obj.columnInner.bottom;
	            if (_bottom) {
	               _bottom = _bottom.offsetHeight;
	               clsName = obj.columnInner.bottom.className
	//               _bottom += parseInt(getCssValue(clsName, "marginTop")) || 0;
	//               _bottom += parseInt(getCssValue(clsName, "marginBottom")) || 0;
	               _bottom += parseInt(getCssValue(clsName, "borderTopWidth")) || 0;
	//               _bottom += parseInt(getCssValue(clsName, "borderBottomWidth")) || 0;
	//               _bottom += parseInt(getCssValue(obj.column.className, "borderBottomWidth")) || 0;
	            } else {
	               _bottom = 0;
	            }
	
	            _bottom += parseInt(getCssValue(obj.column.className, "borderBottomWidth")) || 0;
	
	            clsName = obj.columnInner.body.className;
	
	            _body = obj.cssPos.height - _head - _bottom -
	            (parseInt(getCssValue(clsName, "marginTop")) || 0) -
	            (parseInt(getCssValue(clsName, "marginBottom")) || 0)/* -
	            (parseInt(getCssValue(clsName, "paddingTop")) || 0) -
	            (parseInt(getCssValue(clsName, "paddingBottom")) || 0)*/;
	         }
	      }
      
      	if (obj.columnInner != null) {
//         if (obj.columnInner.head) {
//            obj.columnInner.head.style.height = _head + "px";
//         }

         if(_body <= 0) _body = 0;
		if(window.navigator.userAgent.indexOf("Firefox")>=0){
			if(parseInt(obj.columnInner.body.style.height)<_body)
			obj.columnInner.body.style.height = _body + "px";
		}else{            
         obj.columnInner.body.style.height = _body + "px";
    }

//         if (obj.columnInner.bottom) {
//            obj.columnInner.bottom.style.height = _bottom + "px";
//         }
	      }	    
	    
	      var _tmpHeight = _head + _body + _bottom;
	      obj.column.style.height = _tmpHeight + "px";								
	      _startOffset = obj.cssPos.height - _tmpHeight;
		  	obj.cssPos.height = _tmpHeight;
   		}
      
      //_startOffset += topOffset;

      if (_startOffset != 0 && obj.isAdjust) {
         var _ObjArray = findAdjustObj({
            x1:obj.column.offsetLeft,
            y1:_startY2,
            x2:obj.column.offsetLeft + obj.column.offsetWidth,
            y2:_AreaArray[curArea].offsetHeight
         }, false, curArea);

         var _ObjUpArray = null;
         var _UpAreaMaxHeight = 0;

         //ʼ߶ȴʾY2ֵColumn
         for (var i = 0; i < _ObjArray.length; i++) {
            _ObjUpArray = findAdjustObj({
               x1:_ObjArray[i].column.offsetLeft,
               y1:_ObjArray[i].column.offsetTop - _startOffset,/*obj.column.offsetTop + obj.column.offsetHeight + 1,*/
               x2:_ObjArray[i].column.offsetLeft + _ObjArray[i].column.offsetWidth,
               y2:_ObjArray[i].column.offsetTop
            }, true, curArea);

            if (_ObjUpArray.length > 0) {
               for (var j = 0; j < _ObjUpArray.length; j++) {
                  if (_ObjUpArray[j].column.offsetTop + _ObjUpArray[j].column.offsetHeight > _UpAreaMaxHeight) {
                     _UpAreaMaxHeight = _ObjUpArray[j].column.offsetTop + _ObjUpArray[j].column.offsetHeight;
                  }
               }
               adjustColumnHeight(_ObjArray[i], _startOffset - (_UpAreaMaxHeight - (obj.column.offsetTop + obj.column.offsetHeight)), curArea);
            } else {
               adjustColumnHeight(_ObjArray[i], _startOffset, curArea);
            }
         }
      }
      //return obj.column.offsetTop + obj.column.offsetHeight;
   };
   
   var customColumnReduce = function( para ) {
        /**
         * ȡԪصı߾
         */
        var getBorder = function() {
            var rtn = { title: {}, more : {}, content : {} };

            var findBorder = function(obj, isAll) {
                if ( !obj ) {
                    return;
                }
                var _left = (parseInt(obj.style['left']) || 0);
                var _top = (parseInt(obj.style['top']) || 0);
                var _width = (parseInt(obj.style['width']) || 0);
                var _height = (parseInt(obj.style['height']) || 0);

                var rtnValue = {
                    left:_left,
                    top:_top,
                    right:para.size.width - (_left + _width),
                    bottom:para.size.height - (_top + _height)
                };

                if ( !isAll ) {
                    if ( rtnValue.left > rtnValue.right ) {
                        rtnValue.left = NaN;
                    }
                    else {
                        rtnValue.right = NaN;
                    }
                    if ( rtnValue.top > rtnValue.bottom) {
                        rtnValue.top = NaN;
                    }
                    else {
                        rtnValue.bottom = NaN;
                    }
                }

                return rtnValue;
            };

            rtn.title = findBorder(para.child[0], false);
            rtn.more = findBorder(para.child[2], false);

            rtn.content = findBorder(para.child[1], true);

            return rtn;
        };

        /**
          * Ԫصı߾
          *
          * @param: {Object} obj 趨
          * @param: {Object} pos Ե
          * @param: {Boolean} isSide 趨
          *
          * @return: {void}
          */
        var setBorder = function(obj, pos, isSide) {
            var _top = 0, _left = 0, _width = 0, _height = 0;

            if ( isSide ) {
                if ( isNaN(pos.top) && !isNaN(pos.bottom) ) {
                    _top = obj.parentNode.offsetHeight - ( pos.bottom + obj.offsetHeight );
                    obj.style['top'] = _top + 'px';
                } //ڵײλֵ

                if ( isNaN(pos.left) && !isNaN(pos.right) ) {
                    _left = obj.parentNode.offsetWidth - ( pos.right + obj.offsetWidth );
                    obj.style['left'] = _left + 'px';
                } //Ҳĺλֵ
            }
            else {
                _width = obj.parentNode.offsetWidth - ( pos.left + pos.right );
                _height = obj.parentNode.offsetHeight - ( pos.top + pos.bottom );
                obj.style['width'] = Math.abs( _width ) + 'px';
                obj.style['height'] = Math.abs( _height ) + 'px';
            }
        };

        /**
          * ԶColumnݵʵֿ
          * @param: {Object} pos Ե
          *
          * @return: {Object} ֿ
          */
        var actualWH = function(pos) {
            var rtn = { width: 0, height:0 };

            var chk = function( obj, pn ) {
                var tmp = 0;

                if ( obj ) {
                    tmp = obj.offsetTop + obj.offsetHeight;
                    if ( !isNaN( pos[pn].bottom ) ) {
                        tmp += pos[pn].bottom;
                    }
                    if ( rtn.height < tmp ) {
                        rtn.height = tmp;
                    }

                    tmp = obj.offsetLeft + obj.offsetWidth;
                    if ( !isNaN( pos[pn].right ) ) {
                        tmp += pos[pn].right;
                    }
                    if ( rtn.width < tmp ) {
                        rtn.width = tmp;
                    }
                }
            };

            chk( para.child[0], 'title' );
            chk( para.child[2], 'more' );
            chk( para.child[1], 'content' );

            return rtn;
        };

        var childBorder = getBorder(); //ȡ߽

        var minW = ( parseInt(para.obj.getAttribute("minWidth")) || 100 );
        var minH = ( parseInt(para.obj.getAttribute("minHeight")) || 100 );
        var endOffsetHeight = ( minH > para.resize.height ) ? minH : para.resize.height;
        var endOffsetWidth = ( minW > para.resize.width ) ? minW : para.resize.width;

        para.obj.style['width'] = endOffsetWidth + 'px';
        para.obj.style['height'] = endOffsetHeight + "px";

        //趨λñ
        if ( para.child[0] ) {
            setBorder(para.child[0], childBorder.title, true);
        }
        if ( para.child[2] ) {
            setBorder(para.child[2], childBorder.more, true);
        }
        if ( para.child[1] ) {
            setBorder(para.child[1], childBorder.content, false);
        }

        //ֹʵʴСminWidth&minHeight
        var actWH = actualWH(childBorder);

        if ( ( actWH.width > minW  && actWH.width != minW ) || ( actWH.height > minH && actWH.height != minH ) ) {
            para.obj.style['width'] = actWH.width + 'px';
            para.obj.style['height'] = actWH.height + "px";

            if ( para.child[0] ) {
                setBorder(para.child[0], childBorder.title, true);
            }
            if ( para.child[2] ) {
                setBorder(para.child[2], childBorder.more, true);
            }
            if ( para.child[1] ) {
                setBorder(para.child[1], childBorder.content, false);
            }
        }
    };
   function customColumnReduce( para ) {
            /**
             * ȡԪصı߾
             */
            var getBorder = function() {
                var rtn = { title: {}, more : {}, content : {} };

                var findBorder = function(obj, isAll) {
                    if ( !obj ) {
                        return;
                    }
                    var _left = (parseInt(obj.style['left']) || 0);
                    var _top = (parseInt(obj.style['top']) || 0);
                    var _width = (parseInt(obj.style['width']) || 0);
                    var _height = (parseInt(obj.style['height']) || 0);

                    var rtnValue = {
                        left:_left,
                        top:_top,
                        right:para.size.width - (_left + _width),
                        bottom:para.size.height - (_top + _height)
                    };

                    if ( !isAll ) {
                        if ( rtnValue.left > rtnValue.right ) {
                            rtnValue.left = NaN;
                        }
                        else {
                            rtnValue.right = NaN;
                        }
                        if ( rtnValue.top > rtnValue.bottom) {
                            rtnValue.top = NaN;
                        }
                        else {
                            rtnValue.bottom = NaN;
                        }
                    }

                    return rtnValue;
                };

                rtn.title = findBorder(para.child[0], false);
                rtn.more = findBorder(para.child[2], false);

                rtn.content = findBorder(para.child[1], true);

                return rtn;
            };

            /**
              * Ԫصı߾
              *
              * @param: {Object} obj 趨
              * @param: {Object} pos Ե
              * @param: {Boolean} isSide 趨
              *
              * @return: {void}
              */
            var setBorder = function(obj, pos, isSide) {
                var _top = 0, _left = 0, _width = 0, _height = 0;

                if ( isSide ) {
                    if ( isNaN(pos.top) && !isNaN(pos.bottom) ) {
                        _top = obj.parentNode.offsetHeight - ( pos.bottom + obj.offsetHeight );
                        obj.style['top'] = _top + 'px';
                    } //ڵײλֵ

                    if ( isNaN(pos.left) && !isNaN(pos.right) ) {
                        _left = obj.parentNode.offsetWidth - ( pos.right + obj.offsetWidth );
                        obj.style['left'] = _left + 'px';
                    } //Ҳĺλֵ
                }
                else {
                    _width = obj.parentNode.offsetWidth - ( pos.left + pos.right );
                    _height = obj.parentNode.offsetHeight - ( pos.top + pos.bottom );
                    obj.style['width'] = Math.abs( _width ) + 'px';
                    obj.style['height'] = Math.abs( _height ) + 'px';
                }
            };

            /**
              * ԶColumnݵʵֿ
              * @param: {Object} pos Ե
              *
              * @return: {Object} ֿ
              */
            var actualWH = function(pos) {
                var rtn = { width: 0, height:0 };

                var chk = function( obj, pn ) {
                    var tmp = 0;

                    if ( obj ) {
                        tmp = obj.offsetTop + obj.offsetHeight;
                        if ( !isNaN( pos[pn].bottom ) ) {
                            tmp += pos[pn].bottom;
                        }
                        if ( rtn.height < tmp ) {
                            rtn.height = tmp;
                        }

                        tmp = obj.offsetLeft + obj.offsetWidth;
                        if ( !isNaN( pos[pn].right ) ) {
                            tmp += pos[pn].right;
                        }
                        if ( rtn.width < tmp ) {
                            rtn.width = tmp;
                        }
                    }
                };

                chk( para.child[0], 'title' );
                chk( para.child[2], 'more' );
                chk( para.child[1], 'content' );

                return rtn;
            };

            var childBorder = getBorder(); //ȡ߽

            var minW = ( parseInt(para.obj.getAttribute("minWidth")) || 100 );
            var minH = ( parseInt(para.obj.getAttribute("minHeight")) || 100 );
            var endOffsetHeight = ( minH > para.resize.height ) ? minH : para.resize.height;
            var endOffsetWidth = ( minW > para.resize.width ) ? minW : para.resize.width;

            para.obj.style['width'] = endOffsetWidth + 'px';
            para.obj.style['height'] = endOffsetHeight + "px";

            //趨λñ
            if ( para.child[0] ) {
                setBorder(para.child[0], childBorder.title, true);
            }
            if ( para.child[2] ) {
                setBorder(para.child[2], childBorder.more, true);
            }
            if ( para.child[1] ) {
                setBorder(para.child[1], childBorder.content, false);
            }

            //ֹʵʴСminWidth&minHeight
            var actWH = actualWH(childBorder);

            if ( ( actWH.width > minW  && actWH.width != minW ) || ( actWH.height > minH && actWH.height != minH ) ) {
                para.obj.style['width'] = actWH.width + 'px';
                para.obj.style['height'] = actWH.height + "px";

                if ( para.child[0] ) {
                    setBorder(para.child[0], childBorder.title, true);
                }
                if ( para.child[2] ) {
                    setBorder(para.child[2], childBorder.more, true);
                }
                if ( para.child[1] ) {
                    setBorder(para.child[1], childBorder.content, false);
                }
            }
   }
   function ColumnReductive (objColumn, _w, _h) {
            //Columnʵҳֳ(offset, css)
            var columnInfo = splitColumnItem(objColumn);

            //Զ߿Ӧö
            if ( /^border_c_\w*$/.test( objColumn.className ) ) {
                return;
            }

            var cssArray = null, i = 0;

            //Ӧbody
            var _tWidth = 0;
            cssArray = GetCssValue("." + objColumn.className, ["borderLeftWidth", "borderRightWidth"]);
            for (i = 0; i < cssArray.length; i++) {
                _tWidth += (parseInt(cssArray[i]) || 0);
            }

            var cssPaddingArray = GetCssValue("." + objColumn.className, ["paddingLeft", "paddingRight"]);
            for (i = 0; i < cssPaddingArray.length; i++) {
                cssPaddingArray[i] = (parseInt(cssPaddingArray[i]) || 0);
            }
            _w -= (cssPaddingArray[0] + cssPaddingArray[1]);

            cssArray = GetCssValue("." + columnInfo.body.obj.className, ["marginLeft", "marginRight", "marginTop", "marginBottom"]);
            for (i = 0; i < cssArray.length; i++) {
                cssArray[i] = (parseInt(cssArray[i]) || 0);
            }

            columnInfo.body.obj.style.width = Math.abs(_w - (cssArray[0] + cssArray[1] + _tWidth)) + "px";
            columnInfo.body.obj.style.height = Math.abs(_h - (columnInfo.head.height + columnInfo.bottom.height) - (cssArray[2] + cssArray[3])) + "px";

            _w = columnInfo.body.obj.offsetWidth + cssArray[0] + cssArray[1] + _tWidth;

            //Ӧhead, head
            if (columnInfo.head.obj) {
                cssArray = GetCssValue("." + columnInfo.head.obj.className, ["marginLeft", "marginRight"]);
                for (i = 0; i < cssArray.length; i++) {
                    cssArray[i] = (parseInt(cssArray[i]) || 0);
                }

                columnInfo.head.obj.style.width = (_w - (cssArray[0] + cssArray[1] + _tWidth)) + "px";
            }

            //Ӧbottom, 
            if (columnInfo.bottom.obj) {
                cssArray = GetCssValue("." + columnInfo.bottom.obj.className, ["marginLeft", "marginRight"]);
                for (i = 0; i < cssArray.length; i++) {
                    cssArray[i] = (parseInt(cssArray[i]) || 0);
                }

                columnInfo.bottom.obj.style.width = (_w - (cssArray[0] + cssArray[1] + _tWidth)) + "px";

                if (columnInfo.bottom.obj.innerHTML.isNullOrEmpty() && (parseInt(GetCssValue("." + columnInfo.bottom.obj.className, ["height"])[0]) || 0) <= 0) {
                    columnInfo.bottom.obj.style.fontSize = "0px";
                    columnInfo.bottom.obj.style.height = "0px";
                    columnInfo.bottom.obj.style.lineHeight = "0px";
                }
            }

            //趨Column
            objColumn.style.width = _w + "px";
            objColumn.style.height = _h + "px";
   }

   var _AreaArray = [];
   var _Columns = [];

   //ڣʼҳColumn趨(Ӧ߶)
   this.init = function() {
   	window.setTimeout("objPageHeight.startCheck1();",10);
   }
   function adjustHeight(arr,h){
   		if(h>0){
	   		for(var i=0;i<arr.length;i++){
	   				arr[i].style.top=parseInt(arr[i].style.top)+h+"px";
	   				if(arr[i].offsetTop+arr[i].offsetHeight>$(".Html_Main_Class").height()){
	   					$(".Html_Main_Class").height(arr[i].offsetTop+arr[i].offsetHeight);
	   				}
	   		}
   		}else{
	   		for(var i=0;i<arr.length;i++){
	   				arr[i].style.top=parseInt(arr[i].style.top)+h+"px";
	   		}
   			var maxHeight=0;
   			$(allDragArray).each(function(){
   					if(maxHeight<this.offsetTop+this.offsetHeight)
   						maxHeight=this.offsetTop+this.offsetHeight;
   				});
   			$(".Html_Main_Class").height(maxHeight);
   		}
   }
   this.startCheck1 = function(){
      for (var i = 0; i < _Columns.length; i++) {
         for (var j = 0; j < _Columns[i].length; j++) {
         		if(_Columns)
            adjustColumnHeight(_Columns[i][j], 0, i); //Column߶ȲۼƵǰʵʸ߶
         }

         if (i <= 2) {
            var maxHeightObj = null;
            var maxHeight = 0;
            var tmpBtm = 0;

            for (var j = 0; j < _Columns[i].length; j++) {
               maxHeightObj = _Columns[i][j];
               tmpBtm = maxHeightObj.column.offsetTop + maxHeightObj.column.offsetHeight;
               if (maxHeight < tmpBtm) {
                  maxHeight = tmpBtm;
               }
            }

						if (i == 0) maxHeight += (intTopOffset + (parseInt(getCssValue(_AreaArray[i].className, "borderBottomWidth")) || 0)); //ƫ
            if (i == 1) maxHeight += (intMainOffset + (parseInt(getCssValue(_AreaArray[i].className, "borderBottomWidth")) || 0)); //ƫ
						if (i == 2) maxHeight += (intBottomOffset + (parseInt(getCssValue(_AreaArray[i].className, "borderBottomWidth")) || 0)); //ƫ            

						//alert(intTopOffset+","+intMainOffset+","+intBottomOffset+"   maxHeight:"+maxHeight);
            if (isStartPage != true) {
                _AreaArray[i].style.height = maxHeight + "px"; //߶
            }
         }
      }
   } 
   this.startCheck = function(e) {
      //var _AreaActHeight = 0;
      
      //alert(e);
      //start autoadjust
      //if(!e) return;
   			var h=100;
   			var oldHeight=0;
   			var e=e||window.event;
   			var t=e.target||e.srcElement;
   			var dragDivBody=$(t).parents("div[type='dragDivBody']");
   			var dragDiv=$(t).parents("div[type='dragDiv']");
   			$(autoAdjustArrHeight).each(function(){
   						if(this.id==dragDiv.attr("id")){
   							oldHeight=this.height;
   							this.height=dragDivBody[0].scrollHeight;
   						}
   				});
   				h=dragDivBody[0].scrollHeight-oldHeight;
					var d=dragDiv[0];
					var dh=dragDiv.children("div[type='dragDivHead']")[0];
					var db=dragDiv.children("div[type='dragDivBody']")[0];
					var df=dragDiv.children("div[type='dragDivBottom']")[0];
					if ( d.getAttribute("isCustom") == "0" ) 
                 ColumnReductive(d, d.offsetWidth, d.offsetHeight+h);
          else					
                 customColumnReduce({
                                obj: d,
                                child: [db, db, db],
                                size: {
                                    width: d.offsetWidth,
                                    height: d.offsetHeight
                                },
                                resize: {
                                    width: d.offsetWidth,
                                    height: d.offsetHeight+h
                                }
                            });
                            
				for(var i=0;i<autoAdjustLinkedArr.length;i++){
					if(autoAdjustLinkedArr[i][0].id==dragDiv.attr("id"))
							adjustHeight(autoAdjustLinkedArr[i].slice(1),h);
				}
				//end autoadjust      
      
   };

   {
      if (typeof intTopOffset == "undefined") intTopOffset = 0;
      if (typeof intMainOffset == "undefined") intMainOffset = 0;
      if (typeof intBottomOffset == "undefined") intBottomOffset = 0;
      //캯ҳݽгʼ
      var _mainBody = document.getElementById("Html_Container");
      var _clmTmp = null;
      var _CanvasArray = []; //Canvas
      var _CanvasColumns = [];

      //top,main,bottom
      for (var i = 0; i < _mainBody.childNodes.length; i++) {
         if (_mainBody.childNodes[i].nodeType == 1) {
            var _tmpArray = [];

            //еColumnʼЩColumnڴ
            for (var j = 0; j < _mainBody.childNodes[i].childNodes.length; j++) {
                if (_mainBody.childNodes[i].childNodes[j].nodeType == 1) {
               _clmTmp = _mainBody.childNodes[i].childNodes[j];

               switch (_clmTmp.getAttribute("type")) {
                  case "dragDiv":
                     _tmpArray.push({
                        column:_clmTmp, //Columndiv
                        isAdjust:_clmTmp.getAttribute("autoAdjust") == "1", //ǷӦ߶״̬
                        cssPos:{ //CSSʼλ״̬
                           top:clearPx(_clmTmp.style.top),
                           left:clearPx(_clmTmp.style.left),
                           width:clearPx(_clmTmp.style.width),
                           height:clearPx(_clmTmp.style.height)
                        },
                        //Columnڲ(head, body, bottom)
                        columnInner:parseColumn(_clmTmp)
                     });
                     break;
                  case "dragCanvas":
                     _tmpArray.push({
                        column:_clmTmp,
                        isAdjust:false,
                        cssPos:{
                           top:clearPx(_clmTmp.style.top),
                           left:clearPx(_clmTmp.style.left),
                           width:clearPx(_clmTmp.style.width),
                           height:clearPx(_clmTmp.style.height)
                        },
                        columnInner:null
                     });

                     _CanvasArray.push(_clmTmp);
                     var _tmpCanvasArray = [];

                     for (var k = 0; k < _CanvasArray[_CanvasArray.length - 1].childNodes.length; k++) {
                        _clmTmp = _CanvasArray[_CanvasArray.length - 1].childNodes[k];

                        if (_clmTmp.getAttribute("type") == "dragDiv") {
                           _tmpCanvasArray.push({
                              column:_clmTmp, //Columndiv
                              isAdjust:_clmTmp.getAttribute("autoAdjust") == "1", //ǷӦ߶״̬
                              cssPos:{ //CSSʼλ״̬
                                 top:clearPx(_clmTmp.style.top),
                                 left:clearPx(_clmTmp.style.left),
                                 width:clearPx(_clmTmp.style.width),
                                 height:clearPx(_clmTmp.style.height)
                              },
                              //Columnڲ(head, body, bottom)
                              columnInner:parseColumn(_clmTmp)
                           });
                        }
                     }
                     shellSort(_tmpCanvasArray);
                     _CanvasColumns.push(_tmpCanvasArray);
                     break;
               }

            }
            }

            //divtopλ(a-z)
            shellSort(_tmpArray);

            _Columns.push(_tmpArray); //Column
            _AreaArray.push(_mainBody.childNodes[i]); //
         }
      }

      _Columns = _Columns.concat(_CanvasColumns);
      _AreaArray = _AreaArray.concat(_CanvasArray);
   }
}
