
var articlePaging=Class.create({initialize:function(obj)
{var self=this;this.obj=obj;this.current=0;this.allBtns=$$('#'+this.obj.paging+' .'+this.obj.btns);this.allBtnsBottom=$$('#'+this.obj.pagingBottom+' .'+this.obj.btns);this.allContent=$$('.'+this.obj.content);$(this.allContent).each(function(elm,i){if(i!=0){$(elm).setStyle({display:'none'});}});},showHideContent:function(i){if(this.current!=i){$(this.allContent[this.current]).hide();$(this.allContent[i]).show();this.current=i;}}});Event.observe(window,'load',function()
{var run=true;if($('print')){run=false;}
if(run){if($('paging')){var newArticlePaging=new articlePaging({paging:'paging',pagingBottom:'pagingBottom',btns:'pageBtn',content:'textWrapper'});}}});var customDropdown=Class.create({initialize:function(obj)
{var self=this;this.obj=obj;$$('.'+this.obj.dropdownbox).each(function(elm,i){var clickArea=$($(elm).getElementsByClassName('selected')[0]);var showAndHideElm=$($(elm).getElementsByClassName('selectList')[0]);$(clickArea).observe('click',function(elm){self.show(showAndHideElm);});});},show:function(elm){if($(elm).getStyle('display')=='block'){$(elm).setStyle({display:'none'});}else{$(elm).setStyle({display:'block'});}}});Event.observe(window,'load',function()
{if($('test')){new customDropdown({dropdownbox:'selectNavi'});}});
