/* *
 * jQuery JS Pack v10.11.1
 * Carmelo Santana
 * http://carmelosantana.com
 *
 * --------------------------
 * - Table of Contents      -
 * --------------------------
 *  - blockUI plugin 2.31 (06-JAN-2010)
 *  - Coin Slider 1
 *  - Contra 1.0
 *  - Cookie plugin
 *  - Easing 1.3
 *  - FancyBox 1.3.4
 *  - Form Plugin 2.40 (26-FEB-2010)
 *  - Gritter 1.6
 *  - Mousewheel Plugin 3.0.4
 *  - Nivo Slider 2.1
 *  - Roundabout 1.1
 *  - Roundabout Shapes 1.1
 *
 * --------------------------
 * - Start jQuery Pack      -
 * --------------------------
 */

/* jQuery blockUI plugin
 * Version 2.31 (06-JAN-2010)
 * @requires jQuery v1.2.3 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2008 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
(function($){if(/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery)||/^1.1/.test($.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+$.fn.jquery);return}$.fn._fadeIn=$.fn.fadeIn;var noOp=function(){};var mode=document.documentMode||0;var setExpr=$.browser.msie&&($.browser.version<8&&!mode||mode<8);var ie6=$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!mode;$.blockUI=function(opts){install(window,opts)};$.unblockUI=function(opts){remove(window,opts)};$.growlUI=function(title,
message,timeout,onClose){var $m=$('<div class="growlUI"></div>');if(title)$m.append("<h1>"+title+"</h1>");if(message)$m.append("<h2>"+message+"</h2>");if(timeout==undefined)timeout=3E3;$.blockUI({message:$m,fadeIn:700,fadeOut:1E3,centerY:false,timeout:timeout,showOverlay:false,onUnblock:onClose,css:$.blockUI.defaults.growlCSS})};$.fn.block=function(opts){return this.unblock({fadeOut:0}).each(function(){if($.css(this,"position")=="static")this.style.position="relative";if($.browser.msie)this.style.zoom=
1;install(this,opts)})};$.fn.unblock=function(opts){return this.each(function(){remove(this,opts)})};$.blockUI.version=2.31;$.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",
left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1E3,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4};
var pageBlock=null;var pageBlockEls=[];function install(el,opts){var full=el==window;var msg=opts&&opts.message!==undefined?opts.message:undefined;opts=$.extend({},$.blockUI.defaults,opts||{});opts.overlayCSS=$.extend({},$.blockUI.defaults.overlayCSS,opts.overlayCSS||{});var css=$.extend({},$.blockUI.defaults.css,opts.css||{});var themedCSS=$.extend({},$.blockUI.defaults.themedCSS,opts.themedCSS||{});msg=msg===undefined?opts.message:msg;if(full&&pageBlock)remove(window,{fadeOut:0});if(msg&&typeof msg!=
"string"&&(msg.parentNode||msg.jquery)){var node=msg.jquery?msg[0]:msg;var data={};$(el).data("blockUI.history",data);data.el=node;data.parent=node.parentNode;data.display=node.style.display;data.position=node.style.position;if(data.parent)data.parent.removeChild(node)}var z=opts.baseZ;var lyr1=$.browser.msie||opts.forceIframe?$('<iframe class="blockUI" style="z-index:'+z++ +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+
'"></iframe>'):$('<div class="blockUI" style="display:none"></div>');var lyr2=$('<div class="blockUI blockOverlay" style="z-index:'+z++ +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var lyr3;if(opts.theme&&full){var s='<div class="blockUI blockMsg blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+z+';display:none;position:fixed">'+'<div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(opts.title||"&nbsp;")+"</div>"+'<div class="ui-widget-content ui-dialog-content"></div>'+
"</div>";lyr3=$(s)}else lyr3=full?$('<div class="blockUI blockMsg blockPage" style="z-index:'+z+';display:none;position:fixed"></div>'):$('<div class="blockUI blockMsg blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');if(msg)if(opts.theme){lyr3.css(themedCSS);lyr3.addClass("ui-widget-content")}else lyr3.css(css);if(!opts.applyPlatformOpacityRules||!($.browser.mozilla&&/Linux/.test(navigator.platform)))lyr2.css(opts.overlayCSS);lyr2.css("position",full?"fixed":"absolute");
if($.browser.msie||opts.forceIframe)lyr1.css("opacity",0);var layers=[lyr1,lyr2,lyr3],$par=full?$("body"):$(el);$.each(layers,function(){this.appendTo($par)});if(opts.theme&&opts.draggable&&$.fn.draggable)lyr3.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var expr=setExpr&&(!$.boxModel||$("object,embed",full?null:el).length>0);if(ie6||expr){if(full&&opts.allowBodyStretch&&$.boxModel)$("html,body").css("height","100%");if((ie6||!$.boxModel)&&!full){var t=sz(el,"borderTopWidth"),l=sz(el,"borderLeftWidth");
var fixT=t?"(0 - "+t+")":0;var fixL=l?"(0 - "+l+")":0}$.each([lyr1,lyr2,lyr3],function(i,o){var s=o[0].style;s.position="absolute";if(i<2){full?s.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+opts.quirksmodeOffsetHack+') + "px"'):s.setExpression("height",'this.parentNode.offsetHeight + "px"');full?s.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):s.setExpression("width",
'this.parentNode.offsetWidth + "px"');if(fixL)s.setExpression("left",fixL);if(fixT)s.setExpression("top",fixT)}else if(opts.centerY){if(full)s.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');s.marginTop=0}else if(!opts.centerY&&full){var top=opts.css&&opts.css.top?parseInt(opts.css.top):0;var expression="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+
top+') + "px"';s.setExpression("top",expression)}})}if(msg){if(opts.theme)lyr3.find(".ui-widget-content").append(msg);else lyr3.append(msg);if(msg.jquery||msg.nodeType)$(msg).show()}if(($.browser.msie||opts.forceIframe)&&opts.showOverlay)lyr1.show();if(opts.fadeIn){var cb=opts.onBlock?opts.onBlock:noOp;var cb1=opts.showOverlay&&!msg?cb:noOp;var cb2=msg?cb:noOp;if(opts.showOverlay)lyr2._fadeIn(opts.fadeIn,cb1);if(msg)lyr3._fadeIn(opts.fadeIn,cb2)}else{if(opts.showOverlay)lyr2.show();if(msg)lyr3.show();
if(opts.onBlock)opts.onBlock()}bind(1,el,opts);if(full){pageBlock=lyr3[0];pageBlockEls=$(":input:enabled:visible",pageBlock);if(opts.focusInput)setTimeout(focus,20)}else center(lyr3[0],opts.centerX,opts.centerY);if(opts.timeout){var to=setTimeout(function(){full?$.unblockUI(opts):$(el).unblock(opts)},opts.timeout);$(el).data("blockUI.timeout",to)}}function remove(el,opts){var full=el==window;var $el=$(el);var data=$el.data("blockUI.history");var to=$el.data("blockUI.timeout");if(to){clearTimeout(to);
$el.removeData("blockUI.timeout")}opts=$.extend({},$.blockUI.defaults,opts||{});bind(0,el,opts);var els;if(full)els=$("body").children().filter(".blockUI").add("body > .blockUI");else els=$(".blockUI",el);if(full)pageBlock=pageBlockEls=null;if(opts.fadeOut){els.fadeOut(opts.fadeOut);setTimeout(function(){reset(els,data,opts,el)},opts.fadeOut)}else reset(els,data,opts,el)}function reset(els,data,opts,el){els.each(function(i,o){if(this.parentNode)this.parentNode.removeChild(this)});if(data&&data.el){data.el.style.display=
data.display;data.el.style.position=data.position;if(data.parent)data.parent.appendChild(data.el);$(el).removeData("blockUI.history")}if(typeof opts.onUnblock=="function")opts.onUnblock(el,opts)}function bind(b,el,opts){var full=el==window,$el=$(el);if(!b&&(full&&!pageBlock||!full&&!$el.data("blockUI.isBlocked")))return;if(!full)$el.data("blockUI.isBlocked",b);if(!opts.bindEvents||b&&!opts.showOverlay)return;var events="mousedown mouseup keydown keypress";b?$(document).bind(events,opts,handler):$(document).unbind(events,
handler)}function handler(e){if(e.keyCode&&e.keyCode==9)if(pageBlock&&e.data.constrainTabKey){var els=pageBlockEls;var fwd=!e.shiftKey&&e.target==els[els.length-1];var back=e.shiftKey&&e.target==els[0];if(fwd||back){setTimeout(function(){focus(back)},10);return false}}if($(e.target).parents("div.blockMsg").length>0)return true;return $(e.target).parents().children().filter("div.blockUI").length==0}function focus(back){if(!pageBlockEls)return;var e=pageBlockEls[back===true?pageBlockEls.length-1:0];
if(e)e.focus()}function center(el,x,y){var p=el.parentNode,s=el.style;var l=(p.offsetWidth-el.offsetWidth)/2-sz(p,"borderLeftWidth");var t=(p.offsetHeight-el.offsetHeight)/2-sz(p,"borderTopWidth");if(x)s.left=l>0?l+"px":"0";if(y)s.top=t>0?t+"px":"0"}function sz(el,p){return parseInt($.css(el,p))||0}})(jQuery);

/**
 * Coin Slider - Unique jQuery Image Slider
 * @version: 1.0 - (2010/04/04)
 * @requires jQuery v1.2.2 or later
 * @author Ivan Lazarevic
 * Examples and documentation at: http://workshop.rs/projects/coin-slider/

 * Licensed under MIT licence:
 *   http://www.opensource.org/licenses/mit-license.php
**/
(function(b){var c=[],l=[],m=[],p=[],r=[],q=[],u=[],f=[],v=[],o=[],s=[];b.fn.coinslider=b.fn.CoinSlider=function(y){init=function(a){l[a.id]=[];m[a.id]=[];p[a.id]=[];r[a.id]=[];q[a.id]=[];f[a.id]=0;o[a.id]=0;s[a.id]=1;c[a.id]=b.extend({},b.fn.coinslider.defaults,y);b.each(b("#"+a.id+" img"),function(d,e){m[a.id][d]=b(e).attr("src");p[a.id][d]=b(e).parent().is("a")?b(e).parent().attr("href"):"";r[a.id][d]=b(e).parent().is("a")?b(e).parent().attr("target"):"";q[a.id][d]=b(e).next().is("span")?b(e).next().html():
"";b(e).hide();b(e).next().hide()});b(a).css({"background-image":"url("+m[a.id][0]+")",width:c[a.id].width,height:c[a.id].height,position:"relative","background-position":"top left"}).wrap("<div class='coin-slider' id='coin-slider-"+a.id+"' />");b("#"+a.id).append("<div class='cs-title' id='cs-title-"+a.id+"' style='position: absolute; bottom:0; left: 0; z-index: 1000;'></div>");b.setFields(a);c[a.id].navigation&&b.setNavigation(a);b.transition(a,0);b.transitionCall(a)};b.setFields=function(a){tWidth=
sWidth=parseInt(c[a.id].width/c[a.id].spw);tHeight=sHeight=parseInt(c[a.id].height/c[a.id].sph);counter=sLeft=sTop=0;tgapx=gapx=c[a.id].width-c[a.id].spw*sWidth;tgapy=gapy=c[a.id].height-c[a.id].sph*sHeight;for(i=1;i<=c[a.id].sph;i++){gapx=tgapx;if(gapy>0){gapy--;sHeight=tHeight+1}else sHeight=tHeight;for(j=1;j<=c[a.id].spw;j++){if(gapx>0){gapx--;sWidth=tWidth+1}else sWidth=tWidth;l[a.id][counter]=i+""+j;counter++;c[a.id].links?b("#"+a.id).append("<a href='"+p[a.id][0]+"' class='cs-"+a.id+"' id='cs-"+
a.id+i+j+"' style='width:"+sWidth+"px; height:"+sHeight+"px; float: left; position: absolute;'></a>"):b("#"+a.id).append("<div class='cs-"+a.id+"' id='cs-"+a.id+i+j+"' style='width:"+sWidth+"px; height:"+sHeight+"px; float: left; position: absolute;'></div>");b("#cs-"+a.id+i+j).css({"background-position":-sLeft+"px "+(-sTop+"px"),left:sLeft,top:sTop});sLeft+=sWidth}sTop+=sHeight;sLeft=0}b(".cs-"+a.id).mouseover(function(){b("#cs-navigation-"+a.id).show()});b(".cs-"+a.id).mouseout(function(){b("#cs-navigation-"+
a.id).hide()});b("#cs-title-"+a.id).mouseover(function(){b("#cs-navigation-"+a.id).show()});b("#cs-title-"+a.id).mouseout(function(){b("#cs-navigation-"+a.id).hide()});if(c[a.id].hoverPause){b(".cs-"+a.id).mouseover(function(){c[a.id].pause=true});b(".cs-"+a.id).mouseout(function(){c[a.id].pause=false});b("#cs-title-"+a.id).mouseover(function(){c[a.id].pause=true});b("#cs-title-"+a.id).mouseout(function(){c[a.id].pause=false})}};b.transitionCall=function(a){clearInterval(u[a.id]);delay=c[a.id].delay+
c[a.id].spw*c[a.id].sph*c[a.id].sDelay;u[a.id]=setInterval(function(){b.transition(a)},delay)};b.transition=function(a,d){if(c[a.id].pause!=true){b.effect(a);o[a.id]=0;v[a.id]=setInterval(function(){b.appereance(a,l[a.id][o[a.id]])},c[a.id].sDelay);b(a).css({"background-image":"url("+m[a.id][f[a.id]]+")"});if(typeof d=="undefined")f[a.id]++;else if(d=="prev")f[a.id]--;else f[a.id]=d;if(f[a.id]==m[a.id].length)f[a.id]=0;if(f[a.id]==-1)f[a.id]=m[a.id].length-1;b(".cs-button-"+a.id).removeClass("cs-active");
b("#cs-button-"+a.id+"-"+(f[a.id]+1)).addClass("cs-active");if(q[a.id][f[a.id]]){b("#cs-title-"+a.id).css({opacity:0}).animate({opacity:c[a.id].opacity},c[a.id].titleSpeed);b("#cs-title-"+a.id).html(q[a.id][f[a.id]])}else b("#cs-title-"+a.id).css("opacity",0)}};b.appereance=function(a,d){b(".cs-"+a.id).attr("href",p[a.id][f[a.id]]).attr("target",r[a.id][f[a.id]]);if(o[a.id]==c[a.id].spw*c[a.id].sph)clearInterval(v[a.id]);else{b("#cs-"+a.id+d).css({opacity:0,"background-image":"url("+m[a.id][f[a.id]]+
")"});b("#cs-"+a.id+d).animate({opacity:1},300);o[a.id]++}};b.setNavigation=function(a){b(a).append("<div id='cs-navigation-"+a.id+"'></div>");b("#cs-navigation-"+a.id).hide();b("#cs-navigation-"+a.id).append("<a href='#' id='cs-prev-"+a.id+"' class='cs-prev'>prev</a>");b("#cs-navigation-"+a.id).append("<a href='#' id='cs-next-"+a.id+"' class='cs-next'>next</a>");b("#cs-prev-"+a.id).css({position:"absolute",top:c[a.id].height/2-15,left:0,"z-index":1001,"line-height":"30px",opacity:c[a.id].opacity}).click(function(d){d.preventDefault();
b.transition(a,"prev");b.transitionCall(a)}).mouseover(function(){b("#cs-navigation-"+a.id).show()});b("#cs-next-"+a.id).css({position:"absolute",top:c[a.id].height/2-15,right:0,"z-index":1001,"line-height":"30px",opacity:c[a.id].opacity}).click(function(d){d.preventDefault();b.transition(a);b.transitionCall(a)}).mouseover(function(){b("#cs-navigation-"+a.id).show()});b("<div id='cs-buttons-"+a.id+"' class='cs-buttons'></div>").appendTo(b("#coin-slider-"+a.id));for(k=1;k<m[a.id].length+1;k++)b("#cs-buttons-"+
a.id).append("<a href='#' class='cs-button-"+a.id+"' id='cs-button-"+a.id+"-"+k+"'>"+k+"</a>");b.each(b(".cs-button-"+a.id),function(d,e){b(e).click(function(g){b(".cs-button-"+a.id).removeClass("cs-active");b(this).addClass("cs-active");g.preventDefault();b.transition(a,d);b.transitionCall(a)})});b("#cs-navigation-"+a.id+" a").mouseout(function(){b("#cs-navigation-"+a.id).hide();c[a.id].pause=false});b("#cs-buttons-"+a.id).css({left:"50%","margin-left":-m[a.id].length*15/2-5,position:"relative"})};
b.effect=function(a){effA=["random","swirl","rain","straight"];eff=c[a.id].effect==""?effA[Math.floor(Math.random()*effA.length)]:c[a.id].effect;l[a.id]=[];if(eff=="random"){counter=0;for(i=1;i<=c[a.id].sph;i++)for(j=1;j<=c[a.id].spw;j++){l[a.id][counter]=i+""+j;counter++}b.random(l[a.id])}eff=="rain"&&b.rain(a);eff=="swirl"&&b.swirl(a);eff=="straight"&&b.straight(a);s[a.id]*=-1;s[a.id]>0&&l[a.id].reverse()};b.random=function(a){var d=a.length;if(d==0)return false;for(;--d;){var e=Math.floor(Math.random()*
(d+1)),g=a[d];a[d]=a[e];a[e]=g}};b.swirl=function(a){for(var d=c[a.id].sph,e=c[a.id].spw,g=1,h=1,n=0,t=0,w=0,x=true;x;){t=n==0||n==2?e:d;for(i=1;i<=t;i++){l[a.id][w]=g+""+h;w++;if(i!=t)switch(n){case 0:h++;break;case 1:g++;break;case 2:h--;break;case 3:g--}}n=(n+1)%4;switch(n){case 0:e--;h++;break;case 1:d--;g++;break;case 2:e--;h--;break;case 3:d--;g--}check=b.max(d,e)-b.min(d,e);if(e<=check&&d<=check)x=false}};b.rain=function(a){for(var d=c[a.id].sph,e=c[a.id].spw,g=0,h=to2=from=1,n=true;n;){for(i=
from;i<=h;i++){l[a.id][g]=i+""+parseInt(to2-i+1);g++}to2++;h<d&&to2<e&&d<e&&h++;h<d&&d>=e&&h++;to2>e&&from++;if(from>h)n=false}};b.straight=function(a){counter=0;for(i=1;i<=c[a.id].sph;i++)for(j=1;j<=c[a.id].spw;j++){l[a.id][counter]=i+""+j;counter++}};b.min=function(a,d){return a>d?d:a};b.max=function(a,d){return a<d?d:a};this.each(function(){init(this)})};b.fn.coinslider.defaults={width:565,height:290,spw:7,sph:5,delay:3E3,sDelay:30,opacity:0.7,titleSpeed:500,effect:"",navigation:true,links:true,
hoverPause:true}})(jQuery);

