;(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}},o.delay);},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu;},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this));}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});o.onInit.call(this);}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '));});};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)
this.toggleClass(sf.c.shadowClass+'-off');};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:true,dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this;},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this;}});var j=jQuery;})
(jQuery);var j=jQuery;;jQuery(document).ready(function(){var tag_cloud_class='#tagcloud';var tag_cloud_height=jQuery('#tagcloud').height();jQuery('.inside ul li:last-child').css('border-bottom','0px')
jQuery('.wooTabs').each(function(){jQuery(this).children('li').children('a:first').addClass('selected');});jQuery('.inside > *').hide();jQuery('.inside > *:first-child').show();jQuery('.wooTabs li a').click(function(evt){var clicked_tab_ref=jQuery(this).attr('href');jQuery(this).parent().parent().children('li').children('a').removeClass('selected');jQuery(this).addClass('selected');jQuery(this).parent().parent().parent().children('.inside').children('*').hide();jQuery('.inside '+clicked_tab_ref).fadeIn(500);evt.preventDefault();})});jQuery(document).ready(function(){jQuery('.widget li ul li').css('border-bottom','none').css('padding-bottom','0');var name=jQuery('#contactName').val();var commentname=jQuery('#author').val();var url=jQuery('#url').val();var email=jQuery('#email').val();if(name==''){jQuery('#contactName').val('Name')};if(commentname==''){jQuery('#author').val('Name')};if(url==''){jQuery('#url').val('Website URL')};if(email==''){jQuery('#email').val('Email')};jQuery('#contactName').focus(function(){var val=jQuery(this).val();if(val=='Name'){jQuery(this).val('');}});jQuery('#contactName').blur(function(){var val=jQuery(this).val();if(val==''){jQuery(this).val('Name');}});jQuery('#email').focus(function(){var val=jQuery(this).val();if(val=='Email'){jQuery(this).val('');}});jQuery('#email').blur(function(){var val=jQuery(this).val();if(val==''){jQuery(this).val('Email');}});jQuery('#author').focus(function(){var val=jQuery(this).val();if(val=='Name'){jQuery(this).val('');}});jQuery('#author').blur(function(){var val=jQuery(this).val();if(val==''){jQuery(this).val('Name');}});jQuery('#url').focus(function(){var val=jQuery(this).val();if(val=='Website URL'){jQuery(this).val('');}});jQuery('#url').blur(function(){var val=jQuery(this).val();if(val==''){jQuery(this).val('Website URL');}});});;$j=jQuery.noConflict()
$j.fn.roundThis=function(radius){return this.each(function(e){$j(this).css({"border-radius":radius,"-moz-border-radius":radius,"-webkit-border-radius":radius});});};$j(function(){$j("#item-header img.avatar").roundThis("2px");$j("#subnav.item-list-tabs ul li").roundThis("4px");$j("#item-body #whats-new-form #whats-new-content #whats-new-options #whats-new-submit input").roundThis("4px");$j(".addpic").roundThis("4px");$j("#profile-info").roundThis("8px");$j(".profile-group").roundThis("8px");$j("#item-header img.avatar").roundThis("2px");$j("div#item-header h2 span.highlight span").roundThis("3px");$j(".add").roundThis("4px");$j(".leave-event").roundThis("4px");$j(".join-group").roundThis("4px");$j(".remove").roundThis("4px");$j(".leave-group").roundThis("4px");$j(".requested").roundThis("4px");$j("div.item-list-tabs#subnav ul li").roundThis("4px");$j("#members-directory-form .item-list-tabs li").roundThis("4px");$j("#groups-directory-form .item-list-tabs li").roundThis("4px");$j(".pagination").roundThis("5px");$j("div.pagination .pagination-links span").roundThis("3px");$j("div.pagination .pagination-links a").roundThis("3px");$j("#item-body #whats-new-form #whats-new-content #whats-new-textarea #whats-new").roundThis("4px");$j("#item-body #whats-new-form #whats-new-content #whats-new-options #whats-new-submit input").roundThis("4px");$j("#item-body .activity-list .activity-avatar img").roundThis("2px");$j("#item-body .activity-permalink .activity-list li .activity-content").roundThis("4px");$j("#item-body .activity-list .activity-content .activity-inner, #item-body .activity-list .activity-content blockquote").roundThis("3px");$j("#item-body .activity-list div.activity-meta a").roundThis("4px");$j("#item-body .activity-list div.activity-meta a.acomment-reply").roundThis("4px");$j("#item-body div.activity-comments form textarea").roundThis("3px");$j("#main.col-left #item-body .profile").roundThis("5px");$j("#main.col-left #item-body .profile #profile-edit-form.standard-form .editfield textarea").roundThis("4px");$j("#main.col-left #item-body .profile #profile-edit-form.standard-form .editfield input").roundThis("4px");$j("#main.col-left #item-body .profile #profile-edit-form.standard-form .submit input#profile-group-edit-submit").roundThis("4px");$j("#main.col-left #item-body .profile #avatar-upload-form #avatar-upload input#upload").roundThis("4px");$j(".profile #profile-edit-form.standard-form .submit input#profile-group-edit-submit").roundThis("4px");$j("#main.col-left #item-body #message-thread").roundThis("5px");$j("#main.col-left #item-body #message-thread .message-box.alt").roundThis("5px");$j("#main.col-left #item-body #message-thread #send-reply .message-box.alt ").roundThis("5px");$j("#main.col-left #item-body #message-thread #send-reply .message-box textarea").roundThis("5px");$j("#main.col-left #item-body #message-thread #send-reply .message-box .message-content .submit input#send_reply_button").roundThis("4px");$j("li span.unread-count, tr.unread span.unread-count").roundThis("3px");$j("#send_message_form ").roundThis("5px");$j("#send_message_form.standard-form input").roundThis("4px");$j("#send_message_form.standard-form textarea#message_content").roundThis("4px");$j("#send_message_form.standard-form .submit input#send").roundThis("4px");$j("#main.col-left #item-body #friend-list").roundThis("4px");$j(".groups.mygroups #groups-list.item-list li .action .generic-button").roundThis("4px");$j("#group-settings-form.standard-form #group-create-body").roundThis("10px");$j("#group-settings-form.standard-form #group-create-body input#group-name").roundThis("4px");$j("#group-settings-form.standard-form #group-create-body textarea#group-desc").roundThis("4px");$j("#group-settings-form.standard-form #group-create-body input#save").roundThis("4px");$j("#group-settings-form.standard-form #group-create-body .submit input").roundThis("4px");$j("#main.col-left #groups-directory-form.dir-form h3 a").roundThis("10px");$j("#groups-directory-form .dir-search #groups_search").roundThis("4px");$j("#groups-directory-form .dir-search #groups_search_submit").roundThis("4px");$j("#create-group-form.standard-form #group-create-body").roundThis("10px");$j("#create-group-form.standard-form #group-create-body textarea").roundThis("4px");$j("#create-group-form.standard-form #group-create-body input#group-name").roundThis("4px");$j("input#members_search").roundThis("4px");$j("input#members_search_submit").roundThis("4px");$j("#groups_button a").roundThis("5px");$j("input#group-creation-create").roundThis("4px");$j("#main.col-left #item-body #groups-list .action .generic-button a").roundThis("4px");$j("#main.col-left #item-body #settings-form.standard-form #email.settings-input").roundThis("4px");$j("#main.col-left #item-body #settings-form.standard-form input.settings-input").roundThis("4px");$j("#main.col-left #item-body #settings-form .submit input#submit.auto").roundThis("4px");$j(".users-who-like").roundThis("3px");$j("ul.tabnavigation li a").roundThis("4px");$j("#postreply").roundThis("4px");$j("#setupform input#submit").roundThis("5px");$j("#item-body input#submit").roundThis("4px");$j("#bp-album-edit-form input#submit").roundThis("5px");$j("#create-event-form.standard-form #event-create-body.item-body").roundThis("10px");$j("#create-event-form.standard-form .create_event_button a").roundThis("5px");$j("#create-event-form.standard-form #event-create-body.item-body tr td input").roundThis("4px");$j("#create-event-form.standard-form #event-create-body.item-body tr td textarea").roundThis("4px");$j("#create-event-form.standard-form #event-create-body.item-body").roundThis("10px");$j("#event-create-body.item-body #previous-next.submit input").roundThis("4px");$j("#groups-directory-form.dir-form #group-dir-search.dir-search input#events_search_submit").roundThis("4px");$j("input#events_search").roundThis("4px");$j("#event-settings-form.standard-form #events-create-body").roundThis("10px");$j("#event-settings-form.standard-form #events-create-body tr td input").roundThis("4px");$j("#event-settings-form.standard-form #events-create-body tr td textarea").roundThis("4px");$j("#event-settings-form.standard-form #events-create-body input#save").roundThis("4px");$j("#event-settings-form.standard-form #events-create-body .submit input").roundThis("4px");$j(".fav-title h4").roundThis("4px");$j(".upload-title h4").roundThis("4px");$j(".mfp_remove_link ").roundThis("4px");$j("#item-body div.item-list-tabs.activity-type-tabs li").roundThis("4px");$j(".directory.activity #whats-new-submit input#aw-whats-new-submit").roundThis("4px");$j("#pictures-dir-list .bwbps_addphoto_link").roundThis("4px");$j(".ratingsystem ").roundThis("4px");$j("input#forums_search").roundThis("4px");$j("input#forums_search_submit").roundThis("4px");$j("#forums-directory-form .item-list-tabs li").roundThis("4px");$j("#avatar-crop-submit ").roundThis("5px");$j("#item-header #item-header-content #item-meta #item-buttons #send-private-message a").roundThis("4px");$j(".my-groups #subnav ul li").roundThis("4px");$j(".my-groups input#aw-whats-new-submit").roundThis("4px");$j(".members-name").roundThis("4px");$j("#community").roundThis("5px");$j("#community ul li").roundThis("4px");$j("#favorite a").roundThis("4px");$j(".widget input.s").roundThis("5px");$j(".widget input.submit").roundThis("5px");$j(".ps-submit input, .ps-submit").roundThis("11px");$j(".ps-modbutton input, .ps-modbutton").roundThis("8px");$j(".invitersbtn").roundThis("4px");$j(".load-more a").roundThis("4px");$j(".button").roundThis("4px");$j("ul.tabs li").roundThis("4px");$j(".showall").roundThis("4px");$j(".showallfav").roundThis("4px");$j(".friendship-button").roundThis("4px");$j("#deletebtn input").roundThis("4px");$j("#galleries-directory-form div.item-list-tabs li").roundThis("4px");$j("#galleries-directory-form .action").roundThis("4px");$j("input#gallery_save").roundThis("4px");$j(".friendship-button a").roundThis("4px");});;(function(jQuery){jQuery.fn.loopedSlider=function(options){var defaults={container:'.container',slides:'.slides',pagination:'.pagination',containerClick:false,autoStart:0,restart:0,slidespeed:100,fadespeed:100,autoHeight:false};this.each(function(){var obj=jQuery(this);var o=jQuery.extend(defaults,options);var pagination=jQuery(o.pagination+' li a',obj);var m=0;var t=1;var s=jQuery(o.slides,obj).children().size();var w=jQuery(o.slides,obj).children().outerWidth();var p=0;var u=false;var n=0;var interval=0;var restart=0;jQuery(o.slides,obj).css({width:(s*w)});jQuery(o.slides,obj).children().each(function(){jQuery(this).css({position:'absolute',left:p,display:'block'});p=p+w;});jQuery(pagination,obj).each(function(){n=n+1;jQuery(this).attr('rel',n);jQuery(pagination.eq(0),obj).parent().addClass('active');});if(s!=1){jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w});}
if(s>3){jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w});}
if(o.autoHeight){autoHeight(t);}
jQuery('.next',obj).click(function(){if(u===false){animate('next',true);if(o.autoStart){if(o.restart){autoStart();}
else{clearInterval(sliderIntervalID);}}}return false;});jQuery('.previous',obj).click(function(){if(u===false){animate('prev',true);if(o.autoStart){if(o.restart){autoStart();}
else{clearInterval(sliderIntervalID);}}}return false;});if(o.containerClick){jQuery(o.container,obj).click(function(){if(u===false){animate('next',true);if(o.autoStart){if(o.restart){autoStart();}
else{clearInterval(sliderIntervalID);}}}return false;});}
jQuery(pagination,obj).click(function(){if(jQuery(this).parent().hasClass('active')){return false;}
else{t=jQuery(this).attr('rel');jQuery(pagination,obj).parent().siblings().removeClass('active');jQuery(this).parent().addClass('active');animate('fade',t);if(o.autoStart){if(o.restart){autoStart();}
else{clearInterval(sliderIntervalID);}}}return false;});if(o.autoStart){sliderIntervalID=setInterval(function(){if(u===false){animate('next',true);}},o.autoStart);function autoStart(){if(o.restart){clearInterval(sliderIntervalID);clearInterval(interval);clearTimeout(restart);restart=setTimeout(function(){interval=setInterval(function(){animate('next',true);},o.autoStart);},o.restart);}else{sliderIntervalID=setInterval(function(){if(u===false){animate('next',true);}},o.autoStart);}};}
function current(t){if(t===s+1){t=1;}
if(t===0){t=s;}
jQuery(pagination,obj).parent().siblings().removeClass('active');jQuery(pagination+'[rel="'+(t)+'"]',obj).parent().addClass('active');};function autoHeight(t){if(t===s+1){t=1;}
if(t===0){t=s;}
var getHeight=jQuery(o.slides,obj).children(':eq('+(t-1)+')',obj).outerHeight();jQuery(o.container,obj).animate({height:getHeight},o.autoHeight);};function animate(dir,clicked){u=true;switch(dir){case'next':t=t+1;m=(-(t*w-w));current(t);if(o.autoHeight){autoHeight(t);}
if(s<3){if(t===3){jQuery(o.slides,obj).children(':eq(0)').css({left:(s*w)});}
if(t===2){jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:(w)});}}
jQuery(o.slides,obj).animate({left:m},o.slidespeed,function(){if(t===s+1){t=1;jQuery(o.slides,obj).css({left:0},function(){jQuery(o.slides,obj).animate({left:m})});jQuery(o.slides,obj).children(':eq(0)').css({left:0});jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w});}
if(t===s)jQuery(o.slides,obj).children(':eq(0)').css({left:(s*w)});if(t===s-1)jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({left:s*w-w});u=false;});break;case'prev':t=t-1;m=(-(t*w-w));current(t);if(o.autoHeight){autoHeight(t);}
if(s<3){if(t===0){jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:(-w)});}
if(t===1){jQuery(o.slides,obj).children(':eq(0)').css({position:'absolute',left:0});}}
jQuery(o.slides,obj).animate({left:m},o.slidespeed,function(){if(t===0){t=s;jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:(s*w-w)});jQuery(o.slides,obj).css({left:-(s*w-w)});jQuery(o.slides,obj).children(':eq(0)').css({left:(s*w)});}
if(t===2)jQuery(o.slides,obj).children(':eq(0)').css({position:'absolute',left:0});if(t===1)jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w});u=false;});break;case'fade':t=[t]*1;m=(-(t*w-w));current(t);if(o.autoHeight){autoHeight(t);}
jQuery(o.slides,obj).children().fadeOut(o.fadespeed,function(){jQuery(o.slides,obj).css({left:m});jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({left:s*w-w});jQuery(o.slides,obj).children(':eq(0)').css({left:0});if(t===s){jQuery(o.slides,obj).children(':eq(0)').css({left:(s*w)});}
if(t===1){jQuery(o.slides,obj).children(':eq('+(s-1)+')').css({position:'absolute',left:-w});}
jQuery(o.slides,obj).children().fadeIn(o.fadespeed);u=false;});break;default:break;}};});};})(jQuery);jQuery(function(){var min_height=jQuery('.featured-nav').height();min_height=min_height-80;jQuery('.slides .post').css('min-height',min_height);})
