
function BrCheck(){var bname=navigator.appName;if(bname=="Microsoft Internet Explorer")this.bname="IE";else if(bname=="Netscape")this.bname="NC";else this.bname=bname;this.version=parseInt(navigator.appVersion);this.NC3=(this.bname=="NC"&&this.version==3);this.NC=(this.bname=="NC"&&this.version>=4);this.NC4=(this.bname=="NC"&&this.version==4);this.NC5=(this.bname=="NC"&&this.version==5);this.IE=(this.bname=="IE"&&this.version>=4);this.IE5=(navigator.userAgent.indexOf('MSIE 5')>0);this.IE4=(navigator.userAgent.indexOf('MSIE 4')>0);if(this.IE5)this.ver=5;this.MIN=(this.IE||this.NC);}
bcl_browser_obj=new BrCheck();bcLayer.nestedArray=new Array();bcLayer.refArray={};bcLayer.refArray.i=0;function bcLayer(layerName,nested){this.elm=this.event=document.getElementById(layerName);this.styles=this.elm.style;this.docum=document;this.w=this.elm.offsetWidth;this.h=this.elm.offsetHeight;this.x=this.elm.offsetLeft;this.y=this.elm.offsetTop;this.id=layerName;this.nested=nested;this.visible=true;this.switched=true;this.obj=layerName+"bcLayer";eval(this.obj+"=this");}
function bcLayerMoveTo(x,y){if(y!=null){this.y=y;this.styles.top=y;}
if(x!=null){this.x=x;this.styles.left=x;}}
bcLayer.prototype.MoveTo=bcLayerMoveTo;function bcLayerMoveBy(x,y){this.MoveTo(this.x+x,this.y+y);}
bcLayer.prototype.MoveBy=bcLayerMoveBy;function bcLayerShow(){this.styles.visibility="visible";this.visible=true;}
bcLayer.prototype.show=bcLayerShow
function bcLayerHide(){this.styles.visibility="hidden";this.visible=false;}
bcLayer.prototype.hide=bcLayerHide
function bcLayerToggleVisibility(){if(!this.visible)this.show();else if(this.visible)this.hide();}
bcLayer.prototype.ToggleVis=bcLayerToggleVisibility;function bcLayerBackgnd(color){this.styles.backgroundColor=color;}
bcLayer.prototype.setbackgnd=bcLayerBackgnd;function SwapImg(image_id,object){document.getElementById(image_id).src=eval(object+'.src');}
bcLayer.prototype.sImage=SwapImg;function bcLayerSkateTo(endx,endy,inc,speed){if(endx==null)endx=this.x;if(endy==null)endy=this.y;var distx=endx-this.x;var disty=endy-this.y;this.SkateBegin(endx,endy,distx,disty,inc,speed);}
bcLayer.prototype.SkateTo=bcLayerSkateTo;function bcLayerSkateBy(distx,disty,inc,speed){var endx=this.x+distx;var endy=this.y+disty;this.SkateBegin(endx,endy,distx,disty,inc,speed);}
bcLayer.prototype.SkateBy=bcLayerSkateBy;function bcLayerSkateBegin(endx,endy,distx,disty,inc,speed){if(this.SkateRun)return;if(!inc)inc=10;if(!speed)speed=20;var num=Math.sqrt(Math.pow(distx,2)+Math.pow(disty,2))/inc;if(num==0)return;var dx=distx/num;var dy=disty/num;this.SkateRun=true;this.Skate(dx,dy,endx,endy,num,1,speed);}
bcLayer.prototype.SkateBegin=bcLayerSkateBegin;function bcLayerSkate(dx,dy,endx,endy,num,i,speed){if(!this.SkateRun)return;if(i++<num){this.MoveBy(dx,dy);this.onSkate();if(this.SkateRun)setTimeout(this.obj+".Skate("+dx+","+dy+","+endx+","+endy+","+num+","+i+","+speed+")",speed);else this.onSkateFinnish();}
else{this.SkateRun=false;this.MoveTo(endx,endy);this.onSkate();this.onSkateFinish();}}
bcLayer.prototype.Skate=bcLayerSkate;function bcLayerSkateInit(){}
bcLayer.prototype.SkateInit=bcLayerSkateInit;bcLayer.prototype.onSkate=new Function();bcLayer.prototype.onSkateFinish=new Function();function bcLayerWrite(html){this.event.innerHTML=html;}
bcLayer.prototype.writeStr=bcLayerWrite;function bcLayerLoad(url){this.loadEnd=bgLayerLoadEnd;buffer.document.location=url;}
bcLayer.prototype.load=bcLayerLoad;function bgLayerLoadEnd(){this.event.innerHTML=buffer.document.body.innerHTML;}
function bcLayerGetRealX(){return this.elm.offsetLeft;}
bcLayer.prototype.getRealX=bcLayerGetRealX;function bcLayerGetRealY(){return this.elm.offsetTop;}
bcLayer.prototype.getRealY=bcLayerGetRealY;function bcLayerGetContW(){return this.elm.scrollWidth;}
bcLayer.prototype.getContW=bcLayerGetContW;function bcLayerGetContH(){return this.elm.scrollHeight;}
bcLayer.prototype.getContH=bcLayerGetContH;