/*! jQuery Contra v1.0
 * http://jonraasch.com/blog/jquery-contra-plugin
 *
 * Copyright (c) 2009 Jon Raasch (http://jonraasch.com/)
 * Licensed under the MIT License (see http://dev.jonraasch.com/contra/docs#licensing)
 */
(function(b){b.contra=function(c,a){if(typeof c!="function")return false;var d=0;a=a||{};a.scope=a.scope||b(document);a.code=a.code||[38,38,40,40,37,39,37,39,66,65,13];a.scope.keyup(function(e){if((e.which||e.keyCode)==a.code[d]){d++;d>=a.code.length&&c()}else d=0})};b.fn.contra=function(c,a){a=a||{};a.scope=b(this);b.contra(c,a)}})(jQuery);

/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date;date.setTime(date.getTime()+options.expires*24*60*60*1E3)}else date=options.expires;expires="; expires="+date.toUTCString()}var path=options.path?"; path="+options.path:"";var domain=options.domain?"; domain="+
options.domain:"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("")}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==name+"="){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break}}}return cookieValue}};

/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 *
 * Open source under the BSD License.
 *
 * Copyright Â© 2008 George McGinley Smith
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list
 * of conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 *
 * Neither the name of the author nor the names of contributors may be used to endorse
 * or promote products derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
