function Navigation(){var a=new Object();a.sHtml="";a.oParameters=new Object();a.iJsFunction=1;a.iPageCount=0;a.iAllCount=0;a.iAllPages=0;a.iNumPage=0;a.sParamPage="?page";a.sLeft='<span class="left">&nbsp;</span>';a.sRight='<span class="right">&nbsp;</span>';a.iLpp=5;a.sScriptName="getPage";a.sExtraParam="";a.sDelimeter=" z ";a.handleArguments=function(b){for(var c in b){if(typeof(a[c])=="undefined"){a.oParameters[c]=b[c]}else{a[c]=b[c]}}};a.setLink=function(e){var b="";var c="";if(e!=""){if(this.sParamPage!=""&&this.iJsFunction!=1){b+=this.sParamPage+"="+e}else{b+=e}}if(this.sExtraParam!=""){b+="&"+this.sExtraParam}if(this.iJsFunction==1){b="javascript:"+this.sScriptName+"("+b+")";c=""}else{b=b;c=this.sScriptName+"("+e+");return false;"}var d=new Array(b,c);return d};a.makeHTML=function(){this.sHtml="";if(!this.iPageCount){this.iPageCount=25}this.iAllPages=Math.floor(this.iAllCount/this.iPageCount);if(this.iAllCount%this.iPageCount){this.iAllPages++}if(this.iAllPages>1){var b=0;if(this.iNumPage>=this.iAllPages-this.iLpp){max=this.iAllPages;b=this.iLpp+1-(this.iAllPages-this.iNumPage)}else{max=this.iNumPage+this.iLpp+1}if(this.iNumPage<=this.iLpp){min=1;max+=this.iLpp-this.iNumPage+1;if(max>this.iAllPages){max=this.iAllPages}}else{min=this.iNumPage-this.iLpp}min-=b;if(min<1){min=1}if(this.iNumPage>1){var c=a.setLink(this.iNumPage-1);this.sHtml+='<a href="'+c[0]+'" onclick="'+c[1]+'">'+this.sLeft+"</a>"}if(this.iNumPage>1&&min>1){var c=a.setLink(1);this.sHtml+='<a href="'+c[0]+'" onclick="'+c[1]+'" >1</a>'}for(i=min;i<max;i++){if(i==this.iNumPage){this.sHtml+='<span class="selected">'+i+"</span>"}else{var c=a.setLink(i);this.sHtml+='<a href="'+c[0]+'" onclick="'+c[1]+'" >'+i+"</a>"}}if(this.iNumPage<(this.iNumPage+this.iLpp)&&this.iAllPages<max){var c=a.setLink(this.iAllPages);this.sHtml+='<a href="'+c[0]+'" onclick="'+c[1]+'">'+this.iAllPages+"</a>"}if(this.iNumPage==max){this.sHtml+=this.sDelimeter+'<span class="selected">'+this.iAllPages+"</span>"}else{var c=a.setLink(this.iAllPages);this.sHtml+=this.sDelimeter+'<a href="'+c[0]+'" onclick="'+c[1]+'" >'+this.iAllPages+"</a>"}if(this.iNumPage<this.iAllPages){var c=a.setLink(this.iNumPage+1);this.sHtml+='<a href="'+c[0]+'" onclick="'+c[1]+'" >'+this.sRight+"</a>"}this.sHtml+=""}else{this.sHtml=""}};return a}Navigation.get=function(a){var b=Navigation.setParam(a);return b};Navigation.setParam=function(a){if(typeof(a)!="undefined"&&a!=null){var b=new Navigation();b.handleArguments(a);return b}};