var poma={addLoadEvent:function(cb)
{if(typeof window.onload!='function'){window.onload=cb;}else{var vec=window.onload;window.onload=function(){vec();cb();}}},newClosure:function(param,cb)
{return function(){cb(param);}},cloneObject:function(obj)
{if(obj==null||typeof obj!='object'){return obj;}
var o=new Object();for(var i in obj){o[i]=poma.cloneObject(obj[i]);}
return o;}}
poma.isSet=function(obj)
{return(typeof obj!='undefined'&&obj!=null);}
poma.isNone=function(obj)
{return(typeof obj=='undefined'||obj==null);}
if(typeof Array.forEach=='undefined'){Array.prototype.forEach=function(cb,scope)
{scope=(scope||window);for(var i=0;i<this.length;i++){cb.call(scope,this[i],i,this);}}}
if(typeof String.wordCut=='undefined'){String.prototype.wordCut=function(cnt)
{var ret=this;if(cnt<ret.length){if(ret.charAt(cnt-1)!=' '){ret=ret.substr(0,cnt);ret=ret.substr(0,ret.lastIndexOf(' '));}else{ret=ret.substr(0,cnt);}
ret+='...';}
return ret;}}
if(typeof String.trim=='undefined'){String.prototype.trim=function()
{return(this.replace(/^[\s\xA0]+/,'').replace(/[\s\xA0]+$/,''));}}
poma.dom={$id:function(id)
{return document.getElementById(id);},$tag:function(tag,parent)
{if(!parent)parent=document;return parent.getElementsByTagName(tag);},$textContent:function(obj)
{var ret='';if(typeof obj!='undefined'){if(typeof obj.textContent!='undefined'){ret=obj.textContent;}else if(typeof obj.text!='undefined'){ret=obj.text;}else if(obj.childNodes.length>0&&obj.firstChild.nodeType==3){ret=obj.firstChild.nodeValue;}}
return ret;},getScroll:function(docroot)
{docroot=docroot||document;var pos=[docroot.body.scrollLeft||docroot.documentElement.scrollLeft,docroot.body.scrollTop||docroot.documentElement.scrollTop];return pos;},getPos:function(obj)
{var x=0;var y=0;if(obj.offsetParent){x=obj.offsetLeft;y=obj.offsetTop;while((obj=obj.offsetParent)){x+=obj.offsetLeft;y+=obj.offsetTop;}}
return[x,y];},getContentDocument:function(obj)
{var iframedoc=null;if(obj.contentDocument){iframedoc=obj.contentDocument;}else if(obj.contentWindow){iframedoc=obj.contentWindow;}else if(obj.document){iframedoc=obj.document;}
return iframedoc;},getComputedStyle:function(obj,property)
{var value='';if(window.getComputedStyle){var style=window.getComputedStyle(obj,null);value=style.getPropertyValue(property);}else if(obj.currentStyle&&property.substr(0,1)!='-'){var tmp=property.split('-');property=tmp[0];for(var i=1;i<tmp.length;i++){property+=tmp[i].substr(0,1).toUpperCase()+tmp[i].substr(1,tmp[i].length);}
value=obj.currentStyle[property];}else if(document.defaultView){value=document.defaultView.getComputedStyle(obj,null).getPropertyValue(property);}
if(value.indexOf('rgb')>-1){value=value.split('(')[1].split(')')[0].split(',');for(i=0;i<3;i++){value[i]=(value[i]*1).toString(16);}
value='#'+value.join('');}
return value;},appendTags:function(parent,children,insert)
{if(typeof parent!='object'){parent=poma.dom.$id(parent);}
var c,i,s,tag,el,tmp;var ret=[];for(c=0;c<children.length;c++){for(tag in children[c]){if(tag=='#text'){el=document.createTextNode(children[c]['#text']);}else{el=document.createElement(tag);for(i in children[c][tag]){switch(i){case'#text':tmp=document.createTextNode(children[c][tag]['#text']);el.appendChild(tmp);break;case'html':el.innerHTML=children[c][tag]['html'];break;case'children':poma.dom.appendTags(el,children[c][tag]['children']);break;case'class':el.className=children[c][tag][i];break;case'styles':if(typeof children[c][tag][i]=='object'){for(s in children[c][tag][i]){el.style[s]=children[c][tag][i][s];}}
break;default:if(i.substring(0,2)=='on'){el[i]=children[c][tag][i];}else{el.setAttribute(i,children[c][tag][i],0);}
break;}}}
if(typeof insert=='object'){parent.insertBefore(el,insert);}else{parent.appendChild(el);}}
ret[ret.length]=el;}
return ret;},buildPager:function(page,pagecount,cb,lrbuttons,host)
{lrbuttons=(typeof lrbuttons!='undefined'?!!lrbuttons:true);host=(typeof host!='undefined'?host:'');var list=11;var pages=[];var i;if(pagecount<=list){for(i=1;i<=pagecount;i++){pages[i-1]=''+i;}}else{for(i=1;i<=list;i++){if(page<Math.ceil(list/2)){if(i==list-1){pages[i-1]='...';}else if(i==list){pages[i-1]=''+pagecount;}else{pages[i-1]=''+i;}}else if(page>(pagecount-(list/2))+2){if(i==1){pages[i-1]='1';}else if(i==2){pages[i-1]='...';}else{pages[i-1]=(pagecount-list+i);}}else{if(i==1){pages[i-1]='1';}else if(i==list){pages[i-1]=''+pagecount;}else if(i==2||i==list-1){pages[i-1]='...';}else{pages[i-1]=Math.ceil(page-list/2+i-1);}}}}
var idx=0;var pager=[];var me=this;if(lrbuttons){pager[idx++]={'#text':'Seite: \n'};pager[idx++]={'a':{'href':'javascript://','onclick':function(){cb.showPrevPage();},'children':[{'img':{'alt':'','src':host+'/static/images/common/icon-rwd.gif'}}]}};}
for(i=0;i<pages.length;i++){if(pages[i]==page){pager[idx++]={'strong':{'#text':pages[i],'styles':{'margin':'5px'}}}}else if(pages[i]=='...'){pager[idx++]={'span':{'#text':pages[i],'styles':{'margin':'5px'}}}}else{pager[idx++]={'a':{'href':'javascript://','onclick':poma.newClosure(pages[i],function(page){cb.showPage(parseInt(page,10));}),'#text':pages[i],'styles':{'margin':'5px'}}}}
if(i<pages.length-1){pager[idx++]={'span':{'#text':'|'}}}}
if(lrbuttons){pager[idx++]={'a':{'href':'javascript://','onclick':function(){cb.showNextPage();},'children':[{'img':{'alt':'','src':host+'/static/images/common/icon-fwd.gif'}}]}};}
return pager;}}
poma.cookies={get:function(name)
{var pos=document.cookie.indexOf(name+'=');var len=pos+name.length+1;if((!pos&&name!=document.cookie.substring(0,name.length))||pos<-1){return null;}
var end=document.cookie.indexOf(';',len);if(end==-1){end=document.cookie.length;}
return unescape(document.cookie.substring(len,end));},set:function(name,value,expires,path,domain,secure)
{var date=new Date();date.setTime(date.getTime()+expires);var str=name+'='+escape(value)+
(expires?';expires='+date.toGMTString():'')+
(path?';path='+path:'')+
(domain?';domain='+domain:'')+
(secure?';secure':'');document.cookie=str;},remove:function(name,path,domain)
{if(this.get(name)){document.cookie=name+'='+
(path?';path='+path:'')+
(domain?';domain='+domain:'')+';expires=Thu, 01-Jan-70 00:00:01 GMT';}}}
poma.useragent={knowsDom:function()
{return poma.isSet(document.getElementById);},knowsAjax:function()
{return(poma.useragent.knowsDom()&&poma.isSet(document.createElement)&&(poma.isSet(window.XMLHttpRequest)||poma.isSet(window.ActiveXObject)));},inName:function(part,caseSensitive)
{if(poma.isSet(caseSensitive)&&caseSensitive){return!!(navigator.userAgent.indexOf(part)+1);}
return!!(navigator.userAgent.toLowerCase().indexOf(part.toLowerCase())+1);},isGecko:function()
{return(poma.useragent.knowsDom()&&!poma.useragent.isIe()&&!poma.useragent.isOpera()&&!poma.useragent.isKhtml());},isFirefox:function(version)
{return(poma.useragent.isGecko()&&poma.useragent.inName('Firefox'+(poma.isNone(version)?'':'/'+version)));},isOpera:function()
{return poma.isSet(window.opera);},isKhtml:function()
{return(poma.useragent.knowsDom()&&poma.useragent.inName('khtml'));},isIe:function(version)
{var isIe=(typeof document.all!='undefined'&&!poma.useragent.isOpera());var ret;if(!isIe){ret=false;}else if(poma.isNone(version)){ret=true;}else{ret=poma.useragent.inName('MSIE '+version);}},isWin:function()
{return poma.useragent.inName('win');},isWinIe:function(os)
{var ret;if(!poma.useragent.isIe()){ret=false;}else if(poma.isNone(os)){ret=poma.useragent.isWin();}else{switch(os.toLowerCase()){case'xp':ret=poma.useragent.inName('Windows NT 5.1');break;case'xp-sp2':ret=poma.useragent.inName('Windows NT 5.1; SV1');break;default:ret=false;break;}}
return ret;},getVersion:function()
{var v=parseInt(navigator.appVersion);if(poma.useragent.isIe()){if(v<4)return 3;if(v==4&&poma.useragent.isIe('4'))return 4;if(v==4&&poma.useragent.isIe('5.0'))return 5;if(v==4&&poma.useragent.isIe('5.5'))return 5.5;if(v==4&&poma.useragent.isIe('6.'))return 6;if(v==4&&poma.useragent.isIe('7.'))return 7;}
return-1;}}
poma.ajax=function()
{}
poma.ajax.state={};poma.ajax.state.__UNINITIALIZED__=0;poma.ajax.state.__LOADING__=1;poma.ajax.state.__LOADED__=2;poma.ajax.state.__INTERACTIVE__=3;poma.ajax.state.__COMPLETE__=4;poma.ajax.state.__ABORTED__=1000;poma.ajax.response={__TEXT__:function(req)
{return req.getRequest().responseText;},__XML__:function(req)
{var contentType=req.getRequest().getResponseHeader('Content-Type');if(contentType!='application/xml'&&contentType!='text/xml'&&typeof req.getRequest().responseBody!='undefined'){try{req.getRequest().responseXML.async=false;req.getRequest().responseXML.load(req.getRequest().responseBody);}catch(e){alert(e);}}
return req.getRequest().responseXML;},__JSON__:function(req)
{return eval(req.getRequest().responseText);}};poma.ajax.getXMLHttpRequest=function()
{var me=this;var methods=[function(){return new XMLHttpRequest();},function(){return new ActiveXObject('Msxml2.XMLHTTP');},function(){return new ActiveXObject('Microsoft.XMLHTTP');},function(){return new ActiveXObject('Microsoft.XMLHTTP.4.0');}];var obj=null;var ret=null;for(var i=0;i<methods.length;i++){try{ret=methods[i]();break;}catch(e){}}
return ret;}
poma.ajax.initRequest=function()
{var req=poma.ajax.getXMLHttpRequest();var options={url:'',data:'',method:'GET',response:poma.ajax.response.__TEXT__,async:true,contentType:'application/x-www-form-urlencoded'};var state_cb={};var error_cb={};var isBusy=false;function ajaxRequest(){this.setOpt=function(name,value)
{if(typeof options[name]!='undefined'){options[name]=value;}}
this.getOpt=function(name)
{var ret=null;if(typeof options[name]!='undefined'){ret=options[name];}
return ret;}
this.getRequest=function()
{return req;}
this.isBusy=function()
{return isBusy;}
this.loadIndicator=function(show)
{}
this.overrideMimeType=function(mimetype)
{if(typeof req.overrideMimeType!='undefined'){req.overrideMimeType(mimetype);}}
this.sendRequest=function(url,data,method)
{var me=this;if(req){options['url']=url;if(typeof data!='undefined')options['data']=data;if(typeof method!='undefined')options['method']=method;if(this.isBusy()){this.abortRequest();}
if(typeof state_cb[poma.ajax.state.__UNINITIALIZED__]!='undefined'){state_cb[poma.ajax.state.__UNINITIALIZED__](this);}
req.open(options['method'],options['url'],options['async']);isBusy=true;if(typeof state_cb[poma.ajax.state.__LOADING__]!='undefined'){state_cb[poma.ajax.state.__LOADING__](this);}
this.loadIndicator(true);req.onreadystatechange=function(){var ready=req.readyState;var data=null;if(ready==poma.ajax.state.__COMPLETE__){var status=(typeof req.status=='undefined'?0:req.status);if(status<=0||(status>=200&&status<300)){data=options['response'](me);}else{if(typeof error_cb[status]!='undefined'){error_cb[status](me);}else if(typeof error_cb['default']!='undefined'){error_cb['default'](me);}}
isBusy=false;me.loadIndicator(false);}
if(typeof state_cb[ready]!='undefined'){state_cb[ready](data,me);}}
req.setRequestHeader('Content-Type',options['contentType']);req.send(options['data']);}}
this.registerCallback=function(state,cb)
{state_cb[state]=cb;}
this.registerErrorHandler=function(code,cb)
{error_cb[code]=cb;}
this.abortRequest=function()
{req.onreadystatechange=function(){};req.abort();isBusy=false;if(typeof state_cb[poma.ajax.state.__ABORTED__]!='undefined'){state_cb[poma.ajax.state.__ABORTED__](req);}
this.loadIndicator(false);}}
return new ajaxRequest();}
poma.mouse={X:0,Y:0,dirX:0,dirY:0,cb:{'onmousemove':{}},init:function()
{this.installHandler();},installHandler:function()
{var me=this;var cb=function(evt){me.captureMove(evt);};if(typeof document.onmousemove!='function'){document.onmousemove=cb;}else{var vec=document.onmousemove;document.onmousemove=function(evt){vec();cb(evt);}}},addCallback:function(evtname,objid,cb,evt){this.cb[evtname][objid]=cb;},delCallback:function(evtname,objid){delete this.cb[evtname][objid];},captureMove:function(evt)
{var x,y;if(evt){if(typeof evt.pageX=='number'){x=evt.pageX;y=evt.pageY;}else{x=evt.clientX;y=evt.clientY;}}else{evt=window.event;x=evt.clientX;y=evt.clientY;if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)){x+=document.documentElement.scrollLeft;y+=document.documentElement.scrollTop;}else if(document.body&&(document.body.scrollTop||document.body.scrollLeft)){x+=document.body.scrollLeft;y+=document.body.scrollTop;}}
this.dirX=(x>this.X?+1:x<this.X?-1:0);this.dirY=(y>this.Y?+1:y<this.Y?-1:0);this.X=x;this.Y=y;for(var i in this.cb.onmousemove){this.cb.onmousemove[i]();}}};poma.mouse.init();poma.scrollbox=function(id,params)
{this.id=id;this.box=poma.dom.$id(id);if(!poma.dom.$id(id+'-slider')){return false;}else{this.slider=poma.dom.$id(id+'-slider');}
if(isNaN(parseInt(this.slider.style.left))){this.slider.style.left=poma.dom.getComputedStyle(this.slider,'left');}
if(isNaN(parseInt(this.slider.style.top))){this.slider.style.top=poma.dom.getComputedStyle(this.slider,'top');}
var cNode=(poma.useragent.inName('msie',false))?0:1;if(poma.dom.$id(id+'-left')&&poma.dom.$id(id+'-right')){this.sliderLImg=poma.dom.$id(id+'-left').childNodes[cNode].childNodes[0];this.sliderLImgSrcActive=this.sliderLImg.src;var filePath=this.convertFilePath(this.sliderLImgSrcActive);this.sliderLImgSrcInActive=filePath;this.sliderLImg.src=filePath;this.sliderRImg=poma.dom.$id(id+'-right').childNodes[cNode].childNodes[0];this.sliderRImgSrcActive=this.sliderRImg.src;filePath=this.convertFilePath(this.sliderRImgSrcActive);this.sliderRImgSrcInActive=filePath;}
if(poma.dom.$id(id+'-up')&&poma.dom.$id(id+'-down')){this.sliderUImg=poma.dom.$id(id+'-up').childNodes[cNode].childNodes[0];this.sliderUImgSrcActive=this.sliderUImg.src;var filePath=this.convertFilePath(this.sliderUImgSrcActive);this.sliderUImgSrcInActive=filePath;this.sliderUImg.src=filePath;this.sliderDImg=poma.dom.$id(id+'-down').childNodes[cNode].childNodes[0];this.sliderDImgSrcActive=this.sliderDImg.src;filePath=this.convertFilePath(this.sliderDImgSrcActive);this.sliderDImgSrcInActive=filePath;}
var xy=poma.dom.getPos(this.box);this.left=xy[0];this.top=xy[1];this.centerX=this.box.offsetWidth/2;this.centerY=this.box.offsetHeight/2;this.mx=0;this.my=0;params=(typeof params=='undefined'?[]:params);this.xallow=(typeof params['lr']=='undefined'||!!params['lr']);this.yallow=(typeof params['ud']=='undefined'?!!(poma.dom.$id(id+'-up')&&poma.dom.$id(id+'-down')):!!params['ud']);this.usebuttons=(typeof params['usebuttons']!='undefined'&&params['usebuttons']);this.timer=null;this.timeout=50;this.speed=(typeof params['speed']=='undefined'?4:params['speed']);this.maxSpeed=10;this.centerRX=this.centerX*0.1;this.centerRY=this.centerY*0.1;this.cbaseX=((this.centerX-this.centerRX)/this.maxSpeed);this.cbaseY=((this.centerY-this.centerRY)/this.maxSpeed);var me=this;if((poma.dom.$id(id+'-up')&&poma.dom.$id(id+'-down'))||(poma.dom.$id(id+'-left')&&poma.dom.$id(id+'-right'))){this.setHandleCallback(id+'-left',function(){me.moveSlider([-me.speed,0]);});this.setHandleCallback(id+'-right',function(){me.moveSlider([me.speed,0]);});this.setHandleCallback(id+'-up',function(){me.moveSlider([0,-me.speed]);});this.setHandleCallback(id+'-down',function(){me.moveSlider([0,me.speed]);});}
if(!this.usebuttons&&!poma.dom.$id(id+'-up')&&!poma.dom.$id(id+'-down')){this.setHandleCallback(id,function(){var x=(poma.mouse.X-me.left-me.centerX);var y=(poma.mouse.Y-me.top-me.centerY);var rX=me.centerRX;var rY=me.centerRY;if(Math.abs(x)<rX){x=0;}else{x=(x<0?x+rX:x-rX);}
if(Math.abs(y)<rY){y=0;}else{y=(y<0?y+rY:y-rY);}
x=(me.xallow?Math.min(Math.ceil(x/me.cbaseX),me.maxSpeed):0);y=(me.yallow?Math.min(Math.ceil(y/me.cbaseY),me.maxSpeed):0);me.moveSlider([x,y]);});}
return true;}
poma.scrollbox.prototype.setHandleCallback=function(id,cb)
{var me=this;if(poma.dom.$id(id)){poma.dom.$id(id).onmouseover=function(){if(me.timer==null){me.timer=window.setInterval(cb,me.timeout);}}
poma.dom.$id(id).onmouseout=function(){if(me.timer!=null){window.clearInterval(me.timer);me.timer=null;}}}}
poma.scrollbox.prototype.convertFilePath=function(path)
{var tmp=path.split('/');var tmpPath='';var tmpFile='';for(var i=0;i<tmp.length;i++){if(i==tmp.length-1){tmpFile=tmp[i];}else{tmpPath+=tmp[i]+'/';}}
tmpFile=tmpFile.split('.');tmpFile=tmpFile[0]+'-inactive.'+tmpFile[1];tmp=tmpPath+tmpFile;return tmp;}
poma.scrollbox.prototype.moveSlider=function(param)
{var hval=param[0];var vval=param[1];var tmp,diff;diff=this.slider.offsetWidth-this.box.offsetWidth;var l=parseInt(this.slider.style.left);if(hval!=0&&l<=0&&l+diff>=0){tmp=parseInt(this.slider.style.left)-hval;if(tmp>0){tmp=0;}else if(tmp+diff<0){tmp=this.box.offsetWidth-this.slider.offsetWidth;}
if(!isNaN(tmp)){this.slider.style.left=tmp+'px';}
if(l!=0){this.sliderLImg.src=this.sliderLImgSrcActive;}
if(l==0){this.sliderLImg.src=this.sliderLImgSrcInActive;}
if(Math.abs(l)!=diff){this.sliderRImg.src=this.sliderRImgSrcActive;}
if(Math.abs(l)==diff){this.sliderRImg.src=this.sliderRImgSrcInActive;}}
diff=this.slider.offsetHeight-this.box.offsetHeight;var h=parseInt(this.slider.style.top);if(vval!=0&&h<=0&&h+diff>=0){tmp=parseInt(this.slider.style.top)-vval;if(tmp>0){tmp=0;}else if(tmp+diff<0){tmp=this.box.offsetHeight-this.slider.offsetHeight;}
if(!isNaN(tmp)){this.slider.style.top=tmp+'px';}
if(h!=0){this.sliderUImg.src=this.sliderUImgSrcActive;}
if(h==0){this.sliderUImg.src=this.sliderUImgSrcInActive;}
if(Math.abs(h)!=diff){this.sliderDImg.src=this.sliderDImgSrcActive;}
if(Math.abs(h)==diff){this.sliderDImg.src=this.sliderDImgSrcInActive;}}}
poma.events={special:{'ESC':27,'TAB':9,'SPACE':32,'RETURN':13,'BACKSPACE':8,'SCROLL':145,'CAPS':20,'NUM':144,'PAUSE':19,'INSERT':45,'HOME':36,'DELETE':46,'END':35,'PAGEUP':33,'PAGEDOWN':34,'LEFT':37,'UP':38,'RIGHT':39,'DOWN':40,'F1':112,'F2':113,'F3':114,'F4':115,'F5':116,'F6':117,'F7':118,'F8':119,'F9':120,'F10':121,'F11':122,'F12':123},addEvent:function(target,type,cb,propagate)
{if(!propagate){var me=this;var vec=cb;cb=function(e){vec(e);me.stopPropagation(e);me.preventDefault(e);return false;}}
if(target.addEventListener){type=(type=='mousewheel'&&window.gecko?'DOMMouseScroll':type);target.addEventListener(type,cb,false);}else if(target.attachEvent){target.attachEvent('on'+type,cb);}else{target['on'+type]=cb;}},addKeyboardEvent:function(target,shortcut,cb,opt)
{var defaults={'type':'keydown','propagate':false}
if(typeof opt!='undefined'){for(var i in opt)if(typeof defaults[i]!='undefined'){defaults[i]=opt[i];}}
var me=this;this.addEvent(target,defaults['type'],function(e){e=e||window.event;if(e.keyCode){code=e.keyCode;}else if(e.which){code=e.which;}else{return;}
var kchar=String.fromkcharCode(code);var keys=shortcut.split('+');var pressed=0;for(var i=0;i<keys.length;i++){switch(keys[i]){case'CTRL':if(e.ctrlKey){++pressed;}
break;case'SHIFT':if(e.shiftKey){++pressed;}
break;case'ALT':if(e.altKey){++pressed;}
break;default:if(keys[i].length>1){if(me.special[keys[i]]==code){++pressed;}}else if(keys[i]==kchar){++pressed;}else{}}}
if(pressed==keys.length){cb();}},defaults['propagate']);},stopPropagation:function(e)
{if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}},preventDefault:function(e)
{if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}}}
poma.tabbox=function(id,preselect)
{this.id=id;this.active=0;this.count=0;var me=this;var obj;while(++this.count&&(obj=poma.dom.$id(id+'-tab-'+this.count))){obj.onclick=poma.newClosure(this.count,function(id){me.switchTo(id);});obj.onfocus=function(){this.blur();}
if(obj.className.indexOf('on')>=0){this.active=this.count;}}
if(typeof preselect!='undefined'){this.switchTo(preselect);}}
poma.tabbox.prototype.switchTo=function(id)
{if(id==this.active)return;var obj;if(this.active>0){obj=poma.dom.$id(this.id+'-'+this.active);obj.style.display='none';obj=poma.dom.$id(this.id+'-tab-'+this.active);obj.className=(this.active==1?'first':(this.active==this.count?'last':''));}
obj=poma.dom.$id(this.id+'-'+id);obj.style.display='block';obj=poma.dom.$id(this.id+'-tab-'+id);obj.className+=' on';obj.className+=(id==1?' on-first':(id==this.count?'on-last':''));this.active=id;}
poma.moveonscroll=function(id,param)
{if(typeof id=='undefined'){return;}
param=param||{};param.offset=param.offset||25;param.interval=param.interval||25;this.obj=poma.dom.$id(id);this.param=param;this.timerEvent=null;this.timerTimeout=this.param.interval;this.initPosition();}
poma.moveonscroll.prototype.initPosition=function(x,y)
{var left=x||parseInt(poma.dom.getComputedStyle(this.obj,'left'),10);this.top=y||parseInt(poma.dom.getComputedStyle(this.obj,'top'),10);this.obj.style.left=left+'px';this.obj.style.top=this.top+'px';this.abs_top=poma.dom.getPos(this.obj)[1];this.abs_sub=this.abs_top-this.top-this.param.offset;this.top_s=this.top;}
poma.moveonscroll.prototype.moveObject=function()
{var scrollTop=poma.dom.getScroll()[1];var ydiff;if(parseInt(this.top_s,10)>this.abs_top||scrollTop>this.abs_top){ydiff=(scrollTop-this.top_s-this.abs_sub)/10;}else{ydiff=(this.top-this.top_s)/10;}
this.top_s=Math.max(this.top,this.top_s+ydiff);this.obj.style.top=this.top_s+'px';if(Math.abs(ydiff)<0.3){window.clearInterval(this.timerEvent);this.timerEvent=null;}}
poma.moveonscroll.prototype.installOnScroll=function()
{var me=this;poma.events.addEvent(window,'scroll',function(){if(me.timerEvent==null){me.timerEvent=window.setInterval(function(){me.moveObject();},me.timerTimeout);}});}