(function(a){function d(e){return typeof e=="object"?e:{top:e,left:e}}var h=a.scrollTo=function(e,c,i){a(window).scrollTo(e,c,i)};h.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1};h.window=function(){return a(window)._scrollable()};a.fn._scrollable=function(){return this.map(function(){if(!(!this.nodeName||a.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1))return this;var e=(this.contentWindow||this).document||this.ownerDocument||this;return a.browser.safari|| e.compatMode=="BackCompat"?e.body:e.documentElement})};a.fn.scrollTo=function(e,c,i){if(typeof c=="object"){i=c;c=0}if(typeof i=="function")i={onAfter:i};if(e=="max")e=9E9;i=a.extend({},h.defaults,i);c=c||i.speed||i.duration;i.queue=i.queue&&i.axis.length>1;if(i.queue)c/=2;i.offset=d(i.offset);i.over=d(i.over);return this._scrollable().each(function(){function n(t){l.animate(g,c,i.easing,t&&function(){t.call(this,e,i)})}var o=this,l=a(o),r=e,k,g={},b=l.is("html,body");switch(typeof r){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(r)){r= d(r);break}r=a(r,this);case "object":if(r.is||r.style)k=(r=a(r)).offset()}a.each(i.axis.split(""),function(t,q){var f=q=="x"?"Left":"Top",p=f.toLowerCase(),s="scroll"+f,j=o[s],m=h.max(o,q);if(k){g[s]=k[p]+(b?0:j-l.offset()[p]);if(i.margin){g[s]-=parseInt(r.css("margin"+f))||0;g[s]-=parseInt(r.css("border"+f+"Width"))||0}g[s]+=i.offset[p]||0;if(i.over[p])g[s]+=r[q=="x"?"width":"height"]()*i.over[p]}else{f=r[p];g[s]=f.slice&&f.slice(-1)=="%"?parseFloat(f)/100*m:f}if(/^\d+$/.test(g[s]))g[s]=g[s]<=0? 0:Math.min(g[s],m);if(!t&&i.queue){j!=g[s]&&n(i.onAfterFirst);delete g[s]}});n(i.onAfter)}).end()};h.max=function(e,c){var i=c=="x"?"Width":"Height",n="scroll"+i;if(!a(e).is("html,body"))return e[n]-a(e)[i.toLowerCase()]();i="client"+i;var o=e.ownerDocument.documentElement,l=e.ownerDocument.body;return Math.max(o[n],l[n])-Math.min(o[i],l[i])}})(jQuery); (function(a){var d,h,e,c;a.extend({pnotify_remove_all:function(){var k=e.data("pnotify");k&&k.length&&a.each(k,function(){this.pnotify_remove&&this.pnotify_remove()})},pnotify_position_all:function(){h&&clearTimeout(h);h=null;var k=e.data("pnotify");if(k&&k.length){a.each(k,function(){var g=this.opts.pnotify_stack;if(g){if(!g.nextpos1)g.nextpos1=g.firstpos1;if(!g.nextpos2)g.nextpos2=g.firstpos2;if(!g.addpos2)g.addpos2=0;if(this.css("display")!="none"){var b,t,q={},f;switch(g.dir1){case "down":f="top"; break;case "up":f="bottom";break;case "left":f="right";break;case "right":f="left"}b=parseInt(this.css(f));if(isNaN(b))b=0;if(typeof g.firstpos1=="undefined"){g.firstpos1=b;g.nextpos1=g.firstpos1}var p;switch(g.dir2){case "down":p="top";break;case "up":p="bottom";break;case "left":p="right";break;case "right":p="left"}t=parseInt(this.css(p));if(isNaN(t))t=0;if(typeof g.firstpos2=="undefined"){g.firstpos2=t;g.nextpos2=g.firstpos2}if(g.dir1=="down"&&g.nextpos1+this.height()>c.height()||g.dir1=="up"&& g.nextpos1+this.height()>c.height()||g.dir1=="left"&&g.nextpos1+this.width()>c.width()||g.dir1=="right"&&g.nextpos1+this.width()>c.width()){g.nextpos1=g.firstpos1;g.nextpos2+=g.addpos2+10;g.addpos2=0}if(g.animation&&g.nextpos2<t)switch(g.dir2){case "down":q.top=g.nextpos2+"px";break;case "up":q.bottom=g.nextpos2+"px";break;case "left":q.right=g.nextpos2+"px";break;case "right":q.left=g.nextpos2+"px"}else this.css(p,g.nextpos2+"px");switch(g.dir2){case "down":case "up":if(this.outerHeight(true)>g.addpos2)g.addpos2= this.height();break;case "left":case "right":if(this.outerWidth(true)>g.addpos2)g.addpos2=this.width()}if(g.nextpos1)if(g.animation&&(b>g.nextpos1||q.top||q.bottom||q.right||q.left))switch(g.dir1){case "down":q.top=g.nextpos1+"px";break;case "up":q.bottom=g.nextpos1+"px";break;case "left":q.right=g.nextpos1+"px";break;case "right":q.left=g.nextpos1+"px"}else this.css(f,g.nextpos1+"px");if(q.top||q.bottom||q.right||q.left)this.animate(q,{duration:500,queue:false});switch(g.dir1){case "down":case "up":g.nextpos1+= this.height()+10;break;case "left":case "right":g.nextpos1+=this.width()+10}}}});a.each(k,function(){var g=this.opts.pnotify_stack;if(g){g.nextpos1=g.firstpos1;g.nextpos2=g.firstpos2;g.addpos2=0;g.animation=true}})}},pnotify:function(k){e||(e=a("body"));c||(c=a(window));var g,b;if(typeof k!="object"){b=a.extend({},a.pnotify.defaults);b.pnotify_text=k}else b=a.extend({},a.pnotify.defaults,k);if(b.pnotify_before_init)if(b.pnotify_before_init(b)===false)return null;var t,q=function(j,m){f.css("display", "none");var u=document.elementFromPoint(j.clientX,j.clientY);f.css("display","block");var v=a(u),w=v.css("cursor");f.css("cursor",w!="auto"?w:"default");if(!t||t.get(0)!=u){if(t){r.call(t.get(0),"mouseleave",j.originalEvent);r.call(t.get(0),"mouseout",j.originalEvent)}r.call(u,"mouseenter",j.originalEvent);r.call(u,"mouseover",j.originalEvent)}r.call(u,m,j.originalEvent);t=v},f=a("<div />",{"class":"ui-pnotify "+b.pnotify_addclass,css:{display:"none"},mouseenter:function(j){b.pnotify_nonblock&&j.stopPropagation(); if(b.pnotify_mouse_reset&&g=="out"){f.stop(true);f.css("height","auto").animate({width:b.pnotify_width,opacity:b.pnotify_nonblock?b.pnotify_nonblock_opacity:b.pnotify_opacity},"fast")}else b.pnotify_nonblock&&g!="out"&&f.animate({opacity:b.pnotify_nonblock_opacity},"fast");b.pnotify_hide&&b.pnotify_mouse_reset&&f.pnotify_cancel_remove();b.pnotify_closer&&!b.pnotify_nonblock&&f.closer.show()},mouseleave:function(j){b.pnotify_nonblock&&j.stopPropagation();t=null;f.css("cursor","auto");b.pnotify_nonblock&& g!="out"&&f.animate({opacity:b.pnotify_opacity},"fast");b.pnotify_hide&&b.pnotify_mouse_reset&&f.pnotify_queue_remove();f.closer.hide();a.pnotify_position_all()},mouseover:function(j){b.pnotify_nonblock&&j.stopPropagation()},mouseout:function(j){b.pnotify_nonblock&&j.stopPropagation()},mousemove:function(j){if(b.pnotify_nonblock){j.stopPropagation();q(j,"onmousemove")}},mousedown:function(j){if(b.pnotify_nonblock){j.stopPropagation();j.preventDefault();q(j,"onmousedown")}},mouseup:function(j){if(b.pnotify_nonblock){j.stopPropagation(); j.preventDefault();q(j,"onmouseup")}},click:function(j){if(b.pnotify_nonblock){j.stopPropagation();q(j,"onclick")}},dblclick:function(j){if(b.pnotify_nonblock){j.stopPropagation();q(j,"ondblclick")}}});f.opts=b;if(b.pnotify_shadow&&!a.browser.msie)f.shadow_container=a("<div />",{"class":"ui-widget-shadow ui-corner-all ui-pnotify-shadow"}).prependTo(f);f.container=a("<div />",{"class":"ui-widget ui-widget-content ui-corner-all ui-pnotify-container "+(b.pnotify_type=="error"?b.pnotify_error_class:b.pnotify_notice_class)}).appendTo(f); f.pnotify_version="1.0.0b1";f.pnotify=function(j){var m=b;if(typeof j=="string")b.pnotify_text=j;else b=a.extend({},b,j);f.opts=b;if(b.pnotify_shadow!=m.pnotify_shadow)if(b.pnotify_shadow&&!a.browser.msie)f.shadow_container=a("<div />",{"class":"ui-widget-shadow ui-pnotify-shadow"}).prependTo(f);else f.children(".ui-pnotify-shadow").remove();if(b.pnotify_addclass===false)f.removeClass(m.pnotify_addclass);else b.pnotify_addclass!==m.pnotify_addclass&&f.removeClass(m.pnotify_addclass).addClass(b.pnotify_addclass); if(b.pnotify_title===false)f.title_container.hide("fast");else b.pnotify_title!==m.pnotify_title&&f.title_container.html(b.pnotify_title).show(200);if(b.pnotify_text===false)f.text_container.hide("fast");else if(b.pnotify_text!==m.pnotify_text){if(b.pnotify_insert_brs)b.pnotify_text=b.pnotify_text.replace(/\n/g,"<br />");f.text_container.html(b.pnotify_text).show(200)}f.pnotify_history=b.pnotify_history;if(b.pnotify_notice_class!=m.pnotify_notice_class&&b.pnotify_type=="notice"||b.pnotify_error_class!= m.pnotify_error_class&&b.pnotify_type=="error")f.container.toggleClass((m.pnotify_type=="error"?m.pnotify_error_class:m.pnotify_notice_class)+" "+(m.pnotify_type=="error"?b.pnotify_error_class:b.pnotify_notice_class));b.pnotify_type!=m.pnotify_type&&f.container.toggleClass(b.pnotify_error_class+" "+b.pnotify_notice_class);if(b.pnotify_notice_icon!=m.pnotify_notice_icon&&b.pnotify_type=="notice"||b.pnotify_error_icon!=m.pnotify_error_icon&&b.pnotify_type=="error"||b.pnotify_type!=m.pnotify_type){f.container.find("div.ui-pnotify-icon").remove(); if(b.pnotify_error_icon&&b.pnotify_type=="error"||b.pnotify_notice_icon)a("<div />",{"class":"ui-pnotify-icon"}).append(a("<span />",{"class":b.pnotify_type=="error"?b.pnotify_error_icon:b.pnotify_notice_icon})).prependTo(f.container)}b.pnotify_width!==m.pnotify_width&&f.animate({width:b.pnotify_width});b.pnotify_min_height!==m.pnotify_min_height&&f.container.animate({minHeight:b.pnotify_min_height});b.pnotify_opacity!==m.pnotify_opacity&&f.fadeTo(b.pnotify_animate_speed,b.pnotify_opacity);if(b.pnotify_hide)m.pnotify_hide|| f.pnotify_queue_remove();else f.pnotify_cancel_remove();f.pnotify_queue_position();return f};f.pnotify_queue_position=function(){h&&clearTimeout(h);h=setTimeout(a.pnotify_position_all,10)};f.pnotify_display=function(){f.parent().length||f.appendTo(e);if(b.pnotify_before_open)if(b.pnotify_before_open(f)===false)return;f.pnotify_queue_position();if(b.pnotify_animation=="fade"||b.pnotify_animation.effect_in=="fade")f.show().fadeTo(0,0).hide();else b.pnotify_opacity!=1&&f.show().fadeTo(0,b.pnotify_opacity).hide(); f.animate_in(function(){b.pnotify_after_open&&b.pnotify_after_open(f);f.pnotify_queue_position();b.pnotify_hide&&f.pnotify_queue_remove()})};f.pnotify_remove=function(){if(f.timer){window.clearTimeout(f.timer);f.timer=null}if(b.pnotify_before_close)if(b.pnotify_before_close(f)===false)return;f.animate_out(function(){if(b.pnotify_after_close)if(b.pnotify_after_close(f)===false)return;f.pnotify_queue_position();b.pnotify_remove&&f.detach()})};f.animate_in=function(j){g="in";var m;m=typeof b.pnotify_animation.effect_in!= "undefined"?b.pnotify_animation.effect_in:b.pnotify_animation;if(m=="none"){f.show();j()}else if(m=="show")f.show(b.pnotify_animate_speed,j);else if(m=="fade")f.show().fadeTo(b.pnotify_animate_speed,b.pnotify_opacity,j);else if(m=="slide")f.slideDown(b.pnotify_animate_speed,j);else if(typeof m=="function")m("in",j,f);else f.effect&&f.effect(m,{},b.pnotify_animate_speed,j)};f.animate_out=function(j){g="out";var m;m=typeof b.pnotify_animation.effect_out!="undefined"?b.pnotify_animation.effect_out:b.pnotify_animation; if(m=="none"){f.hide();j()}else if(m=="show")f.hide(b.pnotify_animate_speed,j);else if(m=="fade")f.fadeOut(b.pnotify_animate_speed,j);else if(m=="slide")f.slideUp(b.pnotify_animate_speed,j);else if(typeof m=="function")m("out",j,f);else f.effect&&f.effect(m,{},b.pnotify_animate_speed,j)};f.pnotify_cancel_remove=function(){f.timer&&window.clearTimeout(f.timer)};f.pnotify_queue_remove=function(){f.pnotify_cancel_remove();f.timer=window.setTimeout(function(){f.pnotify_remove()},isNaN(b.pnotify_delay)? 0:b.pnotify_delay)};f.closer=a("<div />",{"class":"ui-pnotify-closer",css:{cursor:"pointer",display:"none"},click:function(){f.pnotify_remove();f.closer.hide()}}).append(a("<span />",{"class":"ui-icon ui-icon-circle-close"})).appendTo(f.container);if(b.pnotify_error_icon&&b.pnotify_type=="error"||b.pnotify_notice_icon)a("<div />",{"class":"ui-pnotify-icon"}).append(a("<span />",{"class":b.pnotify_type=="error"?b.pnotify_error_icon:b.pnotify_notice_icon})).appendTo(f.container);f.title_container=a("<div />", {"class":"ui-pnotify-title",html:b.pnotify_title}).appendTo(f.container);b.pnotify_title===false&&f.title_container.hide();if(b.pnotify_insert_brs&&typeof b.pnotify_text=="string")b.pnotify_text=b.pnotify_text.replace(/\n/g,"<br />");f.text_container=a("<div />",{"class":"ui-pnotify-text",html:b.pnotify_text}).appendTo(f.container);b.pnotify_text===false&&f.text_container.hide();typeof b.pnotify_width=="string"&&f.css("width",b.pnotify_width);typeof b.pnotify_min_height=="string"&&f.container.css("min-height", b.pnotify_min_height);f.pnotify_history=b.pnotify_history;var p=e.data("pnotify");if(p==null||typeof p!="object")p=[];p=b.pnotify_stack.push=="top"?a.merge([f],p):a.merge(p,[f]);e.data("pnotify",p);b.pnotify_after_init&&b.pnotify_after_init(f);if(b.pnotify_history){var s=e.data("pnotify_history");if(typeof s=="undefined"){s=a("<div />",{"class":"ui-pnotify-history-container ui-state-default ui-corner-bottom",mouseleave:function(){s.animate({top:"-"+d+"px"},{duration:100,queue:false})}}).append(a("<div />", {"class":"ui-pnotify-history-header",text:"Redisplay"})).append(a("<button />",{"class":"ui-pnotify-history-all ui-state-default ui-corner-all",text:"All",mouseenter:function(){a(this).addClass("ui-state-hover")},mouseleave:function(){a(this).removeClass("ui-state-hover")},click:function(){a.each(p,function(){this.pnotify_history&&this.pnotify_display&&this.pnotify_display()});return false}})).append(a("<button />",{"class":"ui-pnotify-history-last ui-state-default ui-corner-all",text:"Last",mouseenter:function(){a(this).addClass("ui-state-hover")}, mouseleave:function(){a(this).removeClass("ui-state-hover")},click:function(){for(var j=1;!p[p.length-j]||!p[p.length-j].pnotify_history||p[p.length-j].is(":visible");){if(p.length-j===0)return false;j++}j=p[p.length-j];j.pnotify_display&&j.pnotify_display();return false}})).appendTo(e);d=a("<span />",{"class":"ui-pnotify-history-pulldown ui-icon ui-icon-grip-dotted-horizontal",mouseenter:function(){s.animate({top:"0"},{duration:100,queue:false})}}).appendTo(s).offset().top+2;s.css({top:"-"+d+"px"}); e.data("pnotify_history",s)}}b.pnotify_stack.animation=false;f.pnotify_display();return f}});var i=/^on/,n=/^(dbl)?click$|^mouse(move|down|up|over|out|enter|leave)$|^contextmenu$/,o=/^(focus|blur|select|change|reset)$|^key(press|down|up)$/,l=/^(scroll|resize|(un)?load|abort|error)$/,r=function(k,g){var b;k=k.toLowerCase();if(document.createEvent&&this.dispatchEvent){k=k.replace(i,"");if(k.match(n)){a(this).offset();b=document.createEvent("MouseEvents");b.initMouseEvent(k,g.bubbles,g.cancelable,g.view, g.detail,g.screenX,g.screenY,g.clientX,g.clientY,g.ctrlKey,g.altKey,g.shiftKey,g.metaKey,g.button,g.relatedTarget)}else if(k.match(o)){b=document.createEvent("UIEvents");b.initUIEvent(k,g.bubbles,g.cancelable,g.view,g.detail)}else if(k.match(l)){b=document.createEvent("HTMLEvents");b.initEvent(k,g.bubbles,g.cancelable)}b&&this.dispatchEvent(b)}else{k.match(i)||(k="on"+k);b=document.createEventObject(g);this.fireEvent(k,b)}};a.pnotify.defaults={pnotify_title:false,pnotify_text:false,pnotify_addclass:"", pnotify_nonblock:false,pnotify_nonblock_opacity:0.2,pnotify_history:true,pnotify_width:"300px",pnotify_min_height:"16px",pnotify_type:"notice",pnotify_notice_icon:"ui-icon ui-icon-info",pnotify_notice_class:"ui-state-highlight",pnotify_error_icon:"ui-icon ui-icon-alert",pnotify_error_class:"ui-state-error",pnotify_animation:"fade",pnotify_animate_speed:"slow",pnotify_opacity:1,pnotify_shadow:false,pnotify_closer:true,pnotify_hide:true,pnotify_delay:8E3,pnotify_mouse_reset:true,pnotify_remove:true, pnotify_insert_brs:true,pnotify_stack:{dir1:"down",dir2:"left",push:"bottom"}}})(jQuery); (function(a){a.fn.lavaLamp=function(d){d=a.extend({fx:"linear",speed:500,click:function(){}},d||{});return this.each(function(){function h(o){o.offsetWidth>500&&setTimeout(function(){h(o)},500);i.css({left:o.offsetLeft+"px",width:o.offsetWidth+"px"});n=o}function e(o){a(o).parents("ul:eq(0)").children(".current").removeClass("hover");a(o).addClass("hover");i.each(function(){a(this).dequeue()}).animate({width:o.offsetWidth,left:o.offsetLeft},d.speed,d.fx)}var c=a(this),i=a('<li class="back"><div class="left"></div></li>').appendTo(c); c=a("> li",this);var n=a("li.current",this)[0]||a(c[0]).addClass("current")[0];c.not(".back").hover(function(){e(this);a(this).addClass("hover")},function(){a(this).removeClass("hover")});a(this).hover(function(){},function(){e(n)});h(n)})}})(jQuery); jQuery.easing={easein:function(a,d,h,e,c){return e*(d/=c)*d+h},easeinout:function(a,d,h,e,c){if(d<c/2)return 2*e*d*d/(c*c)+h;a=d-c/2;return-2*e*a*a/(c*c)+2*e*a/c+e/2+h},easeout:function(a,d,h,e,c){return-e*d*d/(c*c)+2*e*d/c+h},expoin:function(a,d,h,e,c){a=1;if(e<0){a*=-1;e*=-1}return a*Math.exp(Math.log(e)/c*d)+h},expoout:function(a,d,h,e,c){a=1;if(e<0){a*=-1;e*=-1}return a*(-Math.exp(-Math.log(e)/c*(d-c))+e+1)+h},expoinout:function(a,d,h,e,c){a=1;if(e<0){a*=-1;e*=-1}if(d<c/2)return a*Math.exp(Math.log(e/ 2)/(c/2)*d)+h;return a*(-Math.exp(-2*Math.log(e/2)/c*(d-c))+e+1)+h},bouncein:function(a,d,h,e,c){return e-jQuery.easing.bounceout(a,c-d,0,e,c)+h},bounceout:function(a,d,h,e,c){return(d/=c)<1/2.75?e*7.5625*d*d+h:d<2/2.75?e*(7.5625*(d-=1.5/2.75)*d+0.75)+h:d<2.5/2.75?e*(7.5625*(d-=2.25/2.75)*d+0.9375)+h:e*(7.5625*(d-=2.625/2.75)*d+0.984375)+h},bounceinout:function(a,d,h,e,c){if(d<c/2)return jQuery.easing.bouncein(a,d*2,0,e,c)*0.5+h;return jQuery.easing.bounceout(a,d*2-c,0,e,c)*0.5+e*0.5+h},elasin:function(a, d,h,e,c){a=1.70158;var i=0,n=e;if(d==0)return h;if((d/=c)==1)return h+e;i||(i=c*0.3);if(n<Math.abs(e)){n=e;a=i/4}else a=i/(2*Math.PI)*Math.asin(e/n);return-(n*Math.pow(2,10*(d-=1))*Math.sin((d*c-a)*2*Math.PI/i))+h},elasout:function(a,d,h,e,c){a=1.70158;var i=0,n=e;if(d==0)return h;if((d/=c)==1)return h+e;i||(i=c*0.3);if(n<Math.abs(e)){n=e;a=i/4}else a=i/(2*Math.PI)*Math.asin(e/n);return n*Math.pow(2,-10*d)*Math.sin((d*c-a)*2*Math.PI/i)+e+h},elasinout:function(a,d,h,e,c){a=1.70158;var i=0,n=e;if(d== 0)return h;if((d/=c/2)==2)return h+e;i||(i=c*0.3*1.5);if(n<Math.abs(e)){n=e;a=i/4}else a=i/(2*Math.PI)*Math.asin(e/n);if(d<1)return-0.5*n*Math.pow(2,10*(d-=1))*Math.sin((d*c-a)*2*Math.PI/i)+h;return n*Math.pow(2,-10*(d-=1))*Math.sin((d*c-a)*2*Math.PI/i)*0.5+e+h},backin:function(a,d,h,e,c){return e*(d/=c)*d*(2.70158*d-1.70158)+h},backout:function(a,d,h,e,c){return e*((d=d/c-1)*d*(2.70158*d+1.70158)+1)+h},backinout:function(a,d,h,e,c){a=1.70158;if((d/=c/2)<1)return e/2*d*d*(((a*=1.525)+1)*d-a)+h;return e/ 2*((d-=2)*d*(((a*=1.525)+1)*d+a)+2)+h},linear:function(a,d,h,e,c){return e*d/c+h}}; (function(a){a.fn.fold=function(d){var h=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1,e=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1;if(h||e){this.remove();return true}d=d||{};h={directory:".",side:"left",turnImage:"fold.png",maxHeight:400,startingWidth:80,startingHeight:80,autoCurl:false};if(d.side=="right"&&!d.turnImage)h.turnImage= "fold-sw.png";d=a.extend(h,d);h=a('<div id="turn_hideme">');e=a('<div id="turn_wrapper">');var c=a('<div id="turn_object">'),i=a('<img id="turn_fold" src="'+(d.directory+"/"+d.turnImage)+'">');c.css({width:d.startingWidth,height:d.startingHeight});d.side=="right"&&e.addClass("right");this.wrap(e).wrap(c).after(i).wrap(h);e=a("#turn_wrapper");c=a("#turn_object");d.autoCurl?e.hover(function(){c.stop().animate({width:d.maxHeight,height:d.maxHeight})},function(){c.stop().animate({width:d.startingHeight, height:d.startingHeight})}):c.resizable({maxHeight:d.maxHeight,aspectRatio:true,handles:d.side=="left"?"se":"sw"})}})(jQuery);(function(a){var d={};a.getUID=function(h){h=h||"JQ-uuid-";d[h]=d[h]||0;++d[h];return h+d[h]};a.fn.getUID=function(h){if(!this.length)return 0;var e=this.first(),c=e.attr("id");if(!c){c=a.getUID(h);e.attr("id",c)}return c}})(jQuery); (function(a){var d={b:function(c){return parseInt(c,10).toString(2)},c:function(c){return String.fromCharCode(parseInt(c,10))},d:function(c){return parseInt(c,10)},u:function(c){return Math.abs(c)},f:function(c,i){i=parseInt(i,10);c=parseFloat(c);if(isNaN(i&&c))return NaN;return i&&c.toFixed(i)||c},o:function(c){return parseInt(c,10).toString(8)},s:function(c){return c},x:function(c){return(""+parseInt(c,10).toString(16)).toLowerCase()},X:function(c){return(""+parseInt(c,10).toString(16)).toUpperCase()}}, h=/%(?:(\d+)?(?:\.(\d+))?|\(([^)]+)\))([%bcdufosxX])/g,e=function(c){if(c.length==1&&typeof c[0]=="object"){c=c[0];return function(n,o,l,r,k){return d[k](c[r])}}else{var i=0;return function(n,o,l,r,k){if(k=="%")return"%";return d[k](c[i++],l)}}};a.extend({sprintf:function(c){var i=Array.apply(null,arguments).slice(1);return c.replace(h,e(i))},vsprintf:function(c,i){return c.replace(h,e(i))}})})(jQuery); (function(a){function d(e,c){for(var i="",n=true,o=0;o<c.length;o++){n=true;for(var l=0;l<e&&l+o+e<c.length;l++)n=n&&c.charAt(l+o)==c.charAt(l+o+e);if(l<e)n=false;if(n)o+=e-1;else i+=c.charAt(o)}return i}var h=0;a.fn.securePassword=function(e){var c=a(this).closest("div.ctrlHolder").find(".formHint"),i=a(e),n,o;i.size()?a(this).keyup(function(){var l=a(this).val();var r=i.val(),k=0;if(!(l.length<6||l.toLowerCase()==r.toLowerCase())){k+=l.length*4;k+=(d(1,l).length-l.length)*1;k+=(d(2,l).length-l.length)* 1;k+=(d(3,l).length-l.length)*1;k+=(d(4,l).length-l.length)*1;if(l.match(/(.*[0-9].*[0-9].*[0-9])/))k+=5;if(l.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/))k+=5;if(l.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/))k+=10;if(l.match(/([a-zA-Z])/)&&l.match(/([0-9])/))k+=15;if(l.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&l.match(/([0-9])/))k+=15;if(l.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&l.match(/([a-zA-Z])/))k+=15;if(l.indexOf(" ")!=-1)k+=15;if(l.match(/^\w+$/)||l.match(/^\d+$/))k-=10;if(k<0)k=0;if(k> 100)k=100}l=k;h=l;if(l<40){n="red";o="Weak"}else if(l<68){n="orange";o="Medium"}else{n="green";o="Strong"}c.css({color:n,"font-size":"1.5em"}).text(o)}):c.css({color:null,"font-size":"0.85em"}).text("");return i.size()?a(this):h}})(jQuery);$.fn.serializeObject=function(){var a={},d=this.serializeArray();$.each(d,function(){if(a[this.name]){a[this.name].push||(a[this.name]=[a[this.name]]);a[this.name].push(this.value||"")}else a[this.name]=this.value||""});return a}; (function(a){var d;a.fn.jqprint=function(h){d=a.extend({},a.fn.jqprint.defaults,h);h=this instanceof jQuery?this:a(this);if(d.operaSupport&&a.browser.opera){var e=window.open("","jqPrint-preview");e.document.open();var c=e.document}else{var i=a("<iframe />");d.debug||i.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"});i.appendTo("body");c=i[0].contentWindow.document}if(d.importCSS)a("link[media=print]").length>0?a("link[media=print]").each(function(){c.write("<link type='text/css' rel='stylesheet' href='"+ a(this).attr("href")+"' media='print' />")}):a("link").each(function(){c.write("<link type='text/css' rel='stylesheet' href='"+a(this).attr("href")+"' />")});d.printContainer?c.write(h.outer()):h.each(function(){c.write(a(this).html())});c.close();(d.operaSupport&&a.browser.opera?e:i[0].contentWindow).focus();setTimeout(function(){(d.operaSupport&&a.browser.opera?e:i[0].contentWindow).print();e&&e.close()},1E3)};a.fn.jqprint.defaults={debug:false,importCSS:true,printContainer:true,operaSupport:true}; jQuery.fn.outer=function(){return a(a("<div></div>").html(this.clone())).html()}})(jQuery);
