/* jQuery HoverImageText plugin - Created on 16th January 2008 by Ryan O'Dell - Version 1 */
(function($){$.fn.HoverImageText=function(){var opts=$.fn.HoverImageText.defaults;return this.each(function(){var oText=$(this).children(opts.TagName);oText=oText.hide();var oImg=$(this).hover(function(){oHover=oText;window.setTimeout(function(){HoverCheckAndShow(oText);},opts.HoverCheck);},function(){oHover=null;oText.animate(opts.AnimHide,opts.HoverOut,opts.AnimHideCallback);});});};$.fn.HoverImageText.defaults={AnimShow:{opacity:"show"},AnimShowCallback:null,HoverCheck:600,HoverIn:500,AnimHide:{opacity:"hide"},AnimHideCallback:null,HoverOut:300,TagName:'p'};function HoverCheckAndShow(oText){var opts=$.fn.HoverImageText.defaults;if(oHover==oText){oText.animate(opts.AnimShow,opts.HoverIn,function(){this.style.display="inline";if(typeof(opts.AnimShowCallback)=='function'){opts.AnimShowCallback();}});oText.each(function(){this.style.display="inline";});if($.browser.msie){oText.each(function(){var oThis=this;window.setTimeout(function(){oThis.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=80)";},opts.HoverIn-260);});}} return oText;};var oHover=null;$.fx.prototype.update=function(){if(this.options.step) this.options.step.apply(this.elem,[this.now,this]);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width") this.elem.style.display="inline";};})(jQuery);

/* jqModal - Minimalist Modaling with jQuery * (http://dev.iceburg.net/jquery/jqModal/) * Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net> * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * $Version: 03/01/2009 +r14 */
(function($){$.fn.jqm=function(o){var p={overlay:50,overlayClass:'jqmOverlay',closeClass:'jqmClose',trigger:'.jqModal',ajax:F,ajaxText:'',target:F,modal:F,toTop:F,onShow:F,onHide:F,onLoad:F};return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o);s++;this._jqm=s;H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass('jqmID'+s),s:s};if(p.trigger)$(this).jqmAddTrigger(p.trigger)})};$.fn.jqmAddClose=function(e){return hs(this,e,'jqmHide')};$.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow')};$.fn.jqmShow=function(t){return this.each(function(){t=t||window.event;$.jqm.open(this._jqm,t)})};$.fn.jqmHide=function(t){return this.each(function(){t=t||window.event;$.jqm.close(this._jqm,t)})};$.jqm={hash:{},open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index'))),z=(z>0)?z:3000,o=$('<div></div>').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});if(h.a)return F;h.t=t;h.a=true;h.w.css('z-index',z);if(c.modal){if(!A[0])L('bind');A.push(s)}else if(c.overlay>0)h.w.jqmAddClose(o);else o=F;h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F;if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in{Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'")}}if(c.ajax){var r=c.target||h.w,u=c.ajax,r=(typeof r=='string')?$(r,h.w):$(r),u=(u.substr(0,1)=='@')?$(t).attr(u.substring(1)):u;r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h)})}else if(cc)h.w.jqmAddClose($(cc,h.w));if(c.toTop&&h.o)h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o);(c.onShow)?c.onShow(h):h.w.show();e(h);return F},close:function(s){var h=H[s];if(!h.a)return F;h.a=F;if(A[0]){A.pop();if(!A[0])L('unbind')}if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove();if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove()}return F},params:{}};var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version=="6.0"),F=false,i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),e=function(h){if(ie6)if(h.o)h.o.html('<p style="width:100%;height:100%"/>').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i);f(h)},f=function(h){try{$(':input:visible',h.w)[0].focus()}catch(_){}},L=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m)},m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return!r},hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function(){if(!this[c]){this[c]=[];$(this).click(function(){for(var i in{jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return F})}this[c].push(s)})})}})(jQuery);

/* (c) 2010 Sawanna Team (http://sawanna.org) */
var jmenu={effect:'fade',duration:400,set:function(settings){try{if(settings.animation=='show'){this.effect='show'}if(settings.animation=='slide'){this.effect='slide'}if(settings.animation=='fade'){this.effect='fade'}}catch(e){}try{this.duration=settings.duration}catch(e){}},fix_pos:function(elem){if($(elem).parent('ul').parent('li').length){$(elem).children('ul').eq(0).css({marginTop:-$(elem).height(),marginLeft:$(elem).width()})}else{$(elem).children('ul').eq(0).css({'top':$(elem).offset().top+$(elem).height(),'left':$(elem).offset().left})}},show:function(elem){if(this.effect=='fade'){$(elem).children('a').eq(0).stop(1,1).animate({backgroundColor:"#F5F5F5",color:'#5C3B91'},this.duration);$(elem).children('ul').eq(0).stop(1,1).fadeIn(this.duration)}else if(this.effect=='slide'){$(elem).children('ul').eq(0).stop(1,1).slideDown(this.duration)}else if(this.effect=='show'){$(elem).children('ul').eq(0).stop(1,1).show(this.duration)}},hide:function(elem){if(!$(elem).hasClass('selected'))$(elem).children('a').eq(0).stop(1,1).animate({backgroundColor:"#FFF",color:'#5792D6'},100);$(elem).children('ul').eq(0).stop(1,1).fadeOut(100)}};jQuery.fn.jmenu=function(settings){var selected=false;jmenu.set(settings);$(this).find('li.menu').each(function(){$(this).hover(function(){if($(this).hasClass('selected')&&!$(this).children('a').eq(0).hasClass('menu'))$(this).children('a').eq(0).css({'border-color':'#F5F5F5','-moz-border-radius-bottomright':'0','-moz-border-radius-bottomleft':'0','-webkit-border-bottom-right-radius':'0','-webkit-border-bottom-left-radius':'0','border-bottom-right-radius':'0','border-bottom-left-radius':'0'});jmenu.fix_pos(this);jmenu.show(this)},function(){if($(this).hasClass('selected'))$(this).children('a').eq(0).css({'border':'1px solid #E2E2E2','-moz-border-radius':'7px','-webkit-border-radius':'7px','border-radius':'7px'});jmenu.hide(this)})})};

/*! Color animation jQuery-plugin * http://www.bitstorm.org/jquery/color-animation/ * Copyright 2011 Edwin Martin <edwin@bitstorm.org> * Released under the MIT and GPL licenses. */
(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(!g.colorInit){g.start=c(g.elem,e);g.end=b(g.end);g.colorInit=true}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);
