	$.fn.cousins = function(selector) {
		return this.parent().parent().children().children(selector).not(this).not(this.siblings());
	};
	$(function() {
		if($('.no-scroll').size() > 0) {
			$('.no-scroll').each(function() {
				var pos = $(this).offset();
				$(this).css('width', $(this).width() + 'px').css('position' , 'fixed').css('left', pos.left + 'px').css('top', pos.top + 'px');
			});
/*			$(window).scroll(function() {
				$('.no-scroll').each(function() {
					$(this).css('top', $(window).scrollTop() + 'px');
					$("#bodyscroll").text($(window).scrollTop());
				});
			});*/
		}
		$('span.plans').each(function() {
			//
		});
		$('.bubble').each(function() {
			$(this).html('<table cellspacing="0" style="margin:0px;"><tbody><tr><td class="tl"></td><td class="top"></td><td class="tr"></td></tr><tr><td class="left"></td><td class="middle">' + $(this).html() + '</td><td class="right"></td></tr><tr><td class="bl"></td><td class="bottom"></td><td class="br"></td></tr></tbody></table>');
		});
		$('input[type=text]').add('input[type=password]').add('textarea').add('input:not([type])').addClass('inputborder').addClass('ui-corner-all');
		$('table.zebra').each(function() {
			$(this).children("tr:odd").addClass('alt-row');
			$(this).children("tbody").children("tr:odd").addClass('alt-row');
		});
		var origWrapperHeight = $("#wrapper").height();
		if($("#wrapper").height() < $("#wrapper").parent().height()) {
			$("#wrapper").height($("#wrapper").parent().height());
		}
		$("body").resize(function() {
			$("#wrapper").height(Math.max($("#wrapper").parent().height(), origWrapperHeight));
		});
		$(".nav-button a")
			.hover(function(){
				$(this).parent().animate({'width':($(this).children(".overstate").width() + 50) + 'px'}, {duration:400,queue:false});
				$(this).children(".nav-icon").stop().fadeTo(400,1).css('display', 'block');
				$(this).children(".overstate").stop().fadeTo(400,1).css('display', 'block');
				$(this).children(".upstate").stop().fadeTo(400,0);
			},
			function() {
				$(this).parent().animate({'width':($(this).children(".overstate").width() + 10) + 'px'}, {duration:400,queue:false});
				$(this).children(".nav-icon").stop().fadeTo(400,0);
				$(this).children(".overstate").stop().fadeTo(400,0);
				$(this).children(".upstate").stop().fadeTo(400,1).css('display', 'block');
			}
		);
		$('a.slide-link,.slide-links a')
			.hover(function() {
				$(this).stop().animate({'padding-left' : 15}, 500);
			},
			function() {
				$(this).stop().animate({'padding-left' : 0}, 500);
			}
		);
		$('.ui-button').add('button').add('input[type=submit]').add('input[type=button]').add('input[type=reset]').button();
			/*.hover(function() {
				$(this).addClass("ui-state-hover");
				$(this).removeClass("ui-state-active");
			},
			function() {
				$(this).removeClass("ui-state-hover");
				$(this).removeClass("ui-state-active");
			}).mousedown(function(){
				$(this).addClass("ui-state-active"); 
			})
			.mouseup(function(){
				$(this).removeClass("ui-state-active");
			});*/
		$.fn.alert = function(text) {
			alert(text);
			return this;
		};
		$.fn.slideOut = function(speed) {
			return this.each(function() {
				if(speed==null) speed=400;
				if($(this).parent().css('overflow','hidden').css('position') == 'static') $(this).parent().css('position', 'relative');
				$(this).stop().css('display','block').css('position','absolute').css('left','0px').animate({'left':$(this).parent().width() + 'px'},speed, function(){$(this).css('display','none');});
			});
		};
		$.fn.slideIn = function(speed) {
			return this.each(function() {
				if(speed==null) speed=400;
				if($(this).parent().css('position') == 'static') $(this).parent().css('position', 'relative');
				$(this).parent().css('height',$(this).height() + 'px');
				$(this).stop().css('display','block').css('position','absolute').css('left', '0px');
				$(this).css('left','-' + $(this).parent().width() + 'px').animate({'left':'0px'},speed);
			});
		};
	});
var lowie=false;