*/
jQuery.easing["jswing"]=jQuery.easing["swing"];
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/
2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,
t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return t==0?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},
easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*0.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*2*
Math.PI/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*0.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*2*Math.PI/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*0.3*1.5;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-0.5*a*Math.pow(2,10*
(t-=1))*Math.sin((t*d-s)*2*Math.PI/p)+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*2*Math.PI/p)*0.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*t*t*(((s*=1.525)+1)*t-s)+b;return c/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-
jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<1/2.75)return c*7.5625*t*t+b;else if(t<2/2.75)return c*(7.5625*(t-=1.5/2.75)*t+0.75)+b;else if(t<2.5/2.75)return c*(7.5625*(t-=2.25/2.75)*t+0.9375)+b;else return c*(7.5625*(t-=2.625/2.75)*t+0.984375)+b},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*0.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*0.5+c*0.5+b}});

/*
 * FancyBox - jQuery Plugin
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 *
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 *
 * Version: 1.3.4 (11/11/2010)
 * Requires: jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);

/*
 * jQuery Form Plugin
 * version: 2.40 (26-FEB-2010)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof options=="function")options={success:options};var url=$.trim(this.attr("action"));if(url)url=(url.match(/^([^#]+)/)||[])[1];url=url||window.location.href||"";options=$.extend({url:url,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},options||{});var veto={};this.trigger("form-pre-serialize",
[this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(var n in options.data)if(options.data[n]instanceof Array)for(var k in options.data[n])a.push({name:n,value:options.data[n][k]});else a.push({name:n,
value:options.data[n]})}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[a,this,options,veto]);if(veto.veto){log("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null}else options.data=q;var $form=this,callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm()});
if(options.clearForm)callbacks.push(function(){$form.clearForm()});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){$(options.target).html(data).each(oldSuccess,arguments)})}else if(options.success)callbacks.push(options.success);options.success=function(data,status,xhr){for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(options,[data,status,xhr||$form,$form])};var files=$("input:file",this).fieldValue();var found=false;for(var j=
0;j<files.length;j++)if(files[j])found=true;var multipart=false;if(files.length&&options.iframe!==false||options.iframe||found||multipart)if(options.closeKeepAlive)$.get(options.closeKeepAlive,fileUpload);else fileUpload();else $.ajax(options);this.trigger("form-submit-notify",[this,options]);return this;function fileUpload(){var form=$form[0];if($(":input[name=submit]",form).length){alert('Error: Form elements must not be named "submit".');return}var opts=$.extend({},$.ajaxSettings,options);var s=
$.extend(true,{},$.extend(true,{},$.ajaxSettings),opts);var id="jqFormIO"+(new Date).getTime();var $io=$('<iframe id="'+id+'" name="'+id+'" src="'+opts.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />');var io=$io[0];$io.css({position:"absolute",top:"-1000px",left:"-1000px"});var xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=
1;$io.attr("src",opts.iframeSrc)}};var g=opts.global;if(g&&!$.active++)$.event.trigger("ajaxStart");if(g)$.event.trigger("ajaxSend",[xhr,opts]);if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&$.active--;return}if(xhr.aborted)return;var cbInvoked=false;var timedOut=0;var sub=form.clk;if(sub){var n=sub.name;if(n&&!sub.disabled){opts.extraData=opts.extraData||{};opts.extraData[n]=sub.value;if(sub.type=="image"){opts.extraData[name+".x"]=form.clk_x;opts.extraData[name+".y"]=form.clk_y}}}function doSubmit(){var t=
$form.attr("target"),a=$form.attr("action");form.setAttribute("target",id);if(form.getAttribute("method")!="POST")form.setAttribute("method","POST");if(form.getAttribute("action")!=opts.url)form.setAttribute("action",opts.url);if(!opts.skipEncodingOverride)$form.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});if(opts.timeout)setTimeout(function(){timedOut=true;cb()},opts.timeout);var extraInputs=[];try{if(opts.extraData)for(var n in opts.extraData)extraInputs.push($('<input type="hidden" name="'+
n+'" value="'+opts.extraData[n]+'" />').appendTo(form)[0]);$io.appendTo("body");$io.data("form-plugin-onload",cb);form.submit()}finally{form.setAttribute("action",a);t?form.setAttribute("target",t):$form.removeAttr("target");$(extraInputs).remove()}}if(opts.forceSync)doSubmit();else setTimeout(doSubmit,10);var domCheckCount=100;function cb(){if(cbInvoked)return;var ok=true;try{if(timedOut)throw"timeout";var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:
io.document;var isXml=opts.dataType=="xml"||doc.XMLDocument||$.isXMLDoc(doc);log("isXml="+isXml);if(!isXml&&(doc.body==null||doc.body.innerHTML=="")){if(--domCheckCount){setTimeout(cb,250);return}log("Could not access iframe DOM after 100 tries.");return}cbInvoked=true;xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;xhr.getResponseHeader=function(header){var headers={"content-type":opts.dataType};return headers[header]};if(opts.dataType=="json"||
opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];if(ta)xhr.responseText=ta.value;else{var pre=doc.getElementsByTagName("pre")[0];if(pre)xhr.responseText=pre.innerHTML}}else if(opts.dataType=="xml"&&!xhr.responseXML&&xhr.responseText!=null)xhr.responseXML=toXml(xhr.responseText);data=$.httpData(xhr,opts.dataType)}catch(e){ok=false;$.handleError(opts,xhr,"error",e)}if(ok){opts.success(data,"success");if(g)$.event.trigger("ajaxSuccess",[xhr,opts])}if(g)$.event.trigger("ajaxComplete",
[xhr,opts]);if(g&&!--$.active)$.event.trigger("ajaxStop");if(opts.complete)opts.complete(xhr,ok?"success":"error");setTimeout(function(){$io.removeData("form-plugin-onload");$io.remove();xhr.responseXML=null},100)}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else doc=(new DOMParser).parseFromString(s,"text/xml");return doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror"?doc:null}}};$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().bind("submit.form-plugin",
function(e){e.preventDefault();$(this).ajaxSubmit(options)}).bind("click.form-plugin",function(e){var target=e.target;var $el=$(target);if(!$el.is(":submit,input:image")){var t=$el.closest(":submit");if(t.length==0)return;target=t[0]}var form=this;form.clk=target;if(target.type=="image")if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY}else if(typeof $.fn.offset=="function"){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top}else{form.clk_x=e.pageX-
target.offsetLeft;form.clk_y=e.pageY-target.offsetTop}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null},100)})};$.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};$.fn.formToArray=function(semantic){var a=[];if(this.length==0)return a;var form=this[0];var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els)return a;for(var i=0,max=els.length;i<max;i++){var el=els[i];var n=el.name;if(!n)continue;if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&
form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}continue}var v=$.fieldValue(el,true);if(v&&v.constructor==Array)for(var j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});else if(v!==null&&typeof v!="undefined")a.push({name:n,value:v})}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0],n=input.name;if(n&&!input.disabled&&input.type=="image"){a.push({name:n,value:$input.val()});a.push({name:n+".x",value:form.clk_x},
{name:n+".y",value:form.clk_y})}}return a};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic))};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor==Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else if(v!==null&&typeof v!="undefined")a.push({name:this.name,value:v})});return $.param(a)};$.fn.fieldValue=function(successful){for(var val=[],i=0,
max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||v.constructor==Array&&!v.length)continue;v.constructor==Array?$.merge(val,v):val.push(v)}return val};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful=="undefined")successful=true;if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=
el||tag=="select"&&el.selectedIndex==-1))return null;if(tag=="select"){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=t=="select-one";var max=one?index+1:ops.length;for(var i=one?index:0;i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v)v=op.attributes&&op.attributes["value"]&&!op.attributes["value"].specified?op.text:op.value;if(one)return v;a.push(v)}}return a}return el.value};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",
this).clearFields()})};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=="text"||t=="password"||tag=="textarea")this.value="";else if(t=="checkbox"||t=="radio")this.checked=false;else if(tag=="select")this.selectedIndex=-1})};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};$.fn.enable=function(b){if(b==undefined)b=true;
return this.each(function(){this.disabled=!b})};$.fn.selected=function(select){if(select==undefined)select=true;return this.each(function(){var t=this.type;if(t=="checkbox"||t=="radio")this.checked=select;else if(this.tagName.toLowerCase()=="option"){var $sel=$(this).parent("select");if(select&&$sel[0]&&$sel[0].type=="select-one")$sel.find("option").selected(false);this.selected=select}})};function log(){if($.fn.ajaxSubmit.debug&&window.console&&window.console.log)window.console.log("[jquery.form] "+
Array.prototype.join.call(arguments,""))}})(jQuery);

/*
 * Gritter for jQuery
 * http://www.boedesign.com/
 *
 * Copyright (c) 2009 Jordan Boesch
 * Dual licensed under the MIT and GPL licenses.
 *
 * Date: December 1, 2009
 * Version: 1.6
 */
