/*
* jQuery Rawr Image effect Gallery (RIEG) v1.0 
* Website: http://hungred.com/2009/06/29/useful-information/jquery-menu-effect-plugin/
* Demo Site: http://hungred.com/wp-content/demo//jQuery-menu-effect-plugin/demo.html
* Description: jQuery Menu effect Plugin
* Contact: clay@hungred.com
* version 1.0
* 
* TERMS OF USE - jQuery Menu effect Plugin
* Open source under the MIT License. 
* Copyright (c) 2009 Clay Lua Czee Yong
* 
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
* 
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
* 
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*  
*
*/
(function(A) { A.fn.OthersFade = function(C) { A.fn.OthersFade.defaults = { startOpacity: 1, hoverOpacity: 0, duration: 500 }; var C = A.extend(A.fn.OthersFade.defaults, C); var B = this; return this.each(function() { A(this).hover(function() { A(this).stop(true, false).animate({ opacity: C.startOpacity }, C.duration); A(B).not(this).stop(true, false).animate({ opacity: C.hoverOpacity }, C.duration) }, function() { A(B).not(this).stop(true, false).animate({ opacity: C.startOpacity }, C.duration) }) }) }; A.fn.OthersJump = function(C) { A.fn.OthersJump.defaults = { jumpHeight: 15, jumpDirection: 0, duration: 100 }; var C = A.extend(A.fn.OthersJump.defaults, C); var B = this; return this.each(function() { A(this).hover(function() { C.jumpDirection == 0 ? A(B).not(this).stop(true, false).animate({ marginTop: "-" + (C.jumpHeight) + "px" }, C.duration).animate({ marginTop: "0px" }, C.duration) : A(B).not(this).stop(true, false).animate({ marginTop: (C.jumpHeight) + "px" }, C.duration).animate({ marginTop: "0px" }, C.duration) }, function() { C.jumpDirection == 0 ? A(this).stop(true, false).animate({ marginTop: "-" + (C.jumpHeight) + "px" }, C.duration).animate({ marginTop: "0px" }, C.duration) : A(this).stop(true, false).animate({ marginTop: (C.jumpHeight) + "px" }, C.duration).animate({ marginTop: "0px" }, C.duration) }) }) }; A.fn.OthersBlink = function(C) { A.fn.OthersBlink.defaults = { brightness: 0.5, duration: 100 }; var C = A.extend(A.fn.OthersBlink.defaults, C); var B = this; return this.each(function() { A(this).hover(function() { A(B).not(this).stop(true, false).animate({ opacity: C.brightness }, C.duration).animate({ opacity: 1 }, C.duration).animate({ opacity: C.brightness }, C.duration).animate({ opacity: 1 }, C.duration) }, function() { }) }) }; A.fn.OthersRollUp = function(C) { A.fn.OthersRollUp.defaults = { duration: 1000 }; var C = A.extend(A.fn.OthersRollUp.defaults, C); var B = this; return this.each(function() { C.oriH = A(this).height(); C.opac = A(this).css("opacity"); A(this).hover(function() { A(B).not(this).stop(true, false).animate({ height: "1px" }, C.duration).fadeTo(1, 0) }, function() { A(B).not(this).stop(true, false).fadeTo(1, C.opac).animate({ height: C.oriH }, C.duration) }) }) }; A.fn.OthersRollDown = function(C) { A.fn.OthersRollDown.defaults = { duration: 1000 }; var C = A.extend(A.fn.OthersRollDown.defaults, C); var B = this; return this.each(function() { C.oriH = A(this).height(); C.opac = A(this).css("opacity"); A(this).hover(function() { A(B).not(this).stop(true, false).animate({ height: "1px", marginTop: C.oriH + "px" }, C.duration).fadeTo(1, 0) }, function() { A(B).not(this).stop(true, false).fadeTo(1, C.opac).animate({ height: C.oriH, marginTop: "0px" }, C.duration) }) }) }; A.fn.OthersVibrate = function(E) { A.fn.OthersVibrate.defaults = { interval: 30, duration: 1000, shake: 3 }; var E = A.extend(A.fn.OthersVibrate.defaults, E); var C = this; var D = 0; var B = 0; return this.each(function() { B = A(this).css("Top"); D = A(this).css("Left"); A(this).hover(function() { var H = this; var I = function() { A(C).not(H).stop(true, false).css({ position: "relative", left: Math.round(Math.random() * E.shake) - ((E.shake + 1) / 2) + "px", top: Math.round(Math.random() * E.shake) - ((E.shake + 1) / 2) + "px" }) }; var G = setInterval(I, E.interval); var F = function() { clearInterval(G); A(C).stop(true, false).css({ position: "static", left: "0px", top: "0px" }) }; setTimeout(F, E.duration) }, function() { }) }) } })(jQuery);

