// FIX IE CLEARTYPE FADE PROBLEMS
(function($) {
$.fn.customFadeTo = function(options) {
if (options)
$(this)
.show()
.each(function() {
if (jQuery.browser.msie) {
$(this).attr('oBgColor', $(this).css('background-color'));
$(this).css({ 'background-color': (options.bgColor ? options.bgColor : '#fff') })
}
})
.fadeTo(options.speed, options.opacity, function() {
if (jQuery.browser.msie) {
if (options.opacity == 0 || options.opacity == 1) {
$(this).css({ 'background-color': $(this).attr('oBgColor') }).removeAttr('oBgColor');
$(this).get(0).style.removeAttribute('filter');
}
}
if (options.callback != undefined) options.callback();
});
};
$.fn.customFadeIn = function(speed, callback) {
$(this).fadeIn(function() {
if(jQuery.browser.msie)
$(this).get(0).style.removeAttribute('filter');
if(callback != undefined)
callback();
});
};
$.fn.customFadeOut = function(speed, callback) {
$(this).fadeOut(function() {
if(jQuery.browser.msie)
$(this).get(0).style.removeAttribute('filter');
if(callback != undefined)
callback();
});
};
})(jQuery);
//TOGGLETEXT
jQuery.fn.toggleText = function(a, b) {
return this.each(function() {
jQuery(this).text(jQuery(this).text() == a ? b : a);
});
};
// TOGGLEFADE
(function($) {
$.fn.toggleFade = function(settings)
{
return this.each(function()
{
var isHidden = jQuery(this).is(":hidden");
jQuery(this)[ isHidden ? "customFadeIn" : "customFadeOut" ]( isHidden ? "normal" : "normal");
});
};
})(jQuery);
// GET CLASS NAMES 
$.fn.getClassNames = function() {
if (name = this.attr("className")) {
return name.split(" ");
} else {
return [];
}
};
$(document).ready(function(){
// LOGIN COOKIE
$("input.login").click(function(){
$("#logCookie").customFadeIn();
});
// SIDENAV ARROW
$('ul#mss a.cities').click(function(){
var $this = $('#citiesArrow');
if( $this.is('.citiesOn') ) {
$('#mssnavCities').slideUp('normal');
$this.removeClass('citiesOn');
$this.addClass('citiesOff');
}
else {
$('#mssnavCities').slideDown('normal');
$this.removeClass('citiesOff');
$this.addClass('citiesOn');
}
return false;
});
// KIDS PICS 
$('#moreKids').click(function(){
$('#kidsMore').slideToggle('normal');
$(this).toggleText("Hide Kids","All Kids");
});
// POST INPUT TOOLS
$('textarea#pInput').focus(function(){$('div#pAdd').slideDown('normal');});
$('textarea#kInput').focus(function(){$('div#kAdd').slideDown('normal');});
$('input#questionTopic').focus(function(){$('div#questionPop').slideDown('normal');});
// POST FILTERS ARROW
$('div.filter a.filtersOff').click(function(){
var $this = $(this);
if( $this.is('.filtersOn') ) {
$('#postFilters').slideUp('normal');
$this.removeClass('filtersOn');
$this.addClass('filtersOff');
}
else {
$('#postFilters').slideDown('normal');
$this.removeClass('filtersOff');
$this.addClass('filtersOn');
}
return false;
});
// CHECK ALL FILTERS
$('input[name=all]').click(function(){ 
var checked_status = this.checked; 
$('input[class=checkAll]').each(function(){ 
this.checked = checked_status; 
}); 
}); 
$('input[name=every]').click(function(){ 
var checked_status = this.checked; 
$('input[class=checkEvery]').each(function(){ 
this.checked = checked_status; 
}); 
}); 
// POSTS FX
//	$('table.posts td.post').mouseover(function(){$(this).addClass('overGray');}).mouseout(function(){$(this).removeClass('overGray');
//	});
$('table.posts td.post').hover(
function(){$(this).find('div.remove').customFadeIn('slow');},
function(){$(this).find('div.remove').hide();}
);
$('table.posts a.postRemove').hover(function(){
$(this).parent().next('div.removePop').customFadeIn();
});
$('table.posts div.removePop').hover(
function(){$(this).show();},
function(){$(this).customFadeOut();}
);
$('table.posts span.addThing a').click(function(){
$(this).parent().find('span.thingPop').customFadeIn();
});
$('table.posts span.thingPop').hover(
function(){$(this).show();},
function(){$(this).customFadeOut();}
);
$('table.posts span.thingPop a.thingNo').click(function(){
$(this).parents('span.thingPop').hide();
});
$(".commentSub textarea").focus(function(){
$(this).css("height","26px");
$(this).css("overflow","auto");
$(this).parent().parent().find(".inputContainerRight").css("visibility","visible");
});
$(".commentSub textarea").blur(function(){
$(this).css("height","14px");
$(this).css("overflow","hidden");
$(this).parent().parent().find(".inputContainerRight").css("visibility","hidden");
});
// POST COMMENTS 
$("table.posts a.commentOn").click(function(){
$(this).parent().next('div.comment').slideToggle();
});
$("table.posts a.moreCmts").click(function(){
$(this).offsetParent().find("tr.hidden").customFadeIn();
$(this).offsetParent().find("tr.hideThis").hide();
});
// PROFILE NAVIGATION
$('a.major').click(function(){
$(this).parent().find('div.midControl').slideToggle();
$(this).parent().find('div.update1').toggleText("Close","Update");
});
$('a.minor').click(function(){
$(this).parent().find('div.minorControl').slideToggle();
$(this).parent().find('a.subminor').slideToggle();
$(this).parent().find('div.change2').toggleText("Close","Change");
$(this).parent().find('div.update2').toggleText("Close","Update");
});	
$('a.control').click(function(){
$(this).parent().find('div.controls').slideToggle();
$(this).parent().find('a.subcontrol').slideToggle();	
$(this).parent().find('a.subminor').slideToggle('normal');	
$(this).parent().find('div.change3').toggleText("Close","Change");
$(this).parent().find('div.update3').toggleText("Close","Update");
});
$('a.subcontrol').click(function(){
$(this).parent().find('div.controls').slideToggle();
$(this).slideToggle();	
$(this).parent().find('div.change3').toggleText("Close","Change");
$(this).parent().find('div.update3').toggleText("Close","Update");
});
$('td.data div.more span').click(function(){
$(this).parent().find('p.detail').slideToggle();
$(this).toggleText("[+]","[-]");
});
// PROFILE EFFECTS
var relateHide = $('select#relationship option:selected').val();
if (relateHide == 0) {
$('select#relationship').parent().find('div.relate').addClass('hidden'); 
};
if (relateHide == 1) {
$('select#relationship').parent().find('div.relate').addClass('hidden'); 
};
$("select#relationship").change(function(){
var relateShow = $('select#relationship').val();
if (relateShow == 1) {
$('select#relationship').parent().find('div.relate').customFadeOut();
} else if (relateShow == 0) {
$('select#relationship').parent().find('div.relate').customFadeOut();
} else {
$('select#relationship').parent().find('div.relate').customFadeIn();
};
});
$("input.checkAll").click(function(){
var checkClass = $(this).attr('id');
var checkState = this.checked;
$('input.' + checkClass).each(function(){
this.checked = checkState; 
}); 
});
// BOOKSHELF, ETC. EFFECTS
function makeBookFloat(){$(this).parent().find("div.tools").customFadeIn();}
function destroyBookFloat(){$(this).parent().find("div.tools").customFadeOut();}
var config1 = { 
sensitivity: 3,
interval: 250, 
over: makeBookFloat, 
timeout: 500, 
out: destroyBookFloat
};
$("div.item").hoverIntent(config1);
$("div.tools").hover(
function(){$(this).show();},
function(){$(this).customFadeOut();}
);
$("div.tools a.comment").click(function(){
$(this).parent().parent().find("div.comment").customFadeIn();
$(this).parent().customFadeOut();
});
$("a.addMinePop").click(function(){
$(this).parent().find("div.addMine").customFadeIn();
});
$("div.addMine").hover(
function(){$(this).show();},
function(){$(this).customFadeOut();}
);
$("a.shareMinePop").click(function(){
$(this).parent().find("div.shareMine").customFadeIn();
});
$("div.shareMine").hover(
function(){$(this).show();},
function(){$(this).customFadeOut();}
);
$("table.stuff a.moreCmts").click(function(){
$(this).offsetParent().find(".hidden").customFadeIn();
$(this).parent().hide();
});
// DOCTOR JOURNAL
$("input#measEng").click(function(){
$("div.measureEng").show();
$("div.measureMet").hide();
});
$("input#measMet").click(function(){
$("div.measureEng").hide();
$("div.measureMet").show();
});
$("a.vaccineUpdate").click(function(){
$(this).parent().parent().find('.hidden').toggleFade();
});
// FRIENDS FX
$('table.friend td.post').hover(
function(){$(this).find('div.remove').customFadeIn('slow');},
function(){$(this).find('div.remove').hide();}
);
$('table.friend a.postRemove').hover(function(){
$(this).parent().next('div.removePop').customFadeIn();
});
$('table.friend div.removePop').hover(
function(){$(this).show();},
function(){$(this).customFadeOut();}
);
$('table.friend a.friendCities').click(function(){
$(this).parent().find('div.citiesList').customFadeIn('slow');
});
$('div.citiesList').hover(
function(){$(this).show();},
function(){$(this).customFadeOut();}
);
});
/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param f onMouseOver function || An object with configuration options
* @param g onMouseOut function || Nothing (use configuration options object)
* @author Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
//AHOVER
/* Copyright (c) 2008 Brian Beck (exogen@gmail.com)
* MIT (http://www.opensource.org/licenses/mit-license.php) licensed.
*
* Version: 1.0
*
* Requires:
* jQuery 1.2+
* Dimensions (http://plugins.jquery.com/project/dimensions)
*/
(function($){$.extend({ahover:{version:1.0,defaults:{toggleSpeed:75,toggleEffect:'both',hoverEffect:null,moveSpeed:250,easing:'swing',className:'ahover'},effects:{'width':{width:0},'height':{height:0},'both':{width:0,height:0}}}});$.fn.extend({ahover:function(options){var options=$.extend({},$.ahover.defaults,options);var effect=((typeof options.toggleEffect=='string')?$.ahover.effects[options.toggleEffect]:options.toggleEffect);var parent=this.offsetParent();return this.hover(function(e){var over=$(this);var overSize={width:over.outerWidth(),height:over.outerHeight()};var overOffset=over.offset();var parentOffset=parent.offset();var under=$('div.'+options.className,parent).stop();var created=(under.length==0);if(created){under=$('<div> </div>').addClass(options.className).appendTo(parent).css(overSize);}
var underOffset={left:overOffset.left-parentOffset.left-
(under.outerWidth()-under.width())/2,top:overOffset.top-parentOffset.top-
(under.outerHeight()-under.height())/2}
if(created){under.css(underOffset).css(effect).animate(overSize,{queue:false,duration:options.toggleSpeed,easing:options.easing});}
else{var underCSS=$.extend({},overSize,underOffset);under.animate(underCSS,{queue:false,duration:options.moveSpeed,easing:options.easing});}
if($.isFunction(options.hoverEffect)){under.queue(options.hoverEffect);}},function(e){$('div.'+options.className,parent).animate(effect,{queue:false,duration:options.toggleSpeed,easing:options.easing,complete:function(){$(this).remove();}});});}});})(jQuery);
/*
* jQuery autoResize (textarea auto-resizer)
* @copyright James Padolsey http://james.padolsey.com
* @version 1.04
*/
(function(a){a.fn.autoResize=function(j){var b=a.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1000},j);this.filter('textarea').each(function(){var c=a(this).css({resize:'none','overflow-y':'hidden'}),k=c.height(),f=(function(){var l=['height','width','lineHeight','textDecoration','letterSpacing'],h={};a.each(l,function(d,e){h[e]=c.css(e)});return c.clone().removeAttr('id').removeAttr('name').css({position:'absolute',top:0,left:-9999}).css(h).attr('tabIndex','-1').insertBefore(c)})(),i=null,g=function(){f.height(0).val(a(this).val()).scrollTop(10000);var d=Math.max(f.scrollTop(),k)+b.extraSpace,e=a(this).add(f);if(i===d){return}i=d;if(d>=b.limit){a(this).css('overflow-y','');return}b.onResize.call(this);b.animate&&c.css('display')==='block'?e.stop().animate({height:d},b.animateDuration,b.animateCallback):e.height(d)};c.unbind('.dynSiz').bind('keyup.dynSiz',g).bind('keydown.dynSiz',g).bind('change.dynSiz',g)});return this}})(jQuery);
$(document).ready(function(){
$('textarea.expand').autoResize({
onResize : function() {$(this).css({opacity:0.8});},
animateCallback : function() {$(this).css({opacity:1});},
animateDuration : 300,
extraSpace : 16
});
});
/**
* Tabs - jQuery plugin for accessible, unobtrusive tabs
* @requires jQuery v1.1.1
*
* http://stilbuero.de/tabs/
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Version: 2.7.4
*/
(function($){$.extend({tabs:{remoteCount:0}});$.fn.tabs=function(initial,settings){if(typeof initial=='object')settings=initial;settings=$.extend({initial:(initial&&typeof initial=='number'&&initial>0)?--initial:0,disabled:null,bookmarkable:$.ajaxHistory?true:false,remote:false,spinner:'Loading&#8230;',hashPrefix:'remote-tab-',fxFade:null,fxSlide:null,fxShow:null,fxHide:null,fxSpeed:'normal',fxShowSpeed:null,fxHideSpeed:null,fxAutoHeight:false,onClick:null,onHide:null,onShow:null,navClass:'tabs-nav',selectedClass:'tabs-selected',disabledClass:'tabs-disabled',containerClass:'tabs-container',hideClass:'tabs-hide',loadingClass:'tabs-loading',tabStruct:'div'},settings||{});$.browser.msie6=$.browser.msie&&($.browser.version&&$.browser.version<7||/MSIE 6.0/.test(navigator.userAgent));function unFocus(){scrollTo(0,0);}return this.each(function(){var container=this;var nav=$('ul.'+settings.navClass,container);nav=nav.size()&&nav||$('>ul:eq(0)',container);var tabs=$('a',nav);if(settings.remote){tabs.each(function(){var id=settings.hashPrefix+(++$.tabs.remoteCount),hash='#'+id,url=this.href;this.href=hash;$('<div id="'+id+'" class="'+settings.containerClass+'"></div>').appendTo(container);$(this).bind('loadRemoteTab',function(e,callback){var $$=$(this).addClass(settings.loadingClass),span=$('span',this)[0],tabTitle=span.innerHTML;if(settings.spinner){span.innerHTML='<em>'+settings.spinner+'</em>';}setTimeout(function(){$(hash).load(url,function(){if(settings.spinner){span.innerHTML=tabTitle;}$$.removeClass(settings.loadingClass);callback&&callback();});},0);});});}var containers=$('div.'+settings.containerClass,container);containers=containers.size()&&containers||$('>'+settings.tabStruct,container);nav.is('.'+settings.navClass)||nav.addClass(settings.navClass);containers.each(function(){var $$=$(this);$$.is('.'+settings.containerClass)||$$.addClass(settings.containerClass);});var hasSelectedClass=$('li',nav).index($('li.'+settings.selectedClass,nav)[0]);if(hasSelectedClass>=0){settings.initial=hasSelectedClass;}if(location.hash){tabs.each(function(i){if(this.hash==location.hash){settings.initial=i;if(($.browser.msie||$.browser.opera)&&!settings.remote){var toShow=$(location.hash);var toShowId=toShow.attr('id');toShow.attr('id','');setTimeout(function(){toShow.attr('id',toShowId);},500);}unFocus();return false;}});}if($.browser.msie){unFocus();}containers.filter(':eq('+settings.initial+')').show().end().not(':eq('+settings.initial+')').addClass(settings.hideClass);$('li',nav).removeClass(settings.selectedClass).eq(settings.initial).addClass(settings.selectedClass);tabs.eq(settings.initial).trigger('loadRemoteTab').end();if(settings.fxAutoHeight){var _setAutoHeight=function(reset){var heights=$.map(containers.get(),function(el){var h,jq=$(el);if(reset){if($.browser.msie6){el.style.removeExpression('behaviour');el.style.height='';el.minHeight=null;}h=jq.css({'min-height':''}).height();}else{h=jq.height();}return h;}).sort(function(a,b){return b-a;});if($.browser.msie6){containers.each(function(){this.minHeight=heights[0]+'px';this.style.setExpression('behaviour','this.style.height = this.minHeight ? this.minHeight : "1px"');});}else{containers.css({'min-height':heights[0]+'px'});}};_setAutoHeight();var cachedWidth=container.offsetWidth;var cachedHeight=container.offsetHeight;var watchFontSize=$('#tabs-watch-font-size').get(0)||$('<span id="tabs-watch-font-size">M</span>').css({display:'block',position:'absolute',visibility:'hidden'}).appendTo(document.body).get(0);var cachedFontSize=watchFontSize.offsetHeight;setInterval(function(){var currentWidth=container.offsetWidth;var currentHeight=container.offsetHeight;var currentFontSize=watchFontSize.offsetHeight;if(currentHeight>cachedHeight||currentWidth!=cachedWidth||currentFontSize!=cachedFontSize){_setAutoHeight((currentWidth>cachedWidth||currentFontSize<cachedFontSize));cachedWidth=currentWidth;cachedHeight=currentHeight;cachedFontSize=currentFontSize;}},50);}var showAnim={},hideAnim={},showSpeed=settings.fxShowSpeed||settings.fxSpeed,hideSpeed=settings.fxHideSpeed||settings.fxSpeed;if(settings.fxSlide||settings.fxFade){if(settings.fxSlide){showAnim['height']='show';hideAnim['height']='hide';}if(settings.fxFade){showAnim['opacity']='show';hideAnim['opacity']='hide';}}else{if(settings.fxShow){showAnim=settings.fxShow;}else{showAnim['min-width']=0;showSpeed=1;}if(settings.fxHide){hideAnim=settings.fxHide;}else{hideAnim['min-width']=0;hideSpeed=1;}}var onClick=settings.onClick,onHide=settings.onHide,onShow=settings.onShow;tabs.bind('triggerTab',function(){var li=$(this).parents('li:eq(0)');if(container.locked||li.is('.'+settings.selectedClass)||li.is('.'+settings.disabledClass)){return false;}var hash=this.hash;if($.browser.msie){$(this).trigger('click');if(settings.bookmarkable){$.ajaxHistory.update(hash);location.hash=hash.replace('#','');}}else if($.browser.safari){var tempForm=$('<form action="'+hash+'"><div><input type="submit" value="h" /></div></form>').get(0);tempForm.submit();$(this).trigger('click');if(settings.bookmarkable){$.ajaxHistory.update(hash);}}else{if(settings.bookmarkable){location.hash=hash.replace('#','');}else{$(this).trigger('click');}}});tabs.bind('disableTab',function(){var li=$(this).parents('li:eq(0)');if($.browser.safari){li.animate({opacity:0},1,function(){li.css({opacity:''});});}li.addClass(settings.disabledClass);});if(settings.disabled&&settings.disabled.length){for(var i=0,k=settings.disabled.length;i<k;i++){tabs.eq(--settings.disabled[i]).trigger('disableTab').end();}};tabs.bind('enableTab',function(){var li=$(this).parents('li:eq(0)');li.removeClass(settings.disabledClass);if($.browser.safari){li.animate({opacity:1},1,function(){li.css({opacity:''});});}});tabs.bind('click',function(e){var trueClick=e.clientX;var clicked=this,li=$(this).parents('li:eq(0)'),toShow=$(this.hash),toHide=containers.filter(':visible');if(container['locked']||li.is('.'+settings.selectedClass)||li.is('.'+settings.disabledClass)||typeof onClick=='function'&&onClick(this,toShow[0],toHide[0])===false){this.blur();return false;}container['locked']=true;if(toShow.size()){if($.browser.msie&&settings.bookmarkable){var toShowId=this.hash.replace('#','');toShow.attr('id','');setTimeout(function(){toShow.attr('id',toShowId);},0);}var resetCSS={display:'',overflow:'',height:''};if(!$.browser.msie){resetCSS['opacity']='';}function switchTab(){if(settings.bookmarkable&&trueClick){$.ajaxHistory.update(clicked.hash);}toHide.animate(hideAnim,hideSpeed,function(){$(clicked).parents('li:eq(0)').addClass(settings.selectedClass).siblings().removeClass(settings.selectedClass);toHide.addClass(settings.hideClass).css(resetCSS);if(typeof onHide=='function'){onHide(clicked,toShow[0],toHide[0]);}if(!(settings.fxSlide||settings.fxFade||settings.fxShow)){toShow.css('display','block');}toShow.animate(showAnim,showSpeed,function(){toShow.removeClass(settings.hideClass).css(resetCSS);if($.browser.msie){toHide[0].style.filter='';toShow[0].style.filter='';}if(typeof onShow=='function'){onShow(clicked,toShow[0],toHide[0]);}container['locked']=null;});});}if(!settings.remote){switchTab();}else{$(clicked).trigger('loadRemoteTab',[switchTab]);}}else{alert('There is no such container.');}var scrollX=window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft||0;var scrollY=window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop||0;setTimeout(function(){window.scrollTo(scrollX,scrollY);},0);this.blur();return settings.bookmarkable&&!!trueClick;});if(settings.bookmarkable){$.ajaxHistory.initialize(function(){tabs.eq(settings.initial).trigger('click').end();});}});};var tabEvents=['triggerTab','disableTab','enableTab'];for(var i=0;i<tabEvents.length;i++){$.fn[tabEvents[i]]=(function(tabEvent){return function(tab){return this.each(function(){var nav=$('ul.tabs-nav',this);nav=nav.size()&&nav||$('>ul:eq(0)',this);var a;if(!tab||typeof tab=='number'){a=$('li a',nav).eq((tab&&tab>0&&tab-1||0));}else if(typeof tab=='string'){a=$('li a[@href$="#'+tab+'"]',nav);}a.trigger(tabEvent);});};})(tabEvents[i]);}$.fn.activeTab=function(){var selectedTabs=[];this.each(function(){var nav=$('ul.tabs-nav',this);nav=nav.size()&&nav||$('>ul:eq(0)',this);var lis=$('li',nav);selectedTabs.push(lis.index(lis.filter('.tabs-selected')[0])+1);});return selectedTabs[0];};})(jQuery);
$(function(){$(".tabs").tabs({fxFade:true,fxSpeed:'fast'});})