(function($){$.gritter={};$.gritter.options={fade_in_speed:"medium",fade_out_speed:1E3,time:6E3};$.gritter.add=function(params){try{return Gritter.add(params||{})}catch(e){var err="Gritter Error: "+e;typeof console!="undefined"&&console.error?console.error(err,params):alert(err)}};$.gritter.remove=function(id,params){Gritter.removeSpecific(id,params||{})};$.gritter.removeAll=function(params){Gritter.stop(params||{})};var Gritter={fade_in_speed:"",fade_out_speed:"",time:"",_custom_timer:0,_item_count:0,
_is_setup:0,_tpl_close:'<div class="gritter-close"></div>',_tpl_item:'<div id="gritter-item-[[number]]" class="gritter-item-wrapper [[item_class]]" style="display:none"><div class="gritter-top"></div><div class="gritter-item">[[image]]<div class="[[class_name]]"><span class="gritter-title">[[username]]</span><p>[[text]]</p></div><div style="clear:both"></div></div><div class="gritter-bottom"></div></div>',_tpl_wrap:'<div id="gritter-notice-wrapper"></div>',add:function(params){if(!params.title||!params.text)throw'You need to fill out the first 2 params: "title" and "text"';
if(!this._is_setup)this._runSetup();var user=params.title,text=params.text,image=params.image||"",sticky=params.sticky||false,item_class=params.class_name||"",time_alive=params.time||"";this._verifyWrapper();this._item_count++;var number=this._item_count,tmp=this._tpl_item;$(["before_open","after_open","before_close","after_close"]).each(function(i,val){Gritter["_"+val+"_"+number]=$.isFunction(params[val])?params[val]:function(){}});this._custom_timer=0;if(time_alive)this._custom_timer=time_alive;
var image_str=image!=""?'<img src="'+image+'" class="gritter-image" />':"",class_name=image!=""?"gritter-with-image":"gritter-without-image";tmp=this._str_replace(["[[username]]","[[text]]","[[image]]","[[number]]","[[class_name]]","[[item_class]]"],[user,text,image_str,this._item_count,class_name,item_class],tmp);this["_before_open_"+number]();$("#gritter-notice-wrapper").append(tmp);var item=$("#gritter-item-"+this._item_count);item.fadeIn(this.fade_in_speed,function(){Gritter["_after_open_"+number]($(this))});
if(!sticky)this._setFadeTimer(item,number);$(item).bind("mouseenter mouseleave",function(event){if(event.type=="mouseenter"){if(!sticky)Gritter._restoreItemIfFading($(this),number)}else if(!sticky)Gritter._setFadeTimer($(this),number);Gritter._hoverState($(this),event.type)});return number},_countRemoveWrapper:function(unique_id,e){e.remove();this["_after_close_"+unique_id](e);if($(".gritter-item-wrapper").length==0)$("#gritter-notice-wrapper").remove()},_fade:function(e,unique_id,params,unbind_events){var params=
params||{},fade=typeof params.fade!="undefined"?params.fade:true;fade_out_speed=params.speed||this.fade_out_speed;this["_before_close_"+unique_id](e);if(unbind_events)e.unbind("mouseenter mouseleave");if(fade)e.animate({opacity:0},fade_out_speed,function(){e.animate({height:0},300,function(){Gritter._countRemoveWrapper(unique_id,e)})});else this._countRemoveWrapper(unique_id,e)},_hoverState:function(e,type){if(type=="mouseenter"){e.addClass("hover");var find_img=e.find("img");find_img.length?find_img.before(this._tpl_close):
e.find("span").before(this._tpl_close);e.find(".gritter-close").click(function(){var unique_id=e.attr("id").split("-")[2];Gritter.removeSpecific(unique_id,{},e,true)})}else{e.removeClass("hover");e.find(".gritter-close").remove()}},removeSpecific:function(unique_id,params,e,unbind_events){if(!e)var e=$("#gritter-item-"+unique_id);this._fade(e,unique_id,params||{},unbind_events)},_restoreItemIfFading:function(e,unique_id){clearTimeout(this["_int_id_"+unique_id]);e.stop().css({opacity:""})},_runSetup:function(){for(opt in $.gritter.options)this[opt]=
$.gritter.options[opt];this._is_setup=1},_setFadeTimer:function(e,unique_id){var timer_str=this._custom_timer?this._custom_timer:this.time;this["_int_id_"+unique_id]=setTimeout(function(){Gritter._fade(e,unique_id)},timer_str)},stop:function(params){var before_close=$.isFunction(params.before_close)?params.before_close:function(){};var after_close=$.isFunction(params.after_close)?params.after_close:function(){};var wrap=$("#gritter-notice-wrapper");before_close(wrap);wrap.fadeOut(function(){$(this).remove();
after_close()})},_str_replace:function(search,replace,subject,count){var i=0,j=0,temp="",repl="",sl=0,fl=0,f=[].concat(search),r=[].concat(replace),s=subject,ra=r instanceof Array,sa=s instanceof Array;s=[].concat(s);if(count)this.window[count]=0;for(i=0,sl=s.length;i<sl;i++){if(s[i]==="")continue;for(j=0,fl=f.length;j<fl;j++){temp=s[i]+"";repl=ra?r[j]!==undefined?r[j]:"":r[0];s[i]=temp.split(f[j]).join(repl);if(count&&s[i]!==temp)this.window[count]+=(temp.length-s[i].length)/f[j].length}}return sa?
s:s[0]},_verifyWrapper:function(){if($("#gritter-notice-wrapper").length==0)$("body").append(this._tpl_wrap)}}})(jQuery);

