1var TINY={}; 2 3function tid(i){ return document.getElementById(i); } 4function tag(e,p){ p=p||document; return p.getElementsByTagName(e); } 5 6TINY.slideshow=function(n){ 7 this.infoSpeed=this.imgSpeed=this.speed=10; 8 this.thumbOpacity=this.navHover=70; 9 this.navOpacity=25; 10 this.scrollSpeed=5; 11 this.letterbox='#000'; 12 this.n=n; 13 this.c=0; 14 this.a=[] 15}; 16 17TINY.slideshow.prototype={ 18 init:function(s,z,b,f,q){ 19 this.s=s=tid(s); 20 var m= tag('li',s), i=0, w=0; 21 this.l=m.length; 22 this.q=tid(q); 23 this.f=tid(z); 24 this.r=tid(this.info); 25 this.o=parseInt(TINY.style.val(z,'width')); 26 27 if(this.thumbs){ 28 var u=tid(this.left), r=tid(this.right); 29 u.onmouseover=new Function('TINY.scroll.init("'+this.thumbs+'",-1,'+this.scrollSpeed+')'); 30 u.onmouseout=r.onmouseout=new Function('TINY.scroll.cl("'+this.thumbs+'")'); 31 r.onmouseover=new Function('TINY.scroll.init("'+this.thumbs+'",1,'+this.scrollSpeed+')'); 32 this.p=tid(this.thumbs) 33 } 34 35 for(i;i<this.l;i++){ 36 this.a[i]={}; 37 var h=m[i], a=this.a[i]; 38 a.t= tag('h3',h)[0].innerHTML; 39 a.io = tag('h3',h)[0].style.opacity; 40 a.d= tag('p',h)[0].innerHTML; 41 a.l= tag('a',h)[0]? tag('a',h)[0].href:''; 42 a.tg = tag('a',h)[0] != '' ? tag('a',h)[0].target:'_self'; 43 a.p= tag('span',h)[0].innerHTML; 44 if(this.thumbs){ 45 var g = tag('img',h)[0]; 46 this.p.appendChild(g); 47 w+=parseInt(g.offsetWidth); 48 if(i!=this.l-1){ 49 g.style.marginRight=this.spacing+'px'; 50 w+=this.spacing 51 } 52 this.p.style.width=w+'px'; 53 g.style.opacity=this.thumbOpacity/100; 54 g.style.filter='alpha(opacity='+this.thumbOpacity+')'; 55 g.onmouseover=new Function('TINY.alpha.set(this,100,5)'); 56 g.onmouseout=new Function('TINY.alpha.set(this,'+this.thumbOpacity+',5)'); 57 g.onclick=new Function(this.n+'.pr('+i+',1)'); 58 } 59 } 60 if(b&&f){ 61 b=tid(b); 62 f=tid(f); 63 b.style.opacity=f.style.opacity=this.navOpacity/100; 64 b.style.filter=f.style.filter='alpha(opacity='+this.navOpacity+')'; 65 b.onmouseover=f.onmouseover=new Function('TINY.alpha.set(this,'+this.navHover+',5)'); 66 b.onmouseout=f.onmouseout=new Function('TINY.alpha.set(this,'+this.navOpacity+',5)'); 67 b.onclick=new Function(this.n+'.mv(-1,1)'); 68 f.onclick=new Function(this.n+'.mv(1,1)'); 69 } 70 this.auto?this.is(0,0):this.is(0,1); 71 }, 72 mv:function(d,c){ 73 this.direction = (d == 1) ? 'f' : 'b'; 74 var t=this.c+d; 75 this.c=t=t<0?this.l-1:t>this.l-1?0:t; 76 this.pr(t,c) 77 }, 78 pr:function(t,c){ 79 clearTimeout(this.lt); 80 if(c){ 81 clearTimeout(this.at) 82 } 83 this.c=t; 84 this.is(t,c) 85 }, 86 is:function(s,c){ 87 if(this.info) { 88 if (this.a[s].t.length > 0 || this.a[s].d.length > 0) { 89 TINY.height.set(this.r,1,this.infoSpeed/2,-1); 90 } else { 91 TINY.height.set(this.r,0,this.infoSpeed/2,-1); 92 } 93 } 94 95 var i=new Image(); 96 if (this.effect == "fade") { 97 //i.style.opacity=0; 98 //i.style.filter='alpha(opacity=0)'; 99 i.style.display = 'none'; 100 } 101 102 this.i=i; 103 i.onload=new Function(this.n+'.le('+s+','+c+')'); 104 string = this.a[s].p; 105 string = string.replace(/&/g, '&'); 106 i.src = string; 107 i.id = this.imagesid + 'img' + s; 108 if(this.thumbs){ 109 var a= tag('img',this.p), l=a.length, x=0; 110 for(x;x<l;x++){ 111 a[x].style.borderColor=x!=s?'':this.active 112 } 113 } 114 }, 115 mi:function(oi, i) { 116 opos = jQuery(oi).position(); 117 oposl = opos.left; 118 opost = opos.top; 119 ow = jQuery(oi).width(); 120 oh = jQuery(oi).height(); 121 122 pos = jQuery(i).position(); 123 posl = pos.left; 124 post = pos.top; 125 w = jQuery(i).width(); 126 h = jQuery(i).height(); 127 128 speed = (this.imgSpeed * 100); 129 130 if (jQuery(oi).attr('src') != jQuery(i).attr('src')) { 131 if (this.direction == "f") { 132 if (this.slide_direction == "tb") { 133 jQuery(i).css('top', (h + opost)).animate({ 134 "top": "0px" 135 }, { 136 duration: speed, 137 easing: this.easing, 138 step: function(now, fx) { 139 jQuery(oi).css('top', '-' + (oh - now) + 'px'); 140 } 141 }); 142 } else { 143 jQuery(i).css('left', (w + oposl)).animate({"left": "0px"}, { 144 duration: speed, 145 easing: this.easing, 146 step: function(now, fx) { 147 jQuery(oi).css('left', '-' + (ow - now) + 'px'); 148 } 149 }); 150 } 151 } else if (this.direction == "b") { 152 if (this.slide_direction == "tb") { 153 newpos = -(w - opost);
154 jQuery(i).css('top', newpos).animate({"top": "0px"}, { 155 duration: speed, 156 easing: this.easing, 157 step: function(now, fx) { 158 jQuery(oi).css('top', '+' + (oh + now) + 'px'); 159 } 160 }); 161 } else { 162 newpos = -(w - oposl); 163 jQuery(i).css('left', newpos).animate({"left": "0px"}, { 164 duration: speed, 165 easing: this.easing, 166 step: function(now, fx) { 167 jQuery(oi).css('left', '+' + (ow + now) + 'px'); 168 } 169 }); 170 } 171 } 172 } 173 }, 174 oi:function(oi, i) { 175 speed = (this.imgSpeed * 100); 176 177 jQuery(oi).fadeOut({ 178 duration: speed, 179 easing: this.easing 180 }); 181 182 jQuery(i).fadeIn({ 183 duration: speed, 184 easing: this.easing 185 }); 186 }, 187 le:function(s,c){ 188 this.f.appendChild(this.i); 189 var w=this.o-parseInt(this.i.offsetWidth); 190 if(w>0){ 191 var l=Math.floor(w/2); 192 } 193 194 var m= tag('img',this.f); 195 if (this.effect == "fade") { 196 //TINY.alpha.set(this.i,100,this.imgSpeed); 197 this.oi(m[(m.length - 2)], this.i); 198 } else { 199 if (m.length > 1) { 200 this.mi(m[(m.length - 2)], this.i); 201 } 202 } 203 204 var n=new Function(this.n+'.nf('+s+')'); 205 this.lt=setTimeout(n,this.imgSpeed*100); 206 if(!c || (this.auto == true && this.alwaysauto == true)) { 207 this.at=setTimeout(new Function(this.n+'.mv(1,0)'),this.speed*1000) 208 } 209 210 if (this.autoheight == true) { 211 TINY.height.set(this.f.parentNode,(jQuery(this.i).height()),this.infoSpeed/2,-1); 212 } 213 214 if(this.a[s].l != ""){ 215 var baseURL = this.a[s].l; 216 var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; 217 var urlType = baseURL.toLowerCase().match(urlString); 218 var unique= jQuery(this.s).attr('id'); 219 220 if (this.imagesthickbox == "true" && (urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp')) { 221 //this.q.onclick = new Function('jQuery.colorbox({href:"' + this.a[s].l + '",maxWidth:"90%",maxHeight:"90%",title:"' + this.a[s].t + '"})'); 222 this.q.onmouseover = new Function('this.className="' + this.linkclass + '"; this.href = "' + this.a[s].l + '";'); 223 var uniqueimglinkid = jQuery('a[href="' + this.a[s].l + '"]').attr('id'); 224 this.q.onclick = new Function('jQuery(".colorbox").colorbox({rel:"' + unique + 'overlay", maxWidth:"90%", maxHeight:"90%"}); jQuery("#' + uniqueimglinkid + '").click(); return false;'); 225 } else { 226 this.q.onmouseover = new Function('this.className="' + this.linkclass + '";'); 227 this.q.onclick = new Function('window.open("' + this.a[s].l + '","' + this.a[s].tg + '"); return false;'); 228 } 229 230 this.q.onmouseout = new Function('this.className=""'); 231 this.q.style.cursor = 'pointer'; 232 }else{ 233 this.q.onclick=this.q.onmouseover=null; 234 this.q.style.cursor='default'; 235 } 236 var m= tag('img',this.f); 237 if(m.length > 10){ 238 this.f.removeChild(m[0]) 239 } 240 }, 241 nf:function(s){ 242 if(this.info){ 243 s=this.a[s]; 244 tag('h3',this.r)[0].innerHTML=s.t; 245 tag('p',this.r)[0].innerHTML=s.d; 246 this.r.style.height='auto'; 247 var h=parseInt(this.r.offsetHeight); 248 this.r.style.height=0; 249 250 if (s.t.length > 0 || s.d.length > 0) { 251 TINY.height.set(this.r,h,this.infoSpeed,0); 252 TINY.alpha.set(this.r,s.io,5); 253 } 254 } 255 } 256}; 257 258TINY.scroll=function(){ 259 return{ 260 init:function(e,d,s){ 261 e=typeof e=='object'?e: tid(e); var p=e.style.left||TINY.style.val(e,'left'); e.style.left=p; 262 var l = (d==1) ? Math.abs(parseInt(e.offsetWidth)-parseInt(e.parentNode.offsetWidth)) : 0; 263 264 if ((e.childNodes.length+1)*e.firstChild.width > e.parentNode.offsetWidth) { 265 e.si=setInterval(function(){ 266 TINY.scroll.mv(e,l,d,s)},20); 267 } 268 }, 269 mv:function(e,l,d,s){ 270 var c=parseInt(e.style.left); if(c==l){TINY.scroll.cl(e)}else{var i=Math.abs(l+c); i=i<s?i:s; var n=c-i*d; e.style.left=n+'px'} 271 }, 272 cl:function(e){e=typeof e=='object'?e: tid(e); clearInterval(e.si)} 273 } 274}(); 275 276TINY.height=function(){ 277 return{ 278 set:function(e,h,s,d){ 279 e=typeof e=='object'?e:tid(e); var oh=e.offsetHeight, ho=e.style.height||TINY.style.val(e,'height'); 280 ho=oh-parseInt(ho); var hd=oh-ho>h?-1:1; clearInterval(e.si); e.si=setInterval(function(){TINY.height.tw(e,h,ho,hd,s)},20) 281 }, 282 tw:function(e,h,ho,hd,s){ 283 var oh=e.offsetHeight-ho; 284 if(oh == h){clearInterval(e.si)}else{if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'px'}} 285 } 286 } 287}(); 288 289TINY.alpha=function(){ 290 return{ 291 set:function(e,a,s){ 292 e=typeof e=='object'?e:tid(e); var o=e.style.opacity||TINY.style.val(e,'opacity'), 293 d=a>o*100?1:-1; e.style.opacity=o; clearInterval(e.ai); e.ai=setInterval(function(){TINY.alpha.tw(e,a,d,s)},20) 294 }, 295 tw:function(e,a,d,s){ 296 var o=Math.round(e.style.opacity*100); 297 if(o==a){clearInterval(e.ai)}else{var n=o+Math.ceil(Math.abs(a-o)/s)*d; e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')'} 298 } 299 } 300}(); 301 302TINY.style=function(){return{val:function(e,p){e=typeof e=='object'?e:tid(e); return e.currentStyle?e.currentStyle[p]:document.defaultView.getComputedStyle(e,null).getPropertyValue(p)}}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.