jBeta={};jBeta.$prevLibrary=$;document.getElementsByClassName=function(parentTag,tagName,className){var hasClassName=new RegExp("(?:^|\\s)"+className+"(?:$|\\s)");var allElements=((parentTag!=undefined)?parentTag:document).getElementsByTagName((tagName!='')?tagName:"*");var results=[];var element;for(var i=0;(element=allElements[i])!=null;i++){var eClass=element.className;if(eClass&&eClass.indexOf(className)!=-1&&hasClassName.test(eClass)){results.push(element);}}
return results;}
document.getElementsByCName=function(parentTag,tagName,Name){var allElements=((parentTag!=undefined)?parentTag:document).getElementsByTagName((tagName!='')?tagName:"*");var results=[];var element;for(var i=0;i<allElements.length;i++){element=allElements[i];if(element.getAttribute('name')==Name){results.push(element);}}
return results;}
document.getElementsByID=function(parentTag,tagName,ID){var allElements=((parentTag!=undefined)?parentTag:document).getElementsByTagName((tagName!='')?tagName:"*");var element;var results=[];for(var i=0;i<allElements.length;i++){element=allElements[i];var eId=element.id;if(eId&&eId==ID){results.push(element);return results;}}
return results.length<=0?null:results;}
jBeta=function(info){var obj=null;var parts=null;var returnObjects=new Array();if(typeof info=='object'){return new jBeta.Item(info);}
var layers=info.split(' ').reverse();obj=jBeta._getElementsLoop(layers[0],document);for(var i=1;i<layers.length;i++){for(var j=0;j<obj.length;j++){if(jBeta._checkLineage(obj[j],layers[i],i)){returnObjects.push(obj[j]);}}
parts=returnObjects;returnObject=new Array();}
obj=(parts!=null&&parts.length>0)?parts:obj;return(obj!=null)?(new jBeta.Item(obj)):null;}
jBeta._checkLineage=function(obj,parent,level){ele=obj;for(var i=0;i<level;i++){ele=ele.parentNode;}
retBool=false;if(parent.split('.').length>1){parts=parent.split('.');retBool=ele.tagName==parts[0].toUpperCase()&&ele.className==parts[1];}
else if(parent.split(':').length>1){parts=parent.split(':');retBool=ele.tagName==parts[0].toUpperCase()&&ele.getAttribute('name')==parts[1];}
else if(parent.split('#').length>1){parts=parent.split('#');retBool=ele.tagName==parts[0].toUpperCase()&&ele.id==parts[1];}
else{retBool=ele.tagName==parent.toUpperCase();}
return retBool;}
jBeta._getElementsLoop=function(info,parentElement){var obj=null;if(info.split('.').length>1){parts=info.split('.');obj=document.getElementsByClassName(parentElement,parts[0],parts[1]);}
else if(info.split(':').length>1){parts=info.split(':');obj=document.getElementsByCName(parentElement,parts[0],parts[1]);}
else if(info.split('#').length>1){parts=info.split('#');obj=document.getElementsByID(parentElement,parts[0],parts[1]);}
else{obj=((parentElement!=undefined)?parentElement:document).getElementsByTagName(info);}
return obj;}
jBeta.NoToeStomping=function(){$=jBeta.$prevLibrary;return jBeta;}
jBeta.ready=function(callback){if(document.addEventListener){document.addEventListener("DOMContentLoaded",callback,false);}
else if(document.readyState){document.attachEvent("onreadystatechange",function(){if(document.readyState=='complete'){callback();}});}
else{document.onload=callback;}}
jBeta.foreach=function(array,func,additionalInfo){for(var i=0;i<array.length;i++){func(array[i],additionalInfo);}}
jBeta.Item=function(obj){this.data=obj;this.size=function(){if(this.data.length>0){return this.data.length;}
else if(this.data==null){return 0;}
return 1;};this.reduce=function(index){if(index>this.data.length){return this;}
objs=this.data;this.data=[];this.data.push(objs[index]);return this;};this.get=function(index){if(index!=null){return this.data[index];}
return this.data;};this.setStyle=function(styleName,styleValue){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i].style[styleName]=styleValue;}}
else{this.data.style[styleName]=styleValue;}
return this;};this.getStyle=function(styleLookup){returnValue=null;if(this.data.length>0){for(var i=0;i<this.data.length;i++){if(returnValue==this.data[i].style[styleLookup]&&returnValue!=null&&i>0){}
else if(returnValue==null){returnValue=this.data[i].style[styleLookup];}
else{return'_mixed_';}}}
else{returnValue=this.data.style[styleLookup];}
return returnValue;};this.setProperty=function(propertyName,propertyValue){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i][propertyName]=propertyValue;}}
else{this.data[propertyName]=propertyValue;}
return this;};this.getProperty=function(propertyLookup){returnValue=null;if(this.data.length>0){for(var i=0;i<this.data.length;i++){if(returnValue==this.data[i][propertyLookup]&&returnValue!=null&&i>0){}
else if(returnValue==null){returnValue=this.data[i][propertyLookup];}
else{return'_mixed_';}}}
else{returnValue=this.data[propertyLookup];}
return returnValue;}
this.show=function(){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i].style.display='';}}
else{this.data.style.display='';}
return this;};this.hide=function(){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i].style.display='none';}}
else{this.data.style.display='none';}
return this;};this.removeEventListener=function(evt){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i][evt]=this.data[i].disableDefault?'return false;':'';}}
else{this.data[evt]=this.data.disableDefault?'return false;':'';}
return this;};this.addEventListener=function(evt,func){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i][evt]=func;}}
else{this.data[evt]=func;}
return this;};this.clearClass=function(){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i].className='';}}
else{this.data.className='';}
return this;};this.setClass=function(className){if(this.data.length>0){for(var i=0;i<this.data.length;i++){this.data[i].className=className;}}
else{this.data.className=className;}
return this;};this.slideHeight=function(toHeight,speed,style){if(this.data.length>0){for(var i=0;i<this.data.length;i++){jBeta(this.data[i]).setStyle('overflow','hidden');if(this.data[i].originalHeight==undefined){this.data[i].originalHeight=this.data[i].offsetHeight;}
if(toHeight=='standard'){this.data[i].toHeight=this.data[i].originalHeight;}
else{this.data[i].toHeight=toHeight;}
jBeta.Animator.slideHeight(this.data[i],speed,style);}}
else{jBeta(this.data).setStyle('overflow','hidden');if(this.data.originalHeight==undefined){this.data.originalHeight=this.data.offsetHeight;}
if(toHeight=='standard'){this.data.toHeight=this.data.originalHeight;}
else{this.data.toHeight=toHeight;}
jBeta.Animator.slideHeight(this.data,speed,style);}
return this;};this.slideWidth=function(toWidth,speed,style){if(this.data.length>0){for(var i=0;i<this.data.length;i++){jBeta(this.data[i]).setStyle('overflow','hidden');if(this.data[i].originalWidth==undefined){this.data[i].originalWidth=this.data[i].offsetWidth;}
if(toWidth=='standard'){this.data[i].toWidth=this.data[i].originalWidth;}
else{this.data[i].toWidth=toWidth;}
jBeta.Animator.slideWidth(this.data[i],speed,style);}}
else{jBeta(this.data).setStyle('overflow','hidden');if(this.data.originalWidth==undefined){this.data.originalWidth=this.data.offsetWidth;}
if(toWidth=='standard'){this.data.toWidth=this.data.originalWidth;}
else{this.data.toWidth=toWidth;}
jBeta.Animator.slideWidth(this.data,speed,style);}
return this;};this.fadeOut=function(speed,style){if(this.data.length>0){for(var i=0;i<this.data.length;i++){if(this.data[i].currentOpacity==undefined){this.data[i].currentOpacity=100;}
this.data[i].toOpacity=0;this.data[i].style.zoom='1';jBeta.Animator.fadeTo(this.data[i],speed,style);}}
else{if(this.data.currentOpacity==undefined){this.data.currentOpacity=100;}
this.data.toOpacity=0;this.data.style.zoom='1';jBeta.Animator.fadeTo(this.data,speed,style);}
return this;};this.fadeIn=function(speed,style){if(this.data.length>0){for(var i=0;i<this.data.length;i++){if(this.data[i].currentOpacity==undefined){this.data[i].currentOpacity=100;}
this.data[i].toOpacity=100;this.data[i].style.zoom='1';jBeta.Animator.fadeTo(this.data[i],speed,style);}}
else{if(this.data.currentOpacity==undefined){this.data.currentOpacity=100;}
this.data.toOpacity=100;this.data.style.zoom='1';jBeta.Animator.fadeTo(this.data,speed,style);}
return this;};this.fadeTo=function(fOpacity,speed,style){if(this.data.length>0){for(var i=0;i<this.data.length;i++){if(this.data[i].currentOpacity==undefined){this.data[i].currentOpacity=100;}
this.data[i].toOpacity=fOpacity;this.data[i].style.zoom='1';jBeta.Animator.fadeTo(this.data[i],speed,style);}}
else{if(this.data.currentOpacity==undefined){this.data.currentOpacity=100;}
this.data.toOpacity=fOpacity;this.data.style.zoom='1';jBeta.Animator.fadeTo(this.data,speed,style);}
return this;};this.getHeight=function(){if(this.data==document){return Math.max(Math.max(document.body.clientHeight,document.body.scrollHeight),Math.max(document.body.scrollHeight,document.body.offsetHeight));}
else if(this.data==window){return jBeta.Info.windowHeight();}
var item;if(this.data.length==undefined){item=this.data;}
else{item=this.data[0];}
return Math.max(item.style.height,Math.max(Math.max(item.clientHeight,item.scrollHeight),Math.max(item.scrollHeight,item.offsetHeight)));};this.getWidth=function(){if(this.data==document){return Math.max(Math.max(document.body.clientWidth,document.body.scrollWidth),Math.max(document.body.scrollWidth,document.body.offsetWidth));}
else if(this.data==window){return jBeta.Info.windowWidth();}
var item;if(this.data.length==undefined){item=this.data;}
else{item=this.data[0];}
return Math.max(item.style.width,Math.max(Math.max(item.clientWidth,item.scrollWidth),Math.max(item.scrollWidth,item.offsetWidth)));};this.getObject=function(){if(this.data.length>0){return this.data[0];}
return this.data;};}
jBeta.Animator={speeds:{'slow':50,'normal':25,'fast':10},styles:{'easing':'ease','ease':'ease','strong':'normal','normal':'normal','now':'now','immediate':'now'},fadeTo:function(obj,speed,style){if(jBeta.Animator.speeds[speed]==undefined){speed='normal';}
if(obj.style.display=='none'&&obj.toOpacity>0){obj.style.display='block';}
if(obj.currentOpacity==obj.toOpacity){if(obj.fadeToReturnFunc!=undefined){obj.fadeToReturnFunc();}
if(obj.currentOpacity==0){obj.style.display='none';}
return;}
cOpacity=obj.currentOpacity;exNumber=jBeta.Animator.calcDelta(cOpacity,obj.toOpacity,style,speed);if(cOpacity<obj.toOpacity){obj.style.opacity=(cOpacity+exNumber)/100;obj.style.filter='alpha(opacity='+(cOpacity+exNumber)+')';obj.currentOpacity=cOpacity+exNumber;}
else if(cOpacity>obj.toOpacity){obj.style.opacity=(cOpacity-exNumber)/100;obj.style.filter='alpha(opacity='+(cOpacity-exNumber)+')';obj.currentOpacity=cOpacity-exNumber;}
setTimeout(function(){jBeta.Animator.fadeTo(obj,speed,style);},jBeta.Animator.speeds[speed]);},slideHeight:function(obj,speed,style){if(jBeta.Animator.speeds[speed]==undefined){speed='normal';}
cHeight=obj.offsetHeight;exNumber=jBeta.Animator.calcDelta(cHeight,obj.toHeight,style,speed);if(cHeight==obj.toHeight){return;}
if(cHeight<obj.toHeight){obj.style.height=(cHeight+exNumber)+'px';}
else if(cHeight>obj.toHeight){obj.style.height=(cHeight-exNumber)+'px';}
setTimeout(function(){jBeta.Animator.slideHeight(obj,speed,style);},jBeta.Animator.speeds[speed]);},slideWidth:function(obj,speed,style){if(jBeta.Animator.speeds[speed]==undefined){speed='normal';}
cWidth=obj.offsetWidth;exNumber=jBeta.Animator.calcDelta(cWidth,obj.toWidth,style,speed);if(cWidth==obj.toWidth){return;}
if(cWidth<obj.toWidth){obj.style.width=(cWidth+exNumber)+'px';}
else if(cWidth>obj.toWidth){obj.style.width=(cWidth-exNumber)+'px';}
setTimeout(function(){jBeta.Animator.slideWidth(obj,speed,style);},jBeta.Animator.speeds[speed]);},calcDelta:function(to,from,style,speed){if(to<=0){to=1;}
if(jBeta.Animator.styles[style]=='ease'){exNumber=Math.ceil(Math.abs(to-from)/jBeta.Animator.speeds[speed]);}
else if(jBeta.Animator.styles[style]=='now'){exNumber=to-from;}
else if(jBeta.Animator.styles[style]=='strong'){exNumber=5;if(to<exNumber){exNumber=1;}
else if(to>from&&from+exNumber>to){exNumber=1;}}
else{exNumber=1;}
return exNumber;}}
jBeta.Info={windowHeight:function(){var winH=460;if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"||navigator.appName=='Opera'){winH=window.innerHeight;}
else if(navigator.appName.indexOf("Microsoft")!=-1){winH=document.body.offsetHeight;}}
return winH;},windowWidth:function(){var winW=630;if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"||navigator.appName=='Opera'){winW=window.innerWidth;}
else if(navigator.appName.indexOf("Microsoft")!=-1){winW=document.body.offsetWidth;}}
return winW;},scrollY:function(){return document.body.scrollTop;},scrollX:function(){return document.body.scrollLeft;},browser:function(){return navigator.appName;}};jBeta.Widgets={Modal:function(bgID,contentID,settings){this.bg=bgID;this.content=contentID;this.settings=settings!=null?settings:{'speed':'fast','style':'ease'};this.size={'width':jBeta(this.content).getWidth(),'height':jBeta(this.content).getHeight()};jBeta(this.bg).fadeOut('fast','now');jBeta(this.content).fadeOut('fast','now');this.show=function(){jBeta('body').setStyle('overflowX','hidden');var maskHeight=jBeta(document).getHeight();var maskWidth=jBeta('body').getWidth();jBeta(this.bg).setStyle('width',maskWidth);jBeta(this.bg).setStyle('height',maskHeight);jBeta(this.bg).setStyle('minWidth',maskWidth);jBeta(this.bg).setStyle('minHeight',maskHeight);var winW=jBeta(window).getWidth();var winH=jBeta(window).getHeight();jBeta(this.content).setStyle('posTop',jBeta.Info.scrollY()+(winH-this.size['height'])/2);jBeta(this.content).setStyle('top',jBeta.Info.scrollY()+(winH-this.size['height'])/2);jBeta(this.content).setStyle('posLeft',(winW-this.size['width'])/2);jBeta(this.content).setStyle('left',(winW-this.size['width'])/2);jBeta(this.content).fadeIn(this.settings['speed'],this.settings['style']);jBeta(this.bg).fadeTo(80,this.settings['speed'],this.settings['style']);};this.hide=function(){jBeta('body').setStyle('overflowX','auto');jBeta(this.bg).fadeOut(this.settings['speed'],this.settings['style']);jBeta(this.content).fadeOut(this.settings['speed'],this.settings['style']);};this.updateSize=function(newSizes){if(newSizes!=null){this.size=newSizes;}
else{this.size={'width':jBeta(this.content).getWidth(),'height':jBeta(this.content).getHeight()};}};},Checkbox:function(obj,callback,initialValue,stateClasses){this.data=obj;this.mappedValues={'active':1,'inactive':0};this.value=initialValue!=null?initialValue:'inactive';this.callback=callback;this.classes=stateClasses!=null?stateClasses:{'active':'checkbox_active','inactive':'checkbox_inactive','inactive_over':'checkbox_inactiveOver','active_over':'checkbox_activeOver'};this.getValue=function(rawFlag){if(rawFlag==true){return this.value;}
return this.mappedValues[this.value];};var me=this;this.over=function(obj){if(obj.classes[obj.value+"_over"]!=undefined){jBeta(obj.data).setClass(obj.classes[obj.value+"_over"]);}};var onOver=this.over;jBeta(this.data).addEventListener('onmouseover',function(){onOver(me)});this.out=function(obj){jBeta(obj.data).setClass(obj.classes[obj.value]);};var onOut=this.out;jBeta(this.data).addEventListener('onmouseout',function(){onOut(me)});this.click=function(obj){obj.swap(obj);jBeta(obj.data).getObject().onmouseover();obj.callback();};var onClick=this.click;jBeta(this.data).addEventListener('onclick',function(){onClick(me)});this.swap=function(obj,to){if(to!=undefined){obj.value=to;}
else if(obj.value=='inactive'){obj.value='active';}
else{obj.value='inactive';}
jBeta(obj.data).setClass(obj.classes[obj.value]);};var Swap=this.swap;jBeta(this.data).getObject().swap=Swap;jBeta(this.data).setClass(this.classes[this.value]);}}
var $=jBeta;