/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.4
*
* Requires: 1.2.2+
*/
(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);

/*
 * jQuery Nivo Slider v2.1
 * http://nivo.dev7studios.com
 *
 * Copyright 2010, Gilbert Pellegrom
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 *
 * May 2010 - Pick random effect from specified set of effects by toronegro
 * May 2010 - controlNavThumbsFromRel option added by nerd-sh
 * May 2010 - Do not start nivoRun timer if there is only 1 slide by msielski
 * April 2010 - controlNavThumbs option added by Jamie Thompson (http://jamiethompson.co.uk)
 * March 2010 - manualAdvance option added by HelloPablo (http://hellopablo.co.uk)
 */
(function(a){a.fn.nivoSlider=function(o){function l(c,d,b,i){var e=c.data("nivo:vars");if((!e||e.stop)&&!i)return false;b.beforeChange.call(this);if(i){i=="prev"&&c.css("background","url("+e.currentImage.attr("src")+") no-repeat");i=="next"&&c.css("background","url("+e.currentImage.attr("src")+") no-repeat")}else c.css("background","url("+e.currentImage.attr("src")+") no-repeat");e.currentSlide++;if(e.currentSlide==e.totalSlides){e.currentSlide=0;b.slideshowEnd.call(this)}if(e.currentSlide<0)e.currentSlide=
e.totalSlides-1;e.currentImage=a(d[e.currentSlide]).is("img")?a(d[e.currentSlide]):a(d[e.currentSlide]).find("img:first");if(b.controlNav){a(".nivo-controlNav a",c).removeClass("active");a(".nivo-controlNav a:eq("+e.currentSlide+")",c).addClass("active")}if(e.currentImage.attr("title")!=""){var k=e.currentImage.attr("title");if(k.substr(0,1)=="#")k=a(k).html();a(".nivo-caption",c).css("display")=="block"?a(".nivo-caption p",c).fadeOut(b.animSpeed,function(){a(this).html(k);a(this).fadeIn(b.animSpeed)}):
a(".nivo-caption p",c).html(k);a(".nivo-caption",c).fadeIn(b.animSpeed)}else a(".nivo-caption",c).fadeOut(b.animSpeed);var j=0;a(".nivo-slice",c).each(function(){var h=Math.round(c.width()/b.slices);a(this).css({height:"0px",opacity:"0",background:"url("+e.currentImage.attr("src")+") no-repeat -"+(h+j*h-h)+"px 0%"});j++});if(b.effect=="random"){d=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade"];e.randAnim=d[Math.floor(Math.random()*(d.length+
1))];if(e.randAnim==undefined)e.randAnim="fade"}if(b.effect.indexOf(",")!=-1){d=b.effect.split(",");e.randAnim=a.trim(d[Math.floor(Math.random()*d.length)])}e.running=true;if(b.effect=="sliceDown"||b.effect=="sliceDownRight"||e.randAnim=="sliceDownRight"||b.effect=="sliceDownLeft"||e.randAnim=="sliceDownLeft"){var g=0;j=0;d=a(".nivo-slice",c);if(b.effect=="sliceDownLeft"||e.randAnim=="sliceDownLeft")d=a(".nivo-slice",c)._reverse();d.each(function(){var h=a(this);h.css("top","0px");j==b.slices-1?setTimeout(function(){h.animate({height:"100%",
opacity:"1.0"},b.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+g):setTimeout(function(){h.animate({height:"100%",opacity:"1.0"},b.animSpeed)},100+g);g+=50;j++})}else if(b.effect=="sliceUp"||b.effect=="sliceUpRight"||e.randAnim=="sliceUpRight"||b.effect=="sliceUpLeft"||e.randAnim=="sliceUpLeft"){j=g=0;d=a(".nivo-slice",c);if(b.effect=="sliceUpLeft"||e.randAnim=="sliceUpLeft")d=a(".nivo-slice",c)._reverse();d.each(function(){var h=a(this);h.css("bottom","0px");j==b.slices-1?setTimeout(function(){h.animate({height:"100%",
opacity:"1.0"},b.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+g):setTimeout(function(){h.animate({height:"100%",opacity:"1.0"},b.animSpeed)},100+g);g+=50;j++})}else if(b.effect=="sliceUpDown"||b.effect=="sliceUpDownRight"||e.randAnim=="sliceUpDown"||b.effect=="sliceUpDownLeft"||e.randAnim=="sliceUpDownLeft"){var n=j=g=0;d=a(".nivo-slice",c);if(b.effect=="sliceUpDownLeft"||e.randAnim=="sliceUpDownLeft")d=a(".nivo-slice",c)._reverse();d.each(function(){var h=a(this);if(j==0){h.css("top",
"0px");j++}else{h.css("bottom","0px");j=0}n==b.slices-1?setTimeout(function(){h.animate({height:"100%",opacity:"1.0"},b.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+g):setTimeout(function(){h.animate({height:"100%",opacity:"1.0"},b.animSpeed)},100+g);g+=50;n++})}else if(b.effect=="fold"||e.randAnim=="fold"){j=g=0;a(".nivo-slice",c).each(function(){var h=a(this),m=h.width();h.css({top:"0px",height:"100%",width:"0px"});j==b.slices-1?setTimeout(function(){h.animate({width:m,opacity:"1.0"},
b.animSpeed,"",function(){c.trigger("nivo:animFinished")})},100+g):setTimeout(function(){h.animate({width:m,opacity:"1.0"},b.animSpeed)},100+g);g+=50;j++})}else if(b.effect=="fade"||e.randAnim=="fade"){j=0;a(".nivo-slice",c).each(function(){a(this).css("height","100%");j==b.slices-1?a(this).animate({opacity:"1.0"},b.animSpeed*2,"",function(){c.trigger("nivo:animFinished")}):a(this).animate({opacity:"1.0"},b.animSpeed*2);j++})}}var f=a.extend({},a.fn.nivoSlider.defaults,o);return this.each(function(){var c=
{currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false},d=a(this);d.data("nivo:vars",c);d.css("position","relative");d.addClass("nivoSlider");var b=d.children();b.each(function(){var g=a(this),n="";if(!g.is("img")){if(g.is("a")){g.addClass("nivo-imageLink");n=g}g=g.find("img:first")}var h=g.width();if(h==0)h=g.attr("width");var m=g.height();if(m==0)m=g.attr("height");h>d.width()&&d.width(h);m>d.height()&&d.height(m);n!=""&&n.css("display","none");g.css("display",
"none");c.totalSlides++});if(f.startSlide>0){if(f.startSlide>=c.totalSlides)f.startSlide=c.totalSlides-1;c.currentSlide=f.startSlide}c.currentImage=a(b[c.currentSlide]).is("img")?a(b[c.currentSlide]):a(b[c.currentSlide]).find("img:first");a(b[c.currentSlide]).is("a")&&a(b[c.currentSlide]).css("display","block");d.css("background","url("+c.currentImage.attr("src")+") no-repeat");for(var i=0;i<f.slices;i++){var e=Math.round(d.width()/f.slices);i==f.slices-1?d.append(a('<div class="nivo-slice"></div>').css({left:e*
i+"px",width:d.width()-e*i+"px"})):d.append(a('<div class="nivo-slice"></div>').css({left:e*i+"px",width:e+"px"}))}d.append(a('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:f.captionOpacity}));if(c.currentImage.attr("title")!=""){i=c.currentImage.attr("title");if(i.substr(0,1)=="#")i=a(i).html();a(".nivo-caption p",d).html(i);a(".nivo-caption",d).fadeIn(f.animSpeed)}var k=0;if(!f.manualAdvance&&b.length>1)k=setInterval(function(){l(d,b,f,false)},f.pauseTime);if(f.directionNav){d.append('<div class="nivo-directionNav"><a class="nivo-prevNav">Prev</a><a class="nivo-nextNav">Next</a></div>');
if(f.directionNavHide){a(".nivo-directionNav",d).hide();d.hover(function(){a(".nivo-directionNav",d).show()},function(){a(".nivo-directionNav",d).hide()})}a("a.nivo-prevNav",d).live("click",function(){if(c.running)return false;clearInterval(k);k="";c.currentSlide-=2;l(d,b,f,"prev")});a("a.nivo-nextNav",d).live("click",function(){if(c.running)return false;clearInterval(k);k="";l(d,b,f,"next")})}if(f.controlNav){e=a('<div class="nivo-controlNav"></div>');d.append(e);for(i=0;i<b.length;i++)if(f.controlNavThumbs){var j=
b.eq(i);j.is("img")||(j=j.find("img:first"));f.controlNavThumbsFromRel?e.append('<a class="nivo-control" rel="'+i+'"><img src="'+j.attr("rel")+'" alt="" /></a>'):e.append('<a class="nivo-control" rel="'+i+'"><img src="'+j.attr("src").replace(f.controlNavThumbsSearch,f.controlNavThumbsReplace)+'" alt="" /></a>')}else e.append('<a class="nivo-control" rel="'+i+'">'+(i+1)+"</a>");a(".nivo-controlNav a:eq("+c.currentSlide+")",d).addClass("active");a(".nivo-controlNav a",d).live("click",function(){if(c.running)return false;
if(a(this).hasClass("active"))return false;clearInterval(k);k="";d.css("background","url("+c.currentImage.attr("src")+") no-repeat");c.currentSlide=a(this).attr("rel")-1;l(d,b,f,"control")})}f.keyboardNav&&a(window).keypress(function(g){if(g.keyCode=="37"){if(c.running)return false;clearInterval(k);k="";c.currentSlide-=2;l(d,b,f,"prev")}if(g.keyCode=="39"){if(c.running)return false;clearInterval(k);k="";l(d,b,f,"next")}});f.pauseOnHover&&d.hover(function(){c.paused=true;clearInterval(k);k=""},function(){c.paused=
false;if(k==""&&!f.manualAdvance)k=setInterval(function(){l(d,b,f,false)},f.pauseTime)});d.bind("nivo:animFinished",function(){c.running=false;a(b).each(function(){a(this).is("a")&&a(this).css("display","none")});a(b[c.currentSlide]).is("a")&&a(b[c.currentSlide]).css("display","block");if(k==""&&!c.paused&&!f.manualAdvance)k=setInterval(function(){l(d,b,f,false)},f.pauseTime);f.afterChange.call(this)})})};a.fn.nivoSlider.defaults={effect:"random",slices:15,animSpeed:500,pauseTime:3E3,startSlide:0,
directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){}};a.fn._reverse=[].reverse})(jQuery);

/**
 * jQuery Roundabout - v1.1
 * http://fredhq.com/projects/roundabout/
 *
 * Moves list-items of enabled ordered and unordered lists long
 * a chosen path. Includes the default "lazySusan" path, that
 * moves items long a spinning turntable.
 *
 * Terms of Use // jQuery Roundabout
 *
 * Open source under the BSD license
 *
 * Copyright (c) 2010, Fred LeBlanc
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *   - Redistributions in binary form must reproduce the above
 *     copyright notice, this list of conditions and the following
 *     disclaimer in the documentation and/or other materials provided
 *     with the distribution.
 *   - Neither the name of the author nor the names of its contributors
 *     may be used to endorse or promote products derived from this
 *     software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
jQuery.extend({roundabout_shape:{def:"lazySusan",lazySusan:function(b,c,a){return{x:Math.sin(b+c),y:Math.sin(b+3*Math.PI/2+c)/8*a,z:(Math.cos(b+c)+1)/2,scale:Math.sin(b+Math.PI/2+c)/2+0.5}}}});
jQuery.fn.roundabout=function(b,c){var a=typeof b!="object"?{}:b;a={bearing:typeof a.bearing=="undefined"?0:jQuery.roundabout_toFloat(a.bearing%360),tilt:typeof a.tilt=="undefined"?0:jQuery.roundabout_toFloat(a.tilt),minZ:typeof a.minZ=="undefined"?100:parseInt(a.minZ,10),maxZ:typeof a.maxZ=="undefined"?400:parseInt(a.maxZ,10),minOpacity:typeof a.minOpacity=="undefined"?0.4:jQuery.roundabout_toFloat(a.minOpacity),maxOpacity:typeof a.maxOpacity=="undefined"?1:jQuery.roundabout_toFloat(a.maxOpacity),
minScale:typeof a.minScale=="undefined"?0.4:jQuery.roundabout_toFloat(a.minScale),maxScale:typeof a.maxScale=="undefined"?1:jQuery.roundabout_toFloat(a.maxScale),duration:typeof a.duration=="undefined"?600:parseInt(a.duration,10),btnNext:a.btnNext||null,btnPrev:a.btnPrev||null,easing:a.easing||"swing",clickToFocus:a.clickToFocus!==false,focusBearing:typeof a.focusBearing=="undefined"?0:jQuery.roundabout_toFloat(a.focusBearing%360),shape:a.shape||"lazySusan",debug:a.debug||false,childSelector:a.childSelector||
"li",startingChild:typeof a.startingChild=="undefined"?null:parseInt(a.startingChild,10),reflect:typeof a.reflect=="undefined"||a.reflect===false?false:true};this.each(function(){var d=jQuery(this),g=jQuery.roundabout_toFloat(360/d.children(a.childSelector).length),f=a.startingChild===null?a.bearing:a.startingChild*g;d.addClass("roundabout-holder").css("padding",0).css("position","relative").css("z-index",a.minZ);d.data("roundabout",{bearing:f,tilt:a.tilt,minZ:a.minZ,maxZ:a.maxZ,minOpacity:a.minOpacity,
maxOpacity:a.maxOpacity,minScale:a.minScale,maxScale:a.maxScale,duration:a.duration,easing:a.easing,clickToFocus:a.clickToFocus,focusBearing:a.focusBearing,animating:0,childInFocus:-1,shape:a.shape,period:g,debug:a.debug,childSelector:a.childSelector,reflect:a.reflect});a.clickToFocus===true&&d.children(a.childSelector).each(function(h){jQuery(this).click(function(j){var i=a.reflect===true?360-g*h:g*h;i=jQuery.roundabout_toFloat(i);if(!jQuery.roundabout_isInFocus(d,i)){j.preventDefault();d.data("roundabout").animating===
0&&d.roundabout_animateAngleToFocus(i);return false}})});a.btnNext&&jQuery(a.btnNext).bind("click.roundabout",function(h){h.preventDefault();d.data("roundabout").animating===0&&d.roundabout_animateToNextChild();return false});a.btnPrev&&jQuery(a.btnPrev).bind("click.roundabout",function(h){h.preventDefault();d.data("roundabout").animating===0&&d.roundabout_animateToPreviousChild();return false})});this.roundabout_startChildren();if(typeof c==="function"){var e=this;setTimeout(function(){c(e)},0)}return this};
jQuery.fn.roundabout_startChildren=function(){this.each(function(){var b=jQuery(this),c=b.data("roundabout");b.children(c.childSelector).each(function(a){a=c.reflect===true?360-c.period*a:c.period*a;jQuery(this).addClass("roundabout-moveable-item").css("position","absolute");jQuery(this).data("roundabout",{startWidth:jQuery(this).width(),startHeight:jQuery(this).height(),startFontSize:parseInt(jQuery(this).css("font-size"),10),degrees:a})});b.roundabout_updateChildPositions()});return this};
jQuery.fn.roundabout_setTilt=function(b,c){this.each(function(){jQuery(this).data("roundabout").tilt=b;jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var a=this;setTimeout(function(){c(a)},0)}return this};jQuery.fn.roundabout_setBearing=function(b,c){this.each(function(){jQuery(this).data("roundabout").bearing=jQuery.roundabout_toFloat(b%360,2);jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var a=this;setTimeout(function(){c(a)},0)}return this};
jQuery.fn.roundabout_adjustBearing=function(b,c){b=jQuery.roundabout_toFloat(b);b!==0&&this.each(function(){jQuery(this).data("roundabout").bearing=jQuery.roundabout_getBearing(jQuery(this))+b;jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var a=this;setTimeout(function(){c(a)},0)}return this};
jQuery.fn.roundabout_adjustTilt=function(b,c){b=jQuery.roundabout_toFloat(b);b!==0&&this.each(function(){jQuery(this).data("roundabout").tilt=jQuery.roundabout_toFloat(jQuery(this).roundabout_get("tilt")+b);jQuery(this).roundabout_updateChildPositions()});if(typeof c==="function"){var a=this;setTimeout(function(){c(a)},0)}return this};
jQuery.fn.roundabout_animateToBearing=function(b,c,a,e){b=jQuery.roundabout_toFloat(b);var d=new Date,g=typeof c=="undefined"?null:c,f=typeof a=="undefined"?null:a,h=typeof e!=="object"?null:e;this.each(function(){var j=jQuery(this),i=j.data("roundabout"),k,l=g===null?i.duration:g,m=f!==null?f:i.easing||"swing";if(h===null)h={timerStart:d,start:jQuery.roundabout_getBearing(j),totalTime:l};k=d-h.timerStart;if(k<l){i.animating=1;if(typeof jQuery.easing.def=="string"){i=jQuery.easing[m]||jQuery.easing[jQuery.easing.def];
k=i(null,k,h.start,b-h.start,h.totalTime)}else k=jQuery.easing[m](k/h.totalTime,k,h.start,b-h.start,h.totalTime);j.roundabout_setBearing(k,function(){j.roundabout_animateToBearing(b,l,m,h)})}else{b=b<0?b+360:b%360;i.animating=0;j.roundabout_setBearing(b)}});return this};jQuery.fn.roundabout_animateToDelta=function(b,c,a){this.each(function(){b=jQuery.roundabout_getBearing(jQuery(this))+jQuery.roundabout_toFloat(b);jQuery(this).roundabout_animateToBearing(b,c,a)});return this};
jQuery.fn.roundabout_animateToChild=function(b,c,a){this.each(function(){var e=jQuery(this),d=e.data("roundabout");if(d.childInFocus!==b&&d.animating===0){d=jQuery(e.children(d.childSelector)[b]);e.roundabout_animateAngleToFocus(d.data("roundabout").degrees,c,a)}});return this};
jQuery.fn.roundabout_animateToNearbyChild=function(b,c){var a=b[0],e=b[1];this.each(function(){var d=jQuery(this).data("roundabout"),g=jQuery.roundabout_toFloat(360-jQuery.roundabout_getBearing(jQuery(this))),f=d.period,h=0,j=d.reflect,i=jQuery(this).children(d.childSelector).length;g=j===true?g%360:g;if(d.animating===0)if(j===false&&c==="next"||j===true&&c!=="next")for(g=g===0?360:g;h<i;){d={lower:jQuery.roundabout_toFloat(f*h),upper:jQuery.roundabout_toFloat(f*(h+1))};d.upper=h==i-1?360:d.upper;
if(g<=d.upper&&g>d.lower){jQuery(this).roundabout_animateToDelta(g-d.lower,a,e);break}h++}else for(;;){d={lower:jQuery.roundabout_toFloat(f*h),upper:jQuery.roundabout_toFloat(f*(h+1))};d.upper=h==i-1?360:d.upper;if(g>=d.lower&&g<d.upper){jQuery(this).roundabout_animateToDelta(g-d.upper,a,e);break}h++}});return this};jQuery.fn.roundabout_animateToNextChild=function(){return this.roundabout_animateToNearbyChild(arguments,"next")};
jQuery.fn.roundabout_animateToPreviousChild=function(){return this.roundabout_animateToNearbyChild(arguments,"previous")};jQuery.fn.roundabout_animateAngleToFocus=function(b,c,a){this.each(function(){var e=jQuery.roundabout_getBearing(jQuery(this))-b;e=Math.abs(360-e)<Math.abs(0-e)?360-e:0-e;e=e>180?-(360-e):e;e!==0&&jQuery(this).roundabout_animateToDelta(e,c,a)});return this};
jQuery.fn.roundabout_updateChildPositions=function(){this.each(function(){var b=jQuery(this),c=b.data("roundabout"),a=-1,e={bearing:jQuery.roundabout_getBearing(b),tilt:c.tilt,stage:{width:Math.floor(b.width()*0.9),height:Math.floor(b.height()*0.9)},animating:c.animating,inFocus:c.childInFocus,focusBearingRad:jQuery.roundabout_degToRad(c.focusBearing),shape:jQuery.roundabout_shape[c.shape]||jQuery.roundabout_shape[jQuery.roundabout_shape.def]};e.midStage={width:e.stage.width/2,height:e.stage.height/
2};e.nudge={width:e.midStage.width+e.stage.width*0.05,height:e.midStage.height+e.stage.height*0.05};e.zValues={min:c.minZ,max:c.maxZ,diff:c.maxZ-c.minZ};e.opacity={min:c.minOpacity,max:c.maxOpacity,diff:c.maxOpacity-c.minOpacity};e.scale={min:c.minScale,max:c.maxScale,diff:c.maxScale-c.minScale};b.children(c.childSelector).each(function(d){if(jQuery.roundabout_updateChildPosition(jQuery(this),b,e,d)&&e.animating===0){a=d;jQuery(this).addClass("roundabout-in-focus")}else jQuery(this).removeClass("roundabout-in-focus")});
if(a!==e.inFocus){jQuery.roundabout_triggerEvent(b,e.inFocus,"blur");a!==-1&&jQuery.roundabout_triggerEvent(b,a,"focus");c.childInFocus=a}});return this};jQuery.roundabout_getBearing=function(b){return jQuery.roundabout_toFloat(b.data("roundabout").bearing)%360};jQuery.roundabout_degToRad=function(b){return b%360*Math.PI/180};jQuery.roundabout_isInFocus=function(b,c){return jQuery.roundabout_getBearing(b)%360===c%360};jQuery.roundabout_triggerEvent=function(b,c,a){return c<0?this:jQuery(b.children(b.data("roundabout").childSelector)[c]).trigger(a)};
jQuery.roundabout_toFloat=function(b){b=Math.round(parseFloat(b)*1E3)/1E3;return parseFloat(b.toFixed(2))};
jQuery.roundabout_updateChildPosition=function(b,c,a,e){b=jQuery(b);for(var d=b.data("roundabout"),g=[],f=jQuery.roundabout_degToRad(360-b.data("roundabout").degrees+a.bearing);f<0;)f+=Math.PI*2;for(;f>Math.PI*2;)f-=Math.PI*2;f=a.shape(f,a.focusBearingRad,a.tilt);f.scale=f.scale>1?1:f.scale;f.adjustedScale=(a.scale.min+a.scale.diff*f.scale).toFixed(4);f.width=(f.adjustedScale*d.startWidth).toFixed(4);f.height=(f.adjustedScale*d.startHeight).toFixed(4);b.css("left",(f.x*a.midStage.width+a.nudge.width-
f.width/2).toFixed(1)+"px").css("top",(f.y*a.midStage.height+a.nudge.height-f.height/2).toFixed(1)+"px").css("width",f.width+"px").css("height",f.height+"px").css("opacity",(a.opacity.min+a.opacity.diff*f.scale).toFixed(2)).css("z-index",Math.round(a.zValues.min+a.zValues.diff*f.z)).css("font-size",(f.adjustedScale*d.startFontSize).toFixed(2)+"px").attr("current-scale",f.adjustedScale);if(c.data("roundabout").debug===true){g.push('<div style="font-weight: normal; font-size: 10px; padding: 2px; width: '+
b.css("width")+'; background-color: #ffc;">');g.push('<strong style="font-size: 12px; white-space: nowrap;">Child '+e+"</strong><br />");g.push("<strong>left:</strong> "+b.css("left")+"<br /><strong>top:</strong> "+b.css("top")+"<br />");g.push("<strong>width:</strong> "+b.css("width")+"<br /><strong>opacity:</strong> "+b.css("opacity")+"<br />");g.push("<strong>z-index:</strong> "+b.css("z-index")+"<br /><strong>font-size:</strong> "+b.css("font-size")+"<br />");g.push("<strong>scale:</strong> "+
b.attr("current-scale"));g.push("</div>");b.html(g.join(""))}return jQuery.roundabout_isInFocus(c,b.data("roundabout").degrees)};

/**
 * jQuery Roundabout Shapes v1.1
 * http://fredhq.com/projects/roundabout-shapes/
 *
 * Provides additional paths along which items can move for the
 * jQuery Roundabout plugin (v1.0+).
 *
 * Terms of Use // jQuery Roundabout Shapes
 *
 * Open source under the BSD license
 *
 * Copyright (c) 2009, Fred LeBlanc
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *   - Redistributions in binary form must reproduce the above
 *     copyright notice, this list of conditions and the following
 *     disclaimer in the documentation and/or other materials provided
 *     with the distribution.
 *   - Neither the name of the author nor the names of its contributors
 *     may be used to endorse or promote products derived from this
 *     software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
jQuery.extend(jQuery.roundabout_shape,{theJuggler:function(a,b,c){return{x:Math.sin(a+b),y:Math.tan(Math.exp(Math.log(a))+b)/(c-1),z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},figure8:function(a,b,c){return{x:Math.sin(a*2+b),y:Math.sin(a+Math.PI/2+b)/8*c,z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},waterWheel:function(a,b,c){return{x:Math.sin(a+Math.PI/2+b)/8*c,y:Math.sin(a+b)/(Math.PI/2),z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},square:function(a,b,
c){var d;if(a<=Math.PI/2){b=2/Math.PI*a;d=-(2/Math.PI)*a+1;a=-(1/Math.PI)*a+1}else if(a>Math.PI/2&&a<=Math.PI){b=-(2/Math.PI)*a+2;d=-(2/Math.PI)*a+1;a=-(1/Math.PI)*a+1}else{b=a>Math.PI&&a<=3*Math.PI/2?-(2/Math.PI)*a+2:2/Math.PI*a-4;d=2/Math.PI*a-3;a=1/Math.PI*a-1}return{x:b,y:d*c,z:a,scale:a}},conveyorBeltLeft:function(a,b,c){return{x:-Math.cos(a+b),y:Math.cos(a+3*Math.PI/2+b)/8*c,z:(Math.sin(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},conveyorBeltRight:function(a,b,c){return{x:Math.cos(a+b),
y:Math.cos(a+3*Math.PI/2+b)/8*c,z:(Math.sin(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},goodbyeCruelWorld:function(a,b,c){return{x:Math.sin(a+b),y:Math.tan(a+3*Math.PI/2+b)/8*(c+0.5),z:(Math.sin(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},diagonalRingLeft:function(a,b,c){return{x:Math.sin(a+b),y:-Math.cos(a+Math.tan(Math.cos(b)))/(c+1.5),z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},diagonalRingRight:function(a,b,c){return{x:Math.sin(a+b),y:Math.cos(a+Math.tan(Math.cos(b)))/
(c+1.5),z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},rollerCoaster:function(a,b,c){return{x:Math.sin(a+b),y:Math.sin((2+c)*a),z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}},tearDrop:function(a,b,c){return{x:Math.sin(a+b),y:-Math.sin(a/2+c)+0.35,z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+0.5}}});
