function flash2(tag, url,w,h,flashvars){var s=''+(flashvars ? '' : '')+'';tag?tag.html(s):document.write(s);} function flash(url,w,h,flashvars){document.write(''+(flashvars ? '' : '')+'');} function wdate(){var today = new date();var yy=today.getfullyear();var mm=today.getmonth()+1;var dd=today.getdate();var isndays="星期日|星期一|星期二|星期三|星期四|星期五|星期六|星期日".split("|");if(mm<10)mm="0"+mm;if(dd<10)dd="0"+dd;document.write("今天是:" + yy + "年" + mm + "月" + dd + "日 " + isndays[today.getday()]);} string.prototype.trim = function(){return this.tostring().replace(/(^[\s\u3000\ufeff\u00a0]+)|([\s\u3000\ufeff\u00a0]+$)/g, '');} function sethome(obj){var url = window.location;try{obj.style.behavior='url(#default#homepage)';obj.sethomepage(url);}catch(e){if(window.netscape){try{netscape.security.privilegemanager.enableprivilege("universalxpconnect");}catch(e){alert("此操作被浏览器拒绝!\n请在浏览器地址栏输入\"about:config\"并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可");}var prefs = components.classes['@mozilla.org/preferences-service;1'].getservice(components.interfaces.nsiprefbranch);prefs.setcharpref('browser.startup.homepage',url);}else{alert("您的浏览器不支持,请按照下面步骤操作:\n1、打开浏览器设置\n2、点击设置网页\n3、输入:"+url+"\n4、点击确定");}}} function addfavourite(){var title=document.title,url=window.location;try{window.external.addfavorite(url, title)}catch(e){try{window.sidebar.addpanel(title, url, "")}catch(e){alert("请使用ctrl+d进行添加")}}} /*edgesun@126.com 20140610 -- $('.ul'), 是否显示向前向生按钮, 是否显示索引, 是否数字索引, 鼠标滑过时是否暂停*/ function edgesunimgfade(a,b,c,d,e){if(this.i=0,this.ul=a,this.li=a.find("li"),this.showindex=!!c,!(this.li.size()<2)){var f=this;e&&this.ul.hover(function(){f.stop()},function(){f.auto()}),b&&this.showbtn(f),this.showindex&&this.addindex(f,!!d),this.auto()}}edgesunimgfade.prototype.showbtn=function(a){$('').appendto(this.ul.parent()),this.ul.parent().find("a.prev").click(function(){a.play(-1)}),$('').appendto(this.ul.parent()),this.ul.parent().find("a.next").click(function(){a.play(1)}),this.ul.parent().find("a.btn").each(function(){$(this).hover(function(){a.stop()},function(){a.auto()})})},edgesunimgfade.prototype.addindex=function(a,b){var d,c=$('