/* Binary Bit BinaryBit Javascipt
 *  Binary Bit LAN
 *  Author: Jeffrey Scott and Rod Remelin
 *  Copyright 2008 Binary Bit LAN. All Rights Reserved.
 *  http://BinaryBit.com/
 *  Admin@BinaryBit.com
 *  Last Update: 29-Sep-2011 13:26
 *  Version 1.0.5
 */
var BINARYBIT={version:"1.1.1",build:""};var yuiDom=YAHOO.util.Dom,yuiEvent=YAHOO.util.Event,yuiLang=YAHOO.lang,yuiBubbling=YAHOO.Bubbling,yuiBrowser=YAHOO.env.ua,yuiLog=YAHOO.log,yuiDomGet=YAHOO.util.Dom.get,yuiCookie=YAHOO.util.Cookie,yuiWidget=YAHOO.widget,yuiUtil=YAHOO.util,onerror;BINARYBIT.viewport=[0,0];BINARYBIT.defaultWebRoot="htdocs";BINARYBIT.defaultProtocol="http://";BINARYBIT.defaultTopDomainLevel="com";BINARYBIT.localhostMode=true;BINARYBIT.themeFolder="binarybitflesh";BINARYBIT.theme="Blue";BINARYBIT.yui2Version="2.9.0";BINARYBIT.yuiFolder="/build/";BINARYBIT.yuiUrl="http://yui.yahooapis.com/";BINARYBIT.useYuiServer=false;BINARYBIT.baseUrl="";BINARYBIT.debugIpAddress="";BINARYBIT.isDebugIpAddress=false;BINARYBIT.minScreenWidth=75;BINARYBIT.defaultFontSize=100;BINARYBIT.currentFontSize=BINARYBIT.defaultFontSize;BINARYBIT.maxFontSize=220;BINARYBIT.minFontSize=60;BINARYBIT.minWidth=30;BINARYBIT.prefsLoaded=false;BINARYBIT.defaultScreenSize=90;BINARYBIT.oldScreenSize=90;BINARYBIT.defaultScreenId="pagewidth";BINARYBIT.isDebug=false;BINARYBIT.isForceDebugStop=false;BINARYBIT.isShowLog=false;BINARYBIT.errorsHtml=[];BINARYBIT.isDomReady=false;BINARYBIT.currentWidth=90;BINARYBIT.theLogReader=null;BINARYBIT.logVisable=false;BINARYBIT.required=[];BINARYBIT.isShowTopPanel=false;BINARYBIT.isTopPanel=false;BINARYBIT.javaScriptsFolder="js";BINARYBIT.javaScriptsAdded=[];BINARYBIT.showCustomizer=false;BINARYBIT.textHidePanel="Hide";BINARYBIT.textShowPanel="Show";BINARYBIT.isSoundMan=false;BINARYBIT.SoundTheme="";BINARYBIT.onSizeChange=null;BINARYBIT.viewport=[];if(typeof YAHOO==="undefined"){alert("You must include the JavaScript Files:\n"+BINARYBIT.yuiUrl+BINARYBIT.yui2Version+BINARYBIT.yuiFolder+"utilities/utilities.js")}if(window.location.href.substr(0,4)!=="http"){var findBase=window.location.href.indexOf(BINARYBIT.defaultWebRoot);if(findBase===-1){BINARYBIT.defaultWebRoot=prompt('Web Root Not Found! If not in the path of localhost; please move file and try again. What is the base folder in this Path (or "@" to fail)? ',window.location.href);findBase=window.location.href.indexOf(BINARYBIT.defaultWebRoot)}if(findBase===-1){alert("Can not find; function will not work correctly.\nPlease move file into Web Root and try again.")}else{if(BINARYBIT.localhostMode){window.location=BINARYBIT.defaultProtocol+"localhost"+window.location.href.substr(findBase+BINARYBIT.defaultWebRoot.length);BINARYBIT.baseUrl=BINARYBIT.defaultProtocol+"localhost/";alert("Switching to localhost Mode: "+BINARYBIT.baseUrl)}else{window.location=BINARYBIT.defaultProtocol+BINARYBIT.defaultWebRoot+"."+BINARYBIT.defaultTopDomainLevel+window.location.href.substr(findBase+BINARYBIT.defaultWebRoot.length);BINARYBIT.baseUrl=BINARYBIT.defaultProtocol+BINARYBIT.defaultWebRoot+"."+BINARYBIT.defaultTopDomainLevel+"/";alert("Switching to Live Web Mode: "+BINARYBIT.baseUrl)}}}else{BINARYBIT.baseUrl=window.location.href.substr(0,window.location.href.indexOf("/",10))+"/"}BINARYBIT.userAgent=navigator.userAgent.toLowerCase();BINARYBIT.appVersion=navigator.appVersion.toLowerCase();BINARYBIT.isMac=(BINARYBIT.userAgent.indexOf("mac")!==-1);BINARYBIT.iePos=BINARYBIT.appVersion.indexOf("msie");BINARYBIT.minorVersion=false;BINARYBIT.majorVersion=false;BINARYBIT.isOpera=(BINARYBIT.userAgent.indexOf("opera")!==-1);if(BINARYBIT.iePos!==-1){if(BINARYBIT.isMac){BINARYBIT.iePos=BINARYBIT.userAgent.indexOf("msie");BINARYBIT.minorVersion=parseFloat(BINARYBIT.userAgent.substring(BINARYBIT.iePos+5,BINARYBIT.userAgent.indexOf(";",BINARYBIT.iePos)))}else{BINARYBIT.minorVersion=parseFloat(BINARYBIT.appVersion.substring(BINARYBIT.iePos+5,BINARYBIT.appVersion.indexOf(";",BINARYBIT.iePos)))}BINARYBIT.majorVersion=parseInt(BINARYBIT.minorVersion,10)}BINARYBIT.isKonqueror=false;BINARYBIT.kqPos=BINARYBIT.userAgent.indexOf("konqueror");if(BINARYBIT.kqPos!==-1){BINARYBIT.isKonqueror=true;BINARYBIT.minorVersion=parseFloat(BINARYBIT.userAgent.substring(BINARYBIT.kqPos+10,BINARYBIT.userAgent.indexOf(";",BINARYBIT.kqPos)));BINARYBIT.majorVersion=parseInt(BINARYBIT.minorVersion,10)}BINARYBIT.isSafari=(BINARYBIT.userAgent.indexOf("safari")!==-1)?true:false;BINARYBIT.isKhtml=(BINARYBIT.isSafari||BINARYBIT.isKonqueror);BINARYBIT.isIe=((BINARYBIT.iePos!==-1)&&(!BINARYBIT.isOpera)&&(!BINARYBIT.isKhtml));BINARYBIT.isIe6=(BINARYBIT.isIe&&BINARYBIT.minorVersion===6);BINARYBIT.isIe6Up=(BINARYBIT.isIe&&BINARYBIT.minorVersion>=6);BINARYBIT.cookie={getIt:function(cookieName,defaultValue,converter){var cookieMonster=null;if(typeof defaultValue==="undefined"){defaultValue=""}if(typeof converter==="undefined"){cookieMonster=yuiCookie.get(cookieName)}else{cookieMonster=yuiCookie.get(cookieName,converter)}if(cookieMonster===null){cookieMonster=defaultValue}return cookieMonster},setIt:function(theName,value,itExpiresDate,thePath,theDomain,isSecure){var theParm={},myDate,crumb;if(typeof itExpiresDate==="undefined"){myDate=new Date();myDate.setDate(myDate.getDate()+365);theParm.expires=new Date(myDate)}else{theParm.expires=itExpiresDate}if(typeof thePath!=="undefined"){theParm.path=thePath}else{theParm.path="/"}if(typeof theDomain!=="undefined"){theParm.domain=theDomain}if(typeof isSecure!=="undefined"){if(isSecure){theParm.secure=true}}crumb=yuiCookie.set(theName,value,theParm);return true},deleteIt:function(name,path,theDomain){if(typeof theDomain!=="undefined"){yuiCookie.remove(name,{domain:theDomain})}else{yuiCookie.remove(name)}}};BINARYBIT.Debug={debugAlert:function(theMessage,title){if(theMessage===null){theMessage="Error"}if(title===null){title="Blank Message"}if(BINARYBIT.isDebug){alert("Debug Alert "+title+" :\n"+theMessage);if(BINARYBIT.isForceDebugStop){alert("Stop Here")}}},showErrorMsg:function(){if(BINARYBIT.isDebug){if(!BINARYBIT.isDebugIpAddress){return false}var eCount=BINARYBIT.errorsHtml.length,txt="",i;if(eCount>0){for(i=0;i<eCount;(i+=1)){txt+=BINARYBIT.errorsHtml[i]}if(!BINARYBIT.Dom.setIt("bbjerrors",txt)){if(BINARYBIT.isDomReady){this.log(txt)}}}else{BINARYBIT.Dom.setIt("bbjerrors","")}}return true},logErrors:function(msg,url,ln){if(!BINARYBIT.isDebug){return}var txt='<div><span style="color:red">There was a JavaScript error on this page.</span><br />';if(typeof msg!=="undefined"&&msg){txt+='<span style="color:red">Error: </span>'+msg+"<br />"}else{msg="Unknown"}if(typeof url!=="undefined"&&url){txt+='<span style="color:red">URL: </span>'+url+"<br />"}else{url="Unknown"}if(typeof ln!=="undefined"&&ln){txt+='<span style="color:red">Line: </span>'+ln+"<br />"}else{ln="Unknown"}txt+="****************************<br /></div>";BINARYBIT.errorsHtml[BINARYBIT.errorsHtml.length]=txt;if(BINARYBIT.isDomReady){BINARYBIT.Debug.showErrorMsg()}},clearErrors:function(){BINARYBIT.errorsHtml=null;BINARYBIT.errorsHtml=[];BINARYBIT.Dom.setIt("bbjerrors","")},log:function(msg,doDebug){var theMsg=msg,oldMesssage="";yuiLog(theMsg,"info","bbl");if(BINARYBIT.isDebug){oldMesssage=BINARYBIT.Dom.getIt("bbjerrors").innerHTML;if(oldMesssage.length>0){oldMesssage+="<br />"}BINARYBIT.Dom.setIt("bbjerrors",oldMesssage+theMsg);if(BINARYBIT.isForceDebugStop&&doDebug){alert("Stop Here debugger")}}},showVar:function(msg,obj){var objType=BINARYBIT.Dom.typeConstructor(obj);alert("show Var\n"+msg+"\nValue = "+BINARYBIT.Dom.getValue(obj)+"\nObject = "+obj+"\nType = "+objType)}};BINARYBIT.Dom={getIt:function(id){return yuiDomGet(id)},setIt:function(id,value){var obj=yuiDomGet(id);if(obj!==null){obj.innerHTML="";obj.innerHTML=value;return true}else{if(BINARYBIT.isDomReady){BINARYBIT.Debug.log("BINARYBIT.Dom.setIt("+id+","+value+") is null",true)}return false}},getProperty:function(id,prop){var gpObj=yuiDomGet(id),theValue="";if(gpObj!==null){if(typeof prop==="undefined"){prop="undefined"}switch(prop){case"height":theValue=gpObj.height;break;case"width":theValue=gpObj.width;break;case"visibility":theValue=gpObj.visibility;break;case"src":theValue=gpObj.src;break;case"display":theValue=gpObj.display;break;case"zIndex":case"z-index":theValue=gpObj.zIndex;break;case"innerHTML":theValue=this.getTextValue(id);break;case"value":theValue=gpObj.value;break;default:theValue=gpObj.getAttribute(prop);break}return theValue}else{if(BINARYBIT.isDomReady){BINARYBIT.Debug.log("getProperty("+id+","+prop+") is null",true)}return false}},setProperty:function(id,prop,theValue){var obj=yuiDomGet(id);if(obj!==null){switch(prop){case"id":obj.id=theValue;break;case"height":obj.height=theValue;break;case"width":obj.width=theValue;break;case"visibility":obj.visibility=theValue;break;case"src":obj.src=theValue;break;case"display":obj.display=theValue;break;case"zIndex":case"z-index":obj.zIndex=theValue;break;case"innerHTML":obj.innerHTML="";obj.innerHTML=theValue;break;case"value":obj.value=theValue;break;default:obj.setAttribute(prop,theValue)}return true}else{if(BINARYBIT.isDomReady){BINARYBIT.Debug.log("set("+id+","+theValue+") is null",true)}return false}},getTextValue:function(id){var obj=yuiDomGet(id),textNode;if(obj!==null){textNode=obj.firstChild;return textNode.data}return""},getStyle:function(id,property){return yuiDom.getStyle(id,property)},setStyle:function(id,property,value){yuiDom.setStyle(id,property,value)},getWidth:function(){return yuiDom.getViewportWidth()},getHeight:function(){return yuiDom.getViewportHeight()},getScrollX:function(){var theScrollX=0;if(typeof window.pageYOffset==="number"){theScrollX=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){theScrollX=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){theScrollX=document.documentElement.scrollLeft}}}return theScrollX},getScrollY:function(){var theScrollY=0;if(typeof window.pageYOffset==="number"){theScrollY=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){theScrollY=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){theScrollY=document.documentElement.scrollTop}}}return theScrollY},getObjectValueByProperty:function(obj){var retValue;if(obj.hasOwnProperty("value")){retValue=obj.value}else{if(obj.hasOwnProperty("innerHTML")){retValue=obj.innerHTML}else{retValue=obj}}return retValue},getValue:function(obj){var retValue="null",i;switch(this.typeConstructor(obj)){case"undefined":return"undefined";case"object":return this.getObjectValueByProperty(obj);case"string":return((obj==="")?obj:"null");case"function":return((obj==="")?obj:"null");case"number":return isNaN(obj)?"NaN":obj;case"array":for(i=0;i<obj.length;(i+=1)){retValue+=obj[i]+" , "}return retValue;case"boolean":return((obj==="")?obj:"null");case"date":return((obj==="")?obj:"null");default:return(typeof obj)}},setImgSrc:function(id,img){var theObject=yuiDomGet(id);if(theObject!==null){theObject.src=img}else{BINARYBIT.Debug.log("Failed BINARYBIT.Dom.setImgSrc("+id+", "+img+")",true)}},addBookmark:function(title,url){if(!(document.createElement&&document.getElementsByTagName)){return}var buttonStr=BINARYBIT.isMac?"Command/Cmd":"CTRL";if(window.sidebar){window.sidebar.addPanel(title,url,"")}else{if(window.opera&&window.print){alert("You need to press CTRL + D to bookmark our site.")}else{if(document.all){window.external.AddFavorite(url,title)}else{if(BINARYBIT.isKonqueror){alert("You need to press CTRL + B to bookmark our site.")}else{if(BINARYBIT.isSafari){alert("You need to press "+buttonStr+" + D to bookmark our site.")}else{alert("In order to bookmark this site you need to do so manually through your browser.")}}}}}},isJavaScriptLoaded:function(jscriptName){var i=0;for(i=0;i<BINARYBIT.javaScriptsAdded.length;(i+=1)){if(BINARYBIT.javaScriptsAdded[i]===jscriptName){return true}}return false},addJavaScript:function(jsNames,doOnLoad,doRequired,doAddCss,isDefined,theFullPath,theCssFullPath){var commonName,i,useCssPath=false,loader,nameArray,cssArray,folder2;if(typeof isDefined!=="undefined"&&isDefined!==""){if(BINARYBIT.required.length>0){if(BINARYBIT.required.indexOf(isDefined)>-1){return}}}if(typeof theFullPath==="undefined"||theFullPath===null){theFullPath=BINARYBIT.baseUrl+"templates/"+BINARYBIT.themeFolder+"/"+BINARYBIT.javaScriptsFolder+"/"}if(typeof theCssFullPath==="undefined"||theCssFullPath===null){theCssFullPath=BINARYBIT.baseUrl+"templates/"+BINARYBIT.themeFolder+"/"+BINARYBIT.javaScriptsFolder+"/"}else{useCssPath=true;if(theCssFullPath.indexOf("$")>-1){theCssFullPath=BINARYBIT.baseUrl+"templates/"+BINARYBIT.themeFolder+"/Themes/"+BINARYBIT.theme}}loader=new yuiUtil.YUILoader();if(BINARYBIT.useYuiServer){loader.base="http://yui.yahooapis.com/"+BINARYBIT.yui2Version+"/build/"}else{loader.base=BINARYBIT.baseUrl+"templates/"+BINARYBIT.themeFolder+"/"+BINARYBIT.javaScriptsFolder+"/yui/build/"}if(BINARYBIT.Dom.isParameterType(jsNames,"array",true,null,false,"addJavaScript")){nameArray=jsNames.length;commonName=jsNames[0];for(i=1;i<nameArray;(i+=1)){if(!this.isJavaScriptLoaded(jsNames[i])){BINARYBIT.javaScriptsAdded[BINARYBIT.javaScriptsAdded.length]=jsNames[i];loader.addModule({name:jsNames[i],type:"js",fullpath:theFullPath+commonName+"/"+jsNames[i]+".js",varName:"BB_"+jsNames[i]});loader.require(jsNames[i])}else{yuiEvent.onDOMReady(doOnLoad);return}}}else{if(BINARYBIT.Dom.isParameterType(jsNames,"string",true,null,false,"addJavaScript")){if(!this.isJavaScriptLoaded(jsNames)){BINARYBIT.javaScriptsAdded[BINARYBIT.javaScriptsAdded.length]=jsNames;commonName=jsNames;loader.addModule({name:jsNames,type:"js",fullpath:theFullPath+jsNames+"/"+jsNames+".js",varName:"BB_"+jsNames});loader.require(jsNames)}else{yuiEvent.onDOMReady(doOnLoad);return}}}if(BINARYBIT.Dom.isParameterType(doOnLoad,"function",true,null,false,"addJavaScript")){loader.onSuccess=doOnLoad}if(BINARYBIT.Dom.isParameterType(doRequired,"array",true,null,false,"addJavaScript")){loader.require(doRequired)}loader.insert();if(BINARYBIT.Dom.isParameterType(doAddCss,"array",true,null,false,"addJavaScript")){cssArray=doAddCss.length;folder2=doAddCss[0];for(i=1;i<cssArray;(i+=1)){this.addCss(theCssFullPath+"/"+folder2,jsNames[i])}}else{if(BINARYBIT.Dom.isParameterType(doAddCss,"boolean",true,["true"],false,"addJavaScript")){this.addCss(theCssFullPath+"/"+commonName,commonName)}}},addCss:function(folder,cssname){if(document.createStyleSheet){document.createStyleSheet(folder+"/"+cssname+".css")}else{var th=document.getElementsByTagName("head")[0],s=document.createElement("link");s.setAttribute("rel","stylesheet");s.setAttribute("type","text/css");s.setAttribute("href",folder+"/"+cssname+".css");th.appendChild(s)}},hackCssRule:function(selector,style){var CSS=selector+" { "+style+" }",htmDiv=document.createElement("div");htmDiv.innerHTML='<p>x</p><style type="text/css">'+CSS+"</style>";document.body.appendChild(htmDiv.childNodes[1])},addCssRule:function(selector,style){if(!document.styleSheets){return this.hackCssRule(selector,style)}if(document.getElementsByTagName("head").length===0){return}var styleSheet,mediaType,ErrorTrying=false,i,media,styleSheetElement;if(document.styleSheets.length>0){for(i=0;i<document.styleSheets.length;(i+=1)){if(document.styleSheets[i].disabled){continue}media=document.styleSheets[i].media;mediaType=typeof media;if(mediaType==="string"){if(media===""||media.indexOf("screen")!==-1){styleSheet=document.styleSheets[i]}}else{if(mediaType==="object"){if(media.mediaText===""||media.mediaText.indexOf("screen")!==-1){styleSheet=document.styleSheets[i]}}}if(typeof styleSheet!=="undefined"){break}}}if(typeof styleSheet==="undefined"){styleSheetElement=document.createElement("style");styleSheetElement.type="text/css";document.getElementsByTagName("head")[0].appendChild(styleSheetElement);for(i=0;i<document.styleSheets.length;(i+=1)){if(document.styleSheets[i].disabled){continue}styleSheet=document.styleSheets[i]}media=styleSheet.media;mediaType=typeof media}if(mediaType==="string"){for(i=0;i<styleSheet.rules.length;(i+=1)){if(styleSheet.rules[i].selectorText.toLowerCase()===selector.toLowerCase()){styleSheet.rules[i].style.cssText=style;return}}styleSheet.addRule(selector,style)}else{if(mediaType==="object"){try{for(i=0;i<styleSheet.cssRules.length;(i+=1)){if(styleSheet.cssRules[i].selectorText.toLowerCase()===selector.toLowerCase()){styleSheet.cssRules[i].style.cssText=style;return}}}catch(ex){ErrorTrying=true}try{styleSheet.insertRule(selector+"{"+style+"}",styleSheet.cssRules.length)}catch(err){ErrorTrying=true}}}if(ErrorTrying){this.hackCssRule(selector,style)}},addSlimbox:function(id,title,alt,w,h,bigUrl,smallUrl){var slimTag='<a rel="lightbox" class="slimbox" href="'+bigUrl+'" title="'+title+'"><img class="slimbox" src="'+smallUrl+'" alt="'+alt+'" width="'+w+'" height="'+h+'" /></a>';this.setProperty(id,"innerHTML",slimTag)},pause:function(millisecondi){var now=new Date(),exitTime=now.getTime()+parseInt(millisecondi,10);while(true){now=new Date();if(now.getTime()>exitTime){return}}},typeConstructor:function(test){if(typeof test==="undefined"||test===undefined||test===null){return"undefined"}if(test.constructor===Array){return"array"}if(test.constructor===Boolean){return"boolean"}if(test.constructor===Date){return"date"}if(test.constructor===String){return"string"}return typeof test},isParameterType:function(parm,expected,doValidate,vFormat,isReport,from){if(typeof parm==="undefined"){parm=""}if(typeof expected==="undefined"){expected=""}if(typeof from==="undefined"){from="unknown"}if(typeof isReport==="undefined"){isReport=true}if(typeof doValidate==="undefined"){doValidate=false}var i,retValue=false,parmType=typeof parm;if(typeof parm==="undefined"||parm===undefined||parm===null){if(expected==="undefined"){return true}return false}parmType=this.typeConstructor(parm);if(parmType!==expected.toString().toLowerCase()){retValue=false}else{switch(parmType){case"undefined":retValue=true;break;case"object":retValue=true;break;case"string":if(doValidate){if(parm.toString().length>0){retValue=true}}else{if(parm.toString().length>-1){retValue=true}}break;case"function":if(this.isFunction(parm)){retValue=true}break;case"number":if(!isNaN(parm)){retValue=true}if(doValidate){}break;case"array":if(doValidate){if(parm.length>0){retValue=true}}else{if(parm.length>-1){retValue=true}}break;case"boolean":if(doValidate){if(vFormat.length===1){if(parm){if(vFormat[0]==="true"){retValue=true}}else{if(vFormat[0]==="false"){retValue=true}}}else{retValue=true}}else{retValue=true}break;case"date":retValue=true;break}}if(!retValue&&isReport){BINARYBIT.Debug.log("isParameterType Debug\nParameter Type = "+parmType+"\nExpected Type = "+expected+"\nValue = "+this.getValue(parm)+"\n at "+from,true)}return retValue},isEmptyNull:function(that,orIs,isReport,from){if(typeof orIs==="undefined"){orIs=""}if(typeof from==="undefined"){from="unknown"}if(typeof isReport==="undefined"){isReport=false}var retValue=false;switch(typeof that){case"undefined":retValue=true;break;case"object":if(that===null){retValue=true}else{if(that===undefined){retValue=true}}break;case"string":if(orIs.length>0){if(that===orIs){retValue=true}}if(that.toString().length===0){retValue=true}break;case"function":if(that===null){retValue=true}else{if(that===undefined){retValue=true}else{if(!this.isFunction(that)){retValue=true}}}break;case"number":if(isNaN(that)){retValue=true}break;default:if(typeof that===undefined||that===null){retValue=true}break}if(isReport){BINARYBIT.Debug.log("isEmptyNull at "+from,true)}return retValue},isNull:function(that,orIs,isReport,from){if(typeof orIs==="undefined"){orIs=""}if(typeof from==="undefined"){from="unknown"}if(typeof isReport==="undefined"){isReport=false}var retValue=false;switch(typeof that){case"undefined":retValue=true;break;case"object":if(that===null){retValue=true}else{if(that===undefined){retValue=true}}break;case"string":if(orIs.length>0){if(that===orIs){retValue=true}}if(that.toString().length===0){retValue=true}break;case"function":if(that===null){retValue=true}else{if(that===undefined){retValue=true}else{if(!this.isFunction(that)){retValue=true}}}break;case"number":if(isNaN(that)){retValue=true}break}if(isReport){BINARYBIT.Debug.log("isNull at "+from,true)}return retValue},isFunction:function(fnRef){var rtn=true,i;if(typeof fnRef==="object"){for(i=0;i<fnRef.length;(i+=1)){if(typeof fnRef[i]==="function"){continue}rtn=false;break}}else{if(typeof fnRef!=="function"){rtn=false}}return rtn},dumpProps:function(obj,parent){var msg,i;for(i in obj){if(obj.hasOwnProperty(i)){if(parent){msg=parent+"."+i+"\n"+obj[i]}else{msg=i+"\n"+obj[i]}if(!confirm(msg)){return}if(typeof obj[i]==="object"){if(parent){this.dumpProps(obj[i],parent+"."+i)}else{this.dumpProps(obj[i],i)}}}}},makeElement:function(targetId,targetType){var theTarget=yuiDomGet(targetId);if(theTarget===null){theTarget=document.createElement(targetType);theTarget.setAttribute("id",targetId);document.body.appendChild(theTarget)}},makeElements:function(elId,elType,targetId,targetType){var theTarget=yuiDomGet(targetId),theElement;if(theTarget===null){theTarget=document.createElement(targetType);theTarget.setAttribute("id",targetId);document.body.appendChild(theTarget)}theElement=document.createElement(elType);theElement.setAttribute("id",elId);theTarget.appendChild(theElement)},addEvent:function(onEvent,func){yuiEvent.addListener(window,onEvent,func,this)},onDomReady:function(func){yuiEvent.onDOMReady(func)},isW3cDom:function(){return(document.createElement&&document.getElementsByTagName)},changeUrl:function(changeTo){document.location=changeTo},getYuiUrl:function(){return BINARYBIT.yuiUrl+BINARYBIT.yui2Version+BINARYBIT.yuiFolder},yuiBase:function(){return BINARYBIT.useYuiServer?this.getYuiUrl:BINARYBIT.baseUrl+"templates/"+BINARYBIT.themeFolder+"/"+BINARYBIT.javaScriptsFolder+"/yui/build/"},javaScriptBase:function(){return BINARYBIT.baseUrl+"templates/"+BINARYBIT.themeFolder+"/"+BINARYBIT.javaScriptsFolder+"/"}};BINARYBIT.getWindowSize=function(){BINARYBIT.viewport=[yuiDom.getViewportWidth(),yuiDom.getViewportHeight()];var theWidth=400,theHeight=450;if(BINARYBIT.viewport[0]<801){theWidth=400;theHeight=450}else{if(BINARYBIT.viewport[0]<1024){theWidth=400;theHeight=500}else{if(BINARYBIT.viewport[0]<1600){theWidth=500;theHeight=769}else{theWidth=600;theHeight=900}}}return[theWidth,theHeight]};BINARYBIT.binaryBitMakeLogButton=function(){if(BINARYBIT.isShowLog){if(typeof BINARYBIT.theLogCongig==="undefined"){var theSize=BINARYBIT.getWindowSize();BINARYBIT.theLogCongig={width:theSize[0]+"px",height:theSize[1]+"px",newestOnTop:true,footerEnabled:true}}BINARYBIT.theLogReader=new yuiWidget.LogReader(null,BINARYBIT.theLogCongig);BINARYBIT.theLogReader.hide();BINARYBIT.theLogReader.setTitle("Binary Bit Log Man");BINARYBIT.theLogReader.hideCategory("warn");BINARYBIT.theLogReader.hideCategory("error");BINARYBIT.theLogReader.hideCategory("time");BINARYBIT.theLogReader.hideCategory("window");BINARYBIT.theLogReader.hideCategory("warn");BINARYBIT.theLogReader.hideCategory("error");BINARYBIT.theLogReader.hideCategory("time");BINARYBIT.theLogReader.hideCategory("window");BINARYBIT.theLogReader.hideSource("LogReader");BINARYBIT.theLogReader.hideSource("global");BINARYBIT.theLogReader.hideSource("Dom");BINARYBIT.theLogReader.hideSource("Event");BINARYBIT.loggerButtonInit=function(){var onLoggerButtonClick,oButton;if(!BINARYBIT.Dom.getIt("bbloggerbutton")){return}oButton=new yuiWidget.Button({id:"bbloggerbutton",type:"button",label:"Toggle Logger",container:"bbloggerbutton"});onLoggerButtonClick=function(){if(BINARYBIT.logVisable){BINARYBIT.theLogReader.hide();BINARYBIT.logVisable=false}else{BINARYBIT.theLogReader.show();BINARYBIT.logVisable=true}};oButton.on("click",onLoggerButtonClick)};BINARYBIT.loggerButtonInit()}};BINARYBIT.Strings={leftTrim:function(str){var i,j;if(str===null){return null}for(i=0;str.charAt(i)===" ";(i+=1)){j=i}return str.substring(i,str.length)},rightTrim:function(str){var i,j;if(str===null){return null}for(i=str.length-1;str.charAt(i)===" ";(i-=1)){j=i}return str.substring(0,i+1)},trim:function(str){return this.leftTrim(this.rightTrim(str))},leftTrimAll:function(str){var i,j;if(str===null){return str}for(i=0;str.charAt(i)===" "||str.charAt(i)==="\n"||str.charAt(i)==="\t";(i+=1)){j=i}return str.substring(i,str.length)},rightTrimAll:function(str){var i,j;if(str===null){return str}for(i=str.length-1;str.charAt(i)===" "||str.charAt(i)==="\n"||str.charAt(i)==="\t";(i-=1)){j=i}return str.substring(0,i+1)},trimAll:function(str){return this.leftTrimAll(this.rightTrimAll(str))},isBlank:function(val){var i;if(val===null){return true}for(i=0;i<val.length;(i+=1)){if((val.charAt(i)!==" ")&&(val.charAt(i)!=="\t")&&(val.charAt(i)!=="\n")&&(val.charAt(i)!=="\r")){return false}}return true},isInteger:function(val){var i;if(this.isBlank(val)){return false}for(i=0;i<val.length;(i+=1)){if(!this.isDigit(val.charAt(i))){return false}}return true},isNull:function(val){return(val===null)},isNumeric:function(val){return(parseFloat(val,10)===(val*1))},isDigit:function(num){if(num.length>1){return false}var string="1234567890";if(string.indexOf(num)!==-1){return true}return false},replaceSubString:function(inputString,fromString,toString){var toTheLeft,toTheRight,midStrings,midString,midStringLen,i,j,temp=inputString,tempMidString;if(fromString===""){return inputString}if(toString.indexOf(fromString)===-1){while(temp.indexOf(fromString)!==-1){toTheLeft=temp.substring(0,temp.indexOf(fromString));toTheRight=temp.substring(temp.indexOf(fromString)+fromString.length,temp.length);temp=toTheLeft+toString+toTheRight}}else{midStrings=["~","`","_","^","#"];midStringLen=1;midString="";while(midString===""){for(i=0;i<midStrings.length;(i+=1)){tempMidString="";for(j=0;j<midStringLen;(j+=1)){tempMidString+=midStrings[i]}if(fromString.indexOf(tempMidString)===-1){midString=tempMidString;i=midStrings.length+1}}}while(temp.indexOf(fromString)!==-1){toTheLeft=temp.substring(0,temp.indexOf(fromString));toTheRight=temp.substring(temp.indexOf(fromString)+fromString.length,temp.length);temp=toTheLeft+midString+toTheRight}while(temp.indexOf(midString)!==-1){toTheLeft=temp.substring(0,temp.indexOf(midString));toTheRight=temp.substring(temp.indexOf(midString)+midString.length,temp.length);temp=toTheLeft+toString+toTheRight}}return temp}};BINARYBIT.Media={soundStop:function(id){var soundChild=BINARYBIT.Dom.getIt(id),theEnd;if(soundChild){theEnd=BINARYBIT.Dom.getIt("binarybitbottom");theEnd.removeChild(soundChild)}},playSound:function(id,playThis){var soundEmbed=null,theEnd;soundEmbed=document.createElement("embed");soundEmbed.setAttribute("id",id);soundEmbed.setAttribute("src",BINARYBIT.baseUrl+"templates/"+BINARYBIT.themeFolder+"/Sounds/"+playThis);soundEmbed.setAttribute("hidden",true);soundEmbed.setAttribute("autostart",true);theEnd=BINARYBIT.Dom.getIt("binarybitbottom");if(theEnd===null){theEnd=document.createElement("span");theEnd.setAttribute("id","binarybitbottom");document.body.appendChild(theEnd);theEnd.appendChild(soundEmbed);BINARYBIT.Debug.log("Define binarybitbottom tag",false)}else{theEnd.appendChild(soundEmbed)}},setFontSize:function(fontSize){BINARYBIT.Dom.setStyle("pagecontentarea","fontSize",fontSize+"%")},changeFontSize:function(sizeDifference){BINARYBIT.currentFontSize=parseInt(BINARYBIT.currentFontSize,10)+parseInt(sizeDifference*5,10);if(BINARYBIT.isIe6Up){BINARYBIT.maxFontSize=150}if(BINARYBIT.currentFontSize>BINARYBIT.maxFontSize){BINARYBIT.currentFontSize=BINARYBIT.maxFontSize}else{if(BINARYBIT.currentFontSize<BINARYBIT.minFontSize){BINARYBIT.currentFontSize=BINARYBIT.minFontSize}}this.setFontSize(BINARYBIT.currentFontSize);BINARYBIT.cookie.setIt("fontSize",BINARYBIT.currentFontSize)},resetFontSize:function(){BINARYBIT.currentFontSize=BINARYBIT.defaultFontSize;this.changeFontSize(0)}};BINARYBIT.Test={run:function(elId,elType,targetId,targetType,title,isExpected,wasReturned){var isPass=isExpected?(isExpected&&wasReturned):!(wasReturned);BINARYBIT.Dom.makeElements(elId,elType,targetId,targetType);BINARYBIT.Dom.setIt(elId,'<div style="color: '+(isPass?"green":"red")+';">'+title+" Expected "+isExpected.toString()+" Returned "+wasReturned.toString()+"</div><br />")}};BINARYBIT.Date={checkTimeZone:function(){var rightNow=new Date(),date1,date2,date3,date4,temp,hoursDiffStdTime,hoursDiffDaylightTime;date1=new Date(rightNow.getFullYear(),0,1,0,0,0,0);date2=new Date(rightNow.getFullYear(),6,1,0,0,0,0);temp=date1.toGMTString();date3=new Date(temp.substring(0,temp.lastIndexOf(" ")-1));temp=date2.toGMTString();date4=new Date(temp.substring(0,temp.lastIndexOf(" ")-1));hoursDiffStdTime=(date1-date3)/(1000*60*60);hoursDiffDaylightTime=(date2-date4)/(1000*60*60);if(hoursDiffDaylightTime===hoursDiffStdTime){alert("Time zone is GMT "+hoursDiffStdTime+".\nDaylight Saving Time is NOT observed here.")}else{alert("Time zone is GMT "+hoursDiffStdTime+".\nDaylight Saving Time is observed here.")}},isValidTime:function(value){var hasMeridian=false,re=/^\d{1,2}[:]\d{2}([:]\d{2})?( [aApP][mM]?)?$/,values;if(!re.test(value)){return false}if(value.toLowerCase().indexOf("p")!==-1){hasMeridian=true}if(value.toLowerCase().indexOf("a")!==-1){hasMeridian=true}values=value.split(":");if((parseFloat(values[0])<0)||(parseFloat(values[0])>23)){return false}if(hasMeridian){if((parseFloat(values[0])<1)||(parseFloat(values[0])>12)){return false}}if((parseFloat(values[1])<0)||(parseFloat(values[1])>59)){return false}if(values.length>2){if((parseFloat(values[2])<0)||(parseFloat(values[2])>59)){return false}}return true},isValidDate:function(dateStr,format){var reg1,reg2,mm,dd,yy,parts,dt;if(format===null){format="MDY"}format=format.toUpperCase();if(format.length!==3){format="MDY"}if((format.indexOf("M")===-1)||(format.indexOf("D")===-1)||(format.indexOf("Y")===-1)){format="MDY"}if(format.substring(0,1)==="Y"){reg1=/^\d{2}(\-|\/|\.)\d{1,2}\1\d{1,2}$/;reg2=/^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/}else{if(format.substring(1,2)==="Y"){reg1=/^\d{1,2}(\-|\/|\.)\d{2}\1\d{1,2}$/;reg2=/^\d{1,2}(\-|\/|\.)\d{4}\1\d{1,2}$/}else{reg1=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2}$/;reg2=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/}}if((reg1.test(dateStr)===false)&&(reg2.test(dateStr)===false)){return false}parts=dateStr.split(RegExp.$1);if(format.substring(0,1)==="M"){mm=parts[0]}else{if(format.substring(1,2)==="M"){mm=parts[1]}else{mm=parts[2]}}if(format.substring(0,1)==="D"){dd=parts[0]}else{if(format.substring(1,2)==="D"){dd=parts[1]}else{dd=parts[2]}}if(format.substring(0,1)==="Y"){yy=parts[0]}else{if(format.substring(1,2)==="Y"){yy=parts[1]}else{yy=parts[2]}}if(parseFloat(yy)<=50){yy=(parseFloat(yy)+2000).toString()}if(parseFloat(yy)<=99){yy=(parseFloat(yy)+1900).toString()}dt=new Date(parseFloat(yy),parseFloat(mm)-1,parseFloat(dd),0,0,0,0);if(parseFloat(dd)!==dt.getDate()){return false}if(parseFloat(mm)-1!==dt.getMonth()){return false}return true},daysBetween:function(date1,date2){var sDate,eDate,one_day,daysApart;if(date1.indexOf("-")!==-1){date1=date1.split("-")}else{if(date1.indexOf("/")!==-1){date1=date1.split("/")}else{return 0}}if(date2.indexOf("-")!==-1){date2=date2.split("-")}else{if(date2.indexOf("/")!==-1){date2=date2.split("/")}else{return 0}}if(parseInt(date1[0],10)>=1000){sDate=new Date(date1[0]+"/"+date1[1]+"/"+date1[2])}else{if(parseInt(date1[2],10)>=1000){sDate=new Date(date1[2]+"/"+date1[0]+"/"+date1[1])}else{return 0}}if(parseInt(date2[0],10)>=1000){eDate=new Date(date2[0]+"/"+date2[1]+"/"+date2[2])}else{if(parseInt(date2[2],10)>=1000){eDate=new Date(date2[2]+"/"+date2[0]+"/"+date2[1])}else{return 0}}one_day=1000*60*60*24;daysApart=Math.abs(Math.ceil((sDate.getTime()-eDate.getTime())/one_day));return daysApart},weekdaysBetween:function(startDate,endDate){var s,e,adjust,diffDays,weeksBetween;if(startDate<endDate){s=startDate;e=endDate}else{s=endDate;e=startDate}diffDays=Math.floor((e-s)/86400000);weeksBetween=Math.floor(diffDays/7);if(s.getDay()===e.getDay()){adjust=0}else{if(s.getDay()===0&&e.getDay()===6){adjust=5}else{if(s.getDay()===6&&e.getDay()===0){adjust=0}else{if(e.getDay()===6||e.getDay()===0){adjust=5-s.getDay()}else{if(s.getDay()===0||s.getDay()===6){adjust=e.getDay()}else{if(e.getDay()>s.getDay()){adjust=e.getDay()-s.getDay()}else{adjust=5+e.getDay()-s.getDay()}}}}}}return(weeksBetween*5)+adjust}};BINARYBIT.Effect={toggleShowHideText:function(id_1,id_2){var theObject1=BINARYBIT.Dom.getStyle(id_1,"visibility"),theObject2=BINARYBIT.Dom.getStyle(id_2,"visibility"),text1=BINARYBIT.Dom.getProperty(id_1,"innerHTML"),text2=BINARYBIT.Dom.getProperty(id_2,"innerHTML");if(theObject1===null||theObject2===null){BINARYBIT.Debug.debugAlert("toggleBetween was passed an Element it can't find");return}if(typeof text1==="undefined"){text1="Hide"}if(typeof text2==="undefined"){text2="Hide"}BINARYBIT.Dom.setIt(id_1,text2);BINARYBIT.Dom.setIt(id_2,text1)},toggleBetween:function(id_1,id_2){var theObject1=BINARYBIT.Dom.getStyle(id_1,"visibility"),theObject2=BINARYBIT.Dom.getStyle(id_2,"visibility");if(theObject1===null||theObject2===null){BINARYBIT.Debug.debugAlert("toggleBetween was passed an Element it can't find");return}if(theObject1==="visible"){BINARYBIT.Dom.setStyle(id_2,"visibility","visible");BINARYBIT.Dom.setStyle(id_2,"height","100%");BINARYBIT.Dom.setStyle(id_2,"width","100%");BINARYBIT.Dom.setStyle(id_1,"visibility","hidden");BINARYBIT.Dom.setStyle(id_1,"height","0px");BINARYBIT.Dom.setStyle(id_1,"width","0px")}else{BINARYBIT.Dom.setStyle(id_1,"visibility","visible");BINARYBIT.Dom.setStyle(id_1,"height","100%");BINARYBIT.Dom.setStyle(id_1,"width","100%");BINARYBIT.Dom.setStyle(id_2,"visibility","hidden");BINARYBIT.Dom.setStyle(id_2,"height","0px");BINARYBIT.Dom.setStyle(id_2,"width","0px")}}};BINARYBIT.binaryBitPageSizer=function(divid,defaultWidth,currentWidth,theIncreament,doReset){BINARYBIT.currentWidth=currentWidth;var screenWidth=BINARYBIT.Dom.getWidth(),toWidth=currentWidth+theIncreament,myAnim=null,attributes;if(screenWidth<=640){BINARYBIT.minWidth=90}else{if(screenWidth<=800){BINARYBIT.minWidth=80}else{if(screenWidth<=1024){BINARYBIT.minWidth=70}else{if(screenWidth<=1280){BINARYBIT.minWidth=60}else{if(screenWidth<=1440){BINARYBIT.minWidth=50}else{if(screenWidth<=1600){BINARYBIT.minWidth=40}else{if(screenWidth<=1680){BINARYBIT.minWidth=30}else{if(screenWidth<=1920){BINARYBIT.minWidth=30}}}}}}}}attributes={width:{from:BINARYBIT.currentWidth,to:toWidth,unit:"%"}};yuiEvent.on("onpagelarger","click",function(){if(BINARYBIT.currentWidth>99){return}if(myAnim===null){myAnim=new yuiUtil.Anim(divid,attributes,1,yuiUtil.Easing.easeOut)}toWidth=BINARYBIT.currentWidth+theIncreament;myAnim.attributes={width:{from:BINARYBIT.currentWidth,to:toWidth,unit:"%"}};myAnim.animate();BINARYBIT.currentWidth=toWidth;BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth)});yuiEvent.on("onpagesmaller","click",function(){if(BINARYBIT.currentWidth<BINARYBIT.minWidth){return}if(myAnim===null){myAnim=new yuiUtil.Anim(divid,attributes,1,yuiUtil.Easing.easeOut)}BINARYBIT.currentWidth-=theIncreament;toWidth=BINARYBIT.currentWidth-theIncreament;myAnim.attributes={width:{from:BINARYBIT.currentWidth,to:toWidth,unit:"%"}};myAnim.animate();BINARYBIT.currentWidth=toWidth;BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth)});yuiEvent.on("onpagereset","click",function(){if(BINARYBIT.currentWidth===defaultWidth){return}if(myAnim===null){myAnim=new yuiUtil.Anim(divid,attributes,1,yuiUtil.Easing.easeOut)}BINARYBIT.currentWidth=defaultWidth;myAnim.attributes={width:{from:BINARYBIT.currentWidth,to:defaultWidth,unit:"%"}};myAnim.animate();BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth)});this.doPageSizeReset=function(){if(myAnim===null){myAnim=new yuiUtil.Anim(divid,attributes,1,yuiUtil.Easing.easeOut)}BINARYBIT.currentWidth=defaultWidth;myAnim.attributes={width:{from:BINARYBIT.currentWidth,to:defaultWidth,unit:"%"}};myAnim.animate();BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth)};if(doReset){doPageSizeReset()}};BINARYBIT.Security={writeEmailLink:function(id,theClass,eName,eDomain,tdl,description,eSubject,eBody){var extra="",className="",theDescription="";if(eSubject!==null&&eSubject.length>0){extra="?subject="+eSubject}if(eBody!==null&&eBody.length>0){extra+="&body="+eBody.replace(/\|/g,"%0D\r\n")}if(theClass!==null&&theClass.length>0){className=' class="'+theClass+'" '}if(description!==null&&description.length>0){if(description==="~"){theDescription=eName+"@"+eDomain+"."+tdl}else{theDescription=description}}BINARYBIT.Dom.setIt(id,"<a "+className+'href="mailto:'+eName+"@"+eDomain+"."+tdl+extra+'">'+theDescription+"</a>")}};BINARYBIT.setUserOptions=function(){if(!BINARYBIT.prefsLoaded){var cookie=BINARYBIT.cookie.getIt("fontSize",BINARYBIT.defaultFontSize,Number);BINARYBIT.currentFontSize=cookie;if(BINARYBIT.currentFontSize<BINARYBIT.minFontSize||BINARYBIT.currentFontSize>BINARYBIT.maxFontSize){BINARYBIT.currentFontSize=100}BINARYBIT.Media.setFontSize(BINARYBIT.currentFontSize);cookie=BINARYBIT.cookie.getIt("templateWidth",BINARYBIT.defaultScreenSize,Number);BINARYBIT.currentWidth=cookie?parseInt(cookie,10):BINARYBIT.defaultScreenSize;if(!BINARYBIT.Dom.isParameterType(BINARYBIT.currentWidth,"number",true,null,true,"setUserOptions")){BINARYBIT.currentWidth=BINARYBIT.defaultScreenSize}if(BINARYBIT.currentWidth<BINARYBIT.minScreenWidth||BINARYBIT.currentWidth>100){BINARYBIT.currentWidth=BINARYBIT.defaultScreenSize}BINARYBIT.prefsLoaded=true}};yuiEvent.addListener(window,"load",BINARYBIT.setUserOptions,this);BINARYBIT.saveSettings=function(){if(BINARYBIT.currentWidth<BINARYBIT.minScreenWidth||BINARYBIT.currentWidth>100){BINARYBIT.currentWidth=BINARYBIT.defaultScreenSize}if(BINARYBIT.currentFontSize<BINARYBIT.minFontSize||BINARYBIT.currentFontSize>BINARYBIT.maxFontSize){BINARYBIT.currentFontSize=100}if(!BINARYBIT.Dom.isParameterType(BINARYBIT.currentWidth,"number",true,null,true,"saveSettings")){BINARYBIT.Debug.log("saveSettings reset BINARYBIT.currentWidth = "+BINARYBIT.currentWidth,false);BINARYBIT.currentWidth=BINARYBIT.defaultScreenSize}BINARYBIT.cookie.setIt("fontSize",BINARYBIT.currentFontSize);BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth)};yuiEvent.addListener(window,"unload",BINARYBIT.saveSettings,this);BINARYBIT.roundedCorners=function(){var roundedCornerTargets;this.roundedCornerTargets=[]};BINARYBIT.roundedCorners.prototype={addTarget:function(divId,xRadius,yRadius,color,backgroundColor,padding,heightOfContent,whichCorners){var index=this.roundedCornerTargets.length;this.roundedCornerTargets[index]=[];this.roundedCornerTargets[index].divId=divId;this.roundedCornerTargets[index].xRadius=xRadius;this.roundedCornerTargets[index].yRadius=yRadius;this.roundedCornerTargets[index].color=color;this.roundedCornerTargets[index].backgroundColor=backgroundColor;this.roundedCornerTargets[index].padding=padding;this.roundedCornerTargets[index].heightOfContent=heightOfContent;this.roundedCornerTargets[index].whichCorners=whichCorners},init:function(){var cornerArray=[],targetCounter,prop,factorX,obj,content,topBar_container,currentAntialiasSize,savedRestValuemarginSize,savedRestValue,no,no2,marginSize_decimals,marginSize,restValue,antialiasSize,el,y,tmpValue,tmpValue2,contentDiv,bottomBar_container,errorOccured,arrayOfDivs,firstChild,divCounter,divId,xRadius,yRadius,color,backgroundColor,padding,heightOfContent,whichCorners,foregroundSize,blendMode;for(targetCounter=0;targetCounter<this.roundedCornerTargets.length;(targetCounter=targetCounter+1)){divId=this.roundedCornerTargets[targetCounter].divId;xRadius=this.roundedCornerTargets[targetCounter].xRadius;yRadius=this.roundedCornerTargets[targetCounter].yRadius;color=this.roundedCornerTargets[targetCounter].color;backgroundColor=this.roundedCornerTargets[targetCounter].backgroundColor;padding=this.roundedCornerTargets[targetCounter].padding;heightOfContent=this.roundedCornerTargets[targetCounter].heightOfContent;whichCorners=this.roundedCornerTargets[targetCounter].whichCorners;if(!whichCorners||whichCorners==="all"){cornerArray.top_left=true;cornerArray.top_right=true;cornerArray.bottom_left=true;cornerArray.bottom_right=true}else{cornerArray=whichCorners.split(/,/gi);for(prop in cornerArray){if(cornerArray.hasOwnProperty(prop)){cornerArray[cornerArray[prop]]=true}}}factorX=xRadius/yRadius;obj=document.getElementById(divId);obj.style.backgroundColor=null;obj.style.backgroundColor="transparent";content=obj.innerHTML;obj.innerHTML="";if(cornerArray.top_left||cornerArray.top_right){topBar_container=document.createElement("DIV");topBar_container.style.height=yRadius+"px";topBar_container.style.overflow="hidden";obj.appendChild(topBar_container);currentAntialiasSize=0;savedRestValue=0;for(no=1;no<=yRadius;(no=no+1)){marginSize=xRadius-this.getY((yRadius-no),yRadius,factorX);marginSize_decimals=xRadius-this.getY_withDecimals((yRadius-no),yRadius,factorX);restValue=xRadius-marginSize_decimals;antialiasSize=xRadius-marginSize-Math.floor(savedRestValue);foregroundSize=xRadius-(marginSize+antialiasSize);el=document.createElement("DIV");el.style.overflow="hidden";el.style.height="1px";if(cornerArray.top_left){el.style.marginLeft=marginSize+"px"}if(cornerArray.top_right){el.style.marginRight=marginSize+"px"}topBar_container.appendChild(el);y=topBar_container;for(no2=1;no2<=antialiasSize;(no2=no2+1)){switch(no2){case 1:if(no2===antialiasSize){blendMode=((restValue+savedRestValue)/2)-foregroundSize}else{tmpValue=this.getY_withDecimals((xRadius-marginSize-no2),xRadius,1/factorX);blendMode=(restValue-foregroundSize-antialiasSize+1)*(tmpValue-(yRadius-no))/2}break;case antialiasSize:tmpValue=this.getY_withDecimals((xRadius-marginSize-no2+1),xRadius,1/factorX);blendMode=1-(1-(tmpValue-(yRadius-no)))*(1-(savedRestValue-foregroundSize))/2;break;default:tmpValue2=this.getY_withDecimals((xRadius-marginSize-no2),xRadius,1/factorX);tmpValue=this.getY_withDecimals((xRadius-marginSize-no2+1),xRadius,1/factorX);blendMode=((tmpValue+tmpValue2)/2)-(yRadius-no);break}el.style.backgroundColor=this.blendColors(backgroundColor,color,blendMode);y.appendChild(el);y=el;el=document.createElement("DIV");el.style.height="1px";el.style.overflow="hidden";if(cornerArray.top_left){el.style.marginLeft="1px"}if(cornerArray.top_right){el.style.marginRight="1px"}el.style.backgroundColor=color}y.appendChild(el);savedRestValue=restValue}}contentDiv=document.createElement("DIV");contentDiv.className=obj.className;contentDiv.style.border="1px solid "+color;contentDiv.innerHTML=content;contentDiv.style.backgroundColor=color;contentDiv.style.paddingLeft=padding+"px";contentDiv.style.paddingRight=padding+"px";if(!heightOfContent){heightOfContent=""}if(heightOfContent.length>0&&heightOfContent.indexOf("%")===-1){heightOfContent=heightOfContent+"px"}if(heightOfContent.length>0){contentDiv.style.height=heightOfContent}obj.appendChild(contentDiv);if(cornerArray.bottom_left||cornerArray.bottom_right){bottomBar_container=document.createElement("DIV");bottomBar_container.style.height=yRadius+"px";bottomBar_container.style.overflow="hidden";obj.appendChild(bottomBar_container);currentAntialiasSize=0;savedRestValue=0;errorOccured=false;arrayOfDivs=[];for(no=1;no<=yRadius;(no=no+1)){marginSize=xRadius-this.getY((yRadius-no),yRadius,factorX);marginSize_decimals=xRadius-this.getY_withDecimals((yRadius-no),yRadius,factorX);restValue=xRadius-marginSize_decimals;antialiasSize=xRadius-marginSize-Math.floor(savedRestValue);foregroundSize=xRadius-(marginSize+antialiasSize);el=document.createElement("DIV");el.style.overflow="hidden";el.style.height="1px";if(cornerArray.bottom_left){el.style.marginLeft=marginSize+"px"}if(cornerArray.bottom_right){el.style.marginRight=marginSize+"px"}bottomBar_container.insertBefore(el,bottomBar_container.firstChild);y=bottomBar_container;for(no2=1;no2<=antialiasSize;(no2+no2+1)){switch(no2){case 1:if(no2===antialiasSize){blendMode=((restValue+savedRestValue)/2)-foregroundSize}else{tmpValue=this.getY_withDecimals(xRadius-marginSize-no2,xRadius,1/factorX);blendMode=(restValue-foregroundSize-antialiasSize+1)*(tmpValue-(yRadius-no))/2}break;case antialiasSize:tmpValue=this.getY_withDecimals((xRadius-marginSize-no2+1),xRadius,1/factorX);blendMode=1-(1-(tmpValue-(yRadius-no)))*(1-(savedRestValue-foregroundSize))/2;break;default:tmpValue2=this.getY_withDecimals(xRadius-marginSize-no2,xRadius,1/factorX);tmpValue=this.getY_withDecimals((xRadius-marginSize-no2+1),xRadius,1/factorX);blendMode=((tmpValue+tmpValue2)/2)-(yRadius-no)}el.style.backgroundColor=this.blendColors(backgroundColor,color,blendMode);if(y===bottomBar_container){arrayOfDivs[arrayOfDivs.length]=el}try{firstChild=y.getElementsByTagName("DIV")[0];y.insertBefore(el,y.firstChild)}catch(e){y.appendChild(el);errorOccured=true}y=el;el=document.createElement("DIV");el.style.height="1px";el.style.overflow="hidden";if(cornerArray.bottom_left){el.style.marginLeft="1px"}if(cornerArray.bottom_right){el.style.marginRight="1px"}}if(errorOccured){for(divCounter=(arrayOfDivs.length-1);divCounter>=0;(divCounter=divCounter-1)){bottomBar_container.appendChild(arrayOfDivs[divCounter])}}el.style.backgroundColor=color;y.appendChild(el);savedRestValue=restValue}}}},getY:function(x,maxX,factorX){return Math.max(0,Math.ceil(factorX*Math.sqrt((maxX*maxX)-(x*x))))},getY_withDecimals:function(x,maxX,factorX){return Math.max(0,factorX*Math.sqrt((maxX*maxX)-(x*x)))},blendColors:function(colorA,colorB,blendMode){var colorArrayA,colorArrayB,red,green,blue;if(colorA.length==="4"){colorA="#"+colorA.substring(1,1)+colorA.substring(1,1)+colorA.substring(2,1)+colorA.substring(2,1)+colorA.substring(3,1)+colorA.substring(3,1)}if(colorB.length==="4"){colorB="#"+colorB.substring(1,1)+colorB.substring(1,1)+colorB.substring(2,1)+colorB.substring(2,1)+colorB.substring(3,1)+colorB.substring(3,1)}colorArrayA=[parseInt("0x"+colorA.substring(1,3),16),parseInt("0x"+colorA.substring(3,5),16),parseInt("0x"+colorA.substring(5,7),16)];colorArrayB=[parseInt("0x"+colorB.substring(1,3),16),parseInt("0x"+colorB.substring(3,5),16),parseInt("0x"+colorB.substring(5,7),16)];red=Math.round(colorArrayA[0]+(colorArrayB[0]-colorArrayA[0])*blendMode).toString(16);green=Math.round(colorArrayA[1]+(colorArrayB[1]-colorArrayA[1])*blendMode).toString(16);blue=Math.round(colorArrayA[2]+(colorArrayB[2]-colorArrayA[2])*blendMode).toString(16);if(red.length===1){red="0"+red}if(green.length===1){green="0"+green}if(blue.length===1){blue="0"+blue}return"#"+red+green+blue}};BINARYBIT.effectShow="BlindDown";BINARYBIT.effectHide="BlindUp";BINARYBIT.effectID="pmcontent";BINARYBIT.tabId="showpanel";BINARYBIT.toogleId="toggle";BINARYBIT.GhostOn={ghost:true};BINARYBIT.GhostOff={ghost:false};BINARYBIT.GhostShow=true;BINARYBIT.GhostHide=false;BINARYBIT.effect=null;function togglePanelMan(ev){var d=yuiDomGet(BINARYBIT.effectID);if(d.style.display==="none"){yuiWidget.Effects.Show(BINARYBIT.effectID);switch(BINARYBIT.effectShow){case"BlindDown":BINARYBIT.effect=new yuiWidget.Effects.BlindDown(BINARYBIT.effectID,(BINARYBIT.GhostShow?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"UnFold":BINARYBIT.effect=new yuiWidget.Effects.UnFold(BINARYBIT.effectID,(BINARYBIT.GhostShow?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"Appear":BINARYBIT.effect=new yuiWidget.Effects.Appear(BINARYBIT.effectID,(BINARYBIT.GhostShow?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"BlindRight":BINARYBIT.effect=new yuiWidget.Effects.BlindRight(BINARYBIT.effectID,(BINARYBIT.GhostShow?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"Grow":BINARYBIT.effect=new yuiWidget.Effects.Grow(BINARYBIT.effectID,(BINARYBIT.GhostShow?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break}BINARYBIT.Dom.setIt(BINARYBIT.tabId,BINARYBIT.textHidePanel);if(BINARYBIT.isSoundMan){yuiDomGet(BINARYBIT.toogleId).rel="mySoundClose"}}else{switch(BINARYBIT.effectHide){case"BlindUp":BINARYBIT.effect=new yuiWidget.Effects.BlindUp(BINARYBIT.effectID,(BINARYBIT.GhostHide?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"BlindLeft":BINARYBIT.effect=new yuiWidget.Effects.BlindLeft(BINARYBIT.effectID,(BINARYBIT.GhostHide?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"Fold":BINARYBIT.effect=new yuiWidget.Effects.UnFold(BINARYBIT.effectID,(BINARYBIT.GhostHide?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"Fade":BINARYBIT.effect=new yuiWidget.Effects.Fade(BINARYBIT.effectID,(BINARYBIT.GhostHide?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"Shrink":BINARYBIT.effect=new yuiWidget.Effects.Shrink(BINARYBIT.effectID,(BINARYBIT.GhostHide?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"TV":BINARYBIT.effect=new yuiWidget.Effects.TV(BINARYBIT.effectID,(BINARYBIT.GhostHide?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break;case"Drop":BINARYBIT.effect=new yuiWidget.Effects.Drop(BINARYBIT.effectID,(BINARYBIT.GhostHide?BINARYBIT.GhostOn:BINARYBIT.GhostOff));break}yuiDomGet(BINARYBIT.tabId).innerHTML=BINARYBIT.textShowPanel;if(BINARYBIT.isSoundMan){yuiDomGet(BINARYBIT.toogleId).rel="mySoundOpen"}}}function showBinaryBitPanel(){yuiEvent.addListener(BINARYBIT.tabId,"click",togglePanelMan)}function onDoResize(){BINARYBIT.viewport=[yuiDom.getViewportWidth(),yuiDom.getViewportHeight()];if(BINARYBIT.viewport[0]>799){BINARYBIT.defaultScreenSize=BINARYBIT.oldScreenSize;BINARYBIT.currentWidth=BINARYBIT.defaultScreenSize;BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth);BINARYBIT.binaryBitPageSizer(BINARYBIT.defaultScreenId,BINARYBIT.defaultScreenSize,BINARYBIT.currentWidth,1,true)}else{BINARYBIT.defaultScreenSize=99;BINARYBIT.currentWidth=BINARYBIT.defaultScreenSize;BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth);BINARYBIT.binaryBitPageSizer(BINARYBIT.defaultScreenId,BINARYBIT.defaultScreenSize,BINARYBIT.currentWidth,1,true)}}function binaryBitInit(){BINARYBIT.viewport=[yuiDom.getViewportWidth(),yuiDom.getViewportHeight()];if(BINARYBIT.viewport[0]<801){yuiBubbling.on("repaint",onDoResize);BINARYBIT.oldScreenSize=BINARYBIT.defaultScreenSize;BINARYBIT.defaultScreenSize=99;BINARYBIT.currentWidth=BINARYBIT.defaultScreenSize;BINARYBIT.cookie.setIt("templateWidth",BINARYBIT.currentWidth);BINARYBIT.binaryBitPageSizer(BINARYBIT.defaultScreenId,BINARYBIT.defaultScreenSize,BINARYBIT.currentWidth,1,true)}if(BINARYBIT.isDebugIpAddress){if(BINARYBIT.Dom.getIt("db_showJavaScriptVer_v_1")){BINARYBIT.Dom.setIt("db_showJavaScriptVer_v_1","BINARYBIT.version="+BINARYBIT.version)}}BINARYBIT.isDomReady=true;if(BINARYBIT.themeFolder!=="binarybitflesh"){BINARYBIT.Dom.makeElement("bbjerrors","div")}BINARYBIT.binaryBitMakeLogButton();BINARYBIT.Debug.showErrorMsg();if(BINARYBIT.isTopPanel){showBinaryBitPanel()}if(BINARYBIT.showCustomizer){BINARYBIT.binaryBitPageSizer(BINARYBIT.defaultScreenId,BINARYBIT.defaultScreenSize,BINARYBIT.currentWidth,1,false)}}function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!=="function"){window.onload=func}else{window.onload=function(){if(oldonload){oldonload()}func()}}}var addEvent=function(elem,type,eventHandle){if(elem===null||elem===undefined){return}if(elem.addEventListener){elem.addEventListener(type,eventHandle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,eventHandle)}}};function typeOf(value){var s=typeof value;if(s==="object"){if(value){if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))&&typeof value.splice==="function"){s="array"}}else{s="null"}}return s}function bb_slider(id){var Event=YAHOO.util.Event,myCurrentValue,myMax,myMin;switch(id){case"bbfontsizer":myCurrentValue=BINARYBIT.currentFontSize;myMax=BINARYBIT.maxFontSize;myMin=BINARYBIT.minFontSize;break;case"bbpagesizer":myCurrentValue=BINARYBIT.currentWidth;myMax=BINARYBIT.maxWidth;myMin=BINARYBIT.minWidth;break}Event.onContentReady(id,function(){var Dom=YAHOO.util.Dom,oSlider,oDIV,oCustomMenu,oButton,oHTMLButton,onMenuBeforeShow;oDIV=document.createElement("div");oDIV.id="customcontrols";Dom.get(id).appendChild(oDIV);oCustomMenu=new YAHOO.widget.Menu("custommenu",{width:"220px"});oButton=new YAHOO.widget.Button({type:"menu",id:"custombutton",label:'<em id="custombutton-currentvalue">100%</em>',menu:oCustomMenu,container:"customcontrols"});oButton.on("appendTo",function(){oCustomMenu.setBody('<div id="slider-bg" tabindex="1" title="Slider"><div id="slider-thumb"><img src="'+BINARYBIT.yuiUrl+BINARYBIT.yui2Version+BINARYBIT.yuiFolder+'button/assets/thumb-n.gif"></div></div>');oCustomMenu.render(this.get("container"));myCurrentValue=Dom.get("custombutton-currentvalue")});oHTMLButton=oButton.get("element").getElementsByTagName("button")[0];oHTMLButton.id="custombutton-button";onMenuBeforeShow=function(){var oSliderEl;oSlider=YAHOO.widget.Slider.getHorizSlider("slider-bg","slider-thumb",0,200,1);oSlider.setValue(200,true);oSliderEl=Dom.get("slider-bg");oSlider.subscribe("change",function(){var slideValue;slideValue=(Math.round(oSlider.getValue()*0.5));slideValue=(slideValue*0.01);oSliderEl.title="slider value = "+Math.round(slideValue);switch(id){case"bbfontsizer":BINARYBIT.Media.setFontSize(slideValue);break;case"bbpagesizer":BINARYBIT.setPageWidth(slideValue);break}myCurrentValue.innerHTML=(slideValue+"%")});this.focusSlider=function(){if((YAHOO.env.ua.ie||YAHOO.env.ua.gecko)&&oSliderEl){window.setTimeout(function(){oSliderEl.focus()},0)}};focusSlider();oCustomMenu.subscribe("show",focusSlider);oCustomMenu.unsubscribe("beforeShow",onMenuBeforeShow)};oCustomMenu.subscribe("beforeShow",onMenuBeforeShow)})}YAHOO.namespace("bbf.popup");YAHOO.bbf.popup.wrapper=false;var bbpopup=function(msg,fileName){YAHOO.bbf.popup.viewport=[yuiDom.getViewportWidth(),yuiDom.getViewportHeight()];var theWidth=640,theHeight=590,frameId,kl;if(YAHOO.bbf.popup.viewport[0]<801){theWidth=640;theHeight=400}else{if(YAHOO.bbf.popup.viewport[0]<1024){theWidth=800;theHeight=500}else{if(YAHOO.bbf.popup.viewport[0]<1600){theWidth=1024;theHeight=769}else{theWidth=1600;theHeight=900}}}YAHOO.util.Dom.addClass("minwidth-body","yui-skin-sam");if(!yuiLang.isFunction(YAHOO.widget.Panel)){return false}YAHOO.bbf.popup.wrapper=new YAHOO.widget.Panel("popup",{width:theWidth+"px",height:theHeight+"px",fixedcenter:true,iframe:true,close:true,draggable:true,zindex:13000,modal:true,visible:true,opacity:1});kl=new YAHOO.util.KeyListener(document,{keys:27},{fn:YAHOO.bbf.popup.wrapper.hide,scope:YAHOO.bbf.popup.wrapper,correctScope:true});YAHOO.bbf.popup.wrapper.cfg.queueProperty("keylisteners",kl);YAHOO.bbf.popup.wrapper.setHeader(msg);frameId=document.createElement("iframe");frameId.src=fileName+".php";frameId.width=theWidth-20;frameId.height=theHeight-50;YAHOO.bbf.popup.wrapper.setBody(frameId);YAHOO.bbf.popup.wrapper.render(document.body)};function BinaryBook(menuItems,frameId,myDim,baseUrl,tocId,bookMenu,bookName,funName){this.menuItems=menuItems;this.frameId=frameId;this.myDim=myDim;this.baseUrl=baseUrl;this.tocId=tocId;this.bookMenu=bookMenu;this.bookName=bookName;this.funName=funName;this.curItem=0;this.curMenu=0;this.lastPage=0;this.prevItem=0;this.bookVersion="1.0.1";function getVersion(){return this.bookVersion}function bookGetHash(){return location.hash.substring(1)}function bookSetHash(newHash){window.location.hash=newHash;return window.location.hash}function setCookie(cookieName,value,days){var expires="",date;if(days){date=new Date();date.setTime(date.getTime()+(days*86400000));expires="; expires="+date.toGMTString()}document.cookie=cookieName+"="+value+expires+"; path=/"}function getCookie(cookieName){var nameEQ=cookieName+"=",ca=document.cookie.split(";"),c,i;for(i=0;i<ca.length;(i+=1)){c=ca[i];while(c.charAt(0)===" "){c=c.substring(1,c.length)}if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length)}}return null}function changeSrc(myMenuItem){if(myMenuItem===null||isNaN(myMenuItem)){myMenuItem=0}for(i=0;i<this.frameId.length;(i+=1)){if(i===0){this.prevItem=this.curItem;this.curItem=myMenuItem;this.lastPage=this.baseUrl[i]+this.menuItems[i][myMenuItem]+".php";document.getElementById(this.tocId).options[myMenuItem].selected=true;this.setCookie(this.bookName,myMenuItem);this.setCookie(this.bookName+"Item",this.menuItems[i][myMenuItem]);this.bookSetHash(this.menuItems[i][myMenuItem])}document.getElementById(this.frameId[i]).src=this.baseUrl[i]+this.menuItems[i][myMenuItem]+".php"}return window.location.hash}function next(){if(this.curItem!==(this.menuItems[this.curMenu].length-1)){this.curItem=this.curItem+1;return this.changeSrc(this.curItem)}return true}function prev(){if(this.curItem!==0){this.curItem=this.curItem-1;this.changeSrc(this.curItem)}return true}function renameMenuItem(itemName){itemName=itemName.replace(/-/g," ");itemName=itemName.substr(0,1).toUpperCase()+itemName.substr(1);return itemName}function goBack(){var lastHash=this.getCookie(this.bookName+"Item");window.location=location.protocol+"//"+window.location.href.substr(0,window.location.href.indexOf("/",10))+"/"+this.baseUrl[0]+lastHash+".php";return window.location.hash}function doResize(){YAHOO.bbf.help.viewport=[YAHOO.util.Dom.getViewportWidth(),YAHOO.util.Dom.getViewportHeight()];var theWidth=640,theHeight,myWidth,myHeight;if(YAHOO.bbf.help.viewport[0]<801){theWidth=640;theHeight=400}else{if(YAHOO.bbf.help.viewport[0]<1024){theWidth=800;theHeight=500}else{if(YAHOO.bbf.help.viewport[0]<1600){theWidth=1024;theHeight=769}else{theWidth=1600;theHeight=900}}}for(i=0;i<this.frameId.length;(i+=1)){myHeight=this.myDim[i][0];myWidth=this.myDim[i][1];document.getElementById(this.frameId[i]).height=((myHeight===0)?theHeight:myHeight);document.getElementById(this.frameId[i]).width=((myWidth===0)?theWidth:myWidth)}return true}function doOnStartup(){var i,j,myHash,wasFound=false,ctrlText='<select id="'+this.tocId+'" onchange="'+this.funName+'.changeSrc(this.selectedIndex)" >';for(this.curItem=0;this.curItem<this.menuItems[this.curMenu].length;(this.curItem=this.curItem+1)){ctrlText=ctrlText+'<option value="'+this.menuItems[this.curMenu][this.curItem]+'">'+this.renameMenuItem(this.menuItems[this.curMenu][this.curItem])+"</option>"}ctrlText=ctrlText+"</select>";document.getElementById(this.bookMenu).innerHTML=ctrlText;this.curItem=this.getCookie(this.bookName);if(this.curItem===null||isNaN(this.curItem)){this.curItem=0}myHash=this.bookGetHash();if(myHash.length>0){for(i=0;i<this.menuItems[this.curMenu].length;(i+=1)){if(this.menuItems[this.curMenu][i]===myHash){this.changeSrc(i);wasFound=true}}if(!wasFound){this.changeSrc(this.curItem)}}else{this.changeSrc(this.curItem)}addEvent(window,"resize",function(){this.doResize()})}this.bookGetHash=bookGetHash;this.bookSetHash=bookSetHash;this.setCookie=setCookie;this.getCookie=getCookie;this.changeSrc=changeSrc;this.next=next;this.prev=prev;this.renameMenuItem=renameMenuItem;this.goBack=goBack;this.doResize=doResize;this.doOnStartup=doOnStartup;this.getVersion=getVersion}yuiEvent.onDOMReady(binaryBitInit);onerror=BINARYBIT.Debug.logErrors;
