(function(d){function o(h){function s(v){var z=RegExp(d.map(v,encodeURIComponent).join("|"),"ig");return function(w){return w.replace(z,decodeURIComponent)}}h=d.extend({unescape:false},h||{});i.encoder=function(v){if(v===true)return function(z){return z};if(typeof v=="string"&&(v=s(v.split("")))||typeof v=="function")return function(z){return v(encodeURIComponent(z))};return encodeURIComponent}(h.unescape)}var i={put:function(h,s){(s||window).location.hash=this.encoder(h)},get:function(h){h=(h||window).location.hash.replace(/^#/,
"");try{return d.browser.mozilla?h:decodeURIComponent(h)}catch(s){return h}},encoder:encodeURIComponent},n={id:"__jQuery_history",init:function(){var h='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';d("body").prepend(h);return this},_document:function(){return d("#"+this.id)[0].contentWindow.document},put:function(h){var s=this._document();s.open();s.close();i.put(h,s)},get:function(){return i.get(this._document())}},q={};q.base={callback:undefined,type:undefined,check:function(){},
load:function(){},init:function(h,s){o(s);k.callback=h;k._options=s;k._init()},_init:function(){},_options:{}};q.timer={_appState:undefined,_init:function(){var h=i.get();k._appState=h;k.callback(h);setInterval(k.check,100)},check:function(){var h=i.get();if(h!=k._appState){k._appState=h;k.callback(h)}},load:function(h){if(h!=k._appState){i.put(h);k._appState=h;k.callback(h)}}};q.iframeTimer={_appState:undefined,_init:function(){var h=i.get();k._appState=h;n.init().put(h);k.callback(h);setInterval(k.check,
100)},check:function(){var h=n.get(),s=i.get();if(s!=h)if(s==k._appState){k._appState=h;i.put(h);k.callback(h)}else{k._appState=s;n.put(s);k.callback(s)}},load:function(h){if(h!=k._appState){i.put(h);n.put(h);k._appState=h;k.callback(h)}}};q.hashchangeEvent={_init:function(){k.callback(i.get());d(window).bind("hashchange",k.check)},check:function(){k.callback(i.get())},load:function(h){i.put(h)}};var k=d.extend({},q.base);k.type=d.browser.msie&&(d.browser.version<8||document.documentMode<8)?"iframeTimer":
"onhashchange"in window?"hashchangeEvent":"timer";d.extend(k,q[k.type]);d.history=k})(jQuery);
(function(d){var o,i,n,q,k,h,s,v,z,w,B;o=document.namespaces;if((has_canvas=(has_canvas=!!document.createElement("canvas").getContext)&&!d.browser.msie)||o){if(has_canvas){s=function(m,r){if(r<=1){m.style.opacity=r;window.setTimeout(s,10,m,r+0.1,10)}};v=function(m){return Math.max(0,Math.min(parseInt(m,16),255))};z=function(m,r){return"rgba("+v(m.substr(0,2))+","+v(m.substr(2,2))+","+v(m.substr(4,2))+","+r+")"};i=function(m){m=d('<canvas style="width:'+m.width+"px;height:"+m.height+'px;"></canvas>').get(0);
m.getContext("2d").clearRect(0,0,m.width,m.height);return m};n=function(m,r,a,b){var e=m.getContext("2d");e.beginPath();if(r=="rect")e.rect(a[0],a[1],a[2]-a[0],a[3]-a[1]);else if(r=="poly"){e.moveTo(a[0],a[1]);for(r=2;r<a.length;r+=2)e.lineTo(a[r],a[r+1])}else r=="circ"&&e.arc(a[0],a[1],a[2],0,Math.PI*2,false);e.closePath();if(b.fill){e.fillStyle=z(b.fillColor,b.fillOpacity);e.fill()}if(b.stroke){e.strokeStyle=z(b.strokeColor,b.strokeOpacity);e.lineWidth=b.strokeWidth;e.stroke()}b.fade&&s(m,0)};q=
function(m){m.getContext("2d").clearRect(0,0,m.width,m.height)}}else{i=function(m){return d('<var style="zoom:1;overflow:hidden;display:block;width:'+m.width+"px;height:"+m.height+'px;"></var>').get(0)};n=function(m,r,a,b,e){var g,f,c;g='<v:fill color="#'+b.fillColor+'" opacity="'+(b.fill?b.fillOpacity:0)+'" />';f=b.stroke?'strokeweight="'+b.strokeWidth+'" stroked="t" strokecolor="#'+b.strokeColor+'"':'stroked="f"';b='<v:stroke opacity="'+b.strokeOpacity+'"/>';if(r=="rect")c=d('<v:rect name="'+e+
'" filled="t" '+f+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+a[0]+"px;top:"+a[1]+"px;width:"+(a[2]-a[0])+"px;height:"+(a[3]-a[1])+'px;"></v:rect>');else if(r=="poly")c=d('<v:shape name="'+e+'" filled="t" '+f+' coordorigin="0,0" coordsize="'+m.width+","+m.height+'" path="m '+a[0]+","+a[1]+" l "+a.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+m.width+"px;height:"+m.height+'px;"></v:shape>');else if(r=="circ")c=
d('<v:oval name="'+e+'" filled="t" '+f+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(a[0]-a[2])+"px;top:"+(a[1]-a[2])+"px;width:"+a[2]*2+"px;height:"+a[2]*2+'px;"></v:oval>');c.get(0).innerHTML=g+b;d(m).append(c)};q=function(m){d(m).find("[name=highlighted]").remove()}}k=function(m){var r,a=m.getAttribute("coords").split(",");for(r=0;r<a.length;r++)a[r]=parseFloat(a[r]);return[m.getAttribute("shape").toLowerCase().substr(0,4),a]};B=function(m,r){var a=d(m);return d.extend({},
r,d.metadata?a.metadata():false,a.data("maphilight"))};w=function(m){if(!m.complete)return false;if(typeof m.naturalWidth!="undefined"&&m.naturalWidth==0)return false;return true};h={position:"absolute",left:0,top:0,padding:0,border:0};var C=false;d.fn.maphilight=function(m){m=d.extend({},d.fn.maphilight.defaults,m);if(d.browser.msie&&!C){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var r=document.createStyleSheet();d.each(["shape","rect","oval","circ","fill","stroke","imagedata",
"group","textbox"],function(){r.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")});C=true}return this.each(function(){var a,b,e,g,f,c;a=d(this);if(!w(this))return window.setTimeout(function(){a.maphilight(m)},200);e=d.extend({},m,d.metadata?a.metadata():false,a.data("maphilight"));b=a.get(0).getAttribute("usemap");g=d('map[name="'+b.substr(1)+'"]');if(a.is("img")&&b&&g.size()>0){if(a.hasClass("maphilighted")){b=a.parent();a.insertBefore(b);b.remove()}b=d("<div></div>").css({display:"block",
background:"url("+this.src+")",position:"relative",padding:0,width:this.width,height:this.height});if(e.wrapClass)e.wrapClass===true?b.addClass(d(this).attr("class")):b.addClass(e.wrapClass);a.before(b).css("opacity",0).css(h).remove();d.browser.msie&&a.css("filter","Alpha(opacity=0)");b.append(a);f=i(this);d(f).css(h);f.height=this.height;f.width=this.width;b=function(){var l,j;j=B(this,e);if(!j.neverOn&&!j.alwaysOn){l=k(this);n(f,l[0],l[1],j,"highlighted");if(j.groupBy&&d(this).attr(j.groupBy)){var t=
this;g.find("area["+j.groupBy+"="+d(this).attr(j.groupBy)+"]").each(function(){if(this!=t){var x=B(this,e);if(!x.neverOn&&!x.alwaysOn){var y=k(this);n(f,y[0],y[1],x,"highlighted")}}})}}};if(e.alwaysOn)d(g).find("area[coords]").each(b);else{d(g).find("area[coords]").each(function(){var l,j;j=B(this,e);if(j.alwaysOn){if(!c){c=i(a.get());d(c).css(h);c.width=a.width();c.height=a.height();a.before(c)}l=k(this);d.browser.msie?n(f,l[0],l[1],j,""):n(c,l[0],l[1],j,"")}});d(g).find("area[coords]").mouseover(b).mouseout(function(){q(f)})}a.before(f);
a.addClass("maphilighted")}})};d.fn.maphilight.defaults={fill:true,fillColor:"000000",fillOpacity:0.2,stroke:true,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:true,alwaysOn:false,neverOn:false,groupBy:false,wrapClass:true}}else d.fn.maphilight=function(){return this}})(jQuery);
(function(d){function o(a){d.fn.cycle.debug&&i(a)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function n(a,b,e){function g(c,l,j){if(!c&&l===true){c=d(j).data("cycle.opts");if(!c){i("options not found, can not resume");return false}if(j.cycleTimeout){clearTimeout(j.cycleTimeout);j.cycleTimeout=0}w(c.elements,c,1,!c.backwards)}}if(a.cycleStop==undefined)a.cycleStop=0;if(b===undefined||b===null)b={};if(b.constructor==String){switch(b){case "destroy":case "stop":e=
d(a).data("cycle.opts");if(!e)return false;a.cycleStop++;a.cycleTimeout&&clearTimeout(a.cycleTimeout);a.cycleTimeout=0;d(a).removeData("cycle.opts");b=="destroy"&&k(e);return false;case "toggle":a.cyclePause=a.cyclePause===1?0:1;g(a.cyclePause,e,a);return false;case "pause":a.cyclePause=1;return false;case "resume":a.cyclePause=0;g(false,e,a);return false;case "prev":case "next":e=d(a).data("cycle.opts");if(!e){i('options not found, "prev/next" ignored');return false}d.fn.cycle[b](e);return false;
default:b={fx:b}}return b}else if(b.constructor==Number){var f=b;b=d(a).data("cycle.opts");if(!b){i("options not found, can not advance slide");return false}if(f<0||f>=b.elements.length){i("invalid slide index: "+f);return false}b.nextSlide=f;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof e=="string")b.oneTimeFx=e;w(b.elements,b,1,f>=b.currSlide);return false}return b}function q(a,b){if(!d.support.opacity&&b.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(e){}}
function k(a){a.next&&d(a.next).unbind(a.prevNextEvent);a.prev&&d(a.prev).unbind(a.prevNextEvent);if(a.pager||a.pagerAnchorBuilder)d.each(a.pagerAnchors||[],function(){this.unbind().remove()});a.pagerAnchors=null;a.destroy&&a.destroy(a)}function h(a,b,e,g,f){var c=d.extend({},d.fn.cycle.defaults,g||{},d.metadata?a.metadata():d.meta?a.data():{});if(c.autostop)c.countdown=c.autostopCount||e.length;var l=a[0];a.data("cycle.opts",c);c.$cont=a;c.stopCount=l.cycleStop;c.elements=e;c.before=c.before?[c.before]:
[];c.after=c.after?[c.after]:[];!d.support.opacity&&c.cleartype&&c.after.push(function(){q(this,c)});c.continuous&&c.after.push(function(){w(e,c,0,!c.backwards)});s(c);!d.support.opacity&&c.cleartype&&!c.cleartypeNoBg&&r(b);a.css("position")=="static"&&a.css("position","relative");c.width&&a.width(c.width);c.height&&c.height!="auto"&&a.height(c.height);if(c.startingSlide)c.startingSlide=parseInt(c.startingSlide);else if(c.backwards)c.startingSlide=e.length-1;if(c.random){c.randomMap=[];for(l=0;l<
e.length;l++)c.randomMap.push(l);c.randomMap.sort(function(){return Math.random()-0.5});c.randomIndex=1;c.startingSlide=c.randomMap[1]}else if(c.startingSlide>=e.length)c.startingSlide=0;c.currSlide=c.startingSlide||0;var j=c.startingSlide;b.css({position:"absolute",top:0,left:0}).hide().each(function(u){u=c.backwards?j?u<=j?e.length+(u-j):j-u:e.length-u:j?u>=j?e.length-(u-j):j-u:e.length-u;d(this).css("z-index",u)});d(e[j]).css("opacity",1).show();q(e[j],c);c.fit&&c.width&&b.width(c.width);c.fit&&
c.height&&c.height!="auto"&&b.height(c.height);if(c.containerResize&&!a.innerHeight()){for(var t=l=0,x=0;x<e.length;x++){var y=d(e[x]),A=y[0],D=y.outerWidth(),E=y.outerHeight();D||(D=A.offsetWidth||A.width||y.attr("width"));E||(E=A.offsetHeight||A.height||y.attr("height"));l=D>l?D:l;t=E>t?E:t}l>0&&t>0&&a.css({width:l+"px",height:t+"px"})}c.pause&&a.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(v(c)===false)return false;var F=false;g.requeueAttempts=g.requeueAttempts||0;b.each(function(){var u=
d(this);this.cycleH=c.fit&&c.height?c.height:u.height()||this.offsetHeight||this.height||u.attr("height")||0;this.cycleW=c.fit&&c.width?c.width:u.width()||this.offsetWidth||this.width||u.attr("width")||0;if(u.is("img")){u=d.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var G=d.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,H=this.cycleH==0&&this.cycleW==0&&!this.complete;if(d.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||
u||G||H)if(f.s&&c.requeueOnImageNotLoaded&&++g.requeueAttempts<100){i(g.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){d(f.s,f.c).cycle(g)},c.requeueTimeout);F=true;return false}else i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(F)return false;c.cssBefore=c.cssBefore||{};c.cssAfter=c.cssAfter||{};c.cssFirst=c.cssFirst||{};c.animIn=c.animIn||{};c.animOut=c.animOut||{};b.not(":eq("+
j+")").css(c.cssBefore);d(b[j]).css(c.cssFirst);if(c.timeout){c.timeout=parseInt(c.timeout);if(c.speed.constructor==String)c.speed=d.fx.speeds[c.speed]||parseInt(c.speed);c.sync||(c.speed/=2);for(l=c.fx=="none"?0:c.fx=="shuffle"?500:250;c.timeout-c.speed<l;)c.timeout+=c.speed}if(c.easing)c.easeIn=c.easeOut=c.easing;if(!c.speedIn)c.speedIn=c.speed;if(!c.speedOut)c.speedOut=c.speed;c.slideCount=e.length;c.currSlide=c.lastSlide=j;if(c.random){if(++c.randomIndex==e.length)c.randomIndex=0;c.nextSlide=
c.randomMap[c.randomIndex]}else c.nextSlide=c.backwards?c.startingSlide==0?e.length-1:c.startingSlide-1:c.startingSlide>=e.length-1?0:c.startingSlide+1;if(!c.multiFx){l=d.fn.cycle.transitions[c.fx];if(d.isFunction(l))l(a,b,c);else if(c.fx!="custom"&&!c.multiFx){i("unknown transition: "+c.fx,"; slideshow terminating");return false}}a=b[j];c.before.length&&c.before[0].apply(a,[a,a,c,true]);c.after.length&&c.after[0].apply(a,[a,a,c,true]);c.next&&d(c.next).bind(c.prevNextEvent,function(){return C(c,
1)});c.prev&&d(c.prev).bind(c.prevNextEvent,function(){return C(c,0)});if(c.pager||c.pagerAnchorBuilder)m(e,c);z(c,e);return c}function s(a){a.original={before:[],after:[]};a.original.cssBefore=d.extend({},a.cssBefore);a.original.cssAfter=d.extend({},a.cssAfter);a.original.animIn=d.extend({},a.animIn);a.original.animOut=d.extend({},a.animOut);d.each(a.before,function(){a.original.before.push(this)});d.each(a.after,function(){a.original.after.push(this)})}function v(a){var b,e,g=d.fn.cycle.transitions;
if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(b=0;b<a.fxs.length;b++){var f=a.fxs[b];e=g[f];if(!e||!g.hasOwnProperty(f)||!d.isFunction(e)){i("discarding unknown transition: ",f);a.fxs.splice(b,1);b--}}if(!a.fxs.length){i("No valid transitions named; slideshow terminating.");return false}}else if(a.fx=="all"){a.multiFx=true;a.fxs=[];for(p in g){e=g[p];g.hasOwnProperty(p)&&d.isFunction(e)&&a.fxs.push(p)}}if(a.multiFx&&a.randomizeEffects){e=Math.floor(Math.random()*
20)+30;for(b=0;b<e;b++)a.fxs.push(a.fxs.splice(Math.floor(Math.random()*a.fxs.length),1)[0]);o("randomized fx sequence: ",a.fxs)}return true}function z(a,b){a.addSlide=function(e,g){var f=d(e),c=f[0];a.autostopCount||a.countdown++;b[g?"unshift":"push"](c);if(a.els)a.els[g?"unshift":"push"](c);a.slideCount=b.length;f.css("position","absolute");f[g?"prependTo":"appendTo"](a.$cont);if(g){a.currSlide++;a.nextSlide++}!d.support.opacity&&a.cleartype&&!a.cleartypeNoBg&&r(f);a.fit&&a.width&&f.width(a.width);
a.fit&&a.height&&a.height!="auto"&&f.height(a.height);c.cycleH=a.fit&&a.height?a.height:f.height();c.cycleW=a.fit&&a.width?a.width:f.width();f.css(a.cssBefore);if(a.pager||a.pagerAnchorBuilder)d.fn.cycle.createPagerAnchor(b.length-1,c,d(a.pager),b,a);d.isFunction(a.onAddSlide)?a.onAddSlide(f):f.hide()}}function w(a,b,e,g){if(e&&b.busy&&b.manualTrump){o("manualTrump in go(), stopping active transition");d(a).stop(true,true);b.busy=0}if(b.busy)o("transition active, ignoring new tx request");else{var f=
b.$cont[0],c=a[b.currSlide],l=a[b.nextSlide];if(!(f.cycleStop!=b.stopCount||f.cycleTimeout===0&&!e))if(!e&&!f.cyclePause&&!b.bounce&&(b.autostop&&--b.countdown<=0||b.nowrap&&!b.random&&b.nextSlide<b.currSlide))b.end&&b.end(b);else{var j=false;if((e||!f.cyclePause)&&b.nextSlide!=b.currSlide){j=true;var t=b.fx;c.cycleH=c.cycleH||d(c).height();c.cycleW=c.cycleW||d(c).width();l.cycleH=l.cycleH||d(l).height();l.cycleW=l.cycleW||d(l).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length)b.lastFx=
0;t=b.fxs[b.lastFx];b.currFx=t}if(b.oneTimeFx){t=b.oneTimeFx;b.oneTimeFx=null}d.fn.cycle.resetState(b,t);b.before.length&&d.each(b.before,function(y,A){f.cycleStop==b.stopCount&&A.apply(l,[c,l,b,g])});var x=function(){b.busy=0;d.each(b.after,function(y,A){f.cycleStop==b.stopCount&&A.apply(l,[c,l,b,g])})};o("tx firing("+t+"); currSlide: "+b.currSlide+"; nextSlide: "+b.nextSlide);b.busy=1;if(b.fxFn)b.fxFn(c,l,b,x,g,e&&b.fastOnEvent);else d.isFunction(d.fn.cycle[b.fx])?d.fn.cycle[b.fx](c,l,b,x,g,e&&
b.fastOnEvent):d.fn.cycle.custom(c,l,b,x,g,e&&b.fastOnEvent)}if(j||b.nextSlide==b.currSlide){b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==a.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex];if(b.nextSlide==b.currSlide)b.nextSlide=b.currSlide==b.slideCount-1?0:b.currSlide+1}else if(b.backwards)if((e=b.nextSlide-1<0)&&b.bounce){b.backwards=!b.backwards;b.nextSlide=1;b.currSlide=0}else{b.nextSlide=e?a.length-1:b.nextSlide-1;b.currSlide=e?0:b.nextSlide+
1}else if((e=b.nextSlide+1==a.length)&&b.bounce){b.backwards=!b.backwards;b.nextSlide=a.length-2;b.currSlide=a.length-1}else{b.nextSlide=e?0:b.nextSlide+1;b.currSlide=e?a.length-1:b.nextSlide-1}}j&&b.pager&&b.updateActivePagerLink(b.pager,b.currSlide,b.activePagerClass);j=0;if(b.timeout&&!b.continuous)j=B(a[b.currSlide],a[b.nextSlide],b,g);else if(b.continuous&&f.cyclePause)j=10;if(j>0)f.cycleTimeout=setTimeout(function(){w(a,b,0,!b.backwards)},j)}}}function B(a,b,e,g){if(e.timeoutFn){for(a=e.timeoutFn.call(a,
a,b,e,g);e.fx!="none"&&a-e.speed<250;)a+=e.speed;o("calculated timeout: "+a+"; speed: "+e.speed);if(a!==false)return a}return e.timeout}function C(a,b){var e=b?1:-1,g=a.elements,f=a.$cont[0],c=f.cycleTimeout;if(c){clearTimeout(c);f.cycleTimeout=0}if(a.random&&e<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=g.length-2;else if(a.randomIndex==-1)a.randomIndex=g.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random)a.nextSlide=a.randomMap[a.randomIndex];else{a.nextSlide=a.currSlide+
e;if(a.nextSlide<0){if(a.nowrap)return false;a.nextSlide=g.length-1}else if(a.nextSlide>=g.length){if(a.nowrap)return false;a.nextSlide=0}}f=a.onPrevNextEvent||a.prevNextClick;d.isFunction(f)&&f(e>0,a.nextSlide,g[a.nextSlide]);w(g,a,1,b);return false}function m(a,b){var e=d(b.pager);d.each(a,function(g,f){d.fn.cycle.createPagerAnchor(g,f,e,a,b)});b.updateActivePagerLink(b.pager,b.startingSlide,b.activePagerClass)}function r(a){function b(g){g=parseInt(g).toString(16);return g.length<2?"0"+g:g}function e(g){for(;g&&
g.nodeName.toLowerCase()!="html";g=g.parentNode){var f=d.css(g,"background-color");if(f&&f.indexOf("rgb")>=0){g=f.match(/\d+/g);return"#"+b(g[0])+b(g[1])+b(g[2])}if(f&&f!="transparent")return f}return"#ffffff"}o("applying clearType background-color hack");a.each(function(){d(this).css("background-color",e(this))})}if(d.support==undefined)d.support={opacity:!d.browser.msie};d.expr[":"].paused=function(a){return a.cyclePause};d.fn.cycle=function(a,b){var e={s:this.selector,c:this.context};if(this.length===
0&&a!="stop"){if(!d.isReady&&e.s){i("DOM not ready, queuing slideshow");d(function(){d(e.s,e.c).cycle(a,b)});return this}i("terminating; zero elements found by selector"+(d.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var g=n(this,a,b);if(g!==false){g.updateActivePagerLink=g.updateActivePagerLink||d.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var f=d(this),c=g.slideExpr?d(g.slideExpr,this):f.children(),
l=c.get();if(l.length<2)i("terminating; too few slides: "+l.length);else{var j=h(f,c,l,g,e);if(j!==false)if(f=j.continuous?10:B(l[j.currSlide],l[j.nextSlide],j,!j.backwards)){f+=j.delay||0;if(f<10)f=10;o("first timeout: "+f);this.cycleTimeout=setTimeout(function(){w(l,j,0,!g.backwards)},f)}}}})};d.fn.cycle.resetState=function(a,b){b=b||a.fx;a.before=[];a.after=[];a.cssBefore=d.extend({},a.original.cssBefore);a.cssAfter=d.extend({},a.original.cssAfter);a.animIn=d.extend({},a.original.animIn);a.animOut=
d.extend({},a.original.animOut);a.fxFn=null;d.each(a.original.before,function(){a.before.push(this)});d.each(a.original.after,function(){a.after.push(this)});var e=d.fn.cycle.transitions[b];d.isFunction(e)&&e(a.$cont,d(a.elements),a)};d.fn.cycle.updateActivePagerLink=function(a,b,e){d(a).each(function(){d(this).children().removeClass(e).eq(b).addClass(e)})};d.fn.cycle.next=function(a){C(a,1)};d.fn.cycle.prev=function(a){C(a,0)};d.fn.cycle.createPagerAnchor=function(a,b,e,g,f){if(d.isFunction(f.pagerAnchorBuilder)){b=
f.pagerAnchorBuilder(a,b);o("pagerAnchorBuilder("+a+", el) returned: "+b)}else b='<a href="#">'+(a+1)+"</a>";if(b){var c=d(b);if(c.parents("body").length===0){var l=[];if(e.length>1){e.each(function(){var j=c.clone(true);d(this).append(j);l.push(j[0])});c=d(l)}else c.appendTo(e)}f.pagerAnchors=f.pagerAnchors||[];f.pagerAnchors.push(c);c.bind(f.pagerEvent,function(j){j.preventDefault();f.nextSlide=a;j=f.$cont[0];var t=j.cycleTimeout;if(t){clearTimeout(t);j.cycleTimeout=0}j=f.onPagerEvent||f.pagerClick;
d.isFunction(j)&&j(f.nextSlide,g[f.nextSlide]);w(g,f,1,f.currSlide<a)});!/^click/.test(f.pagerEvent)&&!f.allowPagerClickBubble&&c.bind("click.cycle",function(){return false});f.pauseOnPagerHover&&c.hover(function(){f.$cont[0].cyclePause++},function(){f.$cont[0].cyclePause--})}};d.fn.cycle.hopsFromLast=function(a,b){var e=a.lastSlide,g=a.currSlide;return b?g>e?g-e:a.slideCount-e:g<e?e-g:e+a.slideCount-g};d.fn.cycle.commonReset=function(a,b,e,g,f,c){d(e.elements).not(a).hide();if(typeof e.cssBefore.opacity==
"undefined")e.cssBefore.opacity=1;e.cssBefore.display="block";if(e.slideResize&&g!==false&&b.cycleW>0)e.cssBefore.width=b.cycleW;if(e.slideResize&&f!==false&&b.cycleH>0)e.cssBefore.height=b.cycleH;e.cssAfter=e.cssAfter||{};e.cssAfter.display="none";d(a).css("zIndex",e.slideCount+(c===true?1:0));d(b).css("zIndex",e.slideCount+(c===true?0:1))};d.fn.cycle.custom=function(a,b,e,g,f,c){var l=d(a),j=d(b),t=e.speedIn;a=e.speedOut;var x=e.easeIn;b=e.easeOut;j.css(e.cssBefore);if(c){t=typeof c=="number"?a=
c:a=1;x=b=null}var y=function(){j.animate(e.animIn,t,x,function(){g()})};l.animate(e.animOut,a,b,function(){l.css(e.cssAfter);e.sync||y()});e.sync&&y()};d.fn.cycle.transitions={fade:function(a,b,e){b.not(":eq("+e.currSlide+")").css("opacity",0);e.before.push(function(g,f,c){d.fn.cycle.commonReset(g,f,c);c.cssBefore.opacity=0});e.animIn={opacity:1};e.animOut={opacity:0};e.cssBefore={top:0,left:0}}};d.fn.cycle.ver=function(){return"2.99"};d.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,
allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!d.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",
random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1E3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4E3,timeoutFn:null,updateActivePagerLink:null}})(jQuery);
jQuery.cookie=function(d,o,i){if(typeof o!="undefined"){i=i||{};if(o===null){o="";i.expires=-1}var n="";if(i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)){if(typeof i.expires=="number"){n=new Date;n.setTime(n.getTime()+i.expires*24*60*60*1E3)}else n=i.expires;n="; expires="+n.toUTCString()}var q=i.path?"; path="+i.path:"",k=i.domain?"; domain="+i.domain:"";i=i.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(o),n,q,k,i].join("")}else{o=null;if(document.cookie&&document.cookie!=
""){i=document.cookie.split(";");for(n=0;n<i.length;n++){q=jQuery.trim(i[n]);if(q.substring(0,d.length+1)==d+"="){o=decodeURIComponent(q.substring(d.length+1));break}}}return o}};
var ELP=function(){var d=false;return{Run:function(){var o,i;if(!d){d=true;o="http://a.elearningportal.com.au/a.aspx?c=";jQuery.cookie("t","t");if(jQuery.cookie("t")){jQuery.cookie("t",null);o+="1"}else o+="0";if(i=jQuery.cookie("elp.a"))o+="&a="+encodeURIComponent(i);o+="&p="+encodeURIComponent(window.location);if(document.referrer)o+="&r="+encodeURIComponent(document.referrer);jQuery("body").append('<script src="'+o+'" defer="defer"><\/script>')}}}}();jQuery(function(){ELP.Run()});
$(function(){$.fn.cycle.transitions.none=function(q,k,h){h.fxFn=function(s,v,z,w){$(v).show();$(s).hide();w()}};$("a[href='http://www.rsanow.com.au']").attr("href","#region").attr("rel","history");$("a[rel='external']").attr("target","_blank");$("a[href='#faq']").attr("title","Frequently Asked Questions");$("#certtabs li").each(function(){var q,k,h;q=$(this).children("h3");k=q.text();if(k!=""){if(k=="Certificate in just 3 Hours")k="National Certificate in just 3 Hours **";h=$(this).children(".tip");
h.children(".icon").after("<h4>"+k+"</h4>");$.support.opacity?$(this).hover(function(){h.stop(true,true).fadeIn(1E3);GoogleTrackPageview("/certtab/"+q.text())},function(){h.stop(true,true).hide()}):$(this).hover(function(){h.show();GoogleTrackPageview("/certtab/"+q.text())},function(){h.hide()})}});try{$("img[usemap]").maphilight({fill:true,fillColor:"00CCFF",fillOpacity:0.85,stroke:true,strokeColor:"FFFFEE",strokeOpacity:1,strokeWidth:2,fade:true,alwaysOn:false})}catch(d){}$.each($("#select-region-map area"),
function(){$(this).click(function(){$.history.load($(this).attr("href").substr(1));return false});$(this).hover(function(){},function(){})});$("a[rel='history']").live("click",function(){var q=this.href;q=q.replace(/^.*#/,"");$.history.load(q);return false});var o=1;$("a[rel='cbfull']").each(function(){$(this).removeAttr("rel").colorbox({width:"100%",height:"100%",opacity:0.6,overlayClose:false,iframe:true,href:$(this).attr("href"),rel:o++}).attr("href","#")});$("a.foxycart").each(function(){$(this).removeAttr("rel").colorbox({width:"650px",
height:"450px",opacity:0.6,iframe:true,rel:"nofollow"})});$("a[href^='/contact.php']").each(function(){$(this).colorbox({width:"520px",height:"440px",opacity:0.6,iframe:true,rel:o++})});$("a[href*='chat.rsanow.com.au']").live("click",function(){window.open($(this).attr("href"),"","width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes");return false});setTimeout(CheckLiveChat,4E3);$("#pageflip").hover(function(){$("#pageflip img , .msg_block").stop().animate({width:"307px",
height:"319px"},500)},function(){$("#pageflip img").stop().animate({width:"50px",height:"52px"},220);$(".msg_block").stop().animate({width:"50px",height:"50px"},200)});try{$("#quotes").cycle({cleartypeNoBg:true});$("#photos .inner").append('<img src="front/img/photo-02.jpg" />').append('<img src="front/img/photo-06.jpg" />').append('<img src="front/img/photo-04.jpg" />').cycle();var i=$("#stamp");i.append('<img src="front/img/stamp-sale.png" />').append('<img src="front/img/stamp-2012.png" />').append('<img src="front/img/stamp-fourstates.png" />').append('<img src="front/img/stamp-pass.png" />').append('<img src="front/img/stamp-safe.png" />').append('<img src="front/img/stamp-24x7.png" />');
$.support.opacity?i.cycle():i.cycle({fx:"none"})}catch(n){}$.history.init(OnPageLoad,"index.htm");setTimeout(function(){var q=0;$("#page-faq").load("index_faq.htm",function(){$("#page-faq-inner h4").each(function(){var k=$(this);k.prepend(++q+". ");k.text();var h=k.next();h.attr("id","faq-"+q);h.prepend(k.clone());k.colorbox({width:"550px",opacity:0.6,overlayClose:true,inline:true,href:"#"+h.attr("id"),rel:"faq",current:"Question: {current} of {total}"});k.css("cursor","pointer");h.wrap('<div style="display:none;"></div>')})})},
1E3)});$.easing.elasout=function(d,o,i,n,q){d=1.70158;var k=0,h=n;if(o==0)return i;if((o/=q)==1)return i+n;k||(k=q*0.3);if(h<Math.abs(n)){h=n;d=k/4}else d=k/(2*Math.PI)*Math.asin(n/h);return h*Math.pow(2,-10*o)*Math.sin((o*q-d)*2*Math.PI/k)+n+i};var _Loaded=false;
function OnPageLoad(d){if(d&&$.browser.msie)d=encodeURIComponent(d);var o=d,i=["vic","vic-na","wa","sa","nt","qld","act","nsw","tas"],n;switch(d){case "wa":case "sa":case "nt":case "qld":case "vic":n="#page-buy";break;case "vic-na":d="vic";case "nsw":case "act":case "tas":n="#page-offline";$("#page-offline-booking").empty().hide();$("#page-offline-intro").show();break;case "vic-offline":case "nsw-offline":case "tas-offline":case "act-offline":d=d.substring(0,3);n="#page-offline";$("#page-offline-booking").empty().html('<iframe src="test-booking/index.htm" frameborder="0" style="width:660px; height:520px;"></iframe>');
$("#page-offline-intro").slideUp(500,function(){$("#page-offline-booking").fadeIn(1E3)});break;case "contact":case "faq":n="#page-"+d;break;default:d="region";n="#page-region"}n=="#page-region"?$("#begin").show():$("#begin").hide();if(n=="#page-buy"||n=="#page-offline"){$(".buy-region").text($('#select-region-map area[href="#'+d+'"]').attr("alt"));for(l_StateIndex in i){l_State=i[l_StateIndex];if(d==l_State){$(".order-"+l_State).show();$(".order-not-"+l_State).hide()}else{$(".order-"+l_State).hide();
$(".order-not-"+l_State).show()}}switch(d){case "wa":case "sa":case "nt":case "vic":$(".order-nat").show();break;default:$(".order-nat").hide()}}if(_Loaded){n=="#page-faq"&&$("html, body").attr("scrollTop",$("#certificate").offset().top);$("#pages").animate({left:Neg($(n).css("left")),top:Neg($(n).css("top"))},750)}else{$("#pages").css("left",Neg($(n).css("left")));$("#pages").css("top",Neg($(n).css("top")))}_Loaded?GoogleTrackPageview("/home/"+o):GoogleTrackPageview("/");_Loaded=true}
function GoogleTrackPageview(d){try{var o=_gat._getTracker("UA-12331607-1");o._setDomainName("none");o._setAllowLinker(true);d=="/"?o._trackPageview():o._trackPageview(d)}catch(i){}}function CheckLiveChat(){$.get("/chatstatus.php",function(d){d!="online"?setTimeout(CheckLiveChat,3E5):ShowLiveChat()})}
function ShowLiveChat(){$.gritter.add({title:"How may I help you?",text:'<p>Operators are online and standing by to assist you.</p><p><br /><a class="livechat" rel="noindex, nofollow" href="http://chat.rsanow.com.au/livezilla/livezilla.php">Start Live Chat</a> | <a rel="history" href="#faq">FAQ</a></p>',image:"http://www.rsanow.com.au/front/img/chatreqtall.png",sticky:true})}function Neg(d){return d.charAt(0)=="-"?d.substring(1,d.length):"-"+d};

