// Version 1.0 - October 19, 2007
// Requires http://jquery.com version 1.2.1

(function($) {
	$.fn.biggerlink = function(options) {

		// Default settings
		var settings = {
			hoverclass:'hover', // class added to parent element on hover
			clickableclass:'hot', // class added to parent element with behaviour
			follow: true	// follow link? Set to false for js popups
		};
		if(options) {
			$.extend(settings, options);
		}
		$(this).filter(function(){
			 return $('a',this).length > 0;

		}).addClass(settings.clickableclass).each(function(i){
		
			// Add title of first link with title to parent
			$(this).attr('title', $('a[title]:first',this).attr('title'));
			
			// hover and trigger contained anchor event on click
			$(this)
			.mouseover(function(){
				window.status = $('a:first',this).attr('href');
				$(this).addClass(settings.hoverclass);
				$(this).css("cursor", "pointer"); // I added this
			})
			.mouseout(function(){
				window.status = '';
				$(this).removeClass(settings.hoverclass);
				$(this).css("cursor", "auto"); // I added this
			})
			.bind('click',function(){
				$(this).find('a:first').trigger('click');
			})
			
			// triggerable events on anchor itself
			
			.find('a').bind('focus',function(){
				$(this).parents('.'+ settings.clickableclass).addClass(settings.hoverclass);
			}).bind('blur',function(){
				$(this).parents('.'+ settings.clickableclass).removeClass(settings.hoverclass);
			}).end()
			
			.find('a:first').bind('click',function(e){
				if(settings.follow == true)
				{
					window.location = this.href;
				}
				e.stopPropagation(); // stop event bubbling to parent
			}).end()
			
			.find('a',this).not(':first').bind('click',function(){
				$(this).parents('.'+ settings.clickableclass).find('a:first').trigger('click');
				return false;
			});
		});
		return this;
	};
})(jQuery);


(function($){var dropShadowZindex = 1;  $.fn.dropShadow = function(options){var opt = $.extend({left: 4,top: 4,blur: 2,opacity: .5,color: "black",swap: false}, options);var jShadows = $([]);  this.not(".dropShadow").each(function(){var jthis = $(this);var shadows = [];var blur = (opt.blur <= 0) ? 0 : opt.blur;var opacity = (blur == 0) ? opt.opacity : opt.opacity / (blur * 8);var zOriginal = (opt.swap) ? dropShadowZindex : dropShadowZindex + 1;var zShadow = (opt.swap) ? dropShadowZindex + 1 : dropShadowZindex;var shadowId;if (this.id) {shadowId = this.id + "_dropShadow";}else {shadowId = "ds" + (1 + Math.floor(9999 * Math.random()));}$.data(this, "shadowId", shadowId); $.data(this, "shadowOptions", options); jthis.attr("shadowId", shadowId).css("zIndex", zOriginal);if (jthis.css("position") != "absolute") {jthis.css({position: "relative",zoom: 1 });}bgColor = jthis.css("backgroundColor");if (bgColor == "rgba(0, 0, 0, 0)") bgColor = "transparent";  if (bgColor != "transparent" || jthis.css("backgroundImage") != "none" || this.nodeName == "SELECT" || this.nodeName == "INPUT"|| this.nodeName == "TEXTAREA") {		shadows[0] = $("<div></div>").css("background", opt.color);								}else {shadows[0] = jthis.clone().removeAttr("id").removeAttr("name").removeAttr("shadowId").css("color", opt.color);}shadows[0].addClass("dropShadow").css({height: jthis.outerHeight(),left: blur,opacity: opacity,position: "absolute",top: blur,width: jthis.outerWidth(),zIndex: zShadow});var layers = (8 * blur) + 1;for (i = 1; i < layers; i++) {shadows[i] = shadows[0].clone();}var i = 1;			var j = blur;while (j > 0) {shadows[i].css({left: j * 2, top: 0});           shadows[i + 1].css({left: j * 4, top: j * 2});   shadows[i + 2].css({left: j * 2, top: j * 4});   shadows[i + 3].css({left: 0, top: j * 2});       shadows[i + 4].css({left: j * 3, top: j});       shadows[i + 5].css({left: j * 3, top: j * 3});   shadows[i + 6].css({left: j, top: j * 3});       shadows[i + 7].css({left: j, top: j});           i += 8;j--;}var divShadow = $("<div></div>").attr("id", shadowId) .addClass("dropShadow").css({left: jthis.position().left + opt.left - blur,marginTop: jthis.css("marginTop"),marginRight: jthis.css("marginRight"),marginBottom: jthis.css("marginBottom"),marginLeft: jthis.css("marginLeft"),position: "absolute",top: jthis.position().top + opt.top - blur,zIndex: zShadow});for (i = 0; i < layers; i++) {divShadow.append(shadows[i]);}jthis.after(divShadow);jShadows = jShadows.add(divShadow);$(window).resize(function(){try {divShadow.css({left: jthis.position().left + opt.left - blur,top: jthis.position().top + opt.top - blur});}catch(e){}});dropShadowZindex += 2;});  return this.pushStack(jShadows);};$.fn.redrawShadow = function(){this.removeShadow();return this.each(function(){var shadowOptions = $.data(this, "shadowOptions");$(this).dropShadow(shadowOptions);});};$.fn.removeShadow = function(){return this.each(function(){var shadowId = $(this).shadowId();$("div#" + shadowId).remove();});};$.fn.shadowId = function(){return $.data(this[0], "shadowId");};$(function()  {var noPrint = "<style type='text/css' media='print'>";noPrint += ".dropShadow{visibility:hidden;}</style>";$("head").append(noPrint);});})(jQuery);


jQuery.easing={easein:function(x,t,b,c,d){return c*(t/=d)*t+b},easeinout:function(x,t,b,c,d){if(t<d/2)return 2*c*t*t/(d*d)+b;var a=t-d/2;return-2*c*a*a/(d*d)+2*c*a/d+c/2+b},easeout:function(x,t,b,c,d){return-c*t*t/(d*d)+2*c*t/d+b},expoin:function(x,t,b,c,d){var a=1;if(c<0){a*=-1;c*=-1}return a*(Math.exp(Math.log(c)/d*t))+b},expoout:function(x,t,b,c,d){var a=1;if(c<0){a*=-1;c*=-1}return a*(-Math.exp(-Math.log(c)/d*(t-d))+c+1)+b},expoinout:function(x,t,b,c,d){var a=1;if(c<0){a*=-1;c*=-1}if(t<d/2)return a*(Math.exp(Math.log(c/2)/(d/2)*t))+b;return a*(-Math.exp(-2*Math.log(c/2)/d*(t-d))+c+1)+b},bouncein:function(x,t,b,c,d){return c-jQuery.easing['bounceout'](x,d-t,0,c,d)+b},bounceout: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+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},bounceinout:function(x,t,b,c,d){if(t<d/2)return jQuery.easing['bouncein'](x,t*2,0,c,d)*.5+b;return jQuery.easing['bounceout'](x,t*2-d,0,c,d)*.5+c*.5+b},elasin: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*.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},elasout: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*.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},elasinout: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*(.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-.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)*.5+c+b},backin:function(x,t,b,c,d){var s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},backout:function(x,t,b,c,d){var s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},backinout:function(x,t,b,c,d){var 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},linear:function(x,t,b,c,d){return c*t/d+b}};


(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);
