1window.onerror=function(desc,page,line,chr){ 2/* alert('JavaScript error occurred! \n' 3 +'\nError description: \t'+desc 4 +'\nPage address: \t'+page 5 +'\nLine number: \t'+line 6 );*/ 7} 8 9$(function(){ 10 $('a').focus(function(){this.blur();}); 11 SI.Files.stylizeAll(); 12 slider.init(); 13 mc.init(); 14 15 $('input.text-default').each(function(){ 16 $(this).attr('default',$(this).val()); 17 }).focus(function(){ 18 if($(this).val()==$(this).attr('default')) 19 $(this).val(''); 20 }).blur(function(){ 21 if($(this).val()=='') 22 $(this).val($(this).attr('default')); 23 }); 24 25 $('input.text,textarea.text').focus(function(){ 26 $(this).addClass('textfocus'); 27 }).blur(function(){ 28 $(this).removeClass('textfocus'); 29 }); 30 31 var popopenobj=0,popopenaobj=null; 32 $('a.popup').click(function(){ 33 var pid=$(this).attr('rel').split('|')[0],_os=parseInt($(this).attr('rel').split('|')[1]); 34 var pobj=$('#'+pid); 35 if(!pobj.length) 36 return false; 37 if(typeof popopenobj=='object' && popopenobj.attr('id')!=pid){ 38 popopenobj.hide(50); 39 $(popopenaobj).parent().removeClass(popopenobj.attr('id').split('-')[1]+'-open'); 40 popopenobj=null; 41 } 42 return false; 43 }); 44 $('p.images img').click(function(){ 45 var newbg=$(this).attr('src').split('bg/bg')[1].split('-thumb')[0]; 46 $(document.body).css('backgroundImage','url('+_siteRoot+'images/bg/bg'+newbg+'.jpg)'); 47 48 $(this).parent().find('img').removeClass('on'); 49 $(this).addClass('on'); 50 return false; 51 }); 52 $(window).load(function(){ 53 $.each(css_ims,function(){(new Image()).src=_siteRoot+'css/images/'+this;}); 54 $.each(css_cims,function(){ 55 var css_im=this; 56 $.each(['blue','purple','pink','red','grey','green','yellow','orange'],function(){ 57 (new Image()).src=_siteRoot+'css/'+this+'/'+css_im; 58 }); 59 }); 60 }); 61 $('div.sc-large div.img:has(div.tml)').each(function(){ 62 $('div.tml',this).hide(); 63 $(this).append('<a href="#" class="tml_open"> </a>').find('a').css({ 64 left:parseInt($(this).offset().left)+864,top:parseInt($(this).offset().top)+1 65 }).click(function(){ 66 $(this).siblings('div.tml').slideToggle(); 67 return false; 68 }).focus(function(){this.blur();}); 69 }); 70}); 71var slider={ 72 num:-1, 73 cur:0, 74 cr:[], 75 al:null, 76 at:10*1000, 77 ar:true, 78 init:function(){ 79 if(!slider.data || !slider.data.length) 80 return false; 81 82 var d=slider.data; 83 slider.num=d.length; 84 var pos=Math.floor(Math.random()*1);//slider.num); 85 for(var i=0;i<slider.num;i++){ 86 $('#'+d[i].id).css({left:((i-pos)*1000)}); 87 $('#slide-nav').append('<a id="slide-link-'+i+'" href="#" onclick="slider.slide('+i+');return false;" onfocus="this.blur();">'+(i+1)+'</a>'); 88 } 89 90 $('img,div#slide-controls',$('div#slide-holder')).fadeIn(); 91 slider.text(d[pos]); 92 slider.on(pos); 93 slider.cur=pos; 94 window.setTimeout('slider.auto();',slider.at); 95 }, 96 auto:function(){ 97 if(!slider.ar) 98 return false; 99 100 var next=slider.cur+1; 101 if(next>=slider.num) next=0; 102 slider.slide(next); 103 }, 104 slide:function(pos){ 105 if(pos<0 || pos>=slider.num || pos==slider.cur) 106 return; 107 108 window.clearTimeout(slider.al); 109 slider.al=window.setTimeout('slider.auto();',slider.at); 110 111 var d=slider.data; 112 for(var i=0;i<slider.num;i++) 113 $('#'+d[i].id).stop().animate({left:((i-pos)*1000)},1000,'swing'); 114 115 slider.on(pos); 116 slider.text(d[pos]); 117 slider.cur=pos; 118 }, 119 on:function(pos){ 120 $('#slide-nav a').removeClass('on'); 121 $('#slide-nav a#slide-link-'+pos).addClass('on'); 122 }, 123 text:function(di){ 124 slider.cr['a']=di.client; 125 slider.cr['b']=di.desc; 126 slider.ticker('#slide-client span',di.client,0,'a'); 127 slider.ticker('#slide-desc',di.desc,0,'b'); 128 }, 129 ticker:function(el,text,pos,unique){ 130 if(slider.cr[unique]!=text) 131 return false; 132 133 ctext=text.substring(0,pos)+(pos%2?'-':'_'); 134 $(el).html(ctext); 135 136 if(pos==text.length) 137 $(el).html(text); 138 else 139 window.setTimeout('slider.ticker("'+el+'","'+text+'",'+(pos+1)+',"'+unique+'");',30); 140 } 141}; 142// STYLING FILE INPUTS 1.0 | Shaun Inman <http://www.shauninman.com/> | 2007-09-07 143if(!window.SI){var SI={};}; 144SI.Files={ 145 htmlClass:'SI-FILES-STYLIZED', 146 fileClass:'file', 147 wrapClass:'cabinet', 148 149 fini:false, 150 able:false, 151 init:function(){ 152 this.fini=true; 153 }, 154 stylize:function(elem){ 155 if(!this.fini){this.init();}; 156 if(!this.able){return;}; 157 158 elem.parentNode.file=elem; 159 elem.parentNode.onmousemove=function(e){ 160 if(typeof e=='undefined') e=window.event; 161 if(typeof e.pageY=='undefined' && typeof e.clientX=='number' && document.documentElement){ 162 e.pageX=e.clientX+document.documentElement.scrollLeft; 163 e.pageY=e.clientY+document.documentElement.scrollTop; 164 }; 165 var ox=oy=0; 166 var elem=this; 167 if(elem.offsetParent){ 168 ox=elem.offsetLeft; 169 oy=elem.offsetTop; 170 while(elem=elem.offsetParent){ 171 ox+=elem.offsetLeft; 172 oy+=elem.offsetTop; 173 }; 174 }; 175 }; 176 }, 177 stylizeAll:function(){ 178 if(!this.fini){this.init();}; 179 if(!this.able){return;}; 180 } 181};
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.