var bs={};(function bitsite(){var ie
/*@cc_on = ScriptEngineMinorVersion() @*/
;bs.ie=ie;if(document.getElementsByClassName){getElementsByClass=function(classList,node){return(node||document).getElementsByClassName(classList)}}else{getElementsByClass=function(classList,node){var node=node||document,list=node.getElementsByTagName("*"),length=list.length,classArray=classList.split(/\s+/),classes=classArray.length,result=[],i,j;for(i=0;i<length;i++){for(j=0;j<classes;j++){if(list[i].className.search("\\b"+classArray[j]+"\\b")!=-1){result.push(list[i]);break}}}return result}}function bindReady(handler){var called=false;function ready(){if(called){return}called=true;handler()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){ready()},false)}else{if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top){function tryScroll(){if(called){return}if(!document.body){return}try{document.documentElement.doScroll("left");ready()}catch(e){setTimeout(tryScroll,0)}}tryScroll()}document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){ready()}})}}if(window.addEventListener){window.addEventListener("load",ready,false)}else{if(window.attachEvent){window.attachEvent("onload",ready)}}}readyList=[];bs.onReady=function onReady(handler){if(!readyList.length){bindReady(function(){for(var i=0;i<readyList.length;i++){readyList[i]()}})}readyList.push(handler)};bs.addClass=function addClass(o,c){var re=new RegExp("(^|\\s)"+c+"(\\s|$)","g");if(re.test(o.className)){return}o.className=(o.className+" "+c).replace(/\s+/g," ").replace(/(^ | $)/g,"")};bs.removeClass=function removeClass(o,c){var re=new RegExp("(^|\\s)"+c+"(\\s|$)","g");o.className=o.className.replace(re,"$1").replace(/\s+/g," ").replace(/(^ | $)/g,"")};bs.elHover=function elHover(tagName){tagName=tagName||"*";var els=document.getElementsByTagName(tagName);for(i=0;i<els.length;i++){if(hover=els[i].getAttribute("hover")){divClass=els[i].className;hov=hover;els[i].onmouseover=function(){this.className=hov};els[i].onmouseout=function(){this.className=divClass}}}};bs.getVarValueFromURL=function getVarValueFromURL(url,varName){var query=url.substring(url.indexOf("?")+1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(pair[0]==varName){return pair[1]}}return null};bs.aPosition=function aPosition(event,node,parentNode,position,vertical,horizontal,x,y,zIndex){var x=x||0;var y=y||0;var parentNode=parentNode||document.body;node.style.position=position;if((position=="absolute")||(position=="fixed")){if(vertical=="top"){node.style.top=y}else{if(vertical=="bottom"){node.style.bottom=y}else{if(vertical=="center"){var visibleHeight=document.documentElement.clientHeight;var nodeHeight=node.offsetHeight;if(visibleHeight>nodeHeight){node.style.top=Math.round((visibleHeight-nodeHeight)/2)+y+"px"}else{node.style.top=y}}else{if(vertical=="cursor"){if(!cursor){var cursor=window.event||event}if(cursor.pageY){var cursorY=cursor.pageY}else{if(cursor.clientY){var cursorY=cursor.clientY+document.body.scrollTop}}node.style.top=cursorY+y+"px"}}}}if(horizontal=="left"){node.style.left=x}else{if(horizontal=="right"){node.style.right=x}else{if(horizontal=="center"){var visibleWidth=document.documentElement.clientWidth;var nodeWidth=node.offsetWidth;if(visibleWidth>nodeWidth){node.style.left=Math.round((visibleWidth-nodeWidth)/2)+x+"px"}else{node.style.left=x}}else{if(horizontal=="cursor"){if(!cursor){var cursor=window.event}if(cursor.pageX){var cursorX=cursor.pageX}else{if(cursor.clientX){var cursorX=cursor.clientX+document.body.scrollTop}}node.style.left=cursorX+x+"px"}}}}if(zIndex!==undefined){node.style.zIndex=zIndex}}parentNode.appendChild(node)};bs.text_slide=function text_slide(endfunc){var aEls,reg,idEl,slideEl,blockEl,attrblock,chEls;if(aEls=document.getElementsByTagName("A")){for(i=0;i<aEls.length;i++){if((aEls[i].className=="text_slide")&&(aEls[i].href.search("/#/"))){idEl=bs.strrchr(aEls[i].href,"#").slice(1);slideEl=document.getElementById(idEl);aEls[i].onclick=function(){if(!(attrblock=this.getAttribute("block"))){$(slideEl).slideToggle("fast",endfunc)}else{if(slideEl.style.display=="none"){slideEl.style.display="block"}if(blockEl=document.getElementById(attrblock)){if(slideEl.getAttribute("flagblock")==attrblock){$(blockEl).slideToggle("fast",endfunc)}else{if(chEls=slideEl.getElementsByTagName("*")){for(i=0;i<chEls.length;i++){if(chEls[i].parentNode==slideEl){if(chEls[i].id==attrblock){slideEl.insertBefore(chEls[i],slideEl.firstChild);$(slideEl.firstChild).slideDown("fast",endfunc)}else{if(chEls[i].style.display!="none"){$(chEls[i]).slideUp("fast",endfunc)}}}}slideEl.setAttribute("flagblock",attrblock)}}}}return false}}}}};bs.clearText=function clearText(el){if(el!=null){if(el.childNodes){for(var i=0;i<el.childNodes.length;i++){var childNode=el.childNodes[i];el.removeChild(childNode)}}}};bs.replaceText=function replaceText(el,text){if(el!=null){clearText(el);var newNode=document.createTextNode(text);el.appendChild(newNode)}};bs.getText=function getText(el){var text="";if(el!=null){if(el.childNodes){for(var i=0;i<el.childNodes.length;i++){var childNode=el.childNodes[i];if(childNode.nodeValue!=null){text=text+childNode.nodeValue}}}}return text};bs.scroll=function scroll(prev,scroll,next,hv,increasePlus,delay,length){var hv=hv||"horizontal";var increasePlus=increasePlus||1;var delay=delay||1;prev.onmousedown=function(){scrollStart(-increasePlus)};next.onmousedown=function(){scrollStart(increasePlus)};prev.onmouseup=scrollStop;next.onmouseup=scrollStop;function scrollStart(increase){if(!delay){delay=1}var pos=(increase<0)?increase*-1:increase;pos=Math.ceil(length/pos);if(hv=="horizontal"){var first=scroll.scrollLeft}if(hv=="vertical"){var first=scroll.scrollTop}function doScroll(){if(length&&pos--<=0){clearInterval(scroll.interval);return}if(hv=="horizontal"){scroll.scrollLeft+=increase;if(scroll.scrollLeft!==first+increase){clearInterval(scroll.interval)}first=scroll.scrollLeft}if(hv=="vertical"){scroll.scrollTop+=increase;if(scroll.scrollTop!==first+increase){clearInterval(scroll.interval)}first=scroll.scrollTop}}if(scroll.interval){clearInterval(scroll.interval)}scroll.interval=setInterval(doScroll,delay)}function scrollStop(){clearInterval(scroll.interval)}}})();
