/**** Easing
/********************/
jQuery.extend(jQuery.easing,{easeIn:function(a,b,c,d,e){return jQuery.easing.easeInQuad(a,b,c,d,e)},easeOut:function(a,b,c,d,e){return jQuery.easing.easeOutQuad(a,b,c,d,e)},easeInOut:function(a,b,c,d,e){return jQuery.easing.easeInOutQuad(a,b,c,d,e)},expoin:function(a,b,c,d,e){return jQuery.easing.easeInExpo(a,b,c,d,e)},expoout:function(a,b,c,d,e){return jQuery.easing.easeOutExpo(a,b,c,d,e)},expoinout:function(a,b,c,d,e){return jQuery.easing.easeInOutExpo(a,b,c,d,e)},bouncein:function(a,b,c,d,e){return jQuery.easing.easeInBounce(a,b,c,d,e)},bounceout:function(a,b,c,d,e){return jQuery.easing.easeOutBounce(a,b,c,d,e)},bounceinout:function(a,b,c,d,e){return jQuery.easing.easeInOutBounce(a,b,c,d,e)},elasin:function(a,b,c,d,e){return jQuery.easing.easeInElastic(a,b,c,d,e)},elasout:function(a,b,c,d,e){return jQuery.easing.easeOutElastic(a,b,c,d,e)},elasinout:function(a,b,c,d,e){return jQuery.easing.easeInOutElastic(a,b,c,d,e)},backin:function(a,b,c,d,e){return jQuery.easing.easeInBack(a,b,c,d,e)},backout:function(a,b,c,d,e){return jQuery.easing.easeOutBack(a,b,c,d,e)},backinout:function(a,b,c,d,e){return jQuery.easing.easeInOutBack(a,b,c,d,e)}});
/**** LavaLamp Menu
/********************/
(function ($) { $.fn.lavaLamp = function (o) { o = $.extend({ fx: "linear", speed: 500, click: function () { } }, o || {}); return this.each(function () { var b = $(this), noop = function () { }, $back = $('<li class="back"><div class="left"></div></li>').appendTo(b), $li = $("li", this), curr = $("li.current", this)[0] || $($li[0]).addClass("current")[0]; $li.not(".back").hover(function () { move(this) }, noop); $(this).hover(noop, function () { move(curr) }); $li.click(function (e) { setCurr(this); /*return o.click.apply(this, [e, this])*/ }); setCurr(curr); function setCurr(a) { $back.css({ "left": a.offsetLeft + "px", "width": a.offsetWidth + "px" }); curr = a }; function move(a) { $back.each(function () { $(this).dequeue() }).animate({ width: a.offsetWidth, left: a.offsetLeft }, o.speed, o.fx) } }) } })(jQuery);
/**** UiTop
/*******************
(function(a){a.fn.UItoTop=function(b){var c={text:"To Top",min:200,inDelay:600,outDelay:400,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:1200,easingType:"linear"};var d=a.extend(c,b);var e="#"+d.containerID;var f="#"+d.containerHoverID;a("body").append('<a href="#" id="'+d.containerID+'">'+d.text+"</a>");a(e).hide().click(function(){a("html, body").animate({scrollTop:0},d.scrollSpeed,d.easingType);a("#"+d.containerHoverID,this).stop().animate({opacity:0},d.inDelay,d.easingType);return false}).prepend('<span id="'+d.containerHoverID+'"></span>').hover(function(){a(f,this).stop().animate({opacity:1},600,"linear")},function(){a(f,this).stop().animate({opacity:0},700,"linear")});a(window).scroll(function(){var b=a(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){a(e).css({position:"absolute",top:a(window).scrollTop()+a(window).height()-50})}if(b>d.min)a(e).fadeIn(d.inDelay);else a(e).fadeOut(d.Outdelay)})}})(jQuery);*/
/**** Radio&Checkbox
/********************/
(function($){$.fn.ezMark=function(options){options=options||{};var defaultOpt={checkboxCls:options.checkboxCls||'ez-checkbox',radioCls:options.radioCls||'ez-radio',checkedCls:options.checkedCls||'ez-checked',selectedCls:options.selectedCls||'ez-selected',hideCls:'ez-hide'};return this.each(function(){var $this=$(this);var wrapTag=$this.attr('type')=='checkbox'?'<div class="'+defaultOpt.checkboxCls+'">':'<div class="'+defaultOpt.radioCls+'">';if($this.attr('type')=='checkbox'){$this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function(){if($(this).is(':checked')){$(this).parent().addClass(defaultOpt.checkedCls);}
else{$(this).parent().removeClass(defaultOpt.checkedCls);}});if($this.is(':checked')){$this.parent().addClass(defaultOpt.checkedCls);}}
else if($this.attr('type')=='radio'){$this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function(){$('input[name="'+$(this).attr('name')+'"]').each(function(){if($(this).is(':checked')){$(this).parent().addClass(defaultOpt.selectedCls);}else{$(this).parent().removeClass(defaultOpt.selectedCls);}});});if($this.is(':checked')){$this.parent().addClass(defaultOpt.selectedCls);}}});}})(jQuery); 
/**** Vertical Align
/********************/
(function(a){a.fn.vAlign=function(){return this.each(function(b){a(this).children().wrapAll('<div class="oops-vAlign" style="position:relative;"></div>');var c=a(this).children("div.oops-vAlign");var d=a(this).innerHeight();var e=c.height();var f=(d-e)/2;c.css("top",f)})}})(jQuery)
