document.write(" ") var focusutils={ hovernum:function(i){ i=window.event?event:i; var i=i.srcelement||i.target; if(i){ i.classname="numberhover"; i.setattribute("ishovering","true") } }, leavenum:function(i){ i=window.event?event:i; var i=i.srcelement||i.target; if(i){ i.removeattribute("ishovering"); if(i.classname!="selected"){ i.classname="numberleave" } } }, absposition:function(o,i){ var l=o.offsetleft,o=o.offsettop,i=o; while(i.id!=document.body&i.id!=document.documentelement&i!=i){ i=i.offsetparent;l+=i.offsetleft;o+=i.offsettop }; return{left:l,top:o} } }; function pixviewer(focusimgid,bigpicid,numberid,numberbgid){ this.data=[]; this.timeout=5000; var isie = navigator.appversion.indexof("msie")!=-1?true:false; this._divtriangle=null; this.titleheight=0; this.titleid=null; this.selectedindex=0; var timeoutobj; if(!pixviewer.childs){ pixviewer.childs=[] }; this.showtime=null; this.showsum=10; this.id=pixviewer.childs.push(this)-1; this.listcode='[$numtoshow]'; this.add=function(jsnobj){ this.data.push(jsnobj) }; this.timeoutbegin=function(){ clearinterval(timeoutobj); timeoutobj=setinterval("pixviewer.childs["+this.id+"].next()",this.timeout) }; this.timeoutend=function(){ clearinterval(timeoutobj) }; this.select=function(num,noaction){ if( num>this.data.length-1 ){return}; if( num==this.selectedindex ){return}; this.timeoutbegin(); if( bigpicid ){ if( this.$(bigpicid) ){ var aobj = this.$(bigpicid).getelementsbytagname("a")[0]; aobj.href = this.data[num].url; if( this.aimgy ){ this.aimgy.style.display = 'none'; this.aimg.style.zindex = 0 }; this.aimgy=this.$( 'f'+this.id+'bf'+this.selectedindex ); this.aimg=this.$( 'f'+this.id+'bf'+num ); cleartimeout(this.showtime); this.showsum=5; if( !noaction ){ var applemobilecheck = /\((ipad|iphone|ipod)/i; if( applemobilecheck.test(navigator.useragent) ){ if(this.aimgy){ this.aimgy.style.display='none'}; this.aimg.style.display='block'; this.aimg.style.zindex=0; this.aimg.style.opacity=1; this.aimgy=null }else{ this.showtime=settimeout("pixviewer.childs["+this.id+"].show()",30) } }else{ if(isie){ this.aimg.style.filter="alpha(opacity=100)" }else{ this.aimg.style.opacity=1 } } } }; if( numberid ){ if( this.$(numberid) && focusimgid && this.$(focusimgid) ){ var simg = this.$(numberid).getelementsbytagname("span"),i; for(i=0;i"+this.data[num].title+"" }; this.selectedindex=num; if( this.onchange ){ this.onchange() } }; this.show=function(){ this.showsum--; if(this.aimgy){ this.aimgy.style.display='block' }; this.aimg.style.display='block'; if(isie){ this.aimg.style.filter="alpha(opacity=0)"; this.aimg.style.filter="alpha(opacity="+(5-this.showsum)*20+")" }else{ this.aimg.style.opacity=0; this.aimg.style.opacity=(5-this.showsum)*0.2 }; if(this.showsum<=0){ if(this.aimgy){ this.aimgy.style.display='none' }; this.aimg.style.zindex=0; this.aimgy=null }else{ this.aimg.style.zindex=2; this.showtime=settimeout("pixviewer.childs["+this.id+"].show()",30) } }; this.next=function(){ var temp=this.selectedindex; temp++; if( temp>=this.data.length ){ temp=0 }; this.select(temp) }; this.pre=function(){ var temp=this.selectedindex; temp--; if(temp<0){ temp=this.data.length-1 }; this.select(temp) }; this.begin=function(){ this.selectedindex=-1; var i,temp=""; if( focusimgid ){ if( this.$(focusimgid) ){ var topobj=this.$(focusimgid); topobj.style.width = "100%"; topobj.style.height = "100%"; var _hb=document.createelement("div"); _hb.classname="borderhack1"; _hb.style.width= "100%"; topobj.appendchild(_hb); _hb=document.createelement("div"); _hb.classname="borderhack2"; _hb.style.height= "100%"; topobj.appendchild(_hb); _hb=document.createelement("div"); _hb.classname="borderhack3"; _hb.style.width = "100%"; _hb.style.bottom = this.titleheight+"px"; topobj.appendchild(_hb); _hb=document.createelement("div"); _hb.classname="borderhack4"; _hb.style.height = "100%"; topobj.appendchild(_hb) } }; if(this.titleid){ if(this.$(this.titleid)){ this.$(this.titleid).style.width= "100%"; this.$(this.titleid).style.height=this.titleheight+"px"; this.$(this.titleid).style.lineheight=this.titleheight+"px"; if(this.titleheight==0){ this.$(this.titleid).style.display='none' } } }; if(numberbgid){ if( this.$(numberbgid) ){ this.$(numberbgid).style.bottom=this.titleheight+"px" } }; if(bigpicid){ if( this.$(bigpicid) ){ var aobj = this.$(bigpicid).getelementsbytagname("a")[0]; aobj.style.zoom=1; this.$(bigpicid).style.position="relative"; this.$(bigpicid).style.zoom=1; this.$(bigpicid).style.overflow="hidden"; this.$(bigpicid).style.height= "100%"; for( i=0;i' }; aobj.innerhtml=temp; var imgobjs=aobj.getelementsbytagname("img"), xy = focusutils.absposition( imgobjs[0], this.$(bigpicid) ); for(i=0;i") document.write(" ") document.write("
") document.write("
") document.write("
") document.write(" ") }