(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&parseInt(a.browser.version)<=6){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this};if(!a.browser.version){a.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]}})(jQuery);(function(d){var a=d.fn.height,c=d.fn.width;d.fn.extend({height:function(){if(this[0]==window){return self.innerHeight||d.boxModel&&document.documentElement.clientHeight||document.body.clientHeight}if(this[0]==document){return Math.max(document.body.scrollHeight,document.body.offsetHeight)}return a.apply(this,arguments)},width:function(){if(this[0]==window){return self.innerWidth||d.boxModel&&document.documentElement.clientWidth||document.body.clientWidth}if(this[0]==document){return Math.max(document.body.scrollWidth,document.body.offsetWidth)}return c.apply(this,arguments)},innerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight-b(this,"borderTopWidth")-b(this,"borderBottomWidth"):this.height()+b(this,"paddingTop")+b(this,"paddingBottom")},innerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth-b(this,"borderLeftWidth")-b(this,"borderRightWidth"):this.width()+b(this,"paddingLeft")+b(this,"paddingRight")},outerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(":visible")?this[0].offsetHeight:this.height()+b(this,"borderTopWidth")+b(this,"borderBottomWidth")+b(this,"paddingTop")+b(this,"paddingBottom")},outerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(":visible")?this[0].offsetWidth:this.width()+b(this,"borderLeftWidth")+b(this,"borderRightWidth")+b(this,"paddingLeft")+b(this,"paddingRight")},scrollLeft:function(f){if(f!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(f,d(window).scrollTop())}else{this.scrollLeft=f}})}if(this[0]==window||this[0]==document){return self.pageXOffset||d.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft}return this[0].scrollLeft},scrollTop:function(f){if(f!=undefined){return this.each(function(){if(this==window||this==document){window.scrollTo(d(window).scrollLeft(),f)}else{this.scrollTop=f}})}if(this[0]==window||this[0]==document){return self.pageYOffset||d.boxModel&&document.documentElement.scrollTop||document.body.scrollTop}return this[0].scrollTop},position:function(o,j){var g=this[0],m=g.parentNode,i=g.offsetParent,o=d.extend({margin:false,border:false,padding:false,scroll:false},o||{}),l=g.offsetLeft,k=g.offsetTop,h=g.scrollLeft,n=g.scrollTop;if(d.browser.mozilla||d.browser.msie){l+=b(g,"borderLeftWidth");k+=b(g,"borderTopWidth")}if(d.browser.mozilla){do{if(d.browser.mozilla&&m!=g&&d.css(m,"overflow")!="visible"){l+=b(m,"borderLeftWidth");k+=b(m,"borderTopWidth")}if(m==i){break}}while((m=m.parentNode)&&(m.tagName.toLowerCase()!="body"||m.tagName.toLowerCase()!="html"))}var f=e(g,o,l,k,h,n);if(j){d.extend(j,f);return this}else{return f}},offset:function(g,l){var k=0,j=0,t=0,o=0,u=this[0],i=this[0],h,f,s=d.css(u,"position"),r=d.browser.mozilla,m=d.browser.msie,w=d.browser.safari,q=d.browser.opera,n=false,p=false,g=d.extend({margin:true,border:false,padding:false,scroll:true,lite:false},g||{});if(g.lite){return this.offsetLite(g,l)}if(u.tagName.toLowerCase()=="body"){k=u.offsetLeft;j=u.offsetTop;if(r){k+=b(u,"marginLeft")+(b(u,"borderLeftWidth")*2);j+=b(u,"marginTop")+(b(u,"borderTopWidth")*2)}else{if(q){k+=b(u,"marginLeft");j+=b(u,"marginTop")}else{if(m&&jQuery.boxModel){k+=b(u,"borderLeftWidth");j+=b(u,"borderTopWidth")}}}}else{do{f=d.css(i,"position");k+=i.offsetLeft;j+=i.offsetTop;if(r||m){k+=b(i,"borderLeftWidth");j+=b(i,"borderTopWidth");if(r&&f=="absolute"){n=true}if(m&&f=="relative"){p=true}}h=i.offsetParent;if(g.scroll||r){do{if(g.scroll){t+=i.scrollLeft;o+=i.scrollTop}if(r&&i!=u&&d.css(i,"overflow")!="visible"){k+=b(i,"borderLeftWidth");j+=b(i,"borderTopWidth")}i=i.parentNode}while(i!=h)}i=h;if(i.tagName.toLowerCase()=="body"||i.tagName.toLowerCase()=="html"){if((w||(m&&d.boxModel))&&s!="absolute"&&s!="fixed"){k+=b(i,"marginLeft");j+=b(i,"marginTop")}if((r&&!n&&s!="fixed")||(m&&s=="static"&&!p)){k+=b(i,"borderLeftWidth");j+=b(i,"borderTopWidth")}break}}while(i)}var v=e(u,g,k,j,t,o);if(l){d.extend(l,v);return this}else{return v}},offsetLite:function(n,i){var k=0,j=0,g=0,m=0,l=this[0],h,n=d.extend({margin:true,border:false,padding:false,scroll:true},n||{});do{k+=l.offsetLeft;j+=l.offsetTop;h=l.offsetParent;if(n.scroll){do{g+=l.scrollLeft;m+=l.scrollTop;l=l.parentNode}while(l!=h)}l=h}while(l&&l.tagName.toLowerCase()!="body"&&l.tagName.toLowerCase()!="html");var f=e(this[0],n,k,j,g,m);if(i){d.extend(i,f);return this}else{return f}}});var b=function(f,g){return parseInt(d.css(f.jquery?f[0]:f,g))||0};var e=function(j,i,g,k,f,h){if(!i.margin){g-=b(j,"marginLeft");k-=b(j,"marginTop")}if(i.border&&(d.browser.safari||d.browser.opera)){g+=b(j,"borderLeftWidth");k+=b(j,"borderTopWidth")}else{if(!i.border&&!(d.browser.safari||d.browser.opera)){g-=b(j,"borderLeftWidth");k-=b(j,"borderTopWidth")}}if(i.padding){g+=b(j,"paddingLeft");k+=b(j,"paddingTop")}if(i.scroll){f-=j.scrollLeft;h-=j.scrollTop}return i.scroll?{top:k-h,left:g-f,scrollTop:h,scrollLeft:f}:{top:k,left:g}}})(jQuery);(function(a){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){if(a.browser.msie){return false}this.addEventListener(c,a.event.special[b].handler,true)},teardown:function(){if(a.browser.msie){return false}this.removeEventListener(c,a.event.special[b].handler,true)},handler:function(d){arguments[0]=a.event.fix(d);arguments[0].type=b;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{delegate:function(d,c,b){return this.bind(d,function(e){var f=a(e.target);if(f.is(c)){return b.apply(f,arguments)}})},triggerEvent:function(b,c){return this.triggerHandler(b,[jQuery.event.fix({type:b,target:c})])}})})(jQuery);(function(e){var b={},k,m,o,j=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);h(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=b.parent.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(l).mouseout(f).click(f)},fixPNG:j?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:j?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(p){if(b.parent){return}b.parent=e('<div id="'+p.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("h3",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(p){return e.data(p,"tooltip")}function g(p){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(p)}function l(){if(e.tooltip.blocked||this==k||(!this.tooltipText&&!c(this).bodyHandler)){return}k=this;m=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var s=c(this).bodyHandler.call(this);if(s.nodeType||s.jquery){b.body.empty().append(s)}else{b.body.html(s)}b.body.show()}else{if(c(this).showBody){var r=m.split(c(this).showBody);b.title.html(r.shift()).show();b.body.empty();for(var q=0,p;(p=r[q]);q++){if(q>0){b.body.append("<br/>")}b.body.append(p)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function n(){o=null;if((!j||!e.fn.bgiframe)&&c(k).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(k).fade,k.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(k).fade,k.tOpacity):b.parent.fadeIn(c(k).fade)}}else{b.parent.show()}d()}function d(s){if(e.tooltip.blocked){return}if(s&&s.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(k==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var u=b.parent[0].offsetLeft;var t=b.parent[0].offsetTop;if(s){u=s.pageX+c(k).left;t=s.pageY+c(k).top;var q="auto";if(c(k).positionLeft){q=e(window).width()-u;u="auto"}b.parent.css({left:u,right:q,top:t})}var p=i(),r=b.parent[0];if(p.x+p.cx<r.offsetLeft+r.offsetWidth){u-=r.offsetWidth+20+c(k).left;b.parent.css({left:u+"px"}).addClass("viewport-right")}if(p.y+p.cy<r.offsetTop+r.offsetHeight){t-=r.offsetHeight+20+c(k).top;b.parent.css({top:t+"px"}).addClass("viewport-bottom")}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(r){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}k=null;var q=c(this);function p(){b.parent.removeClass(q.extraClass).hide().css("opacity","")}if((!j||!e.fn.bgiframe)&&q.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(q.fade,0,p)}else{b.parent.stop().fadeOut(q.fade,p)}}else{p()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(m,b,n,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(m){this.setAttribute("swf",m)}if(b){this.setAttribute("id",b)}if(n){this.setAttribute("width",n)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;(function(a){a.prettyPhoto={version:"3.0"};a.fn.prettyPhoto=function(d){d=jQuery.extend({animation_speed:"fast",slideshow:false,autoplay_slideshow:false,opacity:0.8,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"facebook",hideflash:false,wmode:"opaque",autoplay:true,modal:false,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder">       <div class="ppt">&nbsp;</div>       <div class="pp_top">        <div class="pp_left"></div>        <div class="pp_middle"></div>        <div class="pp_right"></div>       </div>       <div class="pp_content_container">        <div class="pp_left">        <div class="pp_right">         <div class="pp_content">          <div class="pp_loaderIcon"></div>          <div class="pp_fade">           <a href="#" class="pp_expand" title="Expand the image">Expand</a>           <div class="pp_hoverContainer">            <a class="pp_next" href="#">next</a>            <a class="pp_previous" href="#">previous</a>           </div>           <div id="pp_full_res"></div>           <div class="pp_details clearfix">            <p class="pp_description"></p>            <a class="pp_close" href="#">Close</a>            <div class="pp_nav">             <a href="#" class="pp_arrow_previous">Previous</a>             <p class="currentTextHolder">0/0</p>             <a href="#" class="pp_arrow_next">Next</a>            </div>           </div>          </div>         </div>        </div>        </div>       </div>       <div class="pp_bottom">        <div class="pp_left"></div>        <div class="pp_middle"></div>        <div class="pp_right"></div>       </div>      </div>      <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery">         <a href="#" class="pp_arrow_previous">Previous</a>         <ul>          {gallery}         </ul>         <a href="#" class="pp_arrow_next">Next</a>        </div>',image_markup:'<img id="fullResImage" src="" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline clearfix">{content}</div>',custom_markup:""},d);var i=this,h=false,s,m,n,o,r,u,e=a(window).height(),x=a(window).width(),f;doresize=true,scroll_pos=v();a(window).unbind("resize").resize(function(){l();q()});if(d.keyboard_shortcuts){a(document).unbind("keydown").keydown(function(y){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(y.keyCode){case 37:a.prettyPhoto.changePage("previous");break;case 39:a.prettyPhoto.changePage("next");break;case 27:if(!settings.modal){a.prettyPhoto.close()}break}return false}}})}a.prettyPhoto.initialize=function(){settings=d;if(a.browser.msie&&parseInt(a.browser.version)==6){settings.theme="light_square"}t(this);if(settings.allow_resize){a(window).scroll(function(){l()})}l();set_position=jQuery.inArray(a(this).attr("href"),pp_images);a.prettyPhoto.open();return false};a.prettyPhoto.open=function(y){if(typeof settings=="undefined"){settings=d;if(a.browser.msie&&a.browser.version==6){settings.theme="light_square"}t(y.target);pp_images=a.makeArray(arguments[0]);pp_titles=(arguments[1])?a.makeArray(arguments[1]):a.makeArray("");pp_descriptions=(arguments[2])?a.makeArray(arguments[2]):a.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0}if(a.browser.msie&&a.browser.version==6){a("select").css("visibility","hidden")}if(settings.hideflash){a("object,embed").css("visibility","hidden")}g(a(pp_images).size());a(".pp_loaderIcon").show();if($ppt.is(":hidden")){$ppt.css("opacity",0).show()}$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text((set_position+1)+settings.counter_separator_label+a(pp_images).size());$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]));(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;");movie_width=(parseFloat(b("width",pp_images[set_position])))?b("width",pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(b("height",pp_images[set_position])))?b("height",pp_images[set_position]):settings.default_height.toString();if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=-1){movie_height=parseFloat((a(window).height()*parseFloat(movie_height)/100)-150);movie_width=parseFloat((a(window).width()*parseFloat(movie_width)/100)-150);h=true}else{h=false}$pp_pic_holder.fadeIn(function(){imgPreloader="";switch(w(pp_images[set_position])){case"image":imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position>a(pp_images).size()){nextImage.src=pp_images[set_position+1]}prevImage=new Image();if(isSet&&pp_images[set_position-1]){prevImage.src=pp_images[set_position-1]}$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup;$pp_pic_holder.find("#fullResImage").attr("src",pp_images[set_position]);imgPreloader.onload=function(){s=k(imgPreloader.width,imgPreloader.height);_showContent()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");a.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":s=k(movie_width,movie_height);movie="http://www.youtube.com/v/"+b("v",pp_images[set_position]);if(settings.autoplay){movie+="&autoplay=1"}toInject=settings.flash_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":s=k(movie_width,movie_height);movie_id=pp_images[set_position];var A=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var z=movie_id.match(A);movie="http://player.vimeo.com/video/"+z[2]+"?title=0&amp;byline=0&amp;portrait=0";if(settings.autoplay){movie+="&autoplay=1;"}vimeo_width=s.width+"/embed/?moog_width="+s.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,s.height).replace(/{path}/g,movie);break;case"quicktime":s=k(movie_width,movie_height);s.height+=15;s.contentHeight+=15;s.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":s=k(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":s=k(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,s.width).replace(/{height}/g,s.height).replace(/{path}/g,frame_url);break;case"custom":s=k(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=a(pp_images[set_position]).clone().css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo(a("body"));s=k(a(myClone).width(),a(myClone).height());a(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html());break}if(!imgPreloader){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;_showContent()}});return false};a.prettyPhoto.changePage=function(y){currentGalleryPage=0;if(y=="previous"){set_position--;if(set_position<0){set_position=0;return}}else{if(y=="next"){set_position++;if(set_position>a(pp_images).size()-1){set_position=0}}else{set_position=y}}if(!doresize){doresize=true}a(".pp_contract").removeClass("pp_contract").addClass("pp_expand");j(function(){a.prettyPhoto.open()})};a.prettyPhoto.changeGalleryPage=function(y){if(y=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage){currentGalleryPage=0}}else{if(y=="previous"){currentGalleryPage--;if(currentGalleryPage<0){currentGalleryPage=totalPage}}else{currentGalleryPage=y}}itemsToSlide=(currentGalleryPage==totalPage)?pp_images.length-((totalPage)*itemsPerPage):itemsPerPage;$pp_pic_holder.find(".pp_gallery li").each(function(z){a(this).animate({left:(z*itemWidth)-((itemsToSlide*itemWidth)*currentGalleryPage)})})};a.prettyPhoto.startSlideshow=function(){if(typeof f=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){a.prettyPhoto.stopSlideshow();return false});f=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)}else{a.prettyPhoto.changePage("next")}};a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){a.prettyPhoto.startSlideshow();return false});clearInterval(f);f=undefined};a.prettyPhoto.close=function(){clearInterval(f);$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(a.browser.msie&&a.browser.version==6){a("select").css("visibility","visible")}if(settings.hideflash){a("object,embed").css("visibility","visible")}a(this).remove();a(window).unbind("scroll");settings.callback();doresize=true;m=false;delete settings})};_showContent=function(){a(".pp_loaderIcon").hide();$ppt.fadeTo(settings.animation_speed,1);projectedTop=scroll_pos.scrollTop+((e/2)-(s.containerHeight/2));if(projectedTop<0){projectedTop=0}$pp_pic_holder.find(".pp_content").animate({height:s.contentHeight},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:(x/2)-(s.containerWidth/2),width:s.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(s.height).width(s.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&w(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(s.resized){a("a.pp_expand,a.pp_contract").fadeIn(settings.animation_speed)}if(settings.autoplay_slideshow&&!f&&!m){a.prettyPhoto.startSlideshow()}settings.changepicturecallback();m=true});c()};function j(y){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show();y()})}function g(y){if(set_position==y-1){$pp_pic_holder.find("a.pp_next").css("visibility","hidden");$pp_pic_holder.find("a.pp_next").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_next").css("visibility","visible");$pp_pic_holder.find("a.pp_next.disabled").removeClass("disabled").bind("click",function(){a.prettyPhoto.changePage("next");return false})}if(set_position==0){$pp_pic_holder.find("a.pp_previous").css("visibility","hidden").addClass("disabled").unbind("click")}else{$pp_pic_holder.find("a.pp_previous.disabled").css("visibility","visible").removeClass("disabled").bind("click",function(){a.prettyPhoto.changePage("previous");return false})}(y>1)?a(".pp_nav").show():a(".pp_nav").hide()}function k(z,y){resized=false;p(z,y);imageWidth=z,imageHeight=y;if(((u>x)||(r>e))&&doresize&&settings.allow_resize&&!h){resized=true,fitting=false;while(!fitting){if((u>x)){imageWidth=(x-200);imageHeight=(y/z)*imageWidth}else{if((r>e)){imageHeight=(e-200);imageWidth=(z/y)*imageHeight}else{fitting=true}}r=imageHeight,u=imageWidth}p(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(r),containerWidth:Math.floor(u)+40,contentHeight:Math.floor(n),contentWidth:Math.floor(o),resized:resized}}function p(z,y){z=parseFloat(z);y=parseFloat(y);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(z);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().appendTo(a("body")).css({position:"absolute",top:-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if(a.browser.msie&&a.browser.version==7){detailsHeight+=8}$pp_details.remove();n=y+detailsHeight;o=z;r=n+$ppt.height()+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();u=z}function w(y){if(y.match(/youtube\.com\/watch/i)){return"youtube"}else{if(y.match(/vimeo\.com/i)){return"vimeo"}else{if(y.indexOf(".mov")!=-1){return"quicktime"}else{if(y.indexOf(".swf")!=-1){return"flash"}else{if(y.indexOf("iframe")!=-1){return"iframe"}else{if(y.indexOf("custom")!=-1){return"custom"}else{if(y.substr(0,1)=="#"){return"inline"}else{return"image"}}}}}}}}function l(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=v();titleHeight=$ppt.height(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(e/2)+scroll_pos.scrollTop-(contentHeight/2);$pp_pic_holder.css({top:projectedTop,left:(x/2)+scroll_pos.scrollLeft-(contentwidth/2)})}}function v(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else{if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else{if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}}}function q(){e=a(window).height(),x=a(window).width();if(typeof $pp_overlay!="undefined"){$pp_overlay.height(a(document).height())}}function c(){if(isSet&&settings.overlay_gallery&&w(pp_images[set_position])=="image"){itemWidth=52+5;navWidth=(settings.theme=="facebook")?58:38;itemsPerPage=Math.floor((s.containerWidth-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").hide()}else{$pp_pic_holder.find(".pp_gallery .pp_arrow_next,.pp_gallery .pp_arrow_previous").show()}galleryWidth=itemsPerPage*itemWidth+navWidth;$pp_pic_holder.find(".pp_gallery").width(galleryWidth).css("margin-left",-(galleryWidth/2));$pp_pic_holder.find(".pp_gallery ul").width(itemsPerPage*itemWidth).find("li.selected").removeClass("selected");goToPage=(Math.floor(set_position/itemsPerPage)<=totalPage)?Math.floor(set_position/itemsPerPage):totalPage;if(itemsPerPage){$pp_pic_holder.find(".pp_gallery").hide().show().removeClass("disabled")}else{$pp_pic_holder.find(".pp_gallery").hide().addClass("disabled")}a.prettyPhoto.changeGalleryPage(goToPage);$pp_pic_holder.find(".pp_gallery ul li:eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave");$pp_pic_holder.find(".pp_gallery").hide()}}function t(y){theRel=a(y).attr("rel");galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(i,function(D,C){if(a(D).attr("rel").indexOf(theRel)!=-1){return a(D).attr("href")}}):a.makeArray(a(y).attr("href"));pp_titles=(isSet)?jQuery.map(i,function(D,C){if(a(D).attr("rel").indexOf(theRel)!=-1){return(a(D).find("img").attr("alt"))?a(D).find("img").attr("alt"):""}}):a.makeArray(a(y).find("img").attr("alt"));pp_descriptions=(isSet)?jQuery.map(i,function(D,C){if(a(D).attr("rel").indexOf(theRel)!=-1){return(a(D).attr("title"))?a(D).attr("title"):""}}):a.makeArray(a(y).attr("title"));a("body").append(settings.markup);$pp_pic_holder=a(".pp_pic_holder"),$ppt=a(".ppt"),$pp_overlay=a("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var A=0;A<pp_images.length;A++){var B=new RegExp("(.*?).(jpg|jpeg|png|gif)$");var z=B.exec(pp_images[A]);if(!z){classname="default"}else{classname=""}toInject+="<li class='"+classname+"'><a href='#'><img src='"+pp_images[A]+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_pic_holder.find(".pp_gallery .pp_arrow_next").click(function(){a.prettyPhoto.changeGalleryPage("next");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_gallery .pp_arrow_previous").click(function(){a.prettyPhoto.changeGalleryPage("previous");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_pic_holder.find(".pp_gallery ul li").each(function(C){a(this).css({position:"absolute",left:C*itemWidth});a(this).find("a").unbind("click").click(function(){a.prettyPhoto.changePage(C);a.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');$pp_pic_holder.find(".pp_nav .pp_play").click(function(){a.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:a(document).height(),width:a(document).width()}).bind("click",function(){if(!settings.modal){a.prettyPhoto.close()}});a("a.pp_close").bind("click",function(){a.prettyPhoto.close();return false});a("a.pp_expand").bind("click",function(C){if(a(this).hasClass("pp_expand")){a(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{a(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}j(function(){a.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){a.prettyPhoto.changePage("previous");a.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){a.prettyPhoto.changePage("next");a.prettyPhoto.stopSlideshow();return false});l()}return this.unbind("click").click(a.prettyPhoto.initialize)};function b(e,d){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+e+"=([^&#]*)";var g=new RegExp(c);var f=g.exec(d);return(f==null)?"":f[1]}})(jQuery);Calendar=function(){function aS(b){typeof b=="string"&&(b=document.getElementById(b));return b}function aW(e,d,f){for(f=0;f<e.length;++f){d(e[f])}}function aY(){var d=document.documentElement,c=document.body;return{x:d.scrollLeft||c.scrollLeft,y:d.scrollTop||c.scrollTop,w:d.clientWidth||window.innerWidth||c.clientWidth,h:d.clientHeight||window.innerHeight||c.clientHeight}}function a0(h){var g=0,l=0,k=/^div$/i.test(h.tagName),j,i;k&&h.scrollLeft&&(g=h.scrollLeft),k&&h.scrollTop&&(l=h.scrollTop),j={x:h.offsetLeft-g,y:h.offsetTop-l},h.offsetParent&&(i=a0(h.offsetParent),j.x+=i.x,j.y+=i.y);return j}function a2(f,e){var h=a3?f.clientX+document.body.scrollLeft:f.pageX,g=a3?f.clientY+document.body.scrollTop:f.pageY;e&&(h-=e.x,g-=e.y);return{x:h,y:g}}function a4(e,d){var f=e.style;d!=null&&(f.display=d?"":"none");return f.display!="none"}function a6(d,c){c===""?a3?d.style.filter="":d.style.opacity="":c!=null?a3?d.style.filter="alpha(opacity="+c*100+")":d.style.opacity=c:a3?/alpha\(opacity=([0-9.])+\)/.test(d.style.opacity)&&(c=parseFloat(RegExp.$1)/100):c=parseFloat(d.style.opacity);return c}function bn(i,e,n){function j(){var a=i.len;i.onUpdate(n/a,m),n==a&&k(),++n}function k(){e&&(clearInterval(e),e=null),i.onStop(n/i.len,m)}function l(){e&&k(),n=0,e=setInterval(j,1000/i.fps)}function m(g,f,o,h){return h?o+g*(f-o):f+g*(o-f)}i=af(i,{fps:50,len:15,onUpdate:aT,onStop:aT}),a3&&(i.len=Math.round(i.len/2)),l();return{start:l,stop:k,update:j,args:i,map:m}}function bp(e,d){if(!d(e)){for(var f=e.firstChild;f;f=f.nextSibling){f.nodeType==1&&bp(f,d)}}}function bq(e,d){var f=bs(arguments,2);return d==undefined?function(){return e.apply(this,f.concat(bs(arguments)))}:function(){return e.apply(d,f.concat(bs(arguments)))}}function bs(h,g){g==null&&(g=0);var l,k,j;try{l=Array.prototype.slice.call(h,g)}catch(i){l=Array(h.length-g);for(k=g,j=0;k<h.length;++k,++j){l[j]=h[k]}}return l}function br(f,e,h){var g=null;document.createElementNS?g=document.createElementNS("http://www.w3.org/1999/xhtml",f):g=document.createElement(f),e&&(g.className=e),h&&h.appendChild(g);return g}function aB(f,e,h){if(e instanceof Array){for(var g=e.length;--g>=0;){aB(f,e[g],h)}}else{ab(e,h,f?h:null)}return f}function aa(d,c){return ab(d,c,c)}function ab(h,g,l){if(h){var k=h.className.replace(/^\s+|\s+$/,"").split(/\x20/),j=[],i;for(i=k.length;i>0;){k[--i]!=g&&j.push(k[i])}l&&j.push(l),h.className=j.join(" ")}return l}function ac(b){b=b||window.event,a3?(b.cancelBubble=!0,b.returnValue=!1):(b.preventDefault(),b.stopPropagation());return !1}function ad(g,e,j,i){if(g instanceof Array){for(var h=g.length;--h>=0;){ad(g[h],e,j)}}else{if(typeof e=="object"){for(var h in e){e.hasOwnProperty(h)&&ad(g,h,e[h],j)}}else{g.removeEventListener?g.removeEventListener(e,j,a3?!0:!!i):g.detachEvent?g.detachEvent("on"+e,j):g["on"+e]=null}}}function ae(g,e,j,i){if(g instanceof Array){for(var h=g.length;--h>=0;){ae(g[h],e,j,i)}}else{if(typeof e=="object"){for(var h in e){e.hasOwnProperty(h)&&ae(g,h,e[h],j)}}else{g.addEventListener?g.addEventListener(e,j,a3?!0:!!i):g.attachEvent?g.attachEvent("on"+e,j):g["on"+e]=j}}}function af(f,e,h,g){g={};for(h in e){e.hasOwnProperty(h)&&(g[h]=e[h])}for(h in f){f.hasOwnProperty(h)&&(g[h]=f[h])}return g}function ag(d){if(/\S/.test(d)){d=d.toLowerCase();function c(a){for(var e=a.length;--e>=0;){if(a[e].toLowerCase().indexOf(d)==0){return e+1}}}return c(ao("smn"))||c(ao("mn"))}}function ah(d){if(d){if(typeof d=="number"){return ak(d)}if(!(d instanceof Date)){var c=d.split(/-/);return new Date(parseInt(c[0],10),parseInt(c[1],10)-1,parseInt(c[2],10),12,0,0,0)}}return d}function ai(D,C){var B=D.getMonth(),A=D.getDate(),z=D.getFullYear(),y=an(D),x=D.getDay(),w=D.getHours(),v=w>=12,u=v?w-12:w,t=am(D),s=D.getMinutes(),r=D.getSeconds(),q=/%./g,p;u===0&&(u=12),p={"%a":ao("sdn")[x],"%A":ao("dn")[x],"%b":ao("smn")[B],"%B":ao("mn")[B],"%C":1+Math.floor(z/100),"%d":A<10?"0"+A:A,"%e":A,"%H":w<10?"0"+w:w,"%I":u<10?"0"+u:u,"%j":t<10?"00"+t:t<100?"0"+t:t,"%k":w,"%l":u,"%m":B<9?"0"+(1+B):1+B,"%o":1+B,"%M":s<10?"0"+s:s,"%n":"\n","%p":v?"PM":"AM","%P":v?"pm":"am","%s":Math.floor(D.getTime()/1000),"%S":r<10?"0"+r:r,"%t":"\t","%U":y<10?"0"+y:y,"%W":y<10?"0"+y:y,"%V":y<10?"0"+y:y,"%u":x+1,"%w":x,"%y":(""+z).substr(2,2),"%Y":z,"%%":"%"};return C.replace(q,function(b){return p.hasOwnProperty(b)?p[b]:b})}function aj(r,q,p){var o=r.getFullYear(),n=r.getMonth(),m=r.getDate(),l=q.getFullYear(),k=q.getMonth(),j=q.getDate();return o<l?-3:o>l?3:n<k?-2:n>k?2:p?0:m<j?-1:m>j?1:0}function ak(i,h,n,m,l){if(!(i instanceof Date)){i=parseInt(i,10);var k=Math.floor(i/10000);i=i%10000;var j=Math.floor(i/100);i=i%100,i=new Date(k,j-1,i,h==null?12:h,n==null?0:n,m==null?0:m,l==null?0:l)}return i}function al(b){if(b instanceof Date){return 10000*b.getFullYear()+100*(b.getMonth()+1)+b.getDate()}if(typeof b=="string"){return parseInt(b,10)}return b}function am(e){e=new Date(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);var d=new Date(e.getFullYear(),0,1,12,0,0),f=e-d;return Math.floor(f/86400000)}function an(e){e=new Date(e.getFullYear(),e.getMonth(),e.getDate(),12,0,0);var d=e.getDay();e.setDate(e.getDate()-(d+6)%7+3);var f=e.valueOf();e.setMonth(0),e.setDate(4);return Math.round((f-e.valueOf())/604800000)+1}function ao(e,d){var f=aV.__.data[e];d&&typeof f=="string"&&(f=ap(f,d));return f}function ap(d,c){return d.replace(/\$\{([^:\}]+)(:[^\}]+)?\}/g,function(b,j,i){var h=c[j],g;i&&(g=i.substr(1).split(/\s*\|\s*/),h=(h>=g.length?g[g.length-1]:g[h]).replace(/##?/g,function(e){return e.length==2?"#":h}));return h})}function aq(B){if(!this._menuAnim){B=B||window.event;var A=B.target||B.srcElement,z=A.getAttribute("dyc-btn"),y=B.keyCode,x=B.charCode||y,w=at[y];if("year"==z&&y==13){var v=new Date(this.date);v.setDate(1),v.setFullYear(this._getInputYear()),this.moveTo(v,!0),aC(this,!1);return ac(B)}if(this._menuVisible){if(y==27){aC(this,!1);return ac(B)}}else{B.ctrlKey||(w=null),w==null&&!B.ctrlKey&&(w=ar[y]),y==36&&(w=0);if(w!=null){aD(this,w);return ac(B)}x=String.fromCharCode(x).toLowerCase();var u=this.els.yearInput,t=this.selection;if(x==" "){aC(this,!0),this.focus(),u.focus(),u.select();return ac(B)}if(x>="0"&&x<="9"){aC(this,!0),this.focus(),u.value=x,u.focus();return ac(B)}var s=ao("mn"),r=B.shiftKey?-1:this.date.getMonth(),q=0,p;while(++q<12){p=s[(r+q)%12].toLowerCase();if(p.indexOf(x)==0){var v=new Date(this.date);v.setDate(1),v.setMonth((r+q)%12),this.moveTo(v,!0);return ac(B)}}if(y>=37&&y<=40){var v=this._lastHoverDate;if(!v&&!t.isEmpty()){v=y<39?t.getFirstDate():t.getLastDate();if(v<this._firstDateVisible||v>this._lastDateVisible){v=null}}if(!v){v=y<39?this._lastDateVisible:this._firstDateVisible}else{var a=v;v=ak(v);var r=100;while(r-->0){switch(y){case 37:v.setDate(v.getDate()-1);break;case 38:v.setDate(v.getDate()-7);break;case 39:v.setDate(v.getDate()+1);break;case 40:v.setDate(v.getDate()+7)}if(!this.isDisabled(v)){break}}v=al(v),(v<this._firstDateVisible||v>this._lastDateVisible)&&this.moveTo(v)}ab(this._getDateDiv(a),aa(this._getDateDiv(v),"DynarchCalendar-hover-date")),this._lastHoverDate=v;return ac(B)}if(y==13&&this._lastHoverDate){t.type==bo.SEL_MULTIPLE&&(B.shiftKey||B.ctrlKey)?(B.shiftKey&&this._selRangeStart&&(t.clear(!0),t.selectRange(this._selRangeStart,this._lastHoverDate)),B.ctrlKey&&t.set(this._selRangeStart=this._lastHoverDate,!0)):t.reset(this._selRangeStart=this._lastHoverDate);return ac(B)}y==27&&!this.args.cont&&this.hide()}}}function au(){this.refresh();var e=this.inputField,d=this.selection;if(e){var f=d.print(this.dateFormat);/input|textarea/i.test(e.tagName)?e.value=f:e.innerHTML=f}this.callHooks("onSelect",this,d)}function av(g){g=g||window.event;var f=ay(g);if(f){var j=f.getAttribute("dyc-btn"),i=f.getAttribute("dyc-type"),h=g.wheelDelta?g.wheelDelta/120:-g.detail/3;h=h<0?-1:h>0?1:0,this.args.reverseWheel&&(h=-h);if(/^(time-(hour|min))/.test(i)){switch(RegExp.$1){case"time-hour":this.setHours(this.getHours()+h);break;case"time-min":this.setMinutes(this.getMinutes()+this.args.minuteStep*h)}ac(g)}else{/Y/i.test(j)&&(h*=2),aD(this,-h),ac(g)}}}function aw(g,f){f=f||window.event;var j=ay(f);if(j){var i=j.getAttribute("dyc-type");if(i&&!j.getAttribute("disabled")){if(!g||!this._bodyAnim||i!="date"){var h=j.getAttribute("dyc-cls");h=h?ax(h,0):"DynarchCalendar-hover-"+i,(i!="date"||this.selection.type)&&aB(g,j,h),i=="date"&&(aB(g,j.parentNode.parentNode,"DynarchCalendar-hover-week"),this._showTooltip(j.getAttribute("dyc-date"))),/^time-hour/.test(i)&&aB(g,this.els.timeHour,"DynarchCalendar-hover-time"),/^time-min/.test(i)&&aB(g,this.els.timeMinute,"DynarchCalendar-hover-time"),ab(this._getDateDiv(this._lastHoverDate),"DynarchCalendar-hover-date"),this._lastHoverDate=null}}}g||this._showTooltip()}function ax(d,c){return"DynarchCalendar-"+d.split(/,/)[c]}function ay(e){var d=e.target||e.srcElement,f=d;while(d&&d.getAttribute&&!d.getAttribute("dyc-type")){d=d.parentNode}return d.getAttribute&&d||f}function az(e){e=e||window.event;var d=this.els.topCont.style,f=a2(e,this._mouseDiff);d.left=f.x+"px",d.top=f.y+"px"}function aA(v,u){u=u||window.event;var t=ay(u);if(t&&!t.getAttribute("disabled")){var s=t.getAttribute("dyc-btn"),r=t.getAttribute("dyc-type"),q=t.getAttribute("dyc-date"),p=this.selection,o,n={mouseover:ac,mousemove:ac,mouseup:function(d){var c=t.getAttribute("dyc-cls");c&&ab(t,ax(c,1)),clearTimeout(o),ad(document,n,!0),n=null}};if(v){setTimeout(bq(this.focus,this),1);var e=t.getAttribute("dyc-cls");e&&aa(t,ax(e,1));if("menu"==s){this.toggleMenu()}else{if(t&&/^[+-][MY]$/.test(s)){if(aD(this,s)){var a=bq(function(){aD(this,s,!0)?o=setTimeout(a,40):(n.mouseup(),aD(this,s))},this);o=setTimeout(a,350),ae(document,n,!0)}else{n.mouseup()}}else{if("year"==s){this.els.yearInput.focus(),this.els.yearInput.select()}else{if(r=="time-am"){ae(document,n,!0)}else{if(/^time/.test(r)){var a=bq(function(b){aF.call(this,b),o=setTimeout(a,100)},this,r);aF.call(this,r),o=setTimeout(a,350),ae(document,n,!0)}else{q&&p.type&&(p.type==bo.SEL_MULTIPLE?u.shiftKey&&this._selRangeStart?p.selectRange(this._selRangeStart,q):(!u.ctrlKey&&!p.isSelected(q)&&p.clear(!0),p.set(q,!0),this._selRangeStart=q):(p.set(q),this.moveTo(ak(q),2)),t=this._getDateDiv(q),aw.call(this,!0,{target:t})),ae(document,n,!0)}}}}}a3&&n&&/dbl/i.test(u.type)&&n.mouseup(),!this.args.fixed&&/^(DynarchCalendar-(topBar|bottomBar|weekend|weekNumber|menu(-sep)?))?$/.test(t.className)&&!this.args.cont&&(n.mousemove=bq(az,this),this._mouseDiff=a2(u,a0(this.els.topCont)),ae(document,n,!0))}else{if("today"==s){!this._menuVisible&&p.type==bo.SEL_SINGLE&&p.set(new Date),this.moveTo(new Date,!0),aC(this,!1)}else{if(/^m([0-9]+)/.test(s)){var q=new Date(this.date);q.setDate(1),q.setMonth(RegExp.$1),q.setFullYear(this._getInputYear()),this.moveTo(q,!0),aC(this,!1)}else{r=="time-am"&&this.setHours(this.getHours()+12)}}}a3||ac(u)}}function aC(f,e){f._menuVisible=e,aB(e,f.els.title,"DynarchCalendar-pressed-title");var h=f.els.menu;a1&&(h.style.height=f.els.main.offsetHeight+"px");if(!f.args.animation){a4(h,e),f.focused&&f.focus()}else{f._menuAnim&&f._menuAnim.stop();var g=f.els.main.offsetHeight;a1&&(h.style.width=f.els.topBar.offsetWidth+"px"),e&&(h.firstChild.style.marginTop=-g+"px",f.args.opacity>0&&a6(h,0),a4(h,!0)),f._menuAnim=bn({onUpdate:function(b,a){h.firstChild.style.marginTop=a(a7.accel_b(b),-g,0,!e)+"px",f.args.opacity>0&&a6(h,a(a7.accel_b(b),0,0.85,!e))},onStop:function(){f.args.opacity>0&&a6(h,0.85),h.firstChild.style.marginTop="",f._menuAnim=null,e||(a4(h,!1),f.focused&&f.focus())}})}}function aD(f,e,h){this._bodyAnim&&this._bodyAnim.stop();var g;if(e!=0){g=new Date(f.date),g.setDate(1);switch(e){case"-Y":case -2:g.setFullYear(g.getFullYear()-1);break;case"+Y":case 2:g.setFullYear(g.getFullYear()+1);break;case"-M":case -1:g.setMonth(g.getMonth()-1);break;case"+M":case 1:g.setMonth(g.getMonth()+1)}}else{g=new Date}return f.moveTo(g,!h)}function aF(b){switch(b){case"time-hour+":this.setHours(this.getHours()+1);break;case"time-hour-":this.setHours(this.getHours()-1);break;case"time-min+":this.setMinutes(this.getMinutes()+this.args.minuteStep);break;case"time-min-":this.setMinutes(this.getMinutes()-this.args.minuteStep);break;default:return}}function aG(){this._bluringTimeout=setTimeout(bq(aH,this),50)}function aH(){this.focused=!1,ab(this.els.main,"DynarchCalendar-focused"),this._menuVisible&&aC(this,!1),this.args.cont||this.hide(),this.callHooks("onBlur",this)}function aI(){this._bluringTimeout&&clearTimeout(this._bluringTimeout),this.focused=!0,aa(this.els.main,"DynarchCalendar-focused"),this.callHooks("onFocus",this)}function aJ(f){var e=br("div"),h=f.els={},g={mousedown:bq(aA,f,!0),mouseup:bq(aA,f,!1),mouseover:bq(aw,f,!0),mouseout:bq(aw,f,!1),keypress:bq(aq,f)};f.args.noScroll||(g[aZ?"DOMMouseScroll":"mousewheel"]=bq(av,f)),a3&&(g.dblclick=g.mousedown,g.keydown=g.keypress),e.innerHTML=aP(f),bp(e.firstChild,function(d){var c=aK[d.className];c&&(h[c]=d),a3&&d.setAttribute("unselectable","on")}),ae(h.main,g),ae([h.focusLink,h.yearInput],f._focusEvents={focus:bq(aI,f),blur:bq(aG,f)}),f.moveTo(f.date,!1),f.setTime(null,!0);return h.topCont}function aL(f){function g(){h.showTime&&(e.push("<td>"),aM(f,e),e.push("</td>"))}var e=[],h=f.args;e.push("<table",aU," style='width:100%'><tr>"),h.timePos=="left"&&g(),h.bottomBar&&(e.push("<td>"),e.push("<table",aU,"><tr><td>","<div dyc-btn='today' dyc-cls='hover-bottomBar-today,pressed-bottomBar-today' dyc-type='bottomBar-today' ","class='DynarchCalendar-bottomBar-today'>",ao("today"),"</div>","</td></tr></table>"),e.push("</td>")),h.timePos=="right"&&g(),e.push("</tr></table>");return e.join("")}function aM(d,c){c.push("<table class='DynarchCalendar-time'"+aU+"><tr>","<td rowspan='2'><div dyc-type='time-hour' dyc-cls='hover-time,pressed-time' class='DynarchCalendar-time-hour'></div></td>","<td dyc-type='time-hour+' dyc-cls='hover-time,pressed-time' class='DynarchCalendar-time-up'></td>","<td rowspan='2' class='DynarchCalendar-time-sep'></td>","<td rowspan='2'><div dyc-type='time-min' dyc-cls='hover-time,pressed-time' class='DynarchCalendar-time-minute'></div></td>","<td dyc-type='time-min+' dyc-cls='hover-time,pressed-time' class='DynarchCalendar-time-up'></td>"),d.args.showTime==12&&c.push("<td rowspan='2' class='DynarchCalendar-time-sep'></td>","<td rowspan='2'><div class='DynarchCalendar-time-am' dyc-type='time-am' dyc-cls='hover-time,pressed-time'></div></td>"),c.push("</tr><tr>","<td dyc-type='time-hour-' dyc-cls='hover-time,pressed-time' class='DynarchCalendar-time-down'></td>","<td dyc-type='time-min-' dyc-cls='hover-time,pressed-time' class='DynarchCalendar-time-down'></td>","</tr></table>")}function aN(h){var g=["<table height='100%'",aU,"><tr><td>","<table style='margin-top: 1.5em'",aU,">","<tr><td colspan='3'><input dyc-btn='year' class='DynarchCalendar-menu-year' size='6' value='",h.date.getFullYear(),"' /></td></tr>","<tr><td><div dyc-type='menubtn' dyc-cls='hover-navBtn,pressed-navBtn' dyc-btn='today'>",ao("goToday"),"</div></td></tr>","</table>","<p class='DynarchCalendar-menu-sep'>&nbsp;</p>","<table class='DynarchCalendar-menu-mtable'",aU,">"],l=ao("smn"),k=0,j=g.length,i;while(k<12){g[j++]="<tr>";for(i=4;--i>0;){g[j++]="<td><div dyc-type='menubtn' dyc-cls='hover-navBtn,pressed-navBtn' dyc-btn='m"+k+"' class='DynarchCalendar-menu-month'>"+l[k++]+"</div></td>"}g[j++]="</tr>"}g[j++]="</table></td></tr></table>";return g.join("")}function aO(b){return"<div unselectable='on'>"+ai(b.date,b.args.titleFormat)+"</div>"}function aP(d){var c=["<table class='DynarchCalendar-topCont'",aU,"><tr><td>","<div class='DynarchCalendar'>",a3?"<a class='DynarchCalendar-focusLink' href='#'></a>":"<button class='DynarchCalendar-focusLink'></button>","<div class='DynarchCalendar-topBar'>","<div dyc-type='nav' dyc-btn='-Y' dyc-cls='hover-navBtn,pressed-navBtn' ","class='DynarchCalendar-navBtn DynarchCalendar-prevYear'><div></div></div>","<div dyc-type='nav' dyc-btn='+Y' dyc-cls='hover-navBtn,pressed-navBtn' ","class='DynarchCalendar-navBtn DynarchCalendar-nextYear'><div></div></div>","<div dyc-type='nav' dyc-btn='-M' dyc-cls='hover-navBtn,pressed-navBtn' ","class='DynarchCalendar-navBtn DynarchCalendar-prevMonth'><div></div></div>","<div dyc-type='nav' dyc-btn='+M' dyc-cls='hover-navBtn,pressed-navBtn' ","class='DynarchCalendar-navBtn DynarchCalendar-nextMonth'><div></div></div>","<table class='DynarchCalendar-titleCont'",aU,"><tr><td>","<div dyc-type='title' dyc-btn='menu' dyc-cls='hover-title,pressed-title' class='DynarchCalendar-title'>",aO(d),"</div></td></tr></table>","<div class='DynarchCalendar-dayNames'>",aR(d),"</div>","</div>","<div class='DynarchCalendar-body'></div>"];(d.args.bottomBar||d.args.showTime)&&c.push("<div class='DynarchCalendar-bottomBar'>",aL(d),"</div>"),c.push("<div class='DynarchCalendar-menu' style='display: none'>",aN(d),"</div>","<div class='DynarchCalendar-tooltip'></div>","</div>","</td></tr></table>");return c.join("")}function aQ(N,M,L){M=M||N.date,L=L||N.fdow,M=new Date(M.getFullYear(),M.getMonth(),M.getDate(),12,0,0,0);var K=M.getMonth(),J=[],I=0,H=N.args.weekNumbers;M.setDate(1);var G=(M.getDay()-L)%7;G<0&&(G+=7),M.setDate(0-G),M.setDate(M.getDate()+1);var F=new Date,E=F.getDate(),D=F.getMonth(),C=F.getFullYear();J[I++]="<table class='DynarchCalendar-bodyTable'"+aU+">";for(var B=0;B<6;++B){J[I++]="<tr class='DynarchCalendar-week",B==0&&(J[I++]=" DynarchCalendar-first-row"),B==5&&(J[I++]=" DynarchCalendar-last-row"),J[I++]="'>",H&&(J[I++]="<td class='DynarchCalendar-first-col'><div class='DynarchCalendar-weekNumber'>"+an(M)+"</div></td>");for(var A=0;A<7;++A){var z=M.getDate(),y=M.getMonth(),x=M.getFullYear(),w=10000*x+100*(y+1)+z,v=N.selection.isSelected(w),j=N.isDisabled(M);J[I++]="<td class='",A==0&&!H&&(J[I++]=" DynarchCalendar-first-col"),A==0&&B==0&&(N._firstDateVisible=w),A==6&&(J[I++]=" DynarchCalendar-last-col",B==5&&(N._lastDateVisible=w)),v&&(J[I++]=" DynarchCalendar-td-selected"),J[I++]="'><div dyc-type='date' unselectable='on' dyc-date='"+w+"' ",j&&(J[I++]="disabled='1' "),J[I++]="class='DynarchCalendar-day",ao("weekend").indexOf(M.getDay())>=0&&(J[I++]=" DynarchCalendar-weekend"),y!=K&&(J[I++]=" DynarchCalendar-day-othermonth"),z==E&&y==D&&x==C&&(J[I++]=" DynarchCalendar-day-today"),j&&(J[I++]=" DynarchCalendar-day-disabled"),v&&(J[I++]=" DynarchCalendar-day-selected"),j=N.args.dateInfo(M),j&&j.klass&&(J[I++]=" "+j.klass),J[I++]="'>"+z+"</div></td>",M=new Date(x,y,z+1,12,0,0,0)}J[I++]="</tr>"}J[I++]="</table>";return J.join("")}function aR(f){var e=["<table",aU,"><tr>"],h=0;f.args.weekNumbers&&e.push("<td><div class='DynarchCalendar-weekNumber'>",ao("wk"),"</div></td>");while(h<7){var g=(h+++f.fdow)%7;e.push("<td><div",ao("weekend").indexOf(g)>=0?" class='DynarchCalendar-weekend'>":">",ao("sdn")[g],"</div></td>")}e.push("</tr></table>");return e.join("")}function bo(a){a=a||{},this.args=a=af(a,{animation:!a1,cont:null,bottomBar:!0,date:!0,fdow:ao("fdow"),min:null,max:null,reverseWheel:!1,selection:[],selectionType:bo.SEL_SINGLE,weekNumbers:!1,align:"Bl/ / /T/r",inputField:null,trigger:null,dateFormat:"%Y-%m-%d",fixed:!1,opacity:a3?1:3,titleFormat:"%b %Y",showTime:!1,timePos:"right",time:!0,minuteStep:5,noScroll:!1,disabled:aT,checkRange:!1,dateInfo:aT,onChange:aT,onSelect:aT,onTimeChange:aT,onFocus:aT,onBlur:aT}),this.handlers={};var h=this,f=new Date;a.min=ah(a.min),a.max=ah(a.max),a.date===!0&&(a.date=f),a.time===!0&&(a.time=f.getHours()*100+Math.floor(f.getMinutes()/a.minuteStep)*a.minuteStep),this.date=ah(a.date),this.time=a.time,this.fdow=a.fdow,aW("onChange onSelect onTimeChange onFocus onBlur".split(/\s+/),function(b){var c=a[b];c instanceof Array||(c=[c]),h.handlers[b]=c}),this.selection=new bo.Selection(a.selection,a.selectionType,au,this);var e=aJ(this);a.cont&&aS(a.cont).appendChild(e),a.trigger&&this.manageFields(a.trigger,a.inputField,a.dateFormat)}var a9=navigator.userAgent,a8=/opera/i.test(a9),a5=/Konqueror|Safari|KHTML/i.test(a9),a3=/msie/i.test(a9)&&!a8&&!/mac_powerpc/i.test(a9),a1=a3&&/msie 6/i.test(a9),aZ=/gecko/i.test(a9)&&!a5&&!a8&&!a3,aX=bo.prototype,aV=bo.I18N={};bo.SEL_NONE=0,bo.SEL_SINGLE=1,bo.SEL_MULTIPLE=2,bo.SEL_WEEK=3,bo.dateToInt=al,bo.intToDate=ak,bo.printDate=ai,bo.formatString=ap,bo.i18n=ao,bo.LANG=function(e,d,f){aV.__=aV[e]={name:d,data:f}},bo.setup=function(a){return new bo(a)},aX.moveTo=function(N,M){var L=this;N=ah(N);var K=aj(N,L.date,!0),J,I=L.args,H=I.min&&aj(N,I.min),G=I.max&&aj(N,I.max);I.animation||(M=!1),aB(H!=null&&H<=1,[L.els.navPrevMonth,L.els.navPrevYear],"DynarchCalendar-navDisabled"),aB(G!=null&&G>=-1,[L.els.navNextMonth,L.els.navNextYear],"DynarchCalendar-navDisabled"),H<-1&&(N=I.min,J=1,K=0),G>1&&(N=I.max,J=2,K=0),L.date=N,L.refresh(!!M),L.callHooks("onChange",L,N,M);if(M&&(K!=0||M!=2)){L._bodyAnim&&L._bodyAnim.stop();var F=L.els.body,E=br("div","DynarchCalendar-animBody-"+aE[K],F),D=F.firstChild,C=a6(D)||0.7,B=J?a7.brakes:K==0?a7.shake:a7.accel_ab2,A=K*K>4,z=A?D.offsetTop:D.offsetLeft,y=E.style,x=A?F.offsetHeight:F.offsetWidth;K<0?x+=z:K>0?x=z-x:(x=Math.round(x/7),J==2&&(x=-x));if(!J&&K!=0){var w=E.cloneNode(!0),v=w.style,l=2*x;w.appendChild(D.cloneNode(!0)),v[A?"marginTop":"marginLeft"]=x+"px",F.appendChild(w)}D.style.visibility="hidden",E.innerHTML=aQ(L),L._bodyAnim=bn({onUpdate:function(d,c){var h=B(d);if(w){var e=c(h,x,l)+"px"}if(J){y[A?"marginTop":"marginLeft"]=c(h,x,0)+"px"}else{if(A||K==0){y.marginTop=c(K==0?B(d*d):h,0,x)+"px",K!=0&&(v.marginTop=e)}if(!A||K==0){y.marginLeft=c(h,0,x)+"px",K!=0&&(v.marginLeft=e)}}L.args.opacity>2&&w&&(a6(w,1-h),a6(E,h))},onStop:function(a){F.innerHTML=aQ(L,N),L._bodyAnim=null}})}L._lastHoverDate=null;return H>=-1&&G<=1},aX.isDisabled=function(d){var c=this.args;return c.min&&aj(d,c.min)<0||c.max&&aj(d,c.max)>0||c.disabled(d)},aX.toggleMenu=function(){aC(this,!this._menuVisible)},aX.refresh=function(d){var c=this.els;d||(c.body.innerHTML=aQ(this)),c.title.innerHTML=aO(this),c.yearInput.value=this.date.getFullYear()},aX.redraw=function(){var d=this,c=d.els;d.refresh(),c.dayNames.innerHTML=aR(d),c.menu.innerHTML=aN(d),c.bottomBar&&(c.bottomBar.innerHTML=aL(d)),bp(c.topCont,function(b){var a=aK[b.className];a&&(c[a]=b),b.className=="DynarchCalendar-menu-year"?(ae(b,d._focusEvents),c.yearInput=b):a3&&b.setAttribute("unselectable","on")}),d.setTime(null,!0)},aX.setLanguage=function(a){var d=bo.setLanguage(a);d&&(this.fdow=d.data.fdow,this.redraw())},bo.setLanguage=function(d){var c=aV[d];c&&(aV.__=c);return c},aX.focus=function(){try{this.els[this._menuVisible?"yearInput":"focusLink"].focus()}catch(b){}aI.call(this)},aX.blur=function(){this.els.focusLink.blur(),this.els.yearInput.blur(),aH.call(this)},aX.showAt=function(j,i,p){this._showAnim&&this._showAnim.stop(),p=p&&this.args.animation;var o=this.els.topCont,n=this,m=this.els.body.firstChild,l=m.offsetHeight,k=o.style;k.position="absolute",k.left=j+"px",k.top=i+"px",k.zIndex=10000,k.display="",p&&(m.style.marginTop=-l+"px",this.args.opacity>1&&a6(o,0),this._showAnim=bn({onUpdate:function(d,c){m.style.marginTop=-c(a7.accel_b(d),l,0)+"px",n.args.opacity>1&&a6(o,d)},onStop:function(){n.args.opacity>1&&a6(o,""),n._showAnim=null}}))},aX.hide=function(){var g=this.els.topCont,f=this,j=this.els.body.firstChild,i=j.offsetHeight,h=a0(g).y;this.args.animation?(this._showAnim&&this._showAnim.stop(),this._showAnim=bn({onUpdate:function(b,a){f.args.opacity>1&&a6(g,1-b),j.style.marginTop=-a(a7.accel_b(b),0,i)+"px",g.style.top=a(a7.accel_ab(b),h,h-10)+"px"},onStop:function(){g.style.display="none",j.style.marginTop="",f.args.opacity>1&&a6(g,""),f._showAnim=null}})):g.style.display="none",this.inputField=null},aX.popup=function(r,q){function k(a){var d={x:j.x,y:j.y};if(!a){return d}/B/.test(a)&&(d.y+=r.offsetHeight),/b/.test(a)&&(d.y+=r.offsetHeight-m.y),/T/.test(a)&&(d.y-=m.y),/l/.test(a)&&(d.x-=m.x-r.offsetWidth),/L/.test(a)&&(d.x-=m.x),/R/.test(a)&&(d.x+=r.offsetWidth),/c/i.test(a)&&(d.x+=(r.offsetWidth-m.x)/2),/m/i.test(a)&&(d.y+=(r.offsetHeight-m.y)/2);return d}r=aS(r),q||(q=this.args.align),q=q.split(/\x2f/);var p=a0(r),o=this.els.topCont,n=o.style,m,l=aY();n.visibility="hidden",n.display="",this.showAt(0,0),document.body.appendChild(o),m={x:o.offsetWidth,y:o.offsetHeight};var j=p;j=k(q[0]),j.y<l.y&&(j.y=p.y,j=k(q[1])),j.x+m.x>l.x+l.w&&(j.x=p.x,j=k(q[2])),j.y+m.y>l.y+l.h&&(j.y=p.y,j=k(q[3])),j.x<l.x&&(j.x=p.x,j=k(q[4])),this.showAt(j.x,j.y,!0),n.visibility="",this.focus()},aX.manageFields=function(a,h,g){var f=this;h=aS(h),a=aS(a),/^button$/i.test(a.tagName)&&a.setAttribute("type","button"),ae(a,"click",function(){f.inputField=h,f.dateFormat=g;if(f.selection.type==bo.SEL_SINGLE){var e,d,c,b;e=/input|textarea/i.test(h.tagName)?h.value:h.innerText||h.textContent,e&&(d=/(^|[^%])%[bBmo]/.exec(g),c=/(^|[^%])%[de]/.exec(g),d&&c&&(b=d.index<c.index),e=Calendar.parseDate(e,b),e&&(f.selection.set(e,!1,!0),f.args.showTime&&(f.setHours(e.getHours()),f.setMinutes(e.getMinutes())),f.moveTo(e)))}f.popup(a)})},aX.callHooks=function(f){var e=bs(arguments,1),h=this.handlers[f],g=0;for(;g<h.length;++g){h[g].apply(this,e)}},aX.addEventListener=function(d,c){this.handlers[d].push(c)},aX.removeEventListener=function(f,e){var h=this.handlers[f],g=h.length;while(--g>=0){h[g]===e&&h.splice(g,1)}},aX.getTime=function(){return this.time},aX.setTime=function(g,f){if(this.args.showTime){g=g!=null?g:this.time,this.time=g;var j=this.getHours(),i=this.getMinutes(),h=j<12;this.args.showTime==12&&(j==0&&(j=12),j>12&&(j-=12),this.els.timeAM.innerHTML=ao(h?"AM":"PM")),j<10&&(j="0"+j),i<10&&(i="0"+i),this.els.timeHour.innerHTML=j,this.els.timeMinute.innerHTML=i,f||this.callHooks("onTimeChange",this,g)}},aX.getHours=function(){return Math.floor(this.time/100)},aX.getMinutes=function(){return this.time%100},aX.setHours=function(b){b<0&&(b+=24),this.setTime(100*(b%24)+this.time%100)},aX.setMinutes=function(b){b<0&&(b+=60),b=Math.floor(b/this.args.minuteStep)*this.args.minuteStep,this.setTime(100*this.getHours()+b%60)},aX._getInputYear=function(){var b=parseInt(this.els.yearInput.value,10);isNaN(b)&&(b=this.date.getFullYear());return b},aX._showTooltip=function(f){var e="",h,g=this.els.tooltip;f&&(f=ak(f),h=this.args.dateInfo(f),h&&h.tooltip&&(e="<div class='DynarchCalendar-tooltipCont'>"+ai(f,h.tooltip)+"</div>")),g.innerHTML=e};var aU=" align='center' cellspacing='0' cellpadding='0'",aK={"DynarchCalendar-topCont":"topCont","DynarchCalendar-focusLink":"focusLink",DynarchCalendar:"main","DynarchCalendar-topBar":"topBar","DynarchCalendar-title":"title","DynarchCalendar-dayNames":"dayNames","DynarchCalendar-body":"body","DynarchCalendar-menu":"menu","DynarchCalendar-menu-year":"yearInput","DynarchCalendar-bottomBar":"bottomBar","DynarchCalendar-tooltip":"tooltip","DynarchCalendar-time-hour":"timeHour","DynarchCalendar-time-minute":"timeMinute","DynarchCalendar-time-am":"timeAM","DynarchCalendar-navBtn DynarchCalendar-prevYear":"navPrevYear","DynarchCalendar-navBtn DynarchCalendar-nextYear":"navNextYear","DynarchCalendar-navBtn DynarchCalendar-prevMonth":"navPrevMonth","DynarchCalendar-navBtn DynarchCalendar-nextMonth":"navNextMonth"},aE={"-3":"backYear","-2":"back",0:"now",2:"fwd",3:"fwdYear"},at={37:-1,38:-2,39:1,40:2},ar={33:-1,34:1};aX._getDateDiv=function(e){var d=null;if(e){try{bp(this.els.body,function(a){if(a.getAttribute("dyc-date")==e){throw d=a}})}catch(f){}}return d},(bo.Selection=function(f,e,h,g){this.type=e,this.sel=f instanceof Array?f:[f],this.onChange=bq(h,g),this.cal=g}).prototype={get:function(){return this.type==bo.SEL_SINGLE?this.sel[0]:this.sel},isEmpty:function(){return this.sel.length==0},set:function(a,h,g){var f=this.type==bo.SEL_SINGLE;a instanceof Array?(this.sel=a,this.normalize(),g||this.onChange(this)):(a=al(a),f||!this.isSelected(a)?(f?this.sel=[a]:this.sel.splice(this.findInsertPos(a),0,a),this.normalize(),g||this.onChange(this)):h&&this.unselect(a,g))},reset:function(){this.sel=[],this.set.apply(this,arguments)},countDays:function(){var h=0,g=this.sel,l=g.length,k,j,i;while(--l>=0){k=g[l],k instanceof Array&&(j=ak(k[0]),i=ak(k[1]),h+=Math.round(Math.abs(i.getTime()-j.getTime())/86400000)),++h}return h},unselect:function(r,q){r=al(r);var p=!1;for(var o=this.sel,n=o.length,m;--n>=0;){m=o[n];if(m instanceof Array){if(r>=m[0]&&r<=m[1]){var l=ak(r),k=l.getDate();if(r==m[0]){l.setDate(k+1),m[0]=al(l),p=!0}else{if(r==m[1]){l.setDate(k-1),m[1]=al(l),p=!0}else{var j=new Date(l);j.setDate(k+1),l.setDate(k-1),o.splice(n+1,0,[al(j),m[1]]),m[1]=al(l),p=!0}}}}else{r==m&&(o.splice(n,1),p=!0)}}p&&(this.normalize(),q||this.onChange(this))},normalize:function(){this.sel=this.sel.sort(function(d,c){d instanceof Array&&(d=d[0]),c instanceof Array&&(c=c[0]);return d-c});for(var i=this.sel,h=i.length,n,m;--h>=0;){n=i[h];if(n instanceof Array){if(n[0]>n[1]){i.splice(h,1);continue}n[0]==n[1]&&(n=i[h]=n[0])}if(m){var l=m,k=n instanceof Array?n[1]:n;k=ak(k),k.setDate(k.getDate()+1),k=al(k);if(k>=l){var j=i[h+1];n instanceof Array&&j instanceof Array?(n[1]=j[1],i.splice(h+1,1)):n instanceof Array?(n[1]=m,i.splice(h+1,1)):j instanceof Array?(j[0]=n,i.splice(h,1)):(i[h]=[n,j],i.splice(h+1,1))}}m=n instanceof Array?n[0]:n}},findInsertPos:function(f){for(var e=this.sel,h=e.length,g;--h>=0;){g=e[h],g instanceof Array&&(g=g[0]);if(g<=f){break}}return h+1},clear:function(b){this.sel=[],b||this.onChange(this)},selectRange:function(a,j){a=al(a),j=al(j);if(a>j){var i=a;a=j,j=i}var h=this.cal.args.checkRange;if(!h){return this._do_selectRange(a,j)}try{aW((new bo.Selection([[a,j]],bo.SEL_MULTIPLE,aT)).getDates(),bq(function(b){if(this.isDisabled(b)){h instanceof Function&&h(b,this);throw"OUT"}},this.cal)),this._do_selectRange(a,j)}catch(g){}},_do_selectRange:function(d,c){this.sel.push([d,c]),this.normalize(),this.onChange(this)},isSelected:function(e){for(var d=this.sel.length,f;--d>=0;){f=this.sel[d];if(f instanceof Array&&e>=f[0]&&e<=f[1]||e==f){return !0}}return !1},getFirstDate:function(){var b=this.sel[0];b&&b instanceof Array&&(b=b[0]);return b},getLastDate:function(){if(this.sel.length>0){var b=this.sel[this.sel.length-1];b&&b instanceof Array&&(b=b[1]);return b}},print:function(i,h){var n=[],m=0,l,k=this.cal.getHours(),j=this.cal.getMinutes();h||(h=" -> ");while(m<this.sel.length){l=this.sel[m++],l instanceof Array?n.push(ai(ak(l[0],k,j),i)+h+ai(ak(l[1],k,j),i)):n.push(ai(ak(l,k,j),i))}return n},getDates:function(g){var f=[],j=0,i,h;while(j<this.sel.length){h=this.sel[j++];if(h instanceof Array){i=ak(h[0]),h=h[1];while(al(i)<h){f.push(g?ai(i,g):new Date(i)),i.setDate(i.getDate()+1)}}else{i=ak(h)}f.push(g?ai(i,g):i)}return f}},bo.isUnicodeLetter=function(b){return b.toUpperCase()!=b.toLowerCase()},bo.parseDate=function(B,A,z){if(!/\S/.test(B)){return""}B=B.replace(/^\s+/,"").replace(/\s+$/,""),z=z||new Date;var y=null,x=null,w=null,v=null,u=null,t=null,s=B.match(/([0-9]{1,2}):([0-9]{1,2})(:[0-9]{1,2})?\s*(am|pm)?/i);s&&(v=parseInt(s[1],10),u=parseInt(s[2],10),t=s[3]?parseInt(s[3].substr(1),10):0,B=B.substring(0,s.index)+B.substr(s.index+s[0].length),s[4]&&(s[4].toLowerCase()=="pm"&&v<12?v+=12:s[4].toLowerCase()=="am"&&v>=12&&(v-=12)));var r=function(){function b(c){E.push(c)}function l(){var c="";while(o()&&/[0-9]/.test(o())){c+=C()}if(n(o())){return m(c)}return parseInt(c,10)}function m(c){while(o()&&n(o())){c+=C()}return c}function o(){return B.charAt(F)}function C(){return B.charAt(F++)}var F=0,E=[],D,n=bo.isUnicodeLetter;while(F<B.length){D=o(),n(D)?b(m("")):/[0-9]/.test(D)?b(l()):C()}return E}(),q=[];for(var p=0;p<r.length;++p){var a=r[p];/^[0-9]{4}$/.test(a)?(y=parseInt(a,10),x==null&&w==null&&A==null&&(A=!0)):/^[0-9]{1,2}$/.test(a)?(a=parseInt(a,10),a<60?a<0||a>12?a>=1&&a<=31&&(w=a):q.push(a):y=a):x==null&&(x=ag(a))}q.length<2?q.length==1&&(w==null?w=q.shift():x==null&&(x=q.shift())):A?(x==null&&(x=q.shift()),w==null&&(w=q.shift())):(w==null&&(w=q.shift()),x==null&&(x=q.shift())),y==null&&(y=q.length>0?q.shift():z.getFullYear()),y<30?y+=2000:y<99&&(y+=1900),x==null&&(x=z.getMonth()+1);return y!=null&&x!=null&&w!=null?new Date(y,x-1,w,v,u,t):null};var a7={elastic_b:function(b){return 1-Math.cos(-b*5.5*Math.PI)/Math.pow(2,7*b)},magnetic:function(b){return 1-Math.cos(b*b*b*10.5*Math.PI)/Math.exp(4*b)},accel_b:function(b){b=1-b;return 1-b*b*b*b},accel_a:function(b){return b*b*b},accel_ab:function(b){b=1-b;return 1-Math.sin(b*b*Math.PI/2)},accel_ab2:function(b){return(b/=0.5)<1?0.5*b*b:-0.5*(--b*(b-2)-1)},brakes:function(b){b=1-b;return 1-Math.sin(b*b*Math.PI)},shake:function(b){return b<0.5?-Math.cos(b*11*Math.PI)*b*b:(b=1-b,Math.cos(b*11*Math.PI)*b*b)}},aT=new Function;return bo}();Calendar.LANG("it","Italiano",{fdow:1,goToday:"Vai a oggi",today:"Oggi",wk:"set",weekend:"0,6",AM:"am",PM:"pm",mn:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],smn:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dn:["Domenica","Lunedì","Martedì","Mercoledì","Giovedi","Venerdì","Sabato","Domenica"],sdn:["Do","Lu","Ma","Me","Gi","Ve","Sa","Do"]});
