/*testimonial display*/
$(document).ready(function(){$("#testimonials li").hide().eq(0).show();(function a(){$("#testimonials li:visible").delay(5E3).fadeOut("slow",function(){$(this).appendTo("#testimonials ul");$("#testimonials li:first").fadeIn("slow",function(){a()})})})()});
/* ************************************************************************* */
					/* ANIMATED PRELOADER EFFECT */
/* ************************************************************************* */
 $(document).ready(function () {
	$('.attachment-fadeIn').hide();//hide all the images on the page
	});

	var i = 0;//initialize
	var int=0;//Internet Explorer Fix
	$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
		int = setInterval("doThis(i)",500);
	});

	function doThis() {
		var images = $('.attachment-fadeIn').length;//count the number of images on the page
		if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
			delete int;
		}
		$('.attachment-fadeIn:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
		i++;//add 1 to the count
	} 


/* Image Rollover Fade Effect */
$(document).ready(
	function(){
		$('.fade').hover(
			function(){
				$(this).children().first().children().first().stop(true);
				$(this).children().first().children().first().fadeTo('slow', .65);
			},
			function(){
				$(this).children().first().children().first().stop(true);
				$(this).children().first().children().first().fadeTo('slow', 0);
			}
		)
	}
)
$(function(){$.fn.scrollToTop=function(a){var b=a.speed?a.speed:"slow",c=a.ease?a.ease:"jswing",d=a.start?a.start:"0",f=$(this);$(this).hide().removeAttr("href");$(window).scrollTop()>d&&$(this).fadeIn("slow");$(window).scroll(function(){$(window).scrollTop()>d?$(f).fadeIn("slow"):$(f).fadeOut("slow")});$(this).click(function(){$("html, body").animate({scrollTop:"0px"},b,c)})}});
(function(a){a.fn.superfish=function(c){var d=a.fn.superfish,f=d.c,i=a(['<span class="',f.arrowClass,'"> &#187;</span>'].join("")),h=function(){var w=a(this),A=s(w);clearTimeout(A.sfTimer);w.showSuperfishUl().siblings().hideSuperfishUl()},y=function(){var w=a(this),A=s(w),u=d.op;clearTimeout(A.sfTimer);A.sfTimer=setTimeout(function(){u.retainPath=a.inArray(w[0],u.$path)>-1;w.hideSuperfishUl();u.$path.length&&w.parents(["li.",u.hoverClass].join("")).length<1&&h.call(u.$path)},u.delay)},s=function(w){w=
w.parents(["ul.",f.menuClass,":first"].join(""))[0];d.op=d.o[w.serial];return w};return this.each(function(){var w=this.serial=d.o.length,A=a.extend({},d.defaults,c);A.$path=a("li."+A.pathClass,this).slice(0,A.pathLevels).each(function(){a(this).addClass([A.hoverClass,f.bcClass].join(" ")).filter("li:has(ul)").removeClass(A.pathClass)});d.o[w]=d.op=A;a("li:has(ul)",this)[a.fn.hoverIntent&&!A.disableHI?"hoverIntent":"hover"](h,y).each(function(){A.autoArrows&&a(">a:first-child",this).addClass(f.anchorClass).append(i.clone())}).not("."+
f.bcClass).hideSuperfishUl();var u=a("a",this);u.each(function(t){var aa=u.eq(t).parents("li");u.eq(t).focus(function(){h.call(aa)}).blur(function(){y.call(aa)})});A.onInit.call(this)}).each(function(){var w=[f.menuClass];d.op.dropShadows&&!(a.browser.msie&&a.browser.version<7)&&w.push(f.shadowClass);a(this).addClass(w.join(" "))})};var b=a.fn.superfish;b.o=[];b.op={};b.IE7fix=function(){var c=b.op;a.browser.msie&&a.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined&&this.toggleClass(b.c.shadowClass+
"-off")};b.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};b.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show",height:"show"},speed:"normal",autoArrows:false,dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var c=b.op,d=c.retainPath===true?c.$path:
"";c.retainPath=false;d=a(["li.",c.hoverClass].join(""),this).add(this).not(d).removeClass(c.hoverClass).find(">ul").hide().css("visibility","hidden");c.onHide.call(d);return this},showSuperfishUl:function(){var c=b.op,d=this.addClass(c.hoverClass).find(">ul:hidden").css("visibility","visible");b.IE7fix.call(d);c.onBeforeShow.call(d);d.animate(c.animation,c.speed,function(){b.IE7fix.call(d);c.onShow.call(d)});return this}})})(jQuery);
(function(a){a.fn.hoverIntent=function(b,c){var d={sensitivity:7,interval:100,timeout:0};d=a.extend(d,c?{over:b,out:c}:b);var f,i,h,y,s=function(u){f=u.pageX;i=u.pageY},w=function(u,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t);if(Math.abs(h-f)+Math.abs(y-i)<d.sensitivity){a(t).unbind("mousemove",s);t.hoverIntent_s=1;return d.over.apply(t,[u])}else{h=f;y=i;t.hoverIntent_t=setTimeout(function(){w(u,t)},d.interval)}},A=function(u){for(var t=(u.type=="mouseover"?u.fromElement:u.toElement)||u.relatedTarget;t&&
t!=this;)try{t=t.parentNode}catch(aa){t=this}if(t==this)return false;var q=jQuery.extend({},u),j=this;if(j.hoverIntent_t)j.hoverIntent_t=clearTimeout(j.hoverIntent_t);if(u.type=="mouseover"){h=q.pageX;y=q.pageY;a(j).bind("mousemove",s);if(j.hoverIntent_s!=1)j.hoverIntent_t=setTimeout(function(){w(q,j)},d.interval)}else{a(j).unbind("mousemove",s);if(j.hoverIntent_s==1)j.hoverIntent_t=setTimeout(function(){j.hoverIntent_t=clearTimeout(j.hoverIntent_t);j.hoverIntent_s=0;d.out.apply(j,[q])},d.timeout)}};
return this.mouseover(A).mouseout(A)}})(jQuery);
(function(a){function b(c,d){c=c.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var f=RegExp("[\\?&]"+c+"=([^&#]*)").exec(d);return f==null?"":f[1]}a.prettyPhoto={version:"2.5.6"};a.fn.prettyPhoto=function(c){function d(o){j.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");j.find(".pp_fade").fadeOut(c.animationSpeed,function(){a(".pp_loaderIcon").show();o&&o()});R.fadeOut(c.animationSpeed)}function f(o){if(n==o-1){j.find("a.pp_next").css("visibility","hidden");j.find("a.pp_arrow_next").addClass("disabled").unbind("click")}else{j.find("a.pp_next").css("visibility",
"visible");j.find("a.pp_arrow_next.disabled").removeClass("disabled").bind("click",function(){a.prettyPhoto.changePage("next");return false})}if(n==0){j.find("a.pp_previous").css("visibility","hidden");j.find("a.pp_arrow_previous").addClass("disabled").unbind("click")}else{j.find("a.pp_previous").css("visibility","visible");j.find("a.pp_arrow_previous.disabled").removeClass("disabled").bind("click",function(){a.prettyPhoto.changePage("previous");return false})}o>1?a(".pp_nav").show():a(".pp_nav").hide()}
function i(o,B){hasBeenResized=false;h(o,B);imageWidth=o;imageHeight=B;if((U>S||M>J)&&t&&c.allowresize&&!aa){for(notFitting=hasBeenResized=true;notFitting;){if(U>S){imageWidth=S-200;imageHeight=B/o*imageWidth}else if(M>J){imageHeight=J-200;imageWidth=o/B*imageHeight}else notFitting=false;M=imageHeight;U=imageWidth}h(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(M),containerWidth:Math.floor(U)+40,contentHeight:Math.floor(ha),contentWidth:Math.floor(la),
resized:hasBeenResized}}function h(o,B){o=parseFloat(o);B=parseFloat(B);$pp_details=j.find(".pp_details");$pp_details.width(o);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().appendTo(a("body")).css({position:"absolute",top:-1E4});detailsHeight+=$pp_details.height();detailsHeight=detailsHeight<=34?36:detailsHeight;if(a.browser.msie&&a.browser.version==7)detailsHeight+=8;$pp_details.remove();ha=B+detailsHeight;la=o;
M=ha+R.height()+j.find(".pp_top").height()+j.find(".pp_bottom").height();U=o}function y(o){return o.match(/youtube\.com\/watch/i)?"youtube":o.match(/vimeo\.com/i)?"vimeo":o.indexOf(".mov")!=-1?"quicktime":o.indexOf(".swf")!=-1?"flash":o.indexOf("iframe")!=-1?"iframe":o.substr(0,1)=="#"?"inline":"image"}function s(){if(t){titleHeight=R.height();contentHeight=j.height();contentwidth=j.width();projectedTop=J/2+N.scrollTop-(contentHeight+titleHeight)/2;j.css({top:projectedTop,left:S/2+N.scrollLeft-contentwidth/
2});R.css({top:projectedTop-titleHeight,left:S/2+N.scrollLeft-contentwidth/2+20})}}function w(){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 A(){J=a(window).height();S=a(window).width();
ea.css({height:a(document).height()})}function u(){a("body").append(c.markup);j=a(".pp_pic_holder");R=a(".ppt");ea=a("div.pp_overlay");j.attr("class","pp_pic_holder "+c.theme);ea.css({opacity:0,height:a(document).height()}).bind("click",function(){c.modal||a.prettyPhoto.close()});a("a.pp_close").bind("click",function(){a.prettyPhoto.close();return false});a("a.pp_expand").bind("click",function(){$this=a(this);if($this.hasClass("pp_expand")){$this.removeClass("pp_expand").addClass("pp_contract");t=
false}else{$this.removeClass("pp_contract").addClass("pp_expand");t=true}d(function(){a.prettyPhoto.open(images,titles,descriptions)});j.find(".pp_fade").fadeOut(c.animationSpeed);return false});j.find(".pp_previous, .pp_arrow_previous").bind("click",function(){a.prettyPhoto.changePage("previous");return false});j.find(".pp_next, .pp_arrow_next").bind("click",function(){a.prettyPhoto.changePage("next");return false})}c=jQuery.extend({animationSpeed:"normal",opacity:0.8,showTitle:true,allowresize:true,
default_width:500,default_height:344,counter_separator_label:"/",theme:"light_rounded",hideflash:false,wmode:"opaque",autoplay:true,modal:false,changepicturecallback:function(){},callback:function(){},markup:'<div class="pp_pic_holder"> <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"> <a class="pp_close" href="#">Close</a> <p class="pp_description"></p> <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> <div class="ppt"></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>'},c);if(a.browser.msie&&parseInt(a.browser.version)==6)c.theme="light_square";a(".pp_overlay").size()==0&&u();var t=true,aa=false,q,j,R,ea,ha,la,M,U,J=a(window).height(),S=a(window).width(),n=0,N=w();a(window).scroll(function(){N=w();s();A()});a(window).resize(function(){s();A()});a(document).keydown(function(o){if(j.is(":visible"))switch(o.keyCode){case 37:a.prettyPhoto.changePage("previous");break;case 39:a.prettyPhoto.changePage("next");
break;case 27:c.modal||a.prettyPhoto.close()}});a(this).each(function(){a(this).bind("click",function(){_self=this;theRel=a(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;theGallery=galleryRegExp.exec(theRel);var o=[],B=[],K=[];if(theGallery)a("a[rel*="+theGallery+"]").each(function(wa){if(a(this)[0]===a(_self)[0])n=wa;o.push(a(this).attr("href"));B.push(a(this).find("img").attr("alt"));K.push(a(this).attr("title"))});else{o=a(this).attr("href");B=a(this).find("img").attr("alt")?a(this).find("img").attr("alt"):
"";K=a(this).attr("title")?a(this).attr("title"):""}a.prettyPhoto.open(o,B,K);return false})});a.prettyPhoto.open=function(o,B,K){a.browser.msie&&a.browser.version==6&&a("select").css("visibility","hidden");c.hideflash&&a("object,embed").css("visibility","hidden");images=a.makeArray(o);titles=a.makeArray(B);descriptions=a.makeArray(K);image_set=a(images).size()>0?true:false;f(a(images).size());a(".pp_loaderIcon").show();ea.show().fadeTo(c.animationSpeed,c.opacity);j.find(".currentTextHolder").text(n+
1+c.counter_separator_label+a(images).size());descriptions[n]?j.find(".pp_description").show().html(unescape(descriptions[n])):j.find(".pp_description").hide().text("");if(titles[n]&&c.showTitle){hasTitle=true;R.html(unescape(titles[n]))}else hasTitle=false;movie_width=parseFloat(b("width",images[n]))?b("width",images[n]):c.default_width.toString();movie_height=parseFloat(b("height",images[n]))?b("height",images[n]):c.default_height.toString();if(movie_width.indexOf("%")!=-1||movie_height.indexOf("%")!=
-1){movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-100);movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-100);aa=true}j.fadeIn(function(){imgPreloader="";switch(y(images[n])){case "image":imgPreloader=new Image;nextImage=new Image;if(image_set&&n>a(images).size())nextImage.src=images[n+1];prevImage=new Image;if(image_set&&images[n-1])prevImage.src=images[n-1];j.find("#pp_full_res")[0].innerHTML=c.image_markup;j.find("#fullResImage").attr("src",images[n]);
imgPreloader.onload=function(){q=i(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=images[n];break;case "youtube":q=i(movie_width,movie_height);movie="http://www.youtube.com/v/"+b("v",images[n]);if(c.autoplay)movie+="&autoplay=1";toInject=c.flash_markup.replace(/{width}/g,q.width).replace(/{height}/g,q.height).replace(/{wmode}/g,c.wmode).replace(/{path}/g,
movie);break;case "vimeo":q=i(movie_width,movie_height);movie_id=images[n];movie="http://vimeo.com/moogaloop.swf?clip_id="+movie_id.replace("http://vimeo.com/","");if(c.autoplay)movie+="&autoplay=1";toInject=c.flash_markup.replace(/{width}/g,q.width).replace(/{height}/g,q.height).replace(/{wmode}/g,c.wmode).replace(/{path}/g,movie);break;case "quicktime":q=i(movie_width,movie_height);q.height+=15;q.contentHeight+=15;q.containerHeight+=15;toInject=c.quicktime_markup.replace(/{width}/g,q.width).replace(/{height}/g,
q.height).replace(/{wmode}/g,c.wmode).replace(/{path}/g,images[n]).replace(/{autoplay}/g,c.autoplay);break;case "flash":q=i(movie_width,movie_height);flash_vars=images[n];flash_vars=flash_vars.substring(images[n].indexOf("flashvars")+10,images[n].length);filename=images[n];filename=filename.substring(0,filename.indexOf("?"));toInject=c.flash_markup.replace(/{width}/g,q.width).replace(/{height}/g,q.height).replace(/{wmode}/g,c.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case "iframe":q=
i(movie_width,movie_height);frame_url=images[n];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=c.iframe_markup.replace(/{width}/g,q.width).replace(/{height}/g,q.height).replace(/{path}/g,frame_url);break;case "inline":myClone=a(images[n]).clone().css({width:c.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline clearfix"></div></div>').appendTo(a("body"));q=i(a(myClone).width(),a(myClone).height());a(myClone).remove();toInject=c.inline_markup.replace(/{content}/g,
a(images[n]).html())}if(!imgPreloader){j.find("#pp_full_res")[0].innerHTML=toInject;_showContent()}})};a.prettyPhoto.changePage=function(o){if(o=="previous"){n--;if(n<0){n=0;return}}else{if(a(".pp_arrow_next").is(".disabled"))return;n++}t||(t=true);d(function(){a.prettyPhoto.open(images,titles,descriptions)});a("a.pp_expand,a.pp_contract").fadeOut(c.animationSpeed)};a.prettyPhoto.close=function(){j.find("object,embed").css("visibility","hidden");a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(c.animationSpeed);
ea.fadeOut(c.animationSpeed,function(){a("#pp_full_res").html("");j.attr("style","").find("div:not(.pp_hoverContainer)").attr("style","");s();a.browser.msie&&a.browser.version==6&&a("select").css("visibility","visible");c.hideflash&&a("object,embed").css("visibility","visible");n=0;c.callback()});t=true};_showContent=function(){a(".pp_loaderIcon").hide();projectedTop=N.scrollTop+(J/2-q.containerHeight/2);if(projectedTop<0)projectedTop=0+R.height();j.find(".pp_content").animate({height:q.contentHeight},
c.animationSpeed);j.animate({top:projectedTop,left:S/2-q.containerWidth/2,width:q.containerWidth},c.animationSpeed,function(){j.find(".pp_hoverContainer,#fullResImage").height(q.height).width(q.width);j.find(".pp_fade").fadeIn(c.animationSpeed);image_set&&y(images[n])=="image"?j.find(".pp_hoverContainer").show():j.find(".pp_hoverContainer").hide();if(c.showTitle&&hasTitle){R.css({top:j.offset().top-25,left:j.offset().left+20,display:"none"});R.fadeIn(c.animationSpeed)}q.resized&&a("a.pp_expand,a.pp_contract").fadeIn(c.animationSpeed);
c.changepicturecallback()})};s()}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,f){return jQuery.easing[jQuery.easing.def](a,b,c,d,f)},easeInQuad:function(a,b,c,d,f){return d*(b/=f)*b+c},easeOutQuad:function(a,b,c,d,f){return-d*(b/=f)*(b-2)+c},easeInOutQuad:function(a,b,c,d,f){if((b/=f/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,f){return d*(b/=f)*b*b+c},easeOutCubic:function(a,b,c,d,f){return d*((b=b/f-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,f){if((b/=f/2)<1)return d/
2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,f){return d*(b/=f)*b*b*b+c},easeOutQuart:function(a,b,c,d,f){return-d*((b=b/f-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,f){if((b/=f/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,f){return d*(b/=f)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,f){return d*((b=b/f-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,f){if((b/=f/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,
b,c,d,f){return-d*Math.cos(b/f*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,f){return d*Math.sin(b/f*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,f){return-d/2*(Math.cos(Math.PI*b/f)-1)+c},easeInExpo:function(a,b,c,d,f){return b==0?c:d*Math.pow(2,10*(b/f-1))+c},easeOutExpo:function(a,b,c,d,f){return b==f?c+d:d*(-Math.pow(2,-10*b/f)+1)+c},easeInOutExpo:function(a,b,c,d,f){if(b==0)return c;if(b==f)return c+d;if((b/=f/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},
easeInCirc:function(a,b,c,d,f){return-d*(Math.sqrt(1-(b/=f)*b)-1)+c},easeOutCirc:function(a,b,c,d,f){return d*Math.sqrt(1-(b=b/f-1)*b)+c},easeInOutCirc:function(a,b,c,d,f){if((b/=f/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,f){a=1.70158;var i=0,h=d;if(b==0)return c;if((b/=f)==1)return c+d;i||(i=f*0.3);if(h<Math.abs(d)){h=d;a=i/4}else a=i/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/i))+c},easeOutElastic:function(a,
b,c,d,f){a=1.70158;var i=0,h=d;if(b==0)return c;if((b/=f)==1)return c+d;i||(i=f*0.3);if(h<Math.abs(d)){h=d;a=i/4}else a=i/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*f-a)*2*Math.PI/i)+d+c},easeInOutElastic:function(a,b,c,d,f){a=1.70158;var i=0,h=d;if(b==0)return c;if((b/=f/2)==2)return c+d;i||(i=f*0.3*1.5);if(h<Math.abs(d)){h=d;a=i/4}else a=i/(2*Math.PI)*Math.asin(d/h);if(b<1)return-0.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*f-a)*2*Math.PI/i)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*
f-a)*2*Math.PI/i)*0.5+d+c},easeInBack:function(a,b,c,d,f,i){if(i==undefined)i=1.70158;return d*(b/=f)*b*((i+1)*b-i)+c},easeOutBack:function(a,b,c,d,f,i){if(i==undefined)i=1.70158;return d*((b=b/f-1)*b*((i+1)*b+i)+1)+c},easeInOutBack:function(a,b,c,d,f,i){if(i==undefined)i=1.70158;if((b/=f/2)<1)return d/2*b*b*(((i*=1.525)+1)*b-i)+c;return d/2*((b-=2)*b*(((i*=1.525)+1)*b+i)+2)+c},easeInBounce:function(a,b,c,d,f){return d-jQuery.easing.easeOutBounce(a,f-b,0,d,f)+c},easeOutBounce:function(a,b,c,d,f){return(b/=
f)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+0.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+0.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+0.984375)+c},easeInOutBounce:function(a,b,c,d,f){if(b<f/2)return jQuery.easing.easeInBounce(a,b*2,0,d,f)*0.5+c;return jQuery.easing.easeOutBounce(a,b*2-f,0,d,f)*0.5+d*0.5+c}});
(function(a){a.fn.featureList=function(b){var c=a(this),d=a(b.output);new jQuery.featureList(c,d,b);return this};a.featureList=function(b,c,d){function f(s){if(typeof s=="undefined"){s=h+1;s=s>=i?0:s}b.removeClass("current").filter(":eq("+s+")").addClass("current");c.stop(true,true).filter(":visible").fadeOut();c.filter(":eq("+s+")").fadeIn(function(){h=s})}d=d||{};var i=b.length,h=d.start_item||0;d.pause_on_hover=d.pause_on_hover||true;d.transition_interval=d.transition_interval||5E3;c.hide().eq(h).show();
b.eq(h).addClass("current");b.click(function(){if(a(this).hasClass("current"))return false;f(b.index(this))});if(d.transition_interval>0){var y=setInterval(function(){f()},d.transition_interval);d.pause_on_hover&&b.mouseenter(function(){clearInterval(y)}).mouseleave(function(){clearInterval(y);y=setInterval(function(){f()},d.transition_interval)})}}})(jQuery);
$(document).ready(function(){$("#slickbox").hide();$("#slick-show").click(function(){$("#slickbox").show("slow");return false});$("#slick-hide").click(function(){$("#slickbox").hide("fast");return false});$("#slick-toggle").click(function(){$("#slickbox").toggle(400);return false});$("#slick-down").click(function(){$("#slickbox").slideDown("slow");return false});$("#slick-up").click(function(){$("#slickbox").slideUp("fast");return false});$("#slick-slidetoggle").click(function(){$("#slickbox").slideToggle(400);
return false})});(function(a){a.extend({jGFeed:function(b,c,d,f){if(b==null)return false;b="http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q="+b;if(d!=null)b+="&num="+d;if(f!=null)b+="&key="+f;a.getJSON(b,function(i){if(typeof c=="function")c.call(this,i.responseData.feed);else return false})}})})(jQuery);
jQuery.jScale={getnewSize:function(a,b){var c=a=="w"?"h":"w";c=typeof b=="undefined"||b==null?this.ndimensions[c]*this.odimensions[a]/this.odimensions[c]:/%/.test(b)?parseInt(b)/100*this.odimensions[a]:parseInt(b);this.ndimensions[a]=Math.round(c)},getnewDimensions:function(a,b,c,d){var f=a('<img src="'+b.src+'" style="position:absolute; top:0; left:0; visibility:hidden" />').prependTo("body");this.odimensions={w:f.width(),h:f.height()};var i=this.odimensions.w>this.odimensions.h?["w","h"]:["h","w"];
this.ndimensions={};if(typeof c.ls!="undefined"){c[i[0]]=c.ls;c[i[1]]=null}i=c.w?["w","h"]:c.h?["h","w"]:[];if(i.length>0){this.getnewSize(i[0],c[i[0]]);this.getnewSize(i[1],c[i[1]]);d=d||function(){};if(c.speed>0)a(b).animate({width:this.ndimensions.w+"px",height:this.ndimensions.h+"px"},c.speed,d);else{a(b).css({width:this.ndimensions.w+"px",height:this.ndimensions.h+"px"});d.call(b)}}f.remove()}};
jQuery.fn.jScale=function(a,b){return this.each(function(){var c=this;if(typeof a=="undefined"||c.tagName!="IMG")return true;c.complete?jQuery.jScale.getnewDimensions(jQuery,c,a,b):$(this).bind("load",function(){jQuery.jScale.getnewDimensions(jQuery,c,a,b)})})};
(function(a){function b(d){var f=d||window.event,i=[].slice.call(arguments,1),h=0,y=0,s=0;d=a.event.fix(f);d.type="mousewheel";if(d.wheelDelta)h=d.wheelDelta/120;if(d.detail)h=-d.detail/3;s=h;if(f.axis!==undefined&&f.axis===f.HORIZONTAL_AXIS){s=0;y=-1*h}if(f.wheelDeltaY!==undefined)s=f.wheelDeltaY/120;if(f.wheelDeltaX!==undefined)y=-1*f.wheelDeltaX/120;i.unshift(d,h,y,s);return a.event.handle.apply(this,i)}var c=["DOMMouseScroll","mousewheel"];a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var d=
c.length;d;)this.addEventListener(c[--d],b,false);else this.onmousewheel=b},teardown:function(){if(this.removeEventListener)for(var d=c.length;d;)this.removeEventListener(c[--d],b,false);else this.onmousewheel=null}};a.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}})})(jQuery);
(function(a,b,c){a.fn.jScrollPane=function(d){function f(h,y){function s(e){var g,k,m,p,r;l=e;if(z===c){p=h.scrollTop();r=h.scrollLeft();h.css({overflow:"hidden",padding:0});D=h.innerWidth()+fa;C=h.innerHeight();h.width(D);z=a('<div class="jspPane" />').css("padding",Da).append(h.children());x=a('<div class="jspContainer" />').css({width:D+"px",height:C+"px"}).append(z).appendTo(h)}else{h.css("width","");if(e=h.innerWidth()+fa!=D||h.outerHeight()!=C){D=h.innerWidth()+fa;C=h.innerHeight();x.css({width:D+
"px",height:C+"px"})}if(!e&&Ea==T&&z.outerHeight()==L){h.width(D);return}Ea=T;z.css("width","");h.width(D);x.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}e=z.clone(false,false).css("position","absolute");g=a('<div style="width:1px; position: relative;" />').append(e);a("body").append(g);T=Math.max(z.outerWidth(),e.outerWidth());g.remove();L=z.outerHeight();xa=T/D;qa=L/C;V=qa>1;if((W=xa>1)||V){h.addClass("jspScrollable");if(e=l.maintainPosition&&(G||H)){k=B();m=K()}w();u();aa();if(e){N(k,
false);n(m,false)}Ha();wa();Ia();l.enableKeyboardNavigation&&Ja();l.clickOnTrack&&ea();Ka();l.hijackInternalLinks&&Fa()}else{h.removeClass("jspScrollable");z.css({top:0,width:x.width()-fa});x.unbind(ya);z.find(":input,a").unbind("focus.jsp");h.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp");ha();Ga()}if(l.autoReinitialise&&!ra)ra=setInterval(function(){s(l)},l.autoReinitialiseDelay);else!l.autoReinitialise&&ra&&clearInterval(ra);p&&h.scrollTop(0)&&n(p,false);r&&h.scrollLeft(0)&&
N(r,false);h.trigger("jsp-initialised",[W||V])}function w(){if(V){x.append(a('<div class="jspVerticalBar" />').append(a('<div class="jspCap jspCapTop" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragTop" />'),a('<div class="jspDragBottom" />'))),a('<div class="jspCap jspCapBottom" />')));za=x.find(">.jspVerticalBar");X=za.find(">.jspTrack");O=X.find(">.jspDrag");if(l.showArrows){ma=a('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",j(0,
-1)).bind("click.jsp",ia);na=a('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",j(0,1)).bind("click.jsp",ia);if(l.arrowScrollOnHover){ma.bind("mouseover.jsp",j(0,-1,ma));na.bind("mouseover.jsp",j(0,1,na))}q(X,l.verticalArrowPositions,ma,na)}ja=C;x.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){ja-=a(this).outerHeight()});O.hover(function(){O.addClass("jspHover")},function(){O.removeClass("jspHover")}).bind("mousedown.jsp",function(e){a("html").bind("dragstart.jsp selectstart.jsp",
ia);O.addClass("jspActive");var g=e.pageY-O.position().top;a("html").bind("mousemove.jsp",function(k){M(k.pageY-g,false)}).bind("mouseup.jsp mouseleave.jsp",la);return false});A()}}function A(){X.height(ja+"px");G=0;Aa=l.verticalGutter+X.outerWidth();z.width(D-Aa-fa);za.position().left===0&&z.css("margin-left",Aa+"px")}function u(){if(W){x.append(a('<div class="jspHorizontalBar" />').append(a('<div class="jspCap jspCapLeft" />'),a('<div class="jspTrack" />').append(a('<div class="jspDrag" />').append(a('<div class="jspDragLeft" />'),
a('<div class="jspDragRight" />'))),a('<div class="jspCap jspCapRight" />')));Ba=x.find(">.jspHorizontalBar");Y=Ba.find(">.jspTrack");P=Y.find(">.jspDrag");if(l.showArrows){oa=a('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",j(-1,0)).bind("click.jsp",ia);pa=a('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",j(1,0)).bind("click.jsp",ia);if(l.arrowScrollOnHover){oa.bind("mouseover.jsp",j(-1,0,oa));pa.bind("mouseover.jsp",j(1,0,pa))}q(Y,l.horizontalArrowPositions,oa,pa)}P.hover(function(){P.addClass("jspHover")},
function(){P.removeClass("jspHover")}).bind("mousedown.jsp",function(e){a("html").bind("dragstart.jsp selectstart.jsp",ia);P.addClass("jspActive");var g=e.pageX-P.position().left;a("html").bind("mousemove.jsp",function(k){J(k.pageX-g,false)}).bind("mouseup.jsp mouseleave.jsp",la);return false});ga=x.innerWidth();t()}}function t(){x.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){ga-=a(this).outerWidth()});Y.width(ga+"px");H=0}function aa(){if(W&&V){var e=Y.outerHeight(),
g=X.outerWidth();ja-=e;a(Ba).find(">.jspCap:visible,>.jspArrow").each(function(){ga+=a(this).outerWidth()});ga-=g;C-=g;D-=e;Y.parent().append(a('<div class="jspCorner" />').css("width",e+"px"));A();t()}W&&z.width(x.outerWidth()-fa+"px");L=z.outerHeight();qa=L/C;if(W){ba=Math.ceil(1/xa*ga);if(ba>l.horizontalDragMaxWidth)ba=l.horizontalDragMaxWidth;else if(ba<l.horizontalDragMinWidth)ba=l.horizontalDragMinWidth;P.width(ba+"px");ca=ga-ba;S(H)}if(V){da=Math.ceil(1/qa*ja);if(da>l.verticalDragMaxHeight)da=
l.verticalDragMaxHeight;else if(da<l.verticalDragMinHeight)da=l.verticalDragMinHeight;O.height(da+"px");Z=ja-da;U(G)}}function q(e,g,k,m){var p="before",r="after";if(g=="os")g=/Mac/.test(navigator.platform)?"after":"split";if(g==p)r=g;else if(g==r){p=g;g=k;k=m;m=g}e[p](k)[r](m)}function j(e,g,k){return function(){R(e,g,this,k);this.blur();return false}}function R(e,g,k,m){k=a(k).addClass("jspActive");var p,r,v=true,I=function(){e!==0&&F.scrollByX(e*l.arrowButtonSpeed);g!==0&&F.scrollByY(g*l.arrowButtonSpeed);
r=setTimeout(I,v?l.initialDelay:l.arrowRepeatFreq);v=false};I();p=m?"mouseout.jsp":"mouseup.jsp";m=m||a("html");m.bind(p,function(){k.removeClass("jspActive");r&&clearTimeout(r);r=null;m.unbind(p)})}function ea(){ha();V&&X.bind("mousedown.jsp",function(e){if(e.originalTarget===c||e.originalTarget==e.currentTarget){var g=a(this),k=g.offset(),m=e.pageY-k.top-G,p,r=true,v=function(){var E=g.offset();E=e.pageY-E.top-da/2;var Q=C*l.scrollPagePercent,ka=Z*Q/(L-C);if(m<0)G-ka>E?F.scrollByY(-Q):M(E);else if(m>
0)G+ka<E?F.scrollByY(Q):M(E);else{I();return}p=setTimeout(v,r?l.initialDelay:l.trackClickRepeatFreq);r=false},I=function(){p&&clearTimeout(p);p=null;a(document).unbind("mouseup.jsp",I)};v();a(document).bind("mouseup.jsp",I);return false}});W&&Y.bind("mousedown.jsp",function(e){if(e.originalTarget===c||e.originalTarget==e.currentTarget){var g=a(this),k=g.offset(),m=e.pageX-k.left-H,p,r=true,v=function(){var E=g.offset();E=e.pageX-E.left-ba/2;var Q=D*l.scrollPagePercent,ka=ca*Q/(T-D);if(m<0)H-ka>E?
F.scrollByX(-Q):J(E);else if(m>0)H+ka<E?F.scrollByX(Q):J(E);else{I();return}p=setTimeout(v,r?l.initialDelay:l.trackClickRepeatFreq);r=false},I=function(){p&&clearTimeout(p);p=null;a(document).unbind("mouseup.jsp",I)};v();a(document).bind("mouseup.jsp",I);return false}})}function ha(){Y&&Y.unbind("mousedown.jsp");X&&X.unbind("mousedown.jsp")}function la(){a("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");O&&O.removeClass("jspActive");P&&P.removeClass("jspActive")}
function M(e,g){if(V){if(e<0)e=0;else if(e>Z)e=Z;if(g===c)g=l.animateScroll;if(g)F.animate(O,"top",e,U);else{O.css("top",e);U(e)}}}function U(e){if(e===c)e=O.position().top;x.scrollTop(0);G=e;var g=G===0,k=G==Z;e=-(e/Z)*(L-C);if(sa!=g||ta!=k){sa=g;ta=k;h.trigger("jsp-arrow-change",[sa,ta,ua,va])}if(l.showArrows){ma[g?"addClass":"removeClass"]("jspDisabled");na[k?"addClass":"removeClass"]("jspDisabled")}z.css("top",e);h.trigger("jsp-scroll-y",[-e,g,k]).trigger("scroll")}function J(e,g){if(W){if(e<
0)e=0;else if(e>ca)e=ca;if(g===c)g=l.animateScroll;if(g)F.animate(P,"left",e,S);else{P.css("left",e);S(e)}}}function S(e){if(e===c)e=P.position().left;x.scrollTop(0);H=e;var g=H===0,k=H==ca;e=-(e/ca)*(T-D);if(ua!=g||va!=k){ua=g;va=k;h.trigger("jsp-arrow-change",[sa,ta,ua,va])}if(l.showArrows){oa[g?"addClass":"removeClass"]("jspDisabled");pa[k?"addClass":"removeClass"]("jspDisabled")}z.css("left",e);h.trigger("jsp-scroll-x",[-e,g,k]).trigger("scroll")}function n(e,g){M(e/(L-C)*Z,g)}function N(e,g){J(e/
(T-D)*ca,g)}function o(e,g,k){var m,p,r=0,v=0,I,E,Q;try{m=a(e)}catch(ka){return}p=m.outerHeight();e=m.outerWidth();x.scrollTop(0);for(x.scrollLeft(0);!m.is(".jspPane");){r+=m.position().top;v+=m.position().left;m=m.offsetParent();if(/^body|html$/i.test(m[0].nodeName))return}m=K();I=m+C;if(r<m||g)E=r-l.verticalGutter;else if(r+p>I)E=r-C+p+l.verticalGutter;E&&n(E,k);viewportLeft=B();r=viewportLeft+D;if(v<viewportLeft||g)Q=v-l.horizontalGutter;else if(v+e>r)Q=v-D+e+l.horizontalGutter;Q&&N(Q,k)}function B(){return-z.position().left}
function K(){return-z.position().top}function wa(){x.unbind(ya).bind(ya,function(e,g,k,m){e=H;g=G;F.scrollBy(k*l.mouseWheelSpeed,-m*l.mouseWheelSpeed,false);return e==H&&g==G})}function ia(){return false}function Ha(){z.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(e){o(e.target,false)})}function Ja(){function e(){var m=H,p=G;switch(g){case 40:F.scrollByY(l.keyboardSpeed,false);break;case 38:F.scrollByY(-l.keyboardSpeed,false);break;case 34:case 32:F.scrollByY(C*l.scrollPagePercent,
false);break;case 33:F.scrollByY(-C*l.scrollPagePercent,false);break;case 39:F.scrollByX(l.keyboardSpeed,false);break;case 37:F.scrollByX(-l.keyboardSpeed,false)}return k=m!=H||p!=G}var g,k;z.focus(function(){h.focus()});h.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(m){if(m.target===this){var p=H,r=G;switch(m.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:g=m.keyCode;e();break;case 35:n(L-C);g=null;break;case 36:n(0);g=null}k=m.keyCode==g&&p!=
H||r!=G;return!k}}).bind("keypress.jsp",function(m){m.keyCode==g&&e();return!k});if(l.hideFocus){h.css("outline","none");"hideFocus"in x[0]&&h.attr("hideFocus",true)}else{h.css("outline","");"hideFocus"in x[0]&&h.attr("hideFocus",false)}}function Ka(){if(location.hash&&location.hash.length>1){var e,g;try{e=a(location.hash)}catch(k){return}if(e.length&&z.find(location.hash))if(x.scrollTop()===0)g=setInterval(function(){if(x.scrollTop()>0){o(location.hash,true);a(document).scrollTop(x.position().top);
clearInterval(g)}},50);else{o(location.hash,true);a(document).scrollTop(x.position().top)}}}function Ga(){a("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function Fa(){Ga();a("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var e=this.href.split("#");if(e.length>1){e=e[1];if(e.length>0&&z.find("#"+e).length>0){o("#"+e,true);return false}}})}function Ia(){var e,g,k,m,p,r=false;x.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",
function(v){v=v.originalEvent.touches[0];e=B();g=K();k=v.pageX;m=v.pageY;p=false;r=true}).bind("touchmove.jsp",function(v){if(r){v=v.originalEvent.touches[0];var I=H,E=G;F.scrollTo(e+k-v.pageX,g+m-v.pageY);p=p||Math.abs(k-v.pageX)>5||Math.abs(m-v.pageY)>5;return I==H&&E==G}}).bind("touchend.jsp",function(){r=false}).bind("click.jsp-touchclick",function(){if(p)return p=false})}var l,F=this,z,D,C,x,T,L,xa,qa,V,W,O,Z,G,P,ca,H,za,X,Aa,ja,da,ma,na,Ba,Y,ga,ba,oa,pa,ra,Da,fa,Ea,sa=true,ua=true,ta=false,
va=false,Ca=h.clone(false,false).empty(),ya=a.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";Da=h.css("paddingTop")+" "+h.css("paddingRight")+" "+h.css("paddingBottom")+" "+h.css("paddingLeft");fa=(parseInt(h.css("paddingLeft"),10)||0)+(parseInt(h.css("paddingRight"),10)||0);a.extend(F,{reinitialise:function(e){e=a.extend({},l,e);s(e)},scrollToElement:function(e,g,k){o(e,g,k)},scrollTo:function(e,g,k){N(e,k);n(g,k)},scrollToX:function(e,g){N(e,g)},scrollToY:function(e,g){n(e,g)},scrollToPercentX:function(e,
g){N(e*(T-D),g)},scrollToPercentY:function(e,g){n(e*(L-C),g)},scrollBy:function(e,g,k){F.scrollByX(e,k);F.scrollByY(g,k)},scrollByX:function(e,g){var k=(B()+e)/(T-D);J(k*ca,g)},scrollByY:function(e,g){var k=(K()+e)/(L-C);M(k*Z,g)},positionDragX:function(e,g){J(e,g)},positionDragY:function(e,g){J(e,g)},animate:function(e,g,k,m){var p={};p[g]=k;e.animate(p,{duration:l.animateDuration,ease:l.animateEase,queue:false,step:m})},getContentPositionX:function(){return B()},getContentPositionY:function(){return K()},
getContentWidth:function(){return T()},getContentHeight:function(){return L()},getPercentScrolledX:function(){return B()/(T-D)},getPercentScrolledY:function(){return K()/(L-C)},getIsScrollableH:function(){return W},getIsScrollableV:function(){return V},getContentPane:function(){return z},scrollToBottom:function(e){M(Z,e)},hijackInternalLinks:function(){Fa()},destroy:function(){var e=K(),g=B();h.removeClass("jspScrollable").unbind(".jsp");h.replaceWith(Ca.append(z.children()));Ca.scrollTop(e);Ca.scrollLeft(g)}});
s(y)}d=a.extend({},a.fn.jScrollPane.defaults,d);a.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){d[this]=d[this]||d.speed});var i;this.each(function(){var h=a(this),y=h.data("jsp");if(y)y.reinitialise(d);else{y=new f(h,d);h.data("jsp",y)}i=i?i.add(h):h});return i};a.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,
horizontalDragMaxWidth:99999,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this);(function(e){function z(l,m){var k=l.split(" "),s="";if(k.length>m){for(var n=0;n<m;++n)s+=k[n]+" ";return s}else return l}function t(l,m,k){return String(l+"-"+m+" of "+k+" posts")}jQuery.fn.fancyNews=function(l){function m(){var d=[];e.jGFeed(a.feed,function(f){if(!f){b.find("#fn-preloader").remove();b.append("<span id='fc-error'>No feeds found! Please check your RSS feed!</span>");return false}for(var g=0;g<f.entries.length;g++){var c=f.entries[g];o[g]=c.title;p[g]=String(c.publishedDate).substr(0,
16);u[g]=z(c.contentSnippet.slice(0,c.contentSnippet.length-3),a.maxWords)+"[....]";x[g]=c.content;A[g]=c.link;d[g]="<div class='fn-newsPreview' style='width:"+a.width+"px; height:"+q+"px; background:"+a.backgroundColor+";'><span class='fn-newsPreviewText' ><h3>"+o[g]+"</h3><h4>"+p[g]+"</h4>"+u[g]+"</span></div>"}k(d)},a.numOfEntries)}function k(d){b.find("#fn-preloader").remove();for(var f=0;f<d.length;++f)b.append(d[f]).find(".fn-newsPreview:last").css({top:f*(q+a.previewOffset)});i=e.makeArray(b.find(".fn-newsPreview"));
b.append("<div id='fn-newsView' style='width:"+a.width+"px;height:"+b.height()+"px;'><h3 id='fn-newsViewTitle'></h3><div id='fn-newsViewHtml' style='width:"+(a.width-30)+"px;height:"+(b.height()-50)+"px;'></div></div>");b.find("#fn-newsViewHtml").jScrollPane();d=b.find("#fn-newsViewHtml");d.jScrollPane();v=d.data("jsp");b.after("<div id='fn-newsFooterBar' style='width:"+a.width+"px;background:"+a.backgroundColor+"'><span id='newsFooterText'>"+t(h+1,h+a.previewsPerPage,i.length)+"</span><span id='fn-previousButton'></span><span id='fn-nextButton'></span><div id='fn-newsViewClose'></div></div>");
b.next("#fn-newsFooterBar").hide();b.next("#fn-newsFooterBar").find("#fn-newsViewClose").hide().click(function(){B();b.next("#fn-newsFooterBar").find("#newsFooterText").text(t(h+1,h+a.previewsPerPage,i.length));b.find("#fn-newsView").stop().fadeTo(500,0,function(){e(this).css("visibility","hidden")})});for(f=0;f<a.previewsPerPage;++f)e(i[f]).hide().delay(200+f*200).fadeIn(800);setTimeout(function(){b.next("#fn-newsFooterBar").fadeIn(800,s)},200+a.previewsPerPage*200)}function s(){j=false;b.find(".fn-newsPreview").hover(function(){if(!j){j=
true;e(this).stop().animate({backgroundColor:a.backgroundOverColor},800)}},function(){if(!r){j=false;e(this).stop().animate({backgroundColor:a.backgroundColor},500)}}).click(function(){if(!r){var d=b.find(".fn-newsPreview").index(this);if(a.useLinks&&a.feed)window.open(A[d],"_blank");else{var f=x[d];B();b.find("#fn-newsView").css({visibility:"visible",opacity:0}).stop().fadeTo(500,1);b.find("#fn-newsViewTitle").text(o[d]);b.next("#fn-newsFooterBar").find("#newsFooterText").text(p[d]);v.getContentPane().html(f);
v.reinitialise({verticalGutter:15});v.scrollToPercentY(0);e("#fn-newsView img").jScale({ls:a.longestImageSide})}}});b.next("#fn-newsFooterBar").find("#fn-previousButton").click(function(){h!=0&&!j&&C()});b.next("#fn-newsFooterBar").find("#fn-nextButton").click(function(){h!=i.length-a.previewsPerPage&&!j&&n()});if(a.slideTime)y=setInterval(D,a.slideTime)}function n(){E("-");++h;b.next("#fn-newsFooterBar").find("#newsFooterText").text(t(h+1,h+a.previewsPerPage,i.length));e(i[h+a.previewsPerPage-1]).css("opacity",
0).animate({opacity:1},300,function(){j=r=false})}function C(){--h;E("+");b.next("#fn-newsFooterBar").find("#newsFooterText").text(t(h+1,h+a.previewsPerPage,i.length));e(i[h]).css("opacity",0).animate({opacity:1},function(){j=r=false})}function E(d){r=j=true;for(var f=q+2,g=h;g<i.length;++g)e(i[g]).animate({top:d+"="+f+"px"},300)}function B(){if(b.next().find("#fn-previousButton").is(":hidden")){b.next().find("#fn-newsViewClose").hide();b.next().find("#fn-previousButton, #fn-nextButton").show();if(a.slideTime)y=
setInterval(D,a.slideTime)}else{b.next().find("#fn-newsViewClose").show();b.next().find("#fn-previousButton, #fn-nextButton").hide();a.slideTime&&clearInterval(y)}}function D(){if(!j){if(h!=0&&!j&&w=="previous")C();else w="next";if(h!=i.length-a.previewsPerPage&&!j&&w=="next")n();else w="previous"}}var a=e.extend({},e.fn.fancyNews.defaults,l),b,q,v,y,o=[],p=[],u=[],x=[],A=[],i=[],h=0,j=true,r=false,w="next";return this.each(function(){b=e(this);var d=e.makeArray(b.find("div").hide());b.css({overflow:"hidden",
position:"relative",width:a.width,height:a.height+a.previewOffset*a.previewsPerPage});b.append("<div id='fn-preloader'></div>");b.find("#fn-preloader").css({top:a.height*0.5-b.find("#fn-preloader").height()*0.5,left:a.width*0.5-b.find("#fn-preloader").width()*0.5});q=a.height/a.previewsPerPage;if(a.feed)m();else{for(var f=[],g=[],c=0;c<d.length;++c){p[c]=e(d[c]).attr("title");o[c]=e(d[c]).find("span").attr("title").length>0?e(d[c]).find("span").attr("title"):"";u[c]=z(e(d[c]).find("span").text(),
a.maxWords)+"[....]";x[c]=e(d[c]).find("span").html();g[c]=e(d[c]).find("img").attr("src");f[c]="<div class='fn-newsPreview' style='width:"+a.width+"px; height:"+q+"px; background:"+a.backgroundColor+";'><img class='fn-newsPreviewThumb' src="+g[c]+" /><span class='fn-newsPreviewText' ><h3>"+o[c]+"</h3><h4>"+p[c]+"</h4>"+u[c]+"</span></div>"}k(f)}})};e.fn.fancyNews.defaults={width:500,height:420,previewOffset:2,maxWords:60,previewsPerPage:3,numOfEntries:10,slideTime:0,longestImageSide:100,feed:"",
backgroundColor:"#fff",backgroundOverColor:"#0c3569",useLinks:false}})(jQuery);
/*monials scroller*/
(function(d){function i(f,b,c,e){if(!b.busy){var a=f[0].parentNode,g=f[b.currSlide],h=f[b.nextSlide];if(a.cycleTimeout!==0||c){if(c||!a.cyclePause){b.before.length&&d.each(b.before,function(a,c){c.apply(h,[g,h,b,e])});c=function(){d.browser.msie&&this.style.removeAttribute("filter");d.each(b.after,function(a,c){c.apply(h,[g,h,b,e])})};if(b.nextSlide!=b.currSlide)b.busy=1,d.fn.cycle.custom(g,h,b,c);c=b.nextSlide+1==f.length;b.nextSlide=c?0:b.nextSlide+1;b.currSlide=c?f.length-1:b.nextSlide-1}if(b.timeout)a.cycleTimeout=
setTimeout(function(){i(f,b,0,!b.rev)},b.timeout)}}}function j(d,b,c){var e=d[0].parentNode,a=e.cycleTimeout;if(a)clearTimeout(a),e.cycleTimeout=0;b.nextSlide=b.currSlide+c;if(b.nextSlide<0)b.nextSlide=d.length-1;else if(b.nextSlide>=d.length)b.nextSlide=0;i(d,b,1,c>=0);return!1}d.fn.cycle=function(f){return this.each(function(){f=f||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var b=d(this),c=f.slideExpr?d(f.slideExpr,this):b.children(),e=c.get();if(e.length<
2)window.console&&window.console.log&&window.console.log("terminating; too few slides: "+e.length);else{var a=d.extend({},d.fn.cycle.defaults,f||{},d.metadata?b.metadata():d.meta?b.data():{});a.before=a.before?[a.before]:[];a.after=a.after?[a.after]:[];a.after.unshift(function(){a.busy=0});var g=this.className;a.width=parseInt((g.match(/w:(\d+)/)||[])[1])||a.width;a.height=parseInt((g.match(/h:(\d+)/)||[])[1])||a.height;a.timeout=parseInt((g.match(/t:(\d+)/)||[])[1])||a.timeout;b.css("position")==
"static"&&b.css("position","relative");a.width&&b.width(a.width);a.height&&a.height!="auto"&&b.height(a.height);c.css({position:"absolute",top:0,left:0}).hide().each(function(a){d(this).css("z-index",e.length-a)});d(e[0]).css("opacity",1).show();d.browser.msie&&e[0].style.removeAttribute("filter");a.fit&&a.width&&c.width(a.width);a.fit&&a.height&&a.height!="auto"&&c.height(a.height);a.pause&&b.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});d.fn.cycle.transitions.fade(b,c,a);c.each(function(){var b=
d(this);this.cycleH=a.fit&&a.height?a.height:b.height();this.cycleW=a.fit&&a.width?a.width:b.width()});c.not(":eq(0)").css({opacity:0});a.cssFirst&&d(c[0]).css(a.cssFirst);if(a.timeout){if(a.speed.constructor==String)a.speed={slow:600,fast:200}[a.speed]||400;for(a.sync||(a.speed/=2);a.timeout-a.speed<250;)a.timeout+=a.speed}a.speedIn=a.speed;a.speedOut=a.speed;a.slideCount=e.length;a.currSlide=0;a.nextSlide=1;b=c[0];a.before.length&&a.before[0].apply(b,[b,b,a,!0]);a.after.length>1&&a.after[1].apply(b,
[b,b,a,!0]);if(a.click&&!a.next)a.next=a.click;a.next&&d(a.next).bind("click",function(){return j(e,a,a.rev?-1:1)});a.prev&&d(a.prev).bind("click",function(){return j(e,a,a.rev?1:-1)});if(a.timeout)this.cycleTimeout=setTimeout(function(){i(e,a,0,!a.rev)},a.timeout+(a.delay||0))}})};d.fn.cycle.custom=function(f,b,c,e){var a=d(f),g=d(b);g.css({opacity:0});var h=function(){g.animate({opacity:1},c.speedIn,c.easeIn,e)};a.animate({opacity:0},c.speedOut,c.easeOut,function(){a.css({display:"none"});c.sync||
h()});c.sync&&h()};d.fn.cycle.transitions={fade:function(f,b,c){b.not(":eq(0)").css("opacity",0);c.before.push(function(){d(this).show()})}};d.fn.cycle.ver=function(){return"Lite-1.0"};d.fn.cycle.defaults={timeout:4E3,speed:1E3,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);
/*session*/

