if(typeof(Scroll)=='undefined') var Scroll={}
Scroll.design1={ tweenDiv:null, rP:Gatex.getStaticContextPath()+"/jscripts/scroll/", buildAlertImage:function(i){ var str=''; str+='<img src="'+this.rP+'images/'+'alert3_'+i+'.gif" border="0" hspace="5" vspace="5"/>'; var element=document.getElementById("ScrollD1AlertImage"+this.u); if(element!=null){ element.innerHTML=str;}
}, imageUpDown:function(target, subTarget){ var div=document.getElementById(subTarget); var element=document.getElementById(target); if(div!=null && element!=null){ clearTimeout(Scroll.design1.tweenDiv); Scroll.design1.tweenDiv=null; Scroll.design1.tweenDivUp(subTarget, 4, div.offsetTop, ((-1)*div.offsetHeight+element.offsetHeight));}
}, imageDownDown:function(target, subTarget){ var div=document.getElementById(subTarget); var element=document.getElementById(target); if(div!=null && element!=null){ clearTimeout(Scroll.design1.tweenDiv); Scroll.design1.tweenDiv=null; Scroll.design1.tweenDivDown(subTarget, 4, div.offsetTop, 0);}
}, stop:function(){ if(Scroll.design1.tweenDiv!=null){ clearTimeout(Scroll.design1.tweenDiv); Scroll.design1.tweenDiv=null;}
}, tweenDivUp:function(subTarget, step, top, limit){ if(top>limit){ this.buildAlertImage('m'); var element=document.getElementById(subTarget); if(element!=null){ if(top-limit<step){ top=top-(top-limit);}
else{ top-=step;}
element.style.top=top+"px"; var time=0; if(Gatex.isIe()){ time=15;}
else if(Gatex.isMozilla()){ time=1;}
else if(Gatex.isNetscape7()){ time=1;}
else{ time=1;}
this.tweenDiv = setTimeout("Scroll.design1.tweenDivUp('"+subTarget+"', "+step+", "+top+", "+limit+")", time);}
}
else{ clearTimeout(this.tweenDiv); this.tweenDiv=null; this.buildAlertImage('d');}
}, tweenDivDown:function(subTarget, step, top, limit){ if(top<limit){ this.buildAlertImage('m'); var element=document.getElementById(subTarget); if(element!=null){ if(limit-top<step){ top=top+(limit-top);}
else{ top+=step;}
element.style.top=top+"px"; var time=0; if(Gatex.isIe()){ time=15;}
else if(Gatex.isMozilla()){ time=1;}
else if(Gatex.isNetscape7()){ time=1;}
else{ time=1;}
this.tweenDiv=setTimeout("Scroll.design1.tweenDivDown('"+subTarget+"', "+step+", "+top+", "+limit+")", time);}
}
else{ clearTimeout(this.tweenDiv); this.tweenDiv=null; this.buildAlertImage('u');}
}
}
Scroll.design2={ tweenDiv:null, rP:"../../../scripts/scroll/", init:function(){ }, buildAlertImage:function(i){ try{ var str=''; str+='<img src="'+this.rP+'images/'+'alert3_'+i+'.gif" border="0" hspace="5" vspace="5"/>'; var element=document.getElementById("ScrollD2AlertImage"+this.u); if(element!=null){ element.innerHTML=str;}
}
catch(e){ }
}, imageRightDown:function(target, subTarget){ var div=document.getElementById(subTarget); var element=document.getElementById(target); if(div!=null && element!=null){ clearTimeout(Scroll.design2.tweenDiv); Scroll.design2.tweenDiv=null; Scroll.design2.tweenDivUp(subTarget, 4, div.offsetLeft, ((-1)*div.offsetWidth+element.offsetWidth));}
}, imageLeftDown:function(target, subTarget){ var div=document.getElementById(subTarget); var element=document.getElementById(target); if(div!=null && element!=null){ clearTimeout(Scroll.design2.tweenDiv); Scroll.design2.tweenDiv=null; Scroll.design2.tweenDivDown(subTarget, 4, div.offsetLeft, 0);}
}, stop:function(){ if(Scroll.design2.tweenDiv!=null){ clearTimeout(Scroll.design2.tweenDiv); Scroll.design2.tweenDiv=null;}
}, tweenDivUp:function(subTarget, step, top, limit){ if(top>limit){ this.buildAlertImage('m'); var element=document.getElementById(subTarget); if(top-limit<step){ top=top-(top-limit);}
else{ top-=step;}
element.style.left=top+"px"; var time=0; if(Gatex.isIe()){ time=15;}
else if(Gatex.isMozilla()){ time=1;}
else if(Gatex.isNetscape7()){ time=1;}
else{ time=1;}
this.tweenDiv=setTimeout("Scroll.design2.tweenDivUp('"+subTarget+"', "+step+", "+top+", "+limit+")", time);}
else{ clearTimeout(this.tweenDiv); Scroll.design2.tweenDiv=null; this.buildAlertImage('d');}
}, tweenDivDown:function(subTarget, step, top, limit){ if(top<limit){ this.buildAlertImage('m'); var element=document.getElementById(subTarget); if(limit-top<step){ top=top+(limit-top);}
else{ top+=step;}
element.style.left=top+"px"; var time=0; if(Gatex.isIe()){ time=15;}
else if(Gatex.isMozilla()){ time=1;}
else if(Gatex.isNetscape7()){ time=1;}
else{ time=1;}
this.tweenDiv=setTimeout("Scroll.design2.tweenDivDown('"+subTarget+"', "+step+", "+top+", "+limit+")", time);}
else{ clearTimeout(this.tweenDiv); Scroll.design2.tweenDiv=null; this.buildAlertImage('u');}
}
}
Scroll.design3={ init:function(aT, tar, u, iW, scrH, scL, scrPrevButtonId, scrNextButtonId, type){ this.u=u; this.it=new Array(); var element=document.getElementById(aT); if(element!=null){ this.it=Gatex.getArrayByTarget(aT); myHM.pushDoubleArray(this.it, "ScrollD3_"+this.u+'_It'); myHM.put('ScrollD3_'+this.u+'_ItW', new String(this.it.length)); myHM.put('ScrollD3_'+this.u+'_ItH', new String(1)); this.tar=tar; this.iW=iW; this.scrH=scrH; this.scL=scL; myHM.put('ScrollD3_'+this.u+'_scL', new String(this.scL)); this.tweenLeft=null; this.tweenRight=null; this.buttonOnclick=null; this.scrPrevButtonId=scrPrevButtonId; myHM.put('ScrollD3_'+this.u+'_scrPrevButtonId', new String(this.scrPrevButtonId)); this.scrNextButtonId=scrNextButtonId; myHM.put('ScrollD3_'+this.u+'_scrNextButtonId', new String(this.scrNextButtonId)); this.type=type; this.scI=0; if(this.type=="relatedContent"){ this.cellpadding=5; this.cellspacing=5; this.tdBorder=1; this.tdBorderColor="#BABABA"; this.tableBgColor="#EBEFF0"; this.tdBgColor="#FFFFFF";}
else if(this.type=="inside"){ this.cellpadding=5; this.cellspacing=1; this.tdBorder=0; this.tdBorderColor="#FFFFFF"; this.tableBgColor="#BBBBBB"; this.tdBgColor="#FFFFFF";}
myHM.put('ScrollD3_'+this.u+'_ScI', new String(this.scI)); this.buildScr(); this.buildAlertImage(this.scI, this.it.length, this.scL); var element=document.getElementById(this.tar); if(element!=null){ element.className="ScrollD3_Scr";; element.style.width=(this.scL*(this.iW+(2*this.cellpadding+this.cellspacing))+this.cellspacing+2*this.scL*this.tdBorder)+"px"; element.style.height=this.scrH+"px";}
Gatex.setPrevNextButtonStyle(this.scrPrevButtonId+this.u, this.scrNextButtonId+this.u, 0, this.it.length, this.scL);}
}, buildScr:function(){ var str=''; str+='<div id="scrollD4_Data'+this.u+'" class="ScrollD3_Data"><table height="100%" border="0" cellpadding="'+this.cellpadding+'" cellspacing="'+this.cellspacing+'" style="background:'+this.tableBgColor+';"><tr>'; var i=0; while(i<this.it.length){ str+='<td width="'+this.iW+'" valign="top" style="border:'+this.tdBorder+'px solid '+this.tdBorderColor+'; background:'+this.tdBgColor+';">'; if(this.it[i][0]!=""){ str+='<div style="width:'+this.iW+'px; height:100%;">' + this.it[i][0] + '</div>';}
str+='</td>'; i++;}
str+='</tr></table></div>'; var element=document.getElementById(this.tar); if(element!=null){ element.innerHTML+=str;}
}, buildAlertImage:function(currIndex, length, scrLength){ var i; var j; if(length-scrLength>1) i=3; else i=2; if (currIndex==0) j="l"; else if (currIndex==length-scrLength) j="r"; else j="c"; try{ var str=''; str+='<img src="'+this.rP+'images/alert'+i+'_'+j+'.gif" border="0" hspace="5" vspace="0"/>'; var element=document.getElementById("scrollD4_AlertImage"+this.u); if(element!=null){ element.innerHTML=str;}
}
catch(e){}
}, scrOnClick:function(id, u){ window.alert("ta screen hesegt darsan baina.");}, scrNextOnClick:function(id, u){ this.u=u; this.scI=parseInt(myHM.get('ScrollD3_'+this.u+'_ScI')); this.it=myHM.getDoubleArray('ScrollD3_'+this.u+'_It', myHM.get('ScrollD3_'+this.u+'_ItW'), myHM.get('ScrollD3_'+this.u+'_ItH')); if(this.tweenLeft==null && this.tweenRight==null){ this.scL=parseInt(myHM.get('ScrollD3_'+this.u+'_scL')); if(this.scI<this.it.length-this.scL){ this.scI++; this.scrPrevButtonId=myHM.get('ScrollD3_'+this.u+'_scrPrevButtonId'); this.scrNextButtonId=myHM.get('ScrollD3_'+this.u+'_scrNextButtonId'); Gatex.setPrevNextButtonStyle(this.scrPrevButtonId+this.u, this.scrNextButtonId+this.u, this.scI, this.it.length, this.scL); this.buildAlertImage(this.scI, this.it.length, this.scL); var button=null; try{ button=document.getElementById(id); this.buttonOnclick=button.onclick; button.onclick="void(null);";}
catch(e){}
var element=null; try{ element=document.getElementById("scrollD4_Data"+this.u);}
catch(e){}
this.moveLeft(element.offsetLeft, element.offsetLeft-this.iW-(2*this.cellpadding+this.cellspacing+2*this.tdBorder), id);}
}
myHM.put('ScrollD3_'+this.u+'_ScI', new String(this.scI));}, scrPrevOnClick:function(id, u){ this.u=u; this.scI=parseInt(myHM.get('ScrollD3_'+this.u+'_ScI')); this.it=myHM.getDoubleArray('ScrollD3_'+this.u+'_It', myHM.get('ScrollD3_'+this.u+'_ItW'), myHM.get('ScrollD3_'+this.u+'_ItH')); if(this.tweenLeft==null && this.tweenRight==null){ this.scL=parseInt(myHM.get('ScrollD3_'+this.u+'_scL')); if(this.scI>0){ this.scI--; this.scrPrevButtonId=myHM.get('ScrollD3_'+this.u+'_scrPrevButtonId'); this.scrNextButtonId=myHM.get('ScrollD3_'+this.u+'_scrNextButtonId'); Gatex.setPrevNextButtonStyle(this.scrPrevButtonId+this.u, this.scrNextButtonId+this.u, this.scI, this.it.length, this.scL); this.buildAlertImage(this.scI, this.it.length, this.scL); var button=null; try{ button=document.getElementById(id); this.buttonOnclick=button.onclick; button.onclick="void(null);";}
catch(e){}
var element=document.getElementById("scrollD4_Data"+this.u); if(element!=null){ this.moveRight(element.offsetLeft, element.offsetLeft + this.iW+(2*this.cellpadding+this.cellspacing+2*this.tdBorder), id);}
}
}
myHM.put('ScrollD3_'+this.u+'_ScI', new String(this.scI));}, moveLeft:function(left, limit, id){ if(left>limit){ var element=document.getElementById("scrollD4_Data"+this.u); var step=10; if(left-limit<step) left=left-(left-limit); else left-=step; element.style.left=left+"px"; var time=0; if(Gatex.isIe()) time=20; else if(Gatex.isMozilla()) time=1; else if(Gatex.isNetscape7()) time=1; else time=1; this.tweenLeft=setTimeout("Scroll.design3.moveLeft("+left+", "+limit+", '"+id+"')", time);}
else{ try{ clearTimeout(this.tweenLeft); this.tweenLeft=null;}
catch(e){}
var button=null; try{ button=document.getElementById(id); button.onclick=this.buttonOnclick;}
catch(e){}
}
}, moveRight:function(left, limit, id){ if(left<limit){ var element=document.getElementById("scrollD4_Data"+this.u); var step=10; if(limit-left<step) left=left+(limit-left); else left+=step; element.style.left=left+"px"; var time=0; if(Gatex.isIe()) time=20; else if(Gatex.isMozilla()) time=1; else if(Gatex.isNetscape7()) time=1; else time=1; this.tweenRight=setTimeout("Scroll.design3.moveRight("+left+", "+limit+", '"+id+"')", time);}
else { try{ clearTimeout(this.tweenRight); this.tweenRight=null;}
catch(e){}
var button=null; try{ button=document.getElementById(id); button.onclick=this.buttonOnclick;}
catch(e){}
}
}
}
Scroll.design4={ init:function(aT, u, content, iW, scrH, scL){ this.u=u; this.it=new Array(); var element=document.getElementById(aT); if(element!=null){ this.it=Gatex.getArrayByTarget(aT); if(this.it.length){ myHM.pushDoubleArray(this.it, "ScrollD4_"+this.u+'_It'); myHM.put('ScrollD4_'+this.u+'_ItW', new String(this.it.length)); myHM.put('ScrollD4_'+this.u+'_ItH', new String(3)); if(content.indexOf("photoNews", 0)!=-1){ var tarr=content.split("|"); this.content=tarr[0]; this.contentId=tarr[1];}
else if(content=="photoAlbum"){ this.content=content;}
else if(content.indexOf("specialNews", 0)!=-1){ var tarr=content.split("|"); this.content=tarr[0]; this.specialNewsView=tarr[1]; this.specialNewsSection=tarr[2];}
this.iW=iW; this.scrH=scrH; this.scL=scL; this.tweenLeft=null; this.tweenRight=null; this.buttonOnclick=null; this.prevButtonId="scrollD4_PrevB"; this.nextButtonId="scrollD4_NextB"; this.scrPrevButtonId="scrollD4_ScrPrevB"; this.scrNextButtonId="scrollD4_ScrNextB"; this.currItemTarget='scrollD4_CurrItemTarget'; this.total='ScrollD4_Total'; this.currItemNumber='ScrollD4_CurrItemNumber'; this.speed='scrollD4_Speed'; this.scI=0; this.cI=0; this.ispause=false; this.isplay=false; myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI)); myHM.put('ScrollD4_'+this.u+'_ScI', new String(this.scI)); if(this.content=="photoNews"){ this.buildScr();}
else if(this.content=="photoAlbum"){ this.buildScr();}
else if(this.content=="specialNews"){ this.buildScrSpecialNews();}
this.buildAlertImage(this.scI, this.it.length, this.scL); if(this.it.length<2){ if(this.content=="specialNews"){ var elementPlayButton=document.getElementById("scrollD4_PlayB1"); if(elementPlayButton!=null){ elementPlayButton.style.display="none";}
var elementScr=document.getElementById("scrollD4_Target"); if(elementScr!=null){ elementScr.style.display="none";}
}
}
if(this.content!="specialNews"){ var element=document.getElementById('scrollD4_Target'); if(element!=null){ element.className="ScrollD4_Scr"; element.style.width=(this.scL*(this.iW+11)+1)+"px";}
}
Gatex.setPrevNextButtonStyle(this.prevButtonId+this.u, this.nextButtonId+this.u, 0, this.it.length, 1); Gatex.setPrevNextButtonStyle(this.scrPrevButtonId+this.u, this.scrNextButtonId+this.u, 0, this.it.length, this.scL); this.setTotal(); this.setCurrItemNumber(); if(this.content=="photoNews"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&newsId='+this.contentId+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="photoAlbum"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&photoName='+this.it[this.cI][2]+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="specialNews"){ _handleRequest('scrollD4_CurrItemTarget','core','content='+this.it[this.cI][1]+'&action=showShortInfo&view='+this.specialNewsView+'&id='+this.it[this.cI][0]+'&section='+this.specialNewsSection,false);}
}
else{ var elementPlayButton=document.getElementById("scrollD4_PlayB1"); if(elementPlayButton!=null){ elementPlayButton.style.display='none';}
var elementPauseButton=document.getElementById("scrollD4_PauseB1"); if(elementPauseButton!=null){ elementPauseButton.style.display='none';}
var elementCurrItemTarget=document.getElementById("scrollD4_CurrItemTarget"); if(elementCurrItemTarget!=null){ elementCurrItemTarget.innerHTML='Энд мэдээлэл алга.';}
}
}
}, buildScrSpecialNews:function(){ var str=''; str+='<table border="0" cellpadding="0" cellspacing="5">'; str+='<tr>'; var i=0; while(i<this.it.length){ str+='<td width="16" height="14" align="center" class="rootSpecial2" onclick="Scroll.design4.scrOnClick('+this.u+', '+i+')">'+(i+1)+'</td>'; i++;}
str+='</tr>'; str+='</table>'; var element=document.getElementById('scrollD4_Target'); if(element!=null){ element.innerHTML=str;}
}, buildScr:function(){ var str=''; str+='<div id="scrollD4_Data'+this.u+'" class="ScrollD4_Data">'; str+='<table border="0" cellpadding="5" cellspacing="1">'; str+='<tr>'; var i=0; while(i<this.it.length){ str+='<td width="'+this.iW+'" height="'+this.scrH+'" valign="middle">'; if(this.it[i][1]!=""){ str+='<div style="width:'+this.iW+'px;">' + this.it[i][1] + '</div>';}
str+='</td>'; i++;}
str+='</tr>'; str+='</table>'; str+='</div>'; var element=document.getElementById('scrollD4_Target'); if(element!=null){ element.innerHTML+=str;}
}, setTotal:function(){ var element=document.getElementById(this.total); if(element!=null){ element.innerHTML=this.it.length;}
}, setCurrItemNumber:function(){ var element=document.getElementById(this.currItemNumber); if(element!=null){ element.innerHTML=(this.cI+1);}
}, showInfo:function(windowTitle, x, y, x1, y1, target){ window.top.Dialog.design1.show(windowTitle, x, y, x1, y1, '_handleRequest("'+target+'", "'+Gatex.getContextPath()+'/core", "content=photo&action=showInfo&view=showInfo&id='+this.it[this.cI][0]+'", false)');}, buildAlertImage:function(currIndex, length, scrLength){ var i; var j; if(length-scrLength>1){ i=3;}
else{ i=2;}
if(currIndex==0){ j="l";}
else if(currIndex==length-scrLength){ j="r";}
else{ j="c";}
var str=''; var element=document.getElementById("scrollD4_AlertImage"+this.u); if(element!=null){ element.innerHTML=str;}
}, scrOnClick:function(u, cI){ this.isplay=false; if(this.tween!=null){ clearTimeout(this.tween); this.tween=null;}
this.cI=cI; myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI)); if(this.content=="photoNews"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&newsId='+this.contentId+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="photoAlbum"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&photoName='+this.it[this.cI][2]+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="specialNews"){ _handleRequest('scrollD4_CurrItemTarget','core','content='+this.it[this.cI][1]+'&action=showShortInfo&view='+this.specialNewsView+'&id='+this.it[this.cI][0]+'&section='+this.specialNewsSection,false);}
Gatex.setPrevNextButtonStyle(this.prevButtonId+this.u, this.nextButtonId+this.u, this.cI, this.it.length, 1); this.setPlayPauseButton('play'); this.ispause=false; this.setCurrItemNumber();}, nextOnClick:function(u){ this.isplay=false; if(this.tween!=null){ clearTimeout(this.tween); this.tween=null;}
this.cI=parseInt(myHM.get('ScrollD4_'+this.u+'_CI')); if(this.cI<this.it.length-1){ this.cI++; myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI)); Gatex.setPrevNextButtonStyle(this.prevButtonId+this.u, this.nextButtonId+this.u, this.cI, this.it.length, 1); this.setPlayPauseButton('play'); if(this.content=="photoNews"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&newsId='+this.contentId+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="photoAlbum"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&photoName='+this.it[this.cI][2]+'&photoId='+this.it[this.cI][0],false);}
this.ispause=false; this.setCurrItemNumber();}
}, prevOnClick:function(u){ this.isplay=false; if(this.tween!=null){ clearTimeout(this.tween); this.tween=null;}
this.cI=parseInt(myHM.get('ScrollD4_'+this.u+'_CI')); if(this.cI>0){ this.cI--; myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI)); Gatex.setPrevNextButtonStyle(this.prevButtonId+this.u, this.nextButtonId+this.u, this.cI, this.it.length, 1); this.setPlayPauseButton('play'); if(this.content=="photoNews"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&newsId='+this.contentId+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="photoAlbum"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&photoName='+this.it[this.cI][2]+'&photoId='+this.it[this.cI][0],false);}
this.ispause=false; this.setCurrItemNumber();}
}, setPlayPauseButton:function(button){ var play=document.getElementById("scrollD4_PlayB"+this.u); var pause=document.getElementById("scrollD4_PauseB"+this.u); if(play!=null && pause!=null){ if(button=="pause"){ play.style.display='none'; pause.style.display='';}
else if(button=="play"){ play.style.display=''; pause.style.display='none';}
}
}, play:function(u){ this.isplay=true; this.u=u; this.cI=parseInt(myHM.get('ScrollD4_'+this.u+'_CI')); if(!this.ispause){ if(this.cI!=0){ this.cI=-1;}
else{ this.cI=0;}
myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI));}
else{ this.ispause=false;}
this.setPlayPauseButton('pause'); this.tween=setTimeout('Scroll.design4.play1()', 1000);}, pause:function(u){ this.isplay=false; if(this.tween!=null){ clearTimeout(this.tween); this.tween=null;}
this.setPlayPauseButton('play'); this.ispause=true;}, stop:function(u){ this.isplay=false; clearTimeout(this.tween); this.tween=null; this.cI=0; myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI)); if(this.content=="photoNews"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&newsId='+this.contentId+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="photoAlbum"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&photoName='+this.it[this.cI][2]+'&photoId='+this.it[this.cI][0],false);}
Gatex.setPrevNextButtonStyle(this.prevButtonId+this.u, this.nextButtonId+this.u, this.cI, this.it.length, 1); this.setPlayPauseButton('play'); this.ispause=false; this.setCurrItemNumber();}, play1:function(){ this.cI=parseInt(myHM.get('ScrollD4_'+this.u+'_CI')); if(this.cI<this.it.length-1){ this.cI++; myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI)); if(this.content=="photoNews"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&newsId='+this.contentId+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="photoAlbum"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&photoName='+this.it[this.cI][2]+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="specialNews"){ _handleRequest('scrollD4_CurrItemTarget','core','content='+this.it[this.cI][1]+'&action=showShortInfo&view='+this.specialNewsView+'&id='+this.it[this.cI][0]+'&section='+this.specialNewsSection,false);}
Gatex.setPrevNextButtonStyle(this.prevButtonId+this.u, this.nextButtonId+this.u, this.cI, this.it.length, 1); this.setCurrItemNumber();}
else{ this.isplay=false; clearTimeout(this.tween); this.cI=0; myHM.put('ScrollD4_'+this.u+'_CI', new String(this.cI)); if(this.content=="photoNews"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&newsId='+this.contentId+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="photoAlbum"){ _handleRequest('scrollD4_CurrItemTarget', 'core', 'content='+this.content+'&object='+this.content+'Item&action=showItem&view=showItem&photoName='+this.it[this.cI][2]+'&photoId='+this.it[this.cI][0],false);}
else if(this.content=="specialNews"){_handleRequest('scrollD4_CurrItemTarget','core','content='+this.it[this.cI][1]+'&action=showShortInfo&view='+this.specialNewsView+'&id='+this.it[this.cI][0]+'&section='+this.specialNewsSection,false);}
Gatex.setPrevNextButtonStyle(this.prevButtonId+this.u, this.nextButtonId+this.u, this.cI, this.it.length, 1); this.setPlayPauseButton('play'); this.ispause=false; this.setCurrItemNumber();}
}, scrPrevOnClick:function(id, u){ this.u=u; this.scI=parseInt(myHM.get('ScrollD4_'+this.u+'_ScI')); this.it=myHM.getDoubleArray('ScrollD4_'+this.u+'_It', myHM.get('ScrollD4_'+this.u+'_ItW'), myHM.get('ScrollD4_'+this.u+'_ItH')); if(this.tweenLeft==null && this.tweenRight==null){ if(this.scI<this.it.length-this.scL){ this.scI++; Gatex.setPrevNextButtonStyle(this.scrPrevButtonId+this.u, this.scrNextButtonId+this.u, this.scI, this.it.length, this.scL); this.buildAlertImage(this.scI, this.it.length, this.scL); var button=null; try{ button=document.getElementById(id); this.buttonOnclick=button.onclick; button.onclick="void(null);";}
catch(e){}
var element=null; try{ element=document.getElementById("scrollD4_Data"+this.u);}
catch(e){}
this.moveLeft(element.offsetLeft, element.offsetLeft-this.iW-11, id);}
}
myHM.put('ScrollD4_'+this.u+'_ScI', new String(this.scI));}, scrNextOnClick:function(id, u){ this.u=u; this.scI=parseInt(myHM.get('ScrollD4_'+this.u+'_ScI')); this.it=myHM.getDoubleArray('ScrollD4_'+this.u+'_It', myHM.get('ScrollD4_'+this.u+'_ItW'), myHM.get('ScrollD4_'+this.u+'_ItH')); if(this.tweenLeft==null && this.tweenRight==null){ if(this.scI>0){ this.scI--; Gatex.setPrevNextButtonStyle(this.scrPrevButtonId+this.u, this.scrNextButtonId+this.u, this.scI, this.it.length, this.scL); this.buildAlertImage(this.scI, this.it.length, this.scL); var button=null; try{ button=document.getElementById(id); this.buttonOnclick=button.onclick; button.onclick="void(null);";}
catch(e){}
var element=document.getElementById("scrollD4_Data"+this.u); if(element!=null){ this.moveRight(element.offsetLeft, element.offsetLeft + this.iW+11, id);}
}
}
myHM.put('ScrollD4_'+this.u+'_ScI', new String(this.scI));}, moveLeft:function(left, limit, id){ if(left>limit){ var element=document.getElementById("scrollD4_Data"+this.u); var step=10; if(left-limit<step){ left=left-(left-limit);}
else{ left-=step;}
element.style.left=left+"px"; var time=0; if(Gatex.isIe()){ time=20;}
else if(Gatex.isMozilla()){ time=1;}
else if(Gatex.isNetscape7()){ time=1;}
else{ time=1;}
this.tweenLeft=setTimeout("Scroll.design4.moveLeft("+left+", "+limit+", '"+id+"')", time);}
else{ clearTimeout(this.tweenLeft); this.tweenLeft=null; var button=document.getElementById(id); if(button!=null){ button.onclick=this.buttonOnclick;}
}
}, moveRight:function(left, limit, id){ if(left<limit){ var element=document.getElementById("scrollD4_Data"+this.u); var step=10; if(limit-left<step){ left=left+(limit-left);}
else{ left+=step;}
element.style.left=left+"px"; var time=0; if(Gatex.isIe()){ time=20;}
else if(Gatex.isMozilla()){ time=1;}
else if(Gatex.isNetscape7()){ time=1;}
else{ time=1;}
this.tweenRight=setTimeout("Scroll.design4.moveRight("+left+", "+limit+", '"+id+"')", time);}
else{ clearTimeout(this.tweenRight); this.tweenRight=null; var button=document.getElementById(id); if(button!=null){ button.onclick=this.buttonOnclick;}
}
}
}

