$.fn.sh=function(f){var g={h:false,time:2500,start:0};var h=$.extend(g,f);return this.each(function(){var a=$(this);var p=h.h?{0:{left:a.width(),top:0},1:{left:0},2:{left:-a.width()-10},3:{left:a.width()}}:{0:{top:a.height(),left:0},1:{top:0},2:{top:-a.height()-10},3:{top:a.height()}};var b=h.time;var c=h.start;var d=a.children('li').length;if(d<2)return;if(c<0){c=Math.floor(Math.random()*d)}var r=function(){a.children('li').eq(c).animate(p[2],'slow',function(){$(this).css(p[3])});c=++c%d;a.children('li').eq(c).show().animate(p[1],'slow')};a.hover(function(){clearInterval(e);e=null},function(){if(!e)e=setInterval(r,b)});a.css({position:'relative',overflow:'hidden'}).children('li').css({position:'absolute',width:a.width()}).css(p[0]).eq(c).css(p[1]);var e=setInterval(r,b)})};$.fn.reorder=function(){var e=function(){return(Math.round(Math.random())-0.5)};return($(this).each(function(){var a=$(this);var b=a.children();var c=b.length;if(c>1){b.remove();var d=new Array();for(i=0;i<c;i++){d[d.length]=i}d=d.sort(e);$.each(d,function(j,k){a.append(b.eq(k))})}}))};function updateBookmarks(){$('a[href*=#]').click(function(){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var a=$(this.hash);if(this.hash=='#top'){$('html,body').animate({scrollTop:0},700);return false}a=a.length&&a||$('[name='+this.hash.slice(1)+']');if(a.length){var b=a.offset().top;$('html,body').animate({scrollTop:b},700);return false}}})}function bookmark_us(a,b){if(window.sidebar)window.sidebar.addPanel(b,a,"");else if(window.opera&&window.print){var c=document.createElement('a');c.setAttribute('href',a);c.setAttribute('title',b);c.setAttribute('rel','sidebar');c.click()}else if(document.all)window.external.AddFavorite(a,b)}function popUp(s,a,w,h,b,c){s=document.all?s:0;if(s){return window.showModalDialog(a,null,"dialogHeight:"+h+"px;dialogWidth:"+w+"px;status:no;resizable:"+c+";scroll:"+b+";help:no;center:yes")}else{var d=window.open(a,'OPBYMY'+w+'_'+h,"height="+h+",width="+w+",left=200,top=150,status=no,toolbar=no,menubar=no,location=no,resizable="+c+",scrollbars="+b+",directories=no,titlebar=no");d.window.focus()}}function printNote(f){if($('#_PRNHDR').is(':hidden')){$('#_PRNHDR').show('fast',function(){_PRNNOTES.focus();f._PRNNOTES.value='Attention: '})}else{$('#_PRNHDR').slideUp()}}function l_go(o){for(k in o)document.forms.l_f[k].value=o[k];document.forms.l_f.submit()}function l_pop(o,w){var x='';$('#l_f input').each(function(k){x+='&'+this.name+'='+(o[this.name]?o[this.name]:this.value)});popUp(w['s'],'?'+x.substr(1),w['w'],w['h'],1,0)}$.fn.passwordStrength=function(b){return this.each(function(){var a=this;a.op={};a.op=$.extend({},$.fn.passwordStrength.defaults,b);a.div=$(a.op.target);a.defaultClass=a.div.attr('class');a.percents=(a.op.classes.length)?100/a.op.classes.length:100;v=$(this).keyup(function(){if(typeof el=="undefined")this.el=$(this);var s=getPasswordStrength(this.value);var p=this.percents;var t=Math.floor(s/p);if(100<=s)t=this.op.classes.length-1;this.div.removeAttr('class').addClass(this.defaultClass).addClass(this.op.classes[t])})});function getPasswordStrength(H){var D=(H.length);if(D<6){D=0}if(D>6){D=6}var F=H.replace(/[0-9]/g,"");var G=(H.length-F.length);if(G>3){G=3}var A=H.replace(/\W/g,"");var C=(H.length-A.length);if(C>3){C=3}var B=H.replace(/[A-Z]/g,"");var I=(H.length-B.length);if(I>3){I=3}var E=((D*10)-20)+(G*10)+(C*15)+(I*10);if(E<0){E=0}if(E>100){E=100}return E}};
