(function($){ $.extend($.browser,{ client:function(){ return{ width:document.documentelement.clientwidth,height:document.documentelement.clientheight,bodywidth:document.body.clientwidth,bodyheight:document.body.clientheight } } ,scroll:function(){ return{ width:document.documentelement.scrollwidth,height:document.documentelement.scrollheight,bodywidth:document.body.scrollwidth,bodyheight:document.body.scrollheight,left:document.documentelement.scrollleft+document.body.scrollleft,top:document.documentelement.scrolltop+document.body.scrolltop } } ,screen:function(){ return{ width:window.screen.width,height:window.screen.height } } ,isie6:$.browser.msie&&$.browser.version==6,isminw:function(val){ return math.min($.browser.client().bodywidth,$.browser.client().width)<=val } ,isminh:function(val){ return $.browser.client().height<=val } }) })(jquery); (function($){ $.fn.hoverforie6=function(option){ var s=$.extend({ current:"hover",delay:10 } ,option||{}); $.each(this,function(){ var timer1=null,timer2=null,flag=false; $(this).bind("mouseover",function(){ if(flag){ cleartimeout(timer2) } else{ var _this=$(this); timer1=settimeout(function(){ _this.addclass(s.current); flag=true } ,s.delay) } }).bind("mouseout",function(){ if(flag){ var _this=$(this); timer2=settimeout(function(){ _this.removeclass(s.current); flag=false } ,s.delay) } else{ cleartimeout(timer1) } }) }) } })(jquery); (function($){ $.extend({ _jsonp:{ scripts:{},counter:1,charset:"gb2312",head:document.getelementsbytagname("head")[0],name:function(callback){ var name='_jsonp_'+(new date).gettime()+'_'+this.counter; this.counter++; var cb=function(json){ eval('delete '+name); callback(json); $._jsonp.head.removechild($._jsonp.scripts[name]); delete $._jsonp.scripts[name] }; eval(name+' = cb'); return name } ,load:function(url,name){ var script=document.createelement('script'); script.type='text/javascript'; script.charset=this.charset; script.src=url; this.head.appendchild(script); this.scripts[name]=script } } ,getjsonp:function(url,callback){ var name=$._jsonp.name(callback); var url=url.replace(/{callback};/,name); $._jsonp.load(url,name); return this } }) })(jquery); (function(a){ a.fn.jdtab=function(d,i){ if(typeof d=="function"){ i=d; d={} } var k=a.extend({ type:"static",auto:false,source:"data",event:"mouseover",currclass:"curr",tab:".tab",content:".tabcon",itemtag:"li",stay:5000,delay:100,maintimer:null,subtimer:null,index:0 } ,d||{}); var f=a(this).find(k.tab).eq(0).find(k.itemtag),b=a(this).find(k.content); if(f.length!=b.length){ return false } var c=k.source.tolowercase().match(/http:\/\/|\d|\.aspx|\.ascx|\.asp|\.php|\.html\.htm|.shtml|.js|\w/g); var j=function(m,l){ k.subtimer=settimeout(function(){ e(); if(l){ k.index++; if(k.index==f.length){ k.index=0 } } else{ k.index=m } k.type=(f.eq(k.index).attr(k.source)!=null)?"dynamic":"static"; h() } ,k.delay) }; var g=function(){ k.maintimer=setinterval(function(){ j(k.index,true) } ,k.stay) }; var h=function(){ f.eq(k.index).addclass(k.currclass); switch(k.type){ default:case"static":var l=""; break; case"dynamic":var l=(c==null)?f.eq(k.index).attr(k.source):k.source; f.eq(k.index).removeattr(k.source); break } if(i){ i(l,b.eq(k.index),k.index) } b.eq(k.index).show() }; var e=function(){ f.eq(k.index).removeclass(k.currclass); b.eq(k.index).hide() }; f.each(function(l){ a(this).bind(k.event,function(){ cleartimeout(k.subtimer); clearinterval(k.maintimer); j(l,false); return false }).bind("mouseleave",function(){ if(k.auto){ g() } else{ return } }) }); if(k.type=="dynamic"){ j(k.index,false) } if(k.auto){ g() } } })(jquery); (function(a){ a.fn.jdslide=function(k){ var p=a.extend({ width:null,height:null,pics:[],index:0,type:"num",current:"curr",delay1:100,delay2:5000 } ,k||{}); var i=this; var g,f,d,h=0,e=true,b=true; var n=p.pics.length; var o=function(){ var q="