function start_mingalr(){var moving,resizing,current_href,pgnav,pages;icon_cont=document.getElementById('sngl');moving=icon_cont.firstChild;current_href=document.getElementById('prvartwrk');if(current_href.tagName=='A'){setEvents(icon_cont,current_href,moving,-18);}
current_href=document.getElementById('nxtartwrk');if(current_href.tagName=='A'){setEvents(icon_cont,current_href,moving,18);}
icon_cont=document.getElementById('mltpl');moving=icon_cont.firstChild;current_href=document.getElementById('prvpg');if(current_href.tagName=='A'){setEvents(icon_cont,current_href,moving,-18);}
current_href=document.getElementById('nxtpg');if(current_href.tagName=='A'){setEvents(icon_cont,current_href,moving,18);}
pgnav=document.getElementById('pgnav');pgnav.className='js';if(pages=document.getElementById('pages')){setFading(pgnav,pages);}}
function setEvents(icon_cont,current_href,moving,int_dstntion){var mouseover,mouseout,current_animation;current_animation=new iconAnimation;mouseover=function(){current_animation.init(icon_cont,moving,int_dstntion)}
mouseout=function(){current_animation.init(icon_cont,moving,0)}
addEvent(current_href,'mouseover',mouseover,false);addEvent(current_href,'mouseout',mouseout,false);}
function iconAnimation(){var timer;var int_pxmove=0;var int_ms_delay=10;this.init=function(icon_cont,moving,int_dstntion){clearInterval(timer);var func,step,str_bgpos;if(int_dstntion==0){str_bgpos='center'}else if(int_dstntion>0){str_bgpos='bottom'}else{str_bgpos='top'}
str_bgpos='center '+str_bgpos;icon_cont.style.backgroundPosition=str_bgpos;if(int_dstntion>int_pxmove){step=1;}else{step=-1;}
func=function(){if(int_pxmove!=int_dstntion){int_pxmove+=step;moving.style.marginLeft=String(int_pxmove)+'px';}else{clearInterval(timer);}}
timer=setInterval(func,int_ms_delay);}}
ContentLoaded(window,start_mingalr